/* =========================================================
   Gumbalkan 2026
   Main stylesheet
   ========================================================= */


:root {

    --primary-color: #8a732e;
    --dark-color: #151515;
    --light-color: #f4f1e8;
    --text-color: #333;
    --white: #fff;

    --overlay: rgba(0,0,0,.45);

    --max-width:1200px;
    --border-radius:12px;

}



/* ---------------------------------------------------------
   Reset
--------------------------------------------------------- */


* {

    margin:0;
    padding:0;
    box-sizing:border-box;

}


html {

    scroll-behavior:smooth;

}


body {

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    background:
        var(--light-color);

    color:
        var(--text-color);

    line-height:1.6;

}


img {

    max-width:100%;
    display:block;

}


a {

    color:inherit;
    text-decoration:none;

}




/* ---------------------------------------------------------
   Layout
--------------------------------------------------------- */


.container {

    width:min(90%,var(--max-width));

    margin:auto;

}




/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */


.hero {

    min-height:100vh;

    background:

        linear-gradient(
            var(--overlay),
            var(--overlay)
        ),

        url("../images/main.webp")
        center/cover
        no-repeat;


    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    color:white;

}



.hero-content {

    max-width:800px;

}



.hero h1 {

    font-size:
        clamp(3rem,8vw,6rem);

    text-transform:uppercase;

    letter-spacing:4px;

    margin-bottom:20px;

}



.hero p {

    font-size:1.4rem;

}




/* ---------------------------------------------------------
   Navbar
--------------------------------------------------------- */


.navbar {

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:1000;

    background:
        rgba(0,0,0,.75);

    backdrop-filter:
        blur(8px);

}



.navbar ul {

    display:flex;

    justify-content:center;

    gap:30px;

    list-style:none;

    padding:20px;

}



.navbar a {

    color:white;

    font-weight:600;

    transition:.3s;

}



.navbar a:hover,
.navbar a.active {

    color:
        var(--primary-color);

}




/* ---------------------------------------------------------
   Sections
--------------------------------------------------------- */


section {

    padding:10px 0;

}



.section-title {

    text-align:center;

    margin-bottom:20px;

}



.section-title h2 {

    font-size:2.5rem;

    color:
        var(--dark-color);

}




/* ---------------------------------------------------------
   Map
--------------------------------------------------------- */


.route-map {

    position:relative;

    background:
        url("../images/balkan-map.jpg")
        center/cover
        no-repeat;


    min-height:700px;

    border-radius:
        var(--border-radius);

    overflow:hidden;

}



/* #map {

    width:100%;

    height:700px;

    border-radius:12px;

    overflow:hidden;

} */

#map {

    width:100%;

    height:70vh;

    min-height:450px;

    border-radius:12px;

    /* overflow:hidden; */

}



.map-popup img {

    width:250px;

    border-radius:8px;

    margin-top:10px;

}



/* Leaflet custom marker */


.route-marker {

    background:
        var(--primary-color);

    color:white;

    width:36px;

    height:36px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-weight:bold;

    border:3px solid white;

    box-shadow:
        0 3px 8px rgba(0,0,0,.4);

}



.route-marker.start {

    background:#2e7d32;

}



.route-marker.finish {

    background:#c62828;

}

/* ---------------------------------------------------------
   Gallery thumbnails
--------------------------------------------------------- */


.gallery {

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(280px,1fr));

    gap:20px;

}



.gallery-item {

    overflow:hidden;

    border-radius:
        var(--border-radius);

    background:white;

}


/* =========================================================
   Gallery arrows
========================================================= */

.gallery-pages {

    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;

    margin-bottom:15px;

}


.gallery-pages button {

    width:40px;
    height:40px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0;

    border:none;
    border-radius:50%;

    background:var(--primary-color);

    color:rgb(255, 255, 255);

    font-size:32px;

    line-height:1;

    cursor:pointer;

}


.gallery-pages button:hover {

    transform:scale(1.1);

}


#gallery-page-title {

    font-weight:700;
    min-width:80px;
    text-align:center;

}

.page-arrow {

    position: relative;

}


.page-arrow::after {

    content: attr(data-tooltip);

    position: absolute;

    bottom: calc(100% + 10px);

    left: 50%;

    transform: translateX(-50%) scale(.9);

    background: rgba(0,0,0,.85);

    color:white;

    padding:6px 10px;

    border-radius:6px;

    white-space:nowrap;

    font-family: "Montserrat", Arial, sans-serif;

    font-size:12px;

    font-weight: 600;

    line-height: 1.3;

    opacity:0;

    pointer-events:none;

    transition:.2s;

    z-index:100;

}


.page-arrow:hover::after {

    opacity:1;

    transform:
        translateX(-50%)
        scale(1);

}

/* =========================================================
   Gallery page compact layout
========================================================= */


.gallery-page section {

    padding: 90px 0;

}


/* navigace bodů */

.gallery-page .gallery-navigation {

    margin-bottom: 0px;

}


.gallery-page .gallery-navigation h2 {

    margin-bottom: 12px;

    font-size: 1.8rem;

}



/* popis zastávky */

.gallery-page #gallery-title {

    margin-bottom: 5px;

}


.gallery-page #gallery-description {

    margin-bottom: 15px;

}



/* samotná galerie */

.gallery-page .gallery-grid {

    margin-top: 0;

}



/* menší mezera mezi tlačítky a fotkami */

.gallery-page .gallery-nav-grid {

    margin-bottom: 10px;

}



.gallery-item img {

    width:100%;

    height:280px;

    object-fit:cover;

    transition:
        transform .4s;

}



.gallery-item:hover img {

    transform:scale(1.08);

}

/* ======================================
   Gallery bottom spacing
====================================== */

.gallery-page {

    padding-bottom: 80px;

}



/* ---------------------------------------------------------
   Gallery grid
--------------------------------------------------------- */


.gallery-grid {

    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(220px,1fr));

    gap:15px;

}



.gallery-grid img,
.gallery-grid video {

    width:100%;

    height:220px;

    object-fit:cover;

    border-radius:
        var(--border-radius);

    cursor:pointer;

    background:#000;

    transition:
        transform .25s ease,
        opacity .25s ease;

}



.gallery-grid img:hover,
.gallery-grid video:hover {

    transform:scale(1.03);

}




/* ---------------------------------------------------------
   Gallery fullscreen viewer
--------------------------------------------------------- */


#gallery-modal {

    display:none;

    position:fixed;

    inset:0;

    background:
        rgba(0,0,0,.92);

    z-index:9999;

    align-items:center;

    justify-content:center;

}




#gallery-content {

    display:flex;

    align-items:center;

    justify-content:center;

    width:100%;

    height:100%;

}



#gallery-content img,
#gallery-content video {

    max-width:90vw;

    max-height:85vh;

    object-fit:contain;

}




/* Close button */


#gallery-close {

    position:absolute;

    top:20px;

    right:35px;

    color:white;

    font-size:50px;

    line-height:1;

    cursor:pointer;

    z-index:10;

}





/* Slideshow buttons */


#gallery-prev,
#gallery-next {

    position:absolute;

    top:50%;

    transform:
        translateY(-50%);


    width:55px;

    height:55px;


    border:none;

    border-radius:50%;


    background:
        rgba(255,255,255,.25);


    color:white;

    font-size:30px;

    cursor:pointer;

    z-index:10;


    transition:.2s;

}



#gallery-prev {

    left:30px;

}



#gallery-next {

    right:30px;

}



#gallery-prev:hover,
#gallery-next:hover {

    background:
        rgba(255,255,255,.55);

}





/* ---------------------------------------------------------
   Gallery navigation
--------------------------------------------------------- */


.gallery-navigation {

    text-align:center;

    margin:
        0 auto 40px;

}



.gallery-navigation h2 {

    margin-bottom:20px;

}



.gallery-nav-grid {

    display: grid;

    grid-template-columns: repeat(5, 48px);

    justify-content: center;

    gap: 12px;

    margin-top: 25px;

}



.gallery-nav-grid a,
.gallery-nav-grid span {

    position:relative;

    display:inline-flex;

    justify-content:center;

    align-items:center;

    width:48px;

    height:48px;

    font-size:18px;

    font-weight:700;

    color:white;

    background:var(--primary-color);

    border-radius:50%;

    transition:.2s ease;

}




/* aktivní zastávka */


.gallery-nav-grid a.active {

    background:#3a9219;

    color:white;

}

/* zastávka bez médíí */

.gallery-nav-grid span.disabled {

    display:inline-flex;

    width:48px;
    height:48px;

    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#aaa;

    color:white;

    cursor:not-allowed;

    position:relative;

}




/* ======================================
   Common tooltip
====================================== */


.gallery-nav-grid a::after,
.gallery-nav-grid span::after {

    content:attr(data-tooltip);

    position:absolute;

    bottom:calc(100% + 12px);

    left:50%;

    transform:
        translateX(-50%)
        scale(.9);


    background:rgba(0,0,0,.9);

    color:white;

    padding:8px 12px;

    border-radius:8px;

    white-space:nowrap;

    font-size:13px;

    z-index:100;

    opacity:0;

    pointer-events:none;

    transition:.2s ease;

}




.gallery-nav-grid a:hover::after,
.gallery-nav-grid span:hover::after {

    opacity:1;

    transform:
        translateX(-50%)
        scale(1);

}




.gallery-nav-grid a:hover {

    background:
        #6f5b22;


    transform:
        translateY(-3px);

}

/* ---------------------------------------------------------
   Video
--------------------------------------------------------- */


.video-wrapper {

    max-width:1100px;

    margin:40px auto;

    aspect-ratio:16 / 9;

    border-radius:
        var(--border-radius);

    overflow:hidden;

    box-shadow:
        0 10px 30px rgba(0,0,0,.25);

}



.video-wrapper iframe {

    width:100%;

    height:100%;

    border:0;

}





/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */


footer {

    background:
        var(--dark-color);

    color:white;

    text-align:center;

    padding:30px;

}



footer span {

    color:
        var(--primary-color);

}





/* ---------------------------------------------------------
   Buttons (obecné)
--------------------------------------------------------- */


button {

    font-family:inherit;

}





/* ---------------------------------------------------------
   Mobile / Responsive
--------------------------------------------------------- */


@media (max-width:768px) {

.video-thumb {

    height:140px;

}

    .navbar ul {

        gap:15px;

        flex-wrap:wrap;

        padding:15px;

    }



    section {

        padding:20px 0;

    }



    .hero h1 {

        letter-spacing:2px;

    }



    .hero p {

        font-size:1.1rem;

    }



    #map {

        height:450px;

    }



    .route-map {

        min-height:450px;

    }



    .gallery-grid {

        grid-template-columns:
            repeat(
                auto-fill,
                minmax(140px,1fr)
            );

        gap:10px;

    }



    .gallery-grid img,
    .gallery-grid video {

        height:140px;

    }



    #gallery-close {

        top:15px;

        right:20px;

        font-size:40px;

    }



    #gallery-prev,
    #gallery-next {

        width:45px;

        height:45px;

        font-size:24px;

    }



    #gallery-prev {

        left:15px;

    }



    #gallery-next {

        right:15px;

    }



    .gallery-nav-grid {

        gap:8px;

        padding:0 10px;

    }



    .gallery-nav-grid a {

        width:42px;

        height:42px;

        font-size:16px;

    }



}

@media (max-width: 600px) {

    #gallery-grid {

        padding-bottom: 40px;

    }

}

@media (max-width: 600px) {

    .gallery-nav-grid {

        grid-template-columns: repeat(5, 42px);

        gap: 8px;

    }


    .gallery-nav-grid a,
    .gallery-nav-grid span.disabled {

        width:42px;
        height:42px;

        font-size:16px;

    }

}


/* ---------------------------------------------------------
   Video thumbnail
--------------------------------------------------------- */


.video-thumb {

    position:relative;

    width:100%;

    height:220px;

    overflow:hidden;

    border-radius:12px;

    cursor:pointer;

    background:#000;

}



.video-thumb video {

    width:100%;

    height:100%;

    object-fit:cover;

}



.video-play-icon {

    position:absolute;

    top:50%;

    left:50%;

    transform:
        translate(-50%,-50%);


    width:55px;

    height:55px;


    display:flex;

    align-items:center;

    justify-content:center;


    border-radius:50%;


    background:
        rgba(0,0,0,.55);


    color:white;


    font-size:28px;


    pointer-events:none;

}

.image-thumb,
.video-thumb {

    width:100%;

    height:220px;

    overflow:hidden;

    border-radius:12px;

    cursor:pointer;

}


.image-thumb img,
.video-thumb video {

    width:100%;

    height:100%;

    object-fit:cover;

}



.video-thumb {

    position:relative;

    background:#000;

}



.video-play-icon {

    position:absolute;

    top:50%;

    left:50%;

    transform:
        translate(-50%,-50%);


    width:55px;

    height:55px;


    display:flex;

    align-items:center;

    justify-content:center;


    border-radius:50%;


    background:
        rgba(0,0,0,.6);


    color:white;

    font-size:28px;

}


/* =========================================================
   Fix gallery vertical spacing
========================================================= */

#gallery-navigation {
    padding: 0 !important;
    margin: 0 auto 15px !important;
}


#gallery-navigation section {
    padding: 0 !important;
    margin: 0 !important;
}


.gallery-navigation {
    padding: 0 !important;
    margin: 0 auto 15px !important;
}


.gallery-navigation h2 {
    margin: 0 0 10px 0 !important;
}


#gallery-grid {
    margin-top: 0 !important;
}


#gallery-description {
    margin-bottom: 10px !important;
}


.gallery-page section {
    padding-top: 0 !important;
    padding-bottom: 20px !important;
}

/* =========================================================
   Gallery compact spacing
========================================================= */


.gallery-page {

    padding-top: 90px;

}


.gallery-page #gallery-navigation {

    margin-bottom: 15px;

}


.gallery-page .gallery-navigation {

    margin:0;

}


.gallery-page .gallery-navigation h2 {

    margin-bottom:10px;

}


.gallery-page .container {

    padding-top:0;

}


.gallery-page #gallery-title {

    margin-top:0;

    margin-bottom:5px;

}


.gallery-page #gallery-description {

    margin-bottom:15px;

}


.gallery-page .gallery-grid {

    margin-top:0;

}

/* ======================================
   Map popup button
====================================== */

.leaflet-popup-content .map-gallery-button {

    display: inline-block;

    margin-top: 15px;
    padding: 12px 22px;

    background: var(--primary-color);
    color: #fff !important;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    border-radius: 999px;

    transition: all .25s ease;

}

.leaflet-popup-content .map-gallery-button:hover {

    background: #a58a3a;
    color: #fff !important;

    transform: translateY(-2px);

}

/* ======================================
   Leaflet popup - mobilní úprava
====================================== */

.leaflet-popup-content {

    max-width: 320px;
    max-height: 60vh;

    overflow-y: auto;

    padding-right: 10px;

    font-size: 14px;
    line-height: 1.5;

}


/* Nadpis bodu */

.leaflet-popup-content h3 {

    margin-bottom: 10px;

    font-size: 18px;

    color: var(--dark-color);

}


/* Text waypointu */

.map-popup p {

    margin-bottom: 12px;

    white-space: normal;

}


/* Obrázek náhledu */

.map-popup img {

    width: 100%;

    max-height: 160px;

    object-fit: cover;

    border-radius: 10px;

    margin-top: 10px;

}


/* Tlačítko galerie */

.map-gallery-button {

    display: block;

    width: 100%;

    text-align: center;

    margin-top: 15px;

}

/* ======================================
   Hero Buttons
====================================== */

.hero-buttons {

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;

    margin-top: 50px;

}

.btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 230px;
    height: 60px;

    padding: 0 32px;

    border-radius: 999px;

    font-size: 1.05rem;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;

    cursor: pointer;

}

.btn:hover {

    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(0,0,0,.30);

}

.btn-primary {

    background: var(--primary-color);
    color: white;

}

.btn-primary:hover {

    background: #a4893b;

}

.btn-secondary {

    background: rgba(255,255,255,.15);

    color: white;

    border: 2px solid rgba(255,255,255,.35);

    backdrop-filter: blur(8px);

}

.btn-secondary:hover {

    background: rgba(255,255,255,.25);

    border-color: rgba(255,255,255,.6);

}

@media (max-width:768px){

    .hero-buttons{

        flex-direction:column;
        align-items:center;

    }

    .btn{

        width:280px;

    }

}

/* Minimální šířka popupu na mapě */
.leaflet-popup-content-wrapper {
    min-width: 300px;
}


.leaflet-popup-content {
    width: 300px !important;
    margin: 15px;
}

.map-popup .popup-preview {

    width: 100%;
    max-width: 300px;

    max-height: 220px;

    object-fit: cover;

    border-radius: 8px;

    margin-bottom: 10px;

}

/* Popup mapa - základ */
.leaflet-popup-content-wrapper {
    min-width: 300px;
}


.leaflet-popup-content {
    width: 300px !important;
}


/* Mobil */
@media (max-width: 600px) {


    .leaflet-popup-content-wrapper {

        min-width: 220px;

    }


    .leaflet-popup-content {

        width: 220px !important;

        margin: 10px;

    }


    .map-popup h3 {

        font-size: 16px;

    }


    .map-popup p {

        font-size: 13px;

        margin: 6px 0;

    }


    .map-popup .popup-country {

        font-size: 13px;

    }


    .map-popup .popup-preview {

        max-height: 150px;

        width: 100%;

        object-fit: cover;

    }


    .map-gallery-button {

        font-size: 13px;

        padding: 8px 12px;

    }

}
