/* 1. IMPORT FONTŮ - KOMPLETNÍ ADRESA */
@import url('https://googleapis.com');

:root {
    --bg: #ffffff;
    --text: #000000;
    --accent: #ff007a; /* ANWI Pink */
    --line: #efefef;
    --spacing: 120px;
    --accent-soft: rgba(255, 0, 122, 0.4);
}

/* 2. ZÁKLADNÍ NASTAVENÍ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 3. NAVIGACE */
nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 5%; 
    background: rgba(255,255,255,0.98); /* Zvýšena opacita pro lepší čitelnost */
    backdrop-filter: blur(20px); 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 75px;           /* Pevná výška */
    box-sizing: border-box;
    transition: all 0.3s ease; /* Zamezí roztažení do stran */
    z-index: 999999;         /* Absolutně nejvyšší vrstva, Hero ji nepřekryje */
    border-bottom: 1px solid var(--line);
}

/* Prostor pro logo, aby se nehýbalo */
.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto !important;
    min-width: unset !important;
    padding: 0 !important;
    margin: 0 !important;
}

.logo a {
    display: flex;
    align-items: center;
    width: auto !important;
}

#nav-logo {
    height: 40px;          /* Fixní výška vašeho PNG loga */
    width: auto; 
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
    max-width: 150px;
}

#nav-logo:hover { 
    opacity: 0.8; 
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 35px; 
    margin: 0;
    padding: 0;
}

nav ul li a { 
    display: block; 
    text-decoration: none; 
    color: var(--text); 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    transition: color 0.3s ease; 
    padding: 10px 5px;
    cursor: pointer;
}

nav ul li a:hover { 
    color: var(--accent); 
}

.lang-btn { 
    background: transparent; 
    border: 1px solid var(--text); 
    padding: 6px 12px; 
    font-family: 'Space Mono', monospace; 
    font-size: 0.7rem; 
    cursor: pointer; 
    transition: all 0.3s ease; 
}

.lang-btn:hover { 
    background: var(--accent); 
    color: white; 
    border-color: var(--accent); 
}


/* 4. HERO SEKCE */
.hero {
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    padding: 90px 5% 40px 5%;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('interier.jpg');
    background-size: cover; 
    background-position: center; 
    background-attachment: scroll;
    animation: fadeIn 1.5s ease-out;
    position: relative;
    z-index: 1;
}
.hero h1 { font-size: clamp(3rem, 10vw, 8rem); line-height: 0.9; font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; margin-bottom: 2rem; }
.hero-info { font-family: 'Space Mono', monospace; font-size: 0.8rem; border-left: 2px solid var(--accent); padding-left: 25px; text-transform: uppercase; letter-spacing: 1px; }
/* 5. SPOLEČNÉ NASTAVENÍ SEKCI */
section { width: 100%; padding: var(--spacing) 5%; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(30px); transition: all 1s ease-out; box-sizing: border-box; pointer-events: none;}
section.visible { opacity: 1; transform: translateY(0); pointer-events: auto;}
.section-label { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--accent); text-transform: uppercase; margin-bottom: 40px; display: block; }
h2 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; margin-bottom: 30px; letter-spacing: -2px; }

/* 6. ABOUT & VISIT (Grid systém) */
.about-container, .footer-grid { 
    display: flex; 
    flex-wrap: wrap;
    gap: 40px; 
    align-items: center; 
}

.about-content, .contact-details { flex: 1 1 500px; }
.about-image-wrapper { flex: 1 1 300px; padding: 20px; background: #f0f0f0; display: inline-block; transform: rotate(-2deg); transition: 0.5s ease; box-shadow: 10px 10px 30px rgba(0,0,0,0.05); }
.about-image-wrapper:hover { transform: rotate(0deg) scale(1.02); }

/* 6. ABOUT & VISIT - UPRAVENÉ FILTRY */
/* Fotka s dětmi - Tmavší ANWI růžová */
.side-image { 
    max-width: 100%; 
    height: auto;
    display: block;
    filter: grayscale(1) sepia(1) hue-rotate(320deg) brightness(0.6) contrast(1.5); 
    transition: 0.6s ease;
}
/* Oprava barvy dní v sekci Visit */
#visit .day-highlight {
    color: var(--accent) !important; /* Vynutí tvou růžovou #ff007a */
    font-weight: 800;
    text-transform: uppercase;
}
/* Pokud je text v sekci Visit špatně vidět (např. černý na tmavém) */
#visit p {
    color: var(--text); /* Nebo #ffffff, pokud tam máš fotku */
}
/* Mapka - základní šedá */
.map-container { 
    flex: 1 1 350px;
    height: 350px; 
    width: 100%; 
    border: 1px solid var(--line); 
    overflow: hidden; 
    filter: grayscale(1) invert(0.9) contrast(1.2);
    transition: filter 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}
/* Mapka - po najetí/kliknutí tmavá ANWI růžová */
.map-container:hover, .map-container:active { 
    filter: grayscale(0) invert(0) sepia(100%) hue-rotate(300deg) saturate(500%);
}

/* 7. MENU */
.menu-tabs { display: flex; gap: 30px; margin-bottom: 50px; border-bottom: 1px solid var(--line); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.menu-tabs::-webkit-scrollbar { display: none; }
.tab-btn { background: none; border: none; padding: 15px 0; font-family: 'Space Mono', monospace; font-size: 0.8rem; text-transform: uppercase; cursor: pointer; color: #888; position: relative; }
.tab-btn.active { color: var(--accent); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s ease; }
.menu-container-flex { display: flex; flex-wrap: wrap; gap: 40px; }
.menu-cat { font-family: 'Space Mono', monospace; text-transform: uppercase; color: var(--accent); margin: 30px 0 15px 0; font-size: 0.8rem; }
.m-item { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 4px 0; border-bottom: 1px solid #f9f9f9; }
.menu-hours, .menu-small, .m-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: rgba(255, 0, 122, 0.7);
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-family: 'Space Mono', monospace;
    display: block;
}
.menu-small {
    margin-top: 20px;
    font-style: italic;
    text-transform: none;
}

.m-item-rich p {
    font-size: 0.7rem;
    color: #888 ;
    line-height: 1.4;
    margin-top: 2px;
    font-weight: 300;
    text-transform: none;
}
/* 8. REZERVACE */
#reservation { 
    padding: 150px 5%; background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('interier-modre-zidle.jpg');
    background-size: cover; background-position: center; background-attachment: scroll;
    display: flex; justify-content: center; align-items: center;
}
.glass-box { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); padding: 40px; max-width: 600px; width: 100%; margin: 0 auto; display: block;}
#booking-form input { width: 100%; padding: 15px 0; margin-bottom: 20px; border: none; border-bottom: 1px solid var(--line); background: transparent; font-family: 'Space Mono', monospace; outline: none; }
.form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-row input { flex: 1 1 200px; }
.btn { width: 100%; background: var(--text); color: white; padding: 15px 40px; border: none; font-family: 'Space Mono', monospace; text-transform: uppercase; cursor: pointer; transition: 0.3s; }
.btn:hover { background: var(--accent); }

/* 9. KONTAKTNÍ ÚDAJE & FOOTER */
footer#contact section#contact { 
    padding: 80px 5%; 
    border-top: none; 
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('interier-modre-zidle.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    text-align: center;
}
/* 9. KONTAKTNÍ ÚDAJE & FOOTER */
#contact { color: #ffffff !important; }
#contact .section-label { color: var(--accent) !important; }
#contact h2 { color: #ffffff !important; }

/* Styl pro ten email info@anwi.cz */
.contact-email {
    text-decoration: none;
    color: #ffffff !important;
    font-family: 'Space Mono', monospace;
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 700;
    transition: color 0.3s ease;
}
.contact-email:hover { color: var(--accent) !important; }

/* Styl pro ten spodní řádek s rokem a zásadami */
.footer-bottom {
    margin-top: 50px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff !important;
    opacity: 0.7; /* Místo 0.5 dáme víc, aby to bylo na tmavém pozadí vidět */
}

#privacy-link {
    color: #ffffff !important;
    text-decoration: underline;
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

#privacy-link:hover {
    color: var(--accent) !important;
}
footer#contact day-highlight { color: var(--accent) !important; font-weight: 800 !important; text-transform: uppercase; }
.social-links { margin-top: 30px; display: flex; gap: 30px; justify-content: flex-start; }
.social-item { text-decoration: none; color: #ffffff !important; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; position: relative; transition: 0.3s; }
.social-item:hover { color: var(--accent) !important; }
.social-item::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background: var(--accent); transition: 0.3s; }
.social-item:hover::after { width: 100%; }

/* ANIMACE */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* RESPONSIVITA */
@media (max-width: 850px) {
    :root { --spacing: 60px; }
    
    /* OPRAVA: Přidáno #visit pro zrušení sloupců i u prostřední mapy */
    #visit .footer-grid, .about-container, .menu-container-flex { 
        grid-template-columns: 1fr !important; 
        display: flex !important;
        flex-direction: column !important;
    }
    
    nav { height: auto !important; padding: 15px 5% !important; flex-direction: column !important; gap: 12px !important; position: fixed !important; top: 0 !important; left: 0 !important; width: 100% !important; z-index: 100000 !important; }
    nav ul { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; gap: 10px 20px !important; width: 100% !important; position: static !important; transform: none !important; }
    nav ul li a { display: block !important; font-size: 0.75rem !important; padding: 8px 10px !important;}
    
    .hero { padding-top: 170px !important; }
    
    /* FINÁLNÍ OPRAVA FORMULÁŘE PRO IPHONY */
    #reservation { 
        padding: 60px 5% !important; 
        display: flex !important; 
        justify-content: center !important; 
        align-items: center !important; 
        width: 100% !important; 
    }
    
    .glass-box { 
        padding: 30px 20px !important; 
        width: 100% !important; 
        max-width: 100% !important; 
        display: block !important; 
        box-sizing: border-box !important; 
    }
    
    /* OPRAVA: Zapneme flexbox pod sebou pro řádek s hosty a datem */
    #booking-form .form-row { 
        width: 100% !important; 
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    /* OPRAVA: Cílíme na VŠECHNA políčka, aby vyplnila celou šířku boxu */
    #booking-form input,
    #booking-form .form-row input { 
        width: 100% !important; 
        display: block !important;
        font-size: 1rem !important; /* Zamezí automatickému zoomování obrazovky v Safari */
        box-sizing: border-box !important;
    }

    
    /* FINÁLNÍ OPRAVA PATIČKY PRO IPHONY */
    footer#contact, section#contact { padding: 60px 5% !important; }
    
    /* OPRAVA: Přepisujeme původní grid na flexbox pod sebou pro spodní patičku */
    footer#contact .footer-grid { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 40px !important; 
        grid-template-columns: 1fr !important; 
    }
    
    .contact-details { text-align: center !important; width: 100% !important; }
    
    /* FINÁLNÍ ZÁCHRANA PRO SAFARI (OPRAVA VÝŠKY NA MOBILU) */
    .map-container { 
        width: 100% !important; 
        height: auto !important;        /* Safari na výšku zahodí pevných 280px */
        min-height: unset !important;   /* Resetujeme původní limity */
        aspect-ratio: 16 / 10 !important; /* TRICK: Safari si výšku dopočítá samo z šířky obrazovky */
        background: transparent !important;
        position: relative !important;   /* Bezpečné ukotvení pro iframe */
        overflow: hidden !important;
        display: block !important;
    }
    
    .map-container iframe {
        position: absolute !important;  /* Absolutní vytažení do všech rohů v Safari */
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border: none !important;
        display: block !important;
    }
}
