/* ==========================================================================
   1. IMPORTY A GLOBÁLNÍ NASTAVENÍ
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Lato:wght@300;400;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --color-terracotta: #8c4231;
    --color-stone-grey: #8a8d8f;
    --color-wood: #a67c52;
    --color-light-grey: #f9f9f9;
    --color-white: #ffffff;
    --color-dark: #2c2c2c;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--color-light-grey);
    color: var(--color-dark);
    line-height: 1.6;
}

h1, h2, h3 { 
    font-family: 'Playfair Display', serif; 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

/* ==========================================================================
   2. HLAVIČKA (NAVIGACE, SÍTĚ A VLAJKY)
   ========================================================================== */
header {
    background-color: var(--color-white);
    text-align: center;
    padding: 30px 20px 20px;
    border-bottom: 2px solid var(--color-light-grey);
    position: relative;
}

.header-utils {
    position: absolute;
    top: 30px;
    right: 50px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.social-icons a {
    color: var(--color-terracotta);
    font-size: 1.5rem;
    transition: opacity 0.3s, transform 0.3s;
}

.social-icons a:hover { 
    opacity: 0.7; 
    transform: scale(1.1);
}

.lang-flags {
    display: flex;
    gap: 15px;
    align-items: center;
    border-left: 1px solid #ddd;
    padding-left: 25px;
}

.lang-flags a img {
    width: 28px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s, opacity 0.2s, filter 0.2s;
    opacity: 0.4;
    filter: grayscale(50%);
}

.lang-flags a.active img, 
.lang-flags a:hover img {
    opacity: 1; 
    filter: grayscale(0%);
    transform: scale(1.1);
}

.logo-container img {
    max-height: 120px;
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav a {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 500; /* Vynucení přesné tloušťky u všech slov */
    -webkit-font-smoothing: antialiased; /* Zaostří písmena (skvělé proti optickým klamům na monitorech) */
    color: var(--color-terracotta);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--color-wood);
    border-bottom: 2px solid var(--color-wood);
}

/* ==========================================================================
   3. HERO SEKCE (ÚVODNÍ FOTKA S MASKOU)
   ========================================================================== */
.hero { 
    position: relative;
    width: 100%; 
    height: 70vh; 
    background-size: cover; 
    background-position: center; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 90%, transparent 100%);
    
    z-index: 2; 
}

/* ==========================================================================
   4. SEKCE ZMRZLIN & POZADÍ (KOLÁŽ DLAŽDIC)
   ========================================================================== */
.gelato-section {
    position: relative; 
    overflow: hidden;
    padding: 100px 20px 80px 20px;
    margin: 0;
    margin-top: -40px;
    width: 100%;
    max-width: 100%;
    z-index: 1;
}

.tile-collage {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -250px; 
    bottom: -10px;
    width: auto; 
    z-index: 1; 
    display: flex;
    flex-wrap: wrap; 
    align-content: flex-start; 
}

.tile-collage::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    background: linear-gradient(
        to bottom, 
        rgba(255, 248, 240, 0.101) 0%,   
        rgba(245, 235, 225, 0.091) 40%, 
        rgba(238, 226, 215, 0.036) 100%    
    );
    
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    
    z-index: 2;
}

.tile-collage img {
    width: 200px; 
    height: 200px;
    object-fit: cover;
    display: block; 
}

.gelato-content {
    position: relative;
    z-index: 3;
    max-width: 1200px; 
    margin: 0 auto; 
}

/* ==========================================================================
   5. LIQUID GLASS DESIGN (SKLENĚNÝ NADPIS & BOXY)
   ========================================================================== */
.section-title { 
    font-size: 3rem; 
    color: var(--color-terracotta); 
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important; 
    border: 1px solid rgba(255, 255, 255, 0.8);
    width: fit-content; 
    margin: 0 auto 40px auto; 
    padding: 10px 50px; 
    border-radius: 50px; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); 
    -webkit-text-stroke: 0 !important; 
    text-shadow: none !important; 
    position: relative;
    z-index: 10;
}

.gelato-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.gelato-box { 
    width: 200px; 
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(24px) !important; 
    -webkit-backdrop-filter: blur(24px) !important; 
    border: 1px solid rgba(255, 255, 255, 0.8); 
    border-radius: 15px; 
    padding: 15px; 
    text-align: center; 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1); 
    cursor: pointer;
}

.gelato-box:hover { 
    transform: translateY(-5px) !important; 
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); 
}

.gelato-img { 
    width: 100%; 
    height: 150px; 
    object-fit: cover; 
    border-radius: 5px; 
    margin-bottom: 10px; 
}

.gelato-name { 
    font-weight: 700; 
    font-size: 1.1rem; 
    color: var(--color-dark); 
}

/* ==========================================================================
   6. ROTUJÍCÍ BANNER (KOLOTOČ FOTEK)
   ========================================================================== */
/* ==========================================================================
   CAROUSEL (ROTUJÍCÍ FOTKY) - DOTYKOVÝ A PLYNULÝ
   ========================================================================== */
.carousel-section {
    width: 100%;
    padding: 40px 0;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    overflow-x: auto; /* Povolí nativní scrollování prstem */
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch; /* Extra plynulé na iPhonech */
    scrollbar-width: none; /* Skryje posuvník ve Firefoxu */
    cursor: grab; /* Ukáže ikonu ručičky na PC */
}

/* Skrytí posuvníku v Chrome/Safari/Edge */
.carousel-track::-webkit-scrollbar {
    display: none; 
}

.carousel-track img {
    height: 250px; 
    width: 400px;  /* Krásný široký obdélník */
    object-fit: cover;
    border-radius: 16px;
    flex-shrink: 0; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    pointer-events: none; 
}

@media (max-width: 850px) {
    .carousel-track img {
        height: 200px; 
        width: 320px; /* Menší obdélník pro telefony */
    }
}
/* ==========================================================================
   7. O NÁS & STRÁNKOVÉ KONTEJNERY
   ========================================================================== */
.about-container {
    background-color: var(--color-white);
    padding: 60px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.about-logo-round {
    width: 150px;
    margin: 0 auto 30px;
    display: block;
}

/* ==========================================================================
   8. PATIČKA (INFO + GOOGLE MAPA)
   ========================================================================== */
.footer-split {
    display: flex;
    width: 100%;
    min-height: auto; 
}

.footer-info {
    width: 50%;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('im-1200-FSNOUVEAURU-005.jpg'); 
    background-size: 300px;
    background-repeat: repeat;
    background-attachment: fixed; 
    border-right: 5px solid var(--color-terracotta);
}

.footer-info h2 { font-size: 2.5rem; color: var(--color-terracotta); margin-bottom: 25px; }
.footer-contact-details { font-size: 1.2rem; color: var(--color-dark); margin-bottom: 30px; line-height: 1.8; }
.footer-hours { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(0, 0, 0, 0.1); color: var(--color-terracotta); }

.footer-social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 25px; }
.footer-social-links a {
    display: inline-flex; align-items: center; gap: 10px; background-color: var(--color-dark); color: var(--color-white);
    padding: 12px 25px; border-radius: 50px; font-size: 1rem; font-weight: bold; transition: background-color 0.3s, transform 0.2s;
}
.footer-social-links a:hover { background-color: var(--color-terracotta); transform: translateY(-2px); }

.review-link { color: var(--color-wood); font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; transition: 0.3s; }
.review-link:hover { color: var(--color-terracotta); border-bottom: 1px solid var(--color-terracotta); }

.footer-map { width: 50%; min-height: 450px; }
.footer-map iframe { width: 100%; height: 100%; border: none; display: block; }

/* ==========================================================================
   9. RESPONZIVITA (MOBILNÍ ZAŘÍZENÍ)
   ========================================================================== */
@media (max-width: 800px) {
    .header-utils { position: static; justify-content: center; margin-bottom: 25px; }
    .lang-flags { border-left: none; padding-left: 0; }
    nav ul { flex-wrap: wrap; gap: 20px; }
    .section-title { font-size: 2.2rem; padding: 8px 30px; }
    .hero { height: 50vh; }
    .gelato-section { margin-top: -80px; padding-top: 130px; }
    .gelato-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; padding: 0 5px; }
    .gelato-box { width: 100%; padding: 10px; }
    .gelato-img { height: 110px; }
    .gelato-name { font-size: 0.95rem; }
    
    .footer-split { flex-direction: column; }
    .footer-info { width: 100%; border-right: none; border-bottom: 5px solid var(--color-terracotta); padding: 50px 20px; }
    .footer-map { width: 100%; min-height: 350px; height: 350px; }

    /* OPRAVENÉ ŘAZENÍ A FOTKY PRO MOBILY */
    .about-row, .about-row:nth-child(even) {
        flex-direction: column !important;
        gap: 20px !important;
        margin-bottom: 70px !important;
    }
    .about-col-img, .about-col-text {
        width: 100% !important;
        flex-shrink: 1 !important;
    }
    .about-col-img img {
        width: 100% !important;
        height: 350px !important;
        object-fit: cover !important;
    }
    .about-col-text {
        text-align: center !important;
        padding: 0 10px !important;
    }
    .about-col-text h2 {
        text-align: center !important;
    }
} /* <--- TATO ZÁVORKA TI V PŮVODNÍM KÓDU CHYBĚLA! */


/* ==========================================================================
   10. LIQUID GLASS MODAL (VYSKAKOVACÍ OKNO ZMRZLIN)
   ========================================================================== */
.gelato-modal {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.4); /* Lehké ztmavení pozadí */
    backdrop-filter: blur(0px); 
    -webkit-backdrop-filter: blur(0px); 
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 9999; 
    opacity: 0; 
    visibility: hidden; /* Skryto ve výchozím stavu */
    transition: 0.3s ease;
}

.gelato-modal.active { 
    opacity: 1; 
    visibility: visible;
    pointer-events: auto; 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); 
}

.gelato-modal-content {
    background: rgba(255, 255, 255, 0.6) !important; 
    backdrop-filter: blur(25px) !important; 
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.7); 
    padding: 40px; 
    border-radius: 24px; 
    max-width: 450px; 
    width: 85%;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transform: scale(0.85); 
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gelato-modal.active .gelato-modal-content { transform: scale(1); }

.gelato-modal-img { 
    width: 150px; 
    height: 150px; 
    object-fit: cover; 
    border-radius: 50%; 
    margin-bottom: 25px; 
    border: 3px solid rgba(255,255,255,0.6); 
}

.gelato-modal-title { 
    font-size: 2.2rem; 
    color: var(--color-terracotta); 
    margin-bottom: 15px; 
    font-family: 'Playfair Display', serif; 
}

.gelato-modal-desc { 
    font-size: 1.05rem; 
    line-height: 1.6; 
    color: var(--color-dark); 
    margin-bottom: 30px; 
}

.gelato-modal-btn {
    background: var(--color-terracotta); 
    color: var(--color-white); 
    border: none; 
    padding: 12px 40px; 
    font-size: 1rem;
    font-family: 'Lato', sans-serif; 
    font-weight: 700; 
    text-transform: uppercase; 
    border-radius: 50px; 
    cursor: pointer; 
    transition: 0.2s;
}

.gelato-modal-btn:hover { 
    background: var(--color-wood); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(166, 124, 82, 0.4); 
}

/* ==========================================================================
   11. SCROLL ANIMACE
   ========================================================================== */
.animate-on-scroll { 
    opacity: 0; 
    transform: translateY(80px) scale(0.90); 
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1); 
    will-change: opacity, transform; 
}
.animate-on-scroll.is-visible { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
}

/* ==========================================================================
   12. NEPRŮSTŘELNÁ ŠACHOVNICE PRO STRÁNKU "O NÁS"
   ========================================================================== */
.about-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 80px !important;
    width: 100% !important;
}

.about-row:nth-child(even) {
    flex-direction: row-reverse !important; 
}

.about-col-img {
    width: 47% !important;
    flex-shrink: 0 !important;
}

.about-col-img img {
    width: 100% !important;
    height: 400px !important; 
    object-fit: cover !important; 
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    display: block !important;
}

.about-col-text {
    width: 47% !important;
    flex-shrink: 0 !important;
    text-align: left !important;
}

.about-col-text h2 {
    color: var(--color-terracotta) !important;
    font-size: 2.2rem !important;
    margin-bottom: 20px !important;
    font-family: 'Playfair Display', serif !important;
    text-align: left !important;
}

.about-col-text p {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    color: var(--color-dark) !important;
    text-align: left !important;
}

/* ==========================================================================
   13. INTERAKTIVNÍ MAPA PŘÍBĚHU
   ========================================================================== */
.story-map-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 100px auto;
}

.map-bg {
    width: 100%;
    display: block;
    opacity: 0.85;
    border-radius: 15px;
}

.map-pin {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.map-pin:hover {
    transform: scale(1.3);
    z-index: 20;
}

.pin-dot {
    width: 20px;
    height: 20px;
    background-color: var(--color-terracotta);
    border-radius: 50%;
    border: 3px solid var(--color-white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.pin-label {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-top: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid rgba(140, 66, 49, 0.2);
    text-align: center;
    line-height: 1.3;
}

.map-pin:hover .pin-label {
    opacity: 1;
    transform: translateY(0);
}
/* ==========================================================================
   14. FILTR KATEGORIÍ (PILULKY)
   ========================================================================== */
.category-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.pill-btn {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--color-terracotta);
    color: var(--color-terracotta);
    padding: 10px 25px;
    border-radius: 50px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.pill-btn:hover {
    background: rgba(140, 66, 49, 0.1);
    transform: translateY(-2px);
}

.pill-btn.active {
    background: var(--color-terracotta);
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(140, 66, 49, 0.3);
}
/* ==========================================================================
   15. COOKIE LIŠTA
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    border-top: 3px solid var(--color-terracotta);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-dark);
    line-height: 1.5;
}

.cookie-btn {
    background: var(--color-terracotta);
    color: var(--color-white);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(140, 66, 49, 0.2);
}

.cookie-btn:hover {
    background: var(--color-wood);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 124, 82, 0.4);
}

@media (max-width: 800px) {
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-btn { width: 100%; }
}
/* ==========================================================================
   16. MOBILNÍ VERZE (RESPONZIVNÍ DESIGN) - VYLADĚNO
   ========================================================================== */
@media (max-width: 850px) {
    
    /* Zamezení nechtěného posouvání do stran (to dělalo ten pruh u O nás) */
    body { overflow-x: hidden; }

    /* 1. HLAVIČKA A NAVIGACE */
    .header-utils { padding: 10px 15px; }
    .logo-container img { max-width: 140px; margin: 10px 0; }
    nav ul { flex-wrap: wrap; gap: 15px; padding-bottom: 15px; justify-content: center; }
    nav a { font-size: 1.1rem; }

    /* 2. ÚVODNÍ FOTKA A NADPISY */
    .hero { height: 250px; }
    .section-title { font-size: 2rem; margin-top: 40px; text-align: center; padding: 0 15px; }

    /* 3. PILULKY A ZMRZLINY (Elegantní mřížka) */
    .category-pills { 
        display: flex !important; 
        flex-wrap: wrap !important; 
        justify-content: center !important; 
        gap: 10px !important; 
        padding: 0 15px !important; 
    }
    .pill-btn { 
        width: calc(50% - 10px) !important; /* Dvě pilulky vedle sebe */
        font-size: 0.9rem !important; 
        padding: 10px !important; 
        box-sizing: border-box;
    }
    .gelato-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Natvrdo 2 zmrzliny vedle sebe */
        gap: 10px !important;
        padding: 0 10px !important;
    }
    .gelato-box {
        padding: 15px 10px !important;
        margin: 0 !important;
    }
    .gelato-img {
        width: 110px !important;
        height: 110px !important;
    }
    .gelato-name {
        font-size: 0.95rem !important;
    }

    /* 4. O NÁS A MAPA (Vycentrování a oříznutí okrajů) */
    .about-container {
        padding: 0 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .story-map-container {
        width: 100% !important;
        margin: 0 auto 50px auto !important;
    }
    .about-row, .about-row:nth-child(even) {
        flex-direction: column !important; /* Fotka a text pod sebou */
        gap: 20px !important;
        margin-bottom: 60px !important;
    }
    .about-col-img, .about-col-text {
        width: 100% !important;
        flex: 0 0 100% !important;
        box-sizing: border-box !important;
    }
    .about-col-text {
        text-align: center !important; /* Text bude na mobilu hezky uprostřed */
        padding: 0 !important;
    }
    .about-col-img img {
        width: 100% !important;
        height: auto !important;
        max-height: 350px !important;
        border-radius: 12px !important;
        object-fit: cover !important;
    }

    /* 5. VYSKAKOVACÍ OKNO A PATIČKA */
    .gelato-modal-content { width: 90%; padding: 25px 20px; margin: 20px auto; box-sizing: border-box;}
    .gelato-modal-img { height: 180px; }
    
    .footer-split { flex-direction: column; height: auto; }
    .footer-info { width: 100%; padding: 40px 20px; text-align: center; box-sizing: border-box; }
    .footer-social-links { justify-content: center; }
    .footer-map { width: 100%; height: 350px; }
    
    .cookie-content { flex-direction: column; text-align: center; gap: 15px; }
    .cookie-btn { width: 100%; }
}