/* --- ZÁKLADNÍ NASTAVENÍ (Společné) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    background-color: white;
}

/* --- HEADER (PC) --- */
header {
    width: 100vw;
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

header .logo {
    width: 320px;
    height: 120px;
}

header .logo img{
    width: 85%;
    margin: 0;
    padding: 0;
}

header p {
    font-size: 1.6em;
}

/* --- NAVIGACE (PC) --- */
nav {
    width: 100vw;
    height: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    position: relative;
}

/* Ikona menu - na PC skrytá */
.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.menu-icon span {
    width: 35px;
    height: 4px;
    background-color: black;
    transition: 0.3s;
}

nav ul {
    display: flex;
    list-style: none; 
    height: 100%;
}

nav li {
    background-color: white;
    height: 100%;
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav li.active {
    background-color: black;
}

nav li a {
    text-decoration: none;
    color: black;
    font-size: 1.2em;
    font-weight: normal;
}

nav li.active a {
    color: white;
}

/* --- HLAVNÍ OBSAH (PC) --- */
main {
    width: 100vw;
    height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

main .wrapper {
    height: 100%;
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.content-section {
    display: none; /* Přepínání řeší JS */
}

main h1 {
    margin-top: 30px;
    text-align: center;
    font-size: 2.5em;
}

main p {
    text-align: center;
    font-size: 1.19em;
    margin-top: 30px;
}
#kontakt p{
    text-align: start;
    padding-bottom: 50px;
}

/* --- SLIDER --- */
.images {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 60px;
}

.images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease-in-out;
}

.images img.next {
    left: 100%;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    font-size: 3em;
    padding: 20px;
    cursor: pointer;
    z-index: 20;
    user-select: none;
}

.next-arrow { right: 0; }
.prev { left: 0; }

.prev-lb {
    left: 20px;
}

.next-lb {
    right: 20px;
}

.info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    padding: 25px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: 0.3s;
}

.images:hover .info-bar { opacity: 1; }

.image-counter {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

#lightbox-img { max-height: 80vh; max-width: 90%; border: 1px solid #444; display: block; margin: 0 ; ; }

.lightbox-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.close-lightbox {
    position: absolute;
    top: 20px; right: 30px;
    color: white; font-size: 40px; cursor: pointer;
}

.map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 480px;
}

.map-container iframe {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: calc(100% + 80px);
    border: 0;
}

/* --- RESPONZIVITA PRO MOBILY (max 600px) --- */
/* --- RESPONZIVITA PRO MOBILY (max 600px) --- */
/* --- RESPONZIVITA PRE MOBILY (max 600px) --- */
@media screen and (max-width: 600px) {
    /* 1. Header & Logo */
    header {
        height: auto !important;
        flex-direction: column !important;
        padding: 40px 20px !important;
        gap: 15px !important;
    }

    header .logo {
        width: 280px !important;
        height: 100px !important;
    }

    header p {
        font-size: 1.8em !important;
        text-align: center;
        padding: 20px 0;
    }

    /* 2. Hamburger ikona - fixná pozícia vpravo hore */
    .menu-icon {
        display: flex !important;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 2100 !important;
    }

    /* 3. Žlté Fullscreen Menu */
    nav ul {
        display: none; /* Skryté v základe, JS pridá triedu .show */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #f1c40f; /* Žltá farba podľa obrázka */
        z-index: 2000;
        gap: 30px;
    }

    nav ul.show {
        display: flex;
    }

    nav li {
        width: auto !important;
        height: auto !important;
        background: transparent !important; /* Zrušenie čierneho pozadia z PC verzie */
    }

    /* Neaktívny odkaz v menu (Čierny) */
    nav li a {
        font-size: 2em !important;
        color: black !important;
        text-transform: uppercase;
        font-weight: normal !important;
        text-decoration: none;
    }

    /* Aktívny odkaz v menu (Biely) */
    nav li.active a {
        color: white !important;
    }

    /* Animácia hamburgeru na krížik */
    .menu-icon.open span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
    .menu-icon.open span:nth-child(2) { opacity: 0; }
    .menu-icon.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); }

    /* 4. Sekcia Úvod - Usporiadanie a fix schovávania */
    main { 
        height: auto !important; 
        padding: 0 50px; 
    }
    
    /* Aplikuje flexbox len ak sekcia NIE JE skrytá pomocou JS (display: none) */
    #uvod:not([style*="display: none"]) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
    }

    #uvod .images {
        order: 1 !important;
        width: calc(100% + 30px) !important;
        margin-left: -30px !important;
        margin-right: -30px !important;
        margin-top: 0 !important;
        margin-bottom: 30px !important;
        padding: 0 50px;
    }

    #uvod h1 {
        order: 2 !important;
        font-size: 2.5em !important;
        margin: 20px 0 !important;
        line-height: 1.1 !important;
        text-align: center;
    }

    #uvod p {
        order: 3 !important;
        font-size: 1.8em !important;
        margin-bottom: 40px !important;
        text-align: center;
    }

    /* Sekcia Kontakt na mobile */
    #kontakt p {
        font-size: 1.6em;
        text-align: start;
    }

    /* Úprava kontejneru pro mapu na mobilu */
    .map-container {
        width: calc(100% + 60px) !important; /* Roztáhne mapu k okrajům displeje */
        margin-left: -30px !important;
        margin-right: -30px !important;
        margin-top: 20px;
    }

    .map-container iframe {
        border: none;
        width: 100%;
        height: 400px; /* Výška mapy na mobilu */
    }
    /* --- OPRAVA LIGHTBOXU NA MOBILU --- */
    /* Lightbox musí mít čistě černé pozadí a být nad vším */
    .lightbox {
        display: none; /* Skryté v základu */
        position: fixed;
        z-index: 9999 !important; /* Extrémně vysoké číslo, aby nic nebylo nad ním */
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background-color: #000000 !important; /* Čistě černá */
        align-items: center;
        justify-content: center;
    }

    /* Třída, kterou přidáme přes JS na body, aby zmizelo menu */
    body.lightbox-open .menu-icon {
        display: none !important;
    }

    /* Kontejner pro obrázek a info, aby se vše vešlo */
    .lightbox-content-container {
        width: 100% !important;
        height: 100% !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #lightbox-img {
        max-width: 100vw !important;
        max-height: 70vh !important; /* Necháme místo na text dole */
        object-fit: contain;
    }

    /* Popisky pod obrázkem */
    #lightbox-info {
        color: white !important;
        text-align: center;
        padding: 20px !important;
        width: 100%;
        background: black; /* Černé pozadí pod textem pro čitelnost */
        font-size: 1.2em !important;
    }

    /* Křížek - dáme ho jasně viditelný do rohu */
    .close-lightbox {
        position: absolute;
        top: 20px !important;
        right: 20px !important;
        font-size: 50px !important;
        color: white !important;
        z-index: 5000 !important;
        text-shadow: 2px 2px 5px black; /* Stín, aby byl vidět i na světlých fotkách */
    }

    /* Šipky - zvětšíme je a dáme je víc ke krajům */
    .nav-arrow.prev-lb, .nav-arrow.next-lb {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 4em !important;
        color: white !important;
        padding: 10px;
        z-index: 2500;
    }

    .prev-lb { left: 5px !important; }
    .next-lb { right: 5px !important; }
}