/* -----------------------------------
   FONT & RESET
----------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&family=Montserrat:wght@400;600&display=swap');

#components-reconnect-modal {
    display: none !important;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: #111;
    
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}


/* -----------------------------------
   HEADER / BANNER
----------------------------------- */
.site-header {
    position: relative;
    height: 330px;
    width: 100%;
    background-image: url("../img/BannerPC.png");
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.site-title-wrap {
    position: relative;
    text-align: center;
    padding-bottom:100px;
}

.site-title {
    font-size: 2.5rem;
    margin: 0;
}

.site-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.5rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.head-inner {
    position: relative;
    max-width: 1100px;
    height: auto;
    justify-content: space-between;
    align-items: center;
}

    .head-inner > div {
        font-weight: 700; /* make text bolder */
        font-size: 1.05rem; /* slightly larger text */
        padding: 0 0.5rem; /* tighter spacing between items */
        margin: 0 0.5rem; /* optional: small space between elements */
        text-align: center;
        white-space: nowrap;
    }

.center-info {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}


.left-info {
    float: left;
}

.right-info {
    float: right;
}

.button-link {
    display: inline-block;
    background-color: #757575;
    color: white;
    padding: 0.1rem 0.2rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

    .button-link:hover {
        background-color: black;
        color:white;
    }

.nav-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
}

/* NAV menu styles */
.head-grid a.nav-item {
    text-decoration: none;
    color: #cfcfcf; /* normal link color */
    font-weight: 500; /* normal */
}

    /* Active NavLink adds 'active' class on the <a> */
    .head-grid a.nav-item.active {
        color: #ffffff !important; /* active color */
        font-weight: 900 !important; /* bold */
    }

    /* optional hover so it feels alive */
    .head-grid a.nav-item:hover {
        color: #ffffff;
    }

.center-info
{
    flex: 1 1 auto;
    text-align: center;
}

.left-info {
    text-align: left;
}

.right-info {
    text-align: right;
}



/* -----------------------------------
   MAIN CONTAINER
----------------------------------- */

.alphabet-menu {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1000;
    padding: 1rem 0;
    display: flex;
    flex-wrap: wrap; /* enables wrapping */
    justify-content: center;
    gap: 5px;
}

    .alphabet-menu a {
        text-decoration: none;
        font-weight: 700;
        font-size: 1.05rem;
        padding: 5px 10px;
        color: #444;
        border-radius: 999px;
        transition: all 0.2s ease-in-out;
    }

        .alphabet-menu a.active {
            background-color:   #b6b6b6;
            color: black;
        }

        .alphabet-menu a.inactive {
            color: #aaa;
            pointer-events: none;
        }




.container {
    padding-top: 20px;
    max-width: 1230px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background-color: white;
    padding-bottom: 100px;
}

.obrazek-container {
    padding-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background-color: white;
    padding-bottom: 30px;
    text-align: center;
}

.imgMapa {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}
.mapa-wrap {
    padding-top: 20px;
    overflow-x: auto; /* if map is wider than screen */
    display: block;
    text-align: center;
}

.footer-container {
    padding-top: 20px;
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background-color: white;
    padding-bottom: 30px;
}

/* ========== OPTION A: Underline tabs (Material-ish) ========== */
.head-container {
    background: #f7f7f7;
    border-bottom: 1px solid rgba(0,0,0,.08);
    max-width: 1200px;   /* or whatever width you want */
    margin: 0 auto; 
}

    /* Make the menu feel like a tab row */
    .head-container .head-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
        padding: 10px 8px;
    }

        /* Tabs */
        .head-container .head-grid a.nav-item {
            position: relative;
            padding: 10px 14px;
            color: rgba(0,0,0,.62) !important;
            font-weight: 600 !important;
            letter-spacing: .1px;
            transition: color .18s ease, background-color .18s ease, transform .18s ease;
        }

            /* Hover */
            .head-container .head-grid a.nav-item:hover {
                background: rgba(0,0,0,.05);
                color: rgba(0,0,0,.85) !important;
            }

            /* Animated underline */
            .head-container .head-grid a.nav-item::after {
                content: "";
                position: absolute;
                left: 12px;
                right: 12px;
                bottom: 6px;
                height: 3px;
                background: rgba(0,0,0,.85);
                transform: scaleX(0);
                transform-origin: center;
                transition: transform .22s ease;
                opacity: .9;
            }

            /* Active */
            .head-container .head-grid a.nav-item.active {
                color: rgba(0,0,0,.92) !important;
                background: rgba(0,0,0,.03);
                font-weight: 800 !important;
            }

                .head-container .head-grid a.nav-item.active::after {
                    transform: scaleX(1);
                }

/* Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
    .head-container .head-grid a.nav-item,
    .head-container .head-grid a.nav-item::after {
        transition: none !important;
    }
}
/*KOMETÁŘE*/

.comment-box {
    border: 1px solid #ccc;
    padding: 1rem;
    margin-top: 1rem;
    background-color: #f9f9f9;
    margin-bottom: 100px;
}

    .comment-box p {
        margin: 0;
        font-style: italic;
        color: #333;
    }



/* -----------------------------------
   SECTION HEADINGS
----------------------------------- */
.group-letter {
    font-size: 1.75rem;
    font-weight: 600;
    border-bottom: 2px solid #333;
    margin-bottom: 1.2rem;
    padding-bottom: 0.3rem;
    color: #111;
    text-align: center;
}

/* -----------------------------------
   MODERN CARD GRID
----------------------------------- */
.bird-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bird-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

    .bird-video-grid .bird-card video {
        width: 100%;
        height: auto;
    }

.head-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.bird-card {
    overflow: hidden;
}

    .bird-card:hover {
        transform: translateY(-0px);
    }

        .bird-card:hover .bird-name {
            opacity: 1;
            transform: translateY(0);
        }

.bird-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

    .bird-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 15%;
    }

.bird-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.bird-detail-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    margin: 2rem 0 1rem;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.photo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.photo-card {
    width: 320px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    text-align: left;
}

    .photo-card:hover {
        transform: translateY(-0px);
    }

    .photo-card img {
        width: 100%;
        height: auto;
        display: block;
        border-bottom: 1px solid #ddd;
    }

.photo-info {
    padding: 1rem 1.25rem;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.bird-detail-title {
    font-family: 'Roboto', fantasy;
    font-size: 2.5rem;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #111;
}

/* -----------------------------------
   FOOTER
    ----------------------------------- */
.footer {
    border-top: 2px solid #333;
    padding-bottom: 20px;
    text-align: center;
    color: dimgray;
}

.footer-item {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    padding-top: 10px;
}

    /* -----------------------------------
   RESPONSIVE
----------------------------------- */
    @media (max-width: 768px) {
        .site-title {
            font-size: 2rem;
        }

        .bird-grid {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        }

        .site-header {
            background-image: url("../img/Banner.png");
        }
    }

/* Force NavLink styling in header nav */
.head-container .head-grid a.nav-item {
    color: #666 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

    .head-container .head-grid a.nav-item.active {
        color: #000 !important;
        font-weight: 1000 !important;
        border-left: 10px black;
        border-right: 10px black;
    }

/* ===============================
   /ostatni ONLY: Masonry-style grid
   =============================== */

.vyber-page .bird-grid {
    display: block; /* override your grid */
    columns: 4 260px; /* masonry columns */
    column-gap: 10px;
}

.vyber-page .bird-card {
    break-inside: avoid; /* keep cards from splitting */
    margin: 0 0 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* IMPORTANT: stop forcing 4:3 crop on this page */
.vyber-page .bird-image {
    aspect-ratio: auto; /* kill global 4/3 */
    overflow: hidden;
    position: relative;
}

    .vyber-page .bird-image img {
        width: 100%;
        height: auto; /* natural height, verticals work */
        object-fit: contain; /* no cropping */
        display: block;
    }

/* Optional: keep hover effects but no card jump */
.vyber-page .bird-card:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

/* ===== obrazek viewer ===== */
.viewer {
    position: relative;
}

.viewer-top {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.viewer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.06);
    color: rgba(0,0,0,0.85);
    font-weight: 600;
    transition: background .15s ease, transform .15s ease;
}

    .viewer-btn:hover {
        background: rgba(0,0,0,0.10);
        transform: translateY(-1px);
    }

.viewer-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.viewer-img {
    max-width: 100%;
    height: auto;
}

/* Arrow buttons */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    display: grid;
    place-items: center;
    transition: transform .15s ease, background .15s ease, opacity .15s ease;
    backdrop-filter: blur(6px);
}

    .nav-arrow svg {
        width: 22px;
        height: 22px;
    }

    .nav-arrow.left {
        left: 12px;
    }

    .nav-arrow.right {
        right: 12px;
    }

    .nav-arrow:hover {
        background: rgba(0,0,0,0.60);
        transform: translateY(-50%) scale(1.05);
    }

.viewer-media .nav-arrow {
    opacity: 0.85;
}

.viewer-media:hover .nav-arrow {
    opacity: 1;
}

@media (max-width: 600px) {
    .nav-arrow {
        width: 40px;
        height: 40px;
    }

        .nav-arrow svg {
            width: 20px;
            height: 20px;
        }
}