@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800;900&family=Roboto:wght@400;500;700&display=swap');

/* =========================================================
   1. ZÁKLAD STRÁNKY A TYPOGRAFIE
========================================================= */
body { margin: 0; font-family: 'Roboto', sans-serif; background-color: #111111; color: #ffffff; overflow-x: hidden; }

/* =========================================================
   2. HLAVNÍ LIŠTA A MENU
========================================================= */
.hlavni-lista { background-color: #1b6894; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); position: sticky; top: 0; z-index: 5000; transition: all 0.3s ease; }
.hlavni-lista.zmensena { padding: 5px 30px; background-color: rgba(27, 104, 148, 0.95); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); }
.hlavni-lista-leva, .hlavni-lista-prava { display: flex; align-items: center; }
.hlavni-lista-leva { gap: 30px; }
.logo-kosticka { height: 50px; width: auto; display: block; border-radius: 6px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: all 0.3s ease; }
.logo-kosticka:hover { transform: scale(1.05); }
.hlavni-lista.zmensena .logo-kosticka { height: 35px; }
.menu { display: flex; gap: 20px; align-items: center; }
.menu a { color: white; text-decoration: none; font-weight: bold; font-size: 16px; transition: color 0.2s ease; }
.menu a:hover { color: #fff000; }
.menu a.aktivni-polozka { color: #fff000; border-bottom: 2px solid #fff000; padding-bottom: 5px; }
.socialni-menu { display: flex; gap: 20px; align-items: center; }
.soc-odkaz { color: #ffffff; font-size: 24px; text-decoration: none; transition: transform 0.2s ease, color 0.2s ease; display: inline-block; }
.soc-odkaz:hover { transform: scale(1.2); }
.soc-odkaz.yt:hover { color: #FF0000; }
.soc-odkaz.tt:hover { color: #00f2fe; }
.soc-odkaz.ig:hover { color: #E1306C; }
.hledaci-formular { display: flex; align-items: center; background-color: #0d4666; border-radius: 20px; padding: 2px 5px 2px 15px; margin-left: 20px; margin-bottom: 0; }
.hledaci-formular input { background: transparent; border: none; color: white; font-size: 14px; outline: none; width: 100px; transition: width 0.3s ease; }
.hledaci-formular input::placeholder { color: #88b3cc; }
.hledaci-formular input:focus { width: 180px; }
.hledaci-formular button { background: transparent; border: none; color: white; cursor: pointer; font-size: 16px; padding: 5px; transition: transform 0.2s ease; }
.hledaci-formular button:hover { transform: scale(1.1); }

/* =========================================================
   3. ROZLOŽENÍ ČLÁNKŮ A WIDGETŮ (ZÁKLAD DESKTOP)
========================================================= */
/* Oprava poskakování prvků (Jitter) na tabletech - Vynucení hardwarové akcelerace */
.rozlozeni-s-panelem, 
.maly-clanek-radek, 
.sidebar-widget {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
/* Ochrana proti přetékání widgetů pro iPad Pro a menší notebooky (951px až 1200px) */
    @media (min-width: 951px) and (max-width: 1200px) {
        .rozlozeni-s-panelem {
            /* Levý sloupec (články) zabere zbytek místa (1fr), 
               pravý sloupec (widgety) dostane pevně 320px. 
               Reklama díky tomu nikdy nepřeteče ven z obrazovky! */
            grid-template-columns: 1fr 320px !important;
            gap: 30px !important;
        }
    }

.seznam-novinek { max-width: 1200px; margin: 50px auto; padding: 0 20px; display: flex; flex-direction: column; gap: 60px; }
.rozlozeni-s-panelem { display: grid; grid-template-columns: 2.5fr 1fr; gap: 40px; margin-top: 0; padding-top: 10px; }
.levy-sloupec-clanky { display: flex; flex-direction: column; gap: 30px; }
.pravy-postranni-panel { display: flex; flex-direction: column; gap: 40px; }
.zluty-stitek { background-color: #fff000; color: #000000; font-weight: bold; font-size: 13px; padding: 4px 10px; display: inline-block; align-self: flex-start; margin-bottom: 15px; }
.datum { font-weight: bold; font-size: 15px; margin: 0 0 10px 0; color: #aaaaaa !important; }
.anotace { color: #aaaaaa; font-size: 15px; line-height: 1.5; margin: 0; }
.badge-sponzorovano { position: absolute; top: 15px; left: 15px; background: #fff000; color: #000; font-weight: bold; padding: 6px 14px; border-radius: 4px; font-size: 13px; z-index: 10; box-shadow: 0 4px 15px rgba(0,0,0,0.5); text-transform: uppercase; letter-spacing: 0.5px; }
.maly-clanek-radek { display: flex; gap: 20px; align-items: center; border-bottom: 1px solid #222; padding-bottom: 25px; }
.maly-clanek-radek:last-child { border-bottom: none; }
.maly-obrazek-odkaz-radek { flex: 0 0 40%; min-width: 200px; display: block; }
.maly-obrazek-radek { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; transition: filter 0.2s ease; }
.maly-obrazek-radek:hover { filter: brightness(1.1); }
.maly-text-radek { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.maly-text-radek h3 { margin: 5px 0 10px 0; font-size: 22px; font-family: 'Montserrat', sans-serif; font-weight: 900; letter-spacing: 1px; line-height: 1.2; }
.strankovani-box { text-align: center; margin: 40px 0; width: 100%; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tlacitko-nacist-vice { display: inline-block; background-color: transparent; color: #fff000; border: 2px solid #fff000; padding: 12px 30px; font-size: 16px; font-weight: bold; text-decoration: none; border-radius: 4px; transition: all 0.3s ease; }
.tlacitko-nacist-vice:hover { background-color: #fff000; color: #000; }
.strankovani-btn { background-color: #222; color: white; border: 1px solid #444; padding: 10px 16px; text-decoration: none; border-radius: 4px; font-weight: bold; transition: 0.2s ease; }
.strankovani-btn:hover { background-color: #fff000; color: black; border-color: #fff000; }
.strankovani-btn.aktivni { background-color: #1b6894; color: white; border-color: #1b6894; cursor: default; pointer-events: none; }
.strankovani-tecky { color: #888; padding: 10px 5px; font-weight: bold; }
.sidebar-widget { background-color: #1a1a1a; padding: 20px; border-radius: 8px; border-left: 3px solid #1b6894; }
.widget-nadpis { color: white; margin: 0 0 15px 0; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 22px; letter-spacing: 1px; }
.top-clanek-polozka { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.top-cislo { background-color: #d11124; color: white; font-weight: bold; font-size: 14px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 4px; flex-shrink: 0; margin-top: 2px; }
.top-clanek-polozka a { color: #dddddd; text-decoration: none; font-size: 15px; line-height: 1.4; transition: color 0.2s ease; }
.top-clanek-polozka a:hover { color: #fff000; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 20px; }
.ig-post img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform 0.3s ease, filter 0.3s ease; }
.ig-post:hover img { transform: scale(1.1); filter: brightness(0.7); }
.ig-tlacitko { display: block; text-align: center; background-color: #000000; color: white; font-weight: bold; padding: 12px 0; text-decoration: none; transition: color 0.2s ease; }
.ig-tlacitko:hover { color: #fff000; }
.odpocet-karta { background: #111; border: 1px solid #333; border-radius: 6px; padding: 10px; flex: 1; display: flex; flex-direction: column; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.odp-cislo { font-size: 26px; font-family: 'Montserrat', sans-serif; font-weight: 900; color: white; line-height: 1; margin-bottom: 5px; }
.odp-text { font-size: 11px; color: #aaa; text-transform: uppercase; font-weight: bold; }
.bleskovka-polozka { border-left: 2px solid #004d66; padding-left: 15px; position: relative; margin-bottom:15px; }
.bleskovka-polozka::before { content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; background: #00f2fe; border-radius: 50%; box-shadow: 0 0 8px #00f2fe; }
.bleskovka-cas { font-size: 11px; color: #88b3cc; margin-bottom: 4px; font-weight: bold; }
.bleskovka-text { font-size: 14px; color: #eeeeee; line-height: 1.4; }
/* Ochrana proti poskakování na Tabletu (Zrušení 2 sloupců pro režim na výšku) */
    @media (max-width: 950px) {
        .rozlozeni-s-panelem {
            grid-template-columns: 1fr; /* Zruší vedlejší sloupec, obsah dostane plnou šířku */
            gap: 20px;
        }
        
        /* Absolutní pojistka, aby žádný prvek nemohl roztáhnout obrazovku a způsobit zoom-bug */
        img, iframe, .sidebar-widget {
            max-width: 100% !important;
            box-sizing: border-box;
        }
        
        /* Ořízne cokoliv, co by přeci jen chtělo trčet ven do strany */
        html, body {
            max-width: 100%;
        }
    }

/* =========================================================
   4. KARUSEL (HERO + YOUTUBE)
========================================================= */
.hero-karusel-okno { position: relative; overflow: hidden; width: 100%; border-bottom: 2px solid #333; padding-bottom: 25px !important; margin-bottom: -35px !important; margin-top: 0; }
.hero-karusel-track { display: flex; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); width: 100%; }
.hero-slide { flex: 0 0 100%; width: 100%; backface-visibility: hidden; }
.hero-clanek { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 30px !important; border-bottom: none !important; padding-bottom: 0 !important; margin-bottom: 0 !important; width: 88% !important; margin: 0 !important; text-align: left !important; }
.hero-clanek .clanek-obrazek-box { flex: 0 0 60% !important; max-width: 60% !important; display: block !important; }
.hero-img-obal { position: relative !important; overflow: hidden !important; border-radius: 6px !important; width: 100% !important; }
.hero-img-obal img { position: relative !important; display: block !important; width: 100% !important; height: auto !important; aspect-ratio: 16/9 !important; object-fit: cover !important; margin: 0 !important; }
.hero-clanek .clanek-text-box { flex: 1 !important; display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: center !important; }
.hero-clanek h2 { font-size: 42px !important; line-height: 1.1 !important; margin-top: 0 !important; margin-bottom: 15px !important; font-family: 'Montserrat', sans-serif; font-weight: 900;}
.hero-clanek .zluty-stitek { margin-top: 15px; display: inline-block; }
.hero-clanek .anotace { font-size: 15px; line-height: 1.5; margin-bottom: 10px; }
.hero-clanek .clanek-obrazek-box .zdroj-text { display: block !important; text-align: right !important; margin-top: 8px !important; margin-bottom: 0 !important; padding-right: 12px !important; border-right: 3px solid #fff000 !important; width: 100% !important; box-sizing: border-box !important; }
.hero-sipka { position: absolute; top: 42%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.8); color: white; border: none; font-size: 20px; width: 45px; height: 45px; cursor: pointer; border-radius: 50%; transition: all 0.2s ease; z-index: 10; display: flex; align-items: center; justify-content: center; opacity: 0; }
.hero-karusel-okno:hover .hero-sipka { opacity: 1; }
.hero-sipka:hover { background: #fff000; color: black; transform: translateY(-50%) scale(1.1); }
.sipka-leva { left: -20px; } .sipka-prava { right: -20px; }
.hero-karusel-okno:hover .sipka-leva { left: 15px; }
.hero-karusel-okno:hover .sipka-prava { right: 15px; }
.hero-indikatory { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.hero-tecka { width: 12px; height: 12px; background: rgba(255,255,255,0.3); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.hero-tecka:hover { background: rgba(255,255,255,0.8); }
.hero-tecka.aktivni { background: #fff000; width: 30px; border-radius: 6px; }
.youtube-pruh-kontejner { grid-column: 1 / -1; background-color: #1a1a1a; padding: 25px 60px; border-radius: 8px; margin-bottom: 20px; border-left: 5px solid #fff000; position: relative; }
.sekce-nadpis { color: white; margin: 0 0 20px 0; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 28px; letter-spacing: 1px; }
.youtube-okno { overflow: hidden; width: 100%; }
.youtube-track { display: flex; gap: 20px; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.yt-karta { flex: 0 0 calc(25% - 15px); min-width: 220px; text-decoration: none; color: white; transition: transform 0.2s ease, filter 0.2s ease; }
.yt-karta:hover { transform: translateY(-5px); filter: brightness(1.1); }
.yt-karta img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-bottom: 12px; }
.yt-karta h4 { font-size: 14px; margin: 0; line-height: 1.4; color: #e0e0e0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-sipka { position: absolute; top: 55%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.8); color: white; border: none; font-size: 24px; padding: 15px 10px; cursor: pointer; border-radius: 4px; transition: all 0.2s ease; z-index: 10; }
.yt-sipka:hover { background: #fff000; color: black; }
.yt-sipka-leva { left: 10px; } .yt-sipka-prava { right: 10px; }

/* =========================================================
   5. DETAIL ČLÁNKU A OSTATNÍ STRÁNKY
========================================================= */
.sablona-detail { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.detail-obsah { max-width: 800px; margin: 0; }
.detail-hlavicka { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.detail-nadpis { font-size: 42px; font-family: 'Montserrat', sans-serif; font-weight: 900; letter-spacing: 1px; margin: 0 0 30px 0; line-height: 1.1; }
.detail-anotace { font-size: 20px; font-style: italic; color: #dddddd; line-height: 1.5; margin-top: 0; margin-bottom: 30px; }
.detail-obrazek img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); margin-bottom: 30px; }
.detail-text p, .detail-obsah p, .nahled-obsah p { color: #e0e0e0; font-size: 18px; margin-bottom: 25px; line-height: 1.8; letter-spacing: 0.3px; }
.zdroj-text { display: block !important; font-size: 13.5px !important; color: #999999 !important; text-align: right !important; font-style: italic !important; margin-bottom: 35px !important; margin-top: 10px !important; border-right: 3px solid #fff000 !important; padding-right: 12px !important; opacity: 0.8 !important; }
.tlacitko-zpet { display: inline-block; padding: 10px 20px; background-color: #333; color: white; text-decoration: none; border-radius: 4px; transition: background 0.2s; }
.tlacitko-zpet:hover { background-color: #1b6894; }
.yap-clanek-mapa-box { isolation: isolate; transform: translateZ(0); }
.hlavni-paticka { background-color: #050505; color: #aaaaaa; padding: 40px 0 20px 0; border-top: 1px solid #222; margin-top: 50px; font-size: 14px; }
.paticka-obsah { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding: 0 20px; }
.paticka-odkazy { display: flex; gap: 20px; margin-bottom: 20px; }
.paticka-odkazy a { color: #ffffff; text-decoration: none; font-weight: bold; }
.paticka-odkazy a:hover { color: #fff000; }
.paticka-prava-strana { text-align: right; }
.paticka-sitove-ikony { display: flex; gap: 15px; justify-content: flex-end; margin-bottom: 20px; }
.paticka-sitove-ikony a { color: #ffffff; font-size: 20px; transition: color 0.2s ease; }
.paticka-sitove-ikony a.yt:hover { color: #FF0000; }
.paticka-sitove-ikony a.tt:hover { color: #00f2fe; }
.paticka-sitove-ikony a.ig:hover { color: #E1306C; }
.paticka-spodek { max-width: 1200px; margin: 20px auto 0 auto; padding: 20px; border-top: 1px solid #222; display: flex; justify-content: space-between; font-size: 12px; }
.paticka-spodek a { color: #aaaaaa; text-decoration: none; margin-left: 15px; }
.paticka-spodek a:hover { color: #ffffff; }

/* =========================================================
   6. MAPA (DESKTOPOVÁ VERZE)
========================================================= */
#mapa-kontejner { width: 100%; height: 63vh; border-top: 2px solid #fff000; border-bottom: 2px solid #fff000; }
/* Oprava skákajících +/- tlačítek (přibití natvrdo k okraji) */
.leaflet-top.leaflet-left {
    top: 15px !important;
    left: 10px !important;
}
.leaflet-touch .leaflet-control-zoom, .leaflet-control-zoom {
    margin-top: 0 !important;
}

.mapa-popup { text-align: center; font-family: 'Roboto', sans-serif; }
.mapa-popup a { color: #1b6894; font-weight: 900; text-decoration: none; font-family: 'Montserrat', sans-serif; font-size: 16px; display: block; line-height: 1.4; }
.mapa-popup a:hover { color: #000; }
.mapa-spodni-panel { background-color: #111; padding: 15px 30px; }
.mapa-obsah-flex { display: flex; justify-content: space-between; width: 100%; gap: 20px; }
.map-menu-filtry { flex: 1; }
.mapa-ovladani-levy { display: flex; flex-direction: column; gap: 12px; }
.lokace-radek { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 5px; }
.panel-nadpis { font-size: 20px; width: 35px; text-align: right; display: inline-block; margin-right: 8px; color: #aaa; }
.lokace-btn { background-color: #222; color: white; border: 1px solid #444; padding: 7px 14px; border-radius: 4px; cursor: pointer; font-weight: bold; transition: 0.2s ease; font-size: 13px; }
.lokace-btn:hover { background-color: #fff000; color: black; border-color: #fff000; transform: translateY(-2px); }
.stat-btn { background-color: #0d4666; border-color: #1b6894; }
.filtry-box { border-top: 1px solid #333; padding-top: 12px; display: flex; align-items: flex-start; gap: 5px; }
.filtry-tlacitka { display: grid; grid-template-columns: auto auto; gap: 8px; }
.kat-btn { padding: 7px 16px; border-radius: 20px; border: 2px solid transparent; cursor: pointer; font-weight: bold; font-size: 12px; transition: all 0.2s ease; display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.kat-btn.aktivni { filter: brightness(1.1); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.kat-btn.neaktivni { opacity: 0.3; filter: grayscale(100%); border: 2px dashed #666; background: transparent !important; color: #aaa !important; }
.kat-doprava { background-color: #2A81CB; color: white; }
.kat-budovy { background-color: #CB2B3E; color: white; }
.kat-sport { background-color: #2AAD27; color: white; }
.kat-ostatni { background-color: #7B7B7B; color: white; }
.mapa-reklama-box { background-color: #1a1a1a; border: 1px dashed #444; color: #555; border-radius: 4px; font-size: 13px; font-weight: bold; display: flex; align-items: center; justify-content: center; width: 300px; min-height: 100px; }
#toggle-map-menu { display: none; width: 100%; text-align: center; font-size: 16px; padding: 15px; background: #fff000; color: #000; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; transition: 0.2s; }
#toggle-map-menu:hover { background: #e6d800; }

/* =========================================================
   7. SVĚTLÝ REŽIM (LIGHT MODE)
========================================================= */
body.light-mode { background-color: #f5f5f7; color: #111111; transition: background-color 0.3s, color 0.3s; }
body.light-mode .hlavni-lista { background-color: #ffffff; border-bottom: 1px solid #dddddd; }
body.light-mode .hlavni-lista a { color: #333333; }
body.light-mode .hlavni-lista a:hover { color: #1b6894; }
body.light-mode .hledaci-formular input { background-color: #f5f5f7; color: #111; border: 1px solid #ccc; }
body.light-mode .hlavni-paticka { background-color: #ffffff; border-top: 1px solid #dddddd; color: #333; }
body.light-mode .paticka-spodek { border-top: 1px solid #eeeeee; }
body.light-mode .paticka-odkazy a, body.light-mode .paticka-spodek a { color: #1b6894; }
body.light-mode .detail-obsah, body.light-mode .privacy-box, body.light-mode .kontakt-form input, body.light-mode .kontakt-form select, body.light-mode .kontakt-form textarea { background-color: #ffffff; border-color: #dddddd; color: #111; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
body.light-mode .detail-text, body.light-mode .privacy-box p { color: #444444; }
body.light-mode .detail-nadpis, body.light-mode .privacy-box h3 { color: #111111; }
body.light-mode .zluty-stitek { background-color: #1b6894; color: #ffffff; }
body.light-mode .zdroj-text { color: #666; border-right: 3px solid #1b6894; }
body.light-mode .yap-clanek-mapa-canvas { background-color: #e0e0e0; }
body.light-mode .yap-clanek-mapa-box { border: 1px solid #ccc; border-bottom: 3px solid #1b6894; }

/* =========================================================
   8. MEDIA QUERIES: TABLETY A VŠECHNA DOTYKOVÁ ZAŘÍZENÍ
========================================================= */
@media (max-width: 1024px), (hover: none) {
    .hero-sipka { opacity: 1 !important; }
    .hero-karusel-okno .sipka-leva { left: 10px !important; }
    .hero-karusel-okno .sipka-prava { right: 10px !important; }
    .yt-sipka { opacity: 1 !important; }
}

/* =========================================================
   9. MEDIA QUERIES: MOBILNÍ TELEFONY
========================================================= */
@media (max-width: 768px) {
    /* Hlavička a Menu */
    .hlavni-lista, .hlavni-lista-leva { flex-direction: column; gap: 15px; justify-content: center; }
    .menu { flex-wrap: wrap; justify-content: center; }
    .hledaci-formular { margin-left: 0; }
    .hlavni-lista.zmensena .hlavni-lista-prava { display: none; }

    /* Rozložení */
    .rozlozeni-s-panelem { grid-template-columns: 1fr; gap: 30px; }

    /* Hlavní Karusel */
    .hero-sipka { transform: translateY(-50%) scale(0.9); }
    .hero-clanek { flex-direction: column !important; width: 100% !important; text-align: center !important; }
    .hero-clanek .clanek-obrazek-box { max-width: 100% !important; }
    .hero-clanek .clanek-text-box { align-items: center !important; }
    .hero-clanek .zluty-stitek { align-self: center !important; }
    .hero-clanek .clanek-obrazek-box .zdroj-text { text-align: center !important; border-right: none !important; padding-right: 0 !important; }

    /* Menší články */
    .maly-clanek-radek { flex-direction: column; text-align: center; }
    .maly-text-radek .zluty-stitek { align-self: center !important; }

    /* YouTube Karusel */
    .youtube-pruh-kontejner { padding: 20px 15px !important; }

    /* Patička */
    .paticka-obsah { flex-direction: column; text-align: center; gap: 20px; }
    .paticka-leva-strana { width: 100%; display: flex; flex-direction: column; align-items: center; }
    .paticka-odkazy { justify-content: center !important; width: 100%; }
    .paticka-prava-strana { text-align: center; width: 100%; }
    .paticka-sitove-ikony { justify-content: center; }
    .paticka-spodek { flex-direction: column; gap: 10px; text-align: center; align-items: center; justify-content: center; }

    /* Stránkování */
    .strankovani-box { width: 100%; justify-content: center !important; }
} /* ZDE KONČÍ PRAVIDLA PRO BĚŽNÉ MOBILY NA VÝŠKU */

/* =========================================================
   10. MAPA: MOBILNÍ ROZLOŽENÍ (STANDARDNÍ TELEFON NA VÝŠKU)
========================================================= */
@media (max-width: 768px) {
    #mapa-kontejner { height: calc(100vh - 65px) !important; }
    
    /* ÚPLNÉ SCHOVÁNÍ TLAČÍTEK + A - PRO MOBILY */
    .leaflet-control-zoom { display: none !important; }
    
    .mapa-spodni-panel {
        position: fixed; bottom: 0; left: 0; width: 100%;
        padding: 15px; padding-bottom: 25px; box-sizing: border-box;
        background: transparent !important; z-index: 2000;
        pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end;
    }
    
    .mapa-spodni-panel > * { pointer-events: auto; }
    .mapa-obsah-flex { display: contents !important; }
    
    /* 1. VYSOUVACÍ FILTRY (vyjíždí zpod tlačítka) */
    .map-menu-filtry {
        order: 1 !important; display: none !important;
        background: rgba(17, 17, 17, 0.95); padding: 20px; border-radius: 8px;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.6); max-height: 50vh; overflow-y: auto; margin-bottom: 10px; 
    }
    
    .map-menu-filtry.otevreno { display: flex !important; flex-direction: column; animation: vysunNahoru 0.3s ease-out forwards; }
    
    /* 2. ŽLUTÉ TLAČÍTKO */
    #toggle-map-menu { order: 2 !important; display: block !important; margin-top: 0 !important; margin-bottom: 10px !important; box-shadow: 0 -4px 15px rgba(0,0,0,0.5); }
    
    /* 3. REKLAMA */
    .mapa-reklama-box { order: 3 !important; display: flex !important; width: 100% !important; margin-bottom: 0 !important; background: #1a1a1a !important; box-shadow: 0 -4px 15px rgba(0,0,0,0.3); }
    
    @keyframes vysunNahoru { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
}

/* =========================================================
   11. MAPA: TELEFONY NA ŠÍŘKU (LANDSCAPE REŽIM)
========================================================= */
@media (max-width: 950px) and (orientation: landscape) {
    #mapa-kontejner { height: calc(100vh - 65px) !important; }
    
    /* ÚPLNÉ SCHOVÁNÍ TLAČÍTEK + A - PRO MOBILY (i na šířku) */
    .leaflet-control-zoom { display: none !important; }
    
    /* OPRAVA CHYBY PROHLÍŽEČŮ: Zrušíme display: contents a panel zmenšíme, aby nepřekážel */
    .mapa-spodni-panel {
        position: absolute !important; 
        height: 0 !important; 
        padding: 0 !important; 
        margin: 0 !important; 
        overflow: visible !important;
    }
    
    .mapa-obsah-flex { display: block !important; }
    
    /* 1. REKLAMA (Překryje modrou hlavičku vpravo nahoře) */
    .mapa-reklama-box {
        display: flex !important; /* Vynutí zobrazení po zrušení display: contents */
        position: fixed !important;
        top: 5px !important;
        right: 15px !important;
        width: 300px !important;
        height: 55px !important;
        min-height: 0 !important;
        margin: 0 !important;
        background: #1a1a1a !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
        z-index: 5000 !important; /* OPRAVA: Musí být víc než 5000 (modrá hlavička)! */
        overflow: hidden;
    }
    
    /* 2. ŽLUTÉ TLAČÍTKO (Posunuto níže pro hezčí odstup) */
    #toggle-map-menu {
        display: block !important; /* Vynutí zobrazení po zrušení display: contents */
        position: fixed !important;
        top: 85px !important; 
        right: 15px !important;
        width: 300px !important;
        margin: 0 !important;
        padding: 8px 15px !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.5); 
        z-index: 3000 !important;
    }
    
    /* 3. VYSOUVACÍ FILTRY (Rozbalí se pod tlačítkem) */
    .map-menu-filtry {
        position: fixed !important;
        top: 125px !important; /* Odstup pod žlutým tlačítkem */
        right: 15px !important;
        width: 270px !important;
        display: none !important;
        background: rgba(17, 17, 17, 0.95);
        padding: 15px !important;
        border-radius: 8px;
        box-shadow: -5px 10px 30px rgba(0,0,0,0.6);
        max-height: calc(100vh - 140px) !important;
        overflow-y: auto;
        margin: 0 !important; 
        z-index: 3999 !important;
    }
    
    .map-menu-filtry.otevreno {
        display: flex !important;
        flex-direction: column;
        animation: vysunShora 0.3s ease-out forwards;
    }
    
    .hlavni-lista, .hlavni-lista-leva {
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 15px !important;
    }
    .menu { flex-wrap: nowrap !important; }
    
    @keyframes vysunShora {
        from { transform: translateY(-20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}

/* =========================================================
   12. MAPA: TABLETY NA VÝŠKU (PORTRAIT REŽIM)
========================================================= */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    
    #mapa-kontejner {
        /* Roztáhne mapu přesně na celou výšku mínus hlavička a spodní panel */
        height: calc(100vh - 350px) !important; 
    }
    
    .mapa-spodni-panel {
        /* Srovná panel, aby měl pevnou velikost a reklama s filtry seděly hezky ve středu */
        display: flex;
        align-items: center;
        min-height: 185px;
        padding: 20px 30px;
        box-sizing: border-box;
    }
    
    .mapa-obsah-flex {
        align-items: center; /* Srovná filtry a reklamu do dokonalé vodorovné osy */
    }
}