:root {
  --nav-bg: #0e2706;
  --nav-hover: #1c4210;
  --panel-bg: rgba(14, 28, 6, 0.95);
  --panel-border: rgba(120, 190, 80, 0.18);
  --panel-header: #0e2706;
  --orange: #e06820;
  --orange-dark: #b85418;
  --orange-light: #f08840;
  --sky-top: #5a9fd4;
  --sky-bottom: #aad4f0;
  --tree-dark: #0e2706;
  --tree-mid: #1c4210;
  --text-light: #eef4e8;
  --text-muted: #9ab880;
  --bar-bg: #eaf2e2;
  --bar-text: #173808;
  --footer-bg: #0e2706;
  --accent-gold: #d4a030;
}

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

html, body {
  min-height: 100%;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #1a3a0a;
  overflow-x: hidden;
}

.bg-scene {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 55%, #8ec870 55%, #3a7a18 65%, #1a3a0a 72%, #1a3a0a 100%);
  pointer-events: none;
}
.bg-clouds { position: absolute; width: 100%; height: 60%; overflow: hidden; }
.cloud { position: absolute; background: rgba(255,255,255,0.75); border-radius: 50px; filter: blur(2px); animation: cloudMove linear infinite; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: rgba(255,255,255,0.75); border-radius: 50%; }
.cloud-1 { width:160px; height:50px; top:12%; animation-duration:60s; animation-delay:-20s; }
.cloud-1::before { width:70px; height:70px; top:-30px; left:20px; }
.cloud-1::after  { width:50px; height:50px; top:-20px; left:80px; }
.cloud-2 { width:220px; height:60px; top:22%; animation-duration:80s; animation-delay:-50s; }
.cloud-2::before { width:80px; height:80px; top:-35px; left:30px; }
.cloud-2::after  { width:60px; height:60px; top:-25px; left:110px; }
.cloud-3 { width:130px; height:40px; top:8%; animation-duration:50s; animation-delay:-35s; }
.cloud-3::before { width:55px; height:55px; top:-25px; left:15px; }
.cloud-3::after  { width:45px; height:45px; top:-18px; left:65px; }
@keyframes cloudMove { from { transform: translateX(-300px); } to { transform: translateX(calc(100vw + 300px)); } }
.bg-trees { position: absolute; bottom: 0; left: 0; right: 0; width: 100%; height: 120px; }

#app { position: relative; z-index: 1; display: grid; grid-template-rows: auto auto 1fr auto auto; height: 100vh; overflow: hidden; background: transparent; }

.navbar { background: var(--nav-bg); display: flex; align-items: center; padding: 0 28px; height: 90px; gap: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; border: 2px solid rgba(255,215,0,0.45); border-radius: 14px; padding: 4px 12px 4px 6px; background: rgba(255,215,0,0.06); transition: border-color 0.2s, background 0.2s; }
.nav-logo:hover { border-color: rgba(255,215,0,0.8); background: rgba(255,215,0,0.12); }
.nav-logo-img { width: 56px; height: 74px; }
.stat-svg-icon { width: 30px; height: 30px; object-fit: contain; }
.logo-textblock { display: flex; flex-direction: column; line-height: 1.1; align-items: center; }
.logo-text { color: var(--text-light); font-size: 2rem; font-weight: 700; letter-spacing: 0.5px; }
.logo-autor { color: var(--orange-light); font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 4px; }
.nav-links { display: flex; list-style: none; gap: 4px; flex: 1; justify-content: center; align-items: center; }
.nav-links a { color: var(--text-light); text-decoration: none; padding: 8px 16px; border-radius: 10px; font-size: 1.2rem; font-weight: 700; transition: all 0.2s; white-space: nowrap; border: 1.5px solid rgba(255,215,0,0.32); }
.nav-links a:hover, .nav-links a.active { background: var(--nav-hover); color: var(--text-light); border-color: rgba(255,215,0,0.75); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.search-box { display: flex; background: rgba(255,255,255,0.12); border-radius: 20px; overflow: hidden; }
.search-box input { background: none; border: none; color: var(--text-light); padding: 10px 16px; font-size: 1.1rem; outline: none; width: 220px; }
.search-box input::placeholder { color: var(--text-muted); }
.search-box button { background: none; border: none; color: var(--text-muted); padding: 8px 12px; cursor: pointer; font-size: 1.1rem; min-width: 44px; min-height: 44px; touch-action: manipulation; }
.search-box button:hover { color: var(--text-light); }
/* Vyhledávací overlay (tlačítko 🔍) musí jít otevřít na všech šířkách včetně PC –
   dřív se pravidlo pro zobrazení nastavovalo jen do 1100px, takže na PC klik nic neudělal. */
#mobileSearchOverlay.open { display: flex !important; }
.btn-login { background: var(--orange); color: white; text-decoration: none; padding: 10px 22px; border-radius: 8px; font-size: 1.1rem; font-weight: 600; white-space: nowrap; transition: background 0.2s; border: none; cursor: pointer; }
.btn-login:hover { background: var(--orange-dark); }

/* ── SPLASH / UVÍTACÍ OKNO ── */
/* ── SPLASH SCREEN ── */
.splash-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); transition: opacity 0.6s ease; }
.splash-overlay.fade-out { opacity: 0; pointer-events: none; }
.splash-box { background: linear-gradient(160deg, #d4f5d4 0%, #a8e6a8 50%, #7dd67d 100%); border-radius: 24px; padding: 60px 80px 50px; text-align: center; max-width: 720px; width: 92%; box-shadow: 0 16px 60px rgba(0,0,0,0.5); animation: splashIn 0.5s ease; transition: transform 0.6s ease, opacity 0.6s ease; }
.splash-overlay.fade-out .splash-box { transform: scale(0.92); opacity: 0; }
@keyframes splashIn { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.splash-logo { width: 150px; height: auto; margin-bottom: 6px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2)); }
.splash-autor { color: #1a1a1a; font-size: 0.78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 22px; opacity: 0.85; }
.splash-nadpis { color: #1a5a1a; font-size: 2.6rem; font-weight: 800; margin-bottom: 12px; letter-spacing: 0.3px; }
.splash-podnadpis { color: #2d7a2d; font-size: 1.25rem; font-weight: 500; margin-bottom: 24px; line-height: 1.5; }
.splash-ikony { font-size: 2.2rem; margin-bottom: 20px; letter-spacing: 8px; }
.splash-ikona-budky { width: 90px; height: auto; margin-bottom: 24px; filter: drop-shadow(0 4px 14px rgba(0,0,0,0.25)); }
.splash-bar { background: rgba(0,0,0,0.12); border-radius: 50px; height: 6px; overflow: hidden; }
.splash-bar-fill { background: #1a7a1a; height: 100%; border-radius: 50px; width: 0%; animation: splashProgress 2s linear forwards; }
@keyframes splashProgress { from { width: 0%; } to { width: 100%; } }

/* ── LOGIN MODAL ── */
/* align-items: center by u obsahu vyššího než obrazovka odřízlo horní část
   okna (nadpis i křížek "zavřít") a nešlo by k ní doscrollovat. flex-start
   + margin: auto na .modal-box centruje stejně, ale přetok zůstane dostupný. */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 30, 5, 0.78); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 20px 0; backdrop-filter: blur(4px); }
.modal-overlay[hidden] { display: none; }
.modal-box { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 16px; padding: 3rem 3.5rem 2.8rem; max-width: 560px; width: 94%; position: relative; text-align: center; box-shadow: 0 8px 40px rgba(0,0,0,0.55); margin: auto; }
.modal-box-login { max-width: 760px; }
.modal-box-login .modal-nadpis { font-size: 2.2rem; }
.modal-box-login .modal-hint { font-size: 1.25rem; }
.modal-box-login .modal-uvitani { font-size: 1.2rem; }
.modal-box-login .modal-form input { font-size: 1.7rem; padding: 1.1rem 1.5rem; }
.modal-box-login .modal-form button { font-size: 1.55rem; padding: 1.2rem 1.5rem; }
.modal-uvitani { color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; margin-bottom: 1.8rem; padding: 1.2rem 1.4rem; background: rgba(255,255,255,0.04); border-radius: 10px; border: 1px solid var(--panel-border); }
.modal-uvitani strong { color: var(--accent-gold); }
.modal-zavrit { position: absolute; top: 0.9rem; right: 1.2rem; background: none; border: none; color: var(--text-muted); font-size: 2rem; line-height: 1; cursor: pointer; }
.modal-zavrit:hover { color: var(--text-light); }
/* Křížek na kartě/žádostech správce – zelené pozadí hlavičky, tlumená barva byla skoro neviditelná */
.profil-box .modal-zavrit { top: 12px; right: 12px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0,0,0,0.32); border-radius: 50%; z-index: 5; }
.profil-box .modal-zavrit:hover { background: rgba(0,0,0,0.5); color: #fff; }
.modal-logo-wrap { margin-bottom: 1.2rem; }
.modal-logo-wrap img { filter: brightness(1.3); width: 80px; }
.modal-nadpis { color: var(--accent-gold); font-size: 1.9rem; margin-bottom: 0.5rem; }
.modal-hint { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.modal-form { display: flex; flex-direction: column; gap: 1.1rem; }
.modal-form input { background: rgba(255,255,255,0.07); border: 1px solid var(--panel-border); border-radius: 8px; color: var(--text-light); font-size: 1.5rem; padding: 1rem 1.4rem; text-align: center; letter-spacing: 0.12em; outline: none; width: 100%; }
.modal-form input:focus { border-color: var(--accent-gold); }
.modal-form input::placeholder { color: var(--text-muted); font-size: 1.1rem; letter-spacing: 0; }
.modal-form button { background: var(--orange); color: #fff; border: none; border-radius: 8px; padding: 1.1rem 1.4rem; font-size: 1.4rem; font-weight: 600; cursor: pointer; transition: background 0.2s; margin-top: 0.4rem; }
.modal-form button:hover { background: var(--orange-light); }
.modal-form button:disabled { opacity: 0.6; cursor: default; }
.login-error { color: #ff7070; font-size: 0.88rem; margin-top: 0.75rem; }
.login-loading { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.75rem; }

/* ── ADMIN PANEL ── */
.admin-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 900; background: var(--nav-bg); border-top: 2px solid var(--accent-gold); color: var(--text-light); display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1.5rem; font-size: 0.9rem; }
.admin-banner strong { color: var(--accent-gold); font-size: inherit; }
.admin-banner button { background: none; border: 1px solid var(--panel-border); color: var(--text-muted); border-radius: 4px; padding: 0.3rem 0.8rem; cursor: pointer; font-size: 0.82rem; }
.admin-banner button:hover { color: var(--text-light); border-color: var(--text-muted); }
.admin-budka-link { color: var(--accent-gold); font-size: 0.85rem; font-style: italic; }
.btn-login.prihlaseny { background: transparent !important; color: var(--accent-gold) !important; text-decoration: underline; border-color: transparent !important; position: relative; overflow: visible !important; max-width: none; }
.btn-login-jmeno { display: inline; }
.zpravy-nav-badge { display: inline-block; background: #e53935; color: #fff; border-radius: 12px; font-size: 0.82rem; font-weight: 800; padding: 2px 8px; margin-left: 7px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(229,57,53,0.7); animation: badgePulse 1.8s ease-in-out infinite; }
@keyframes badgePulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229,57,53,0.7); } 60% { transform: scale(1.25); box-shadow: 0 0 0 7px rgba(229,57,53,0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229,57,53,0); } }
/* Na mobilu badge jako absolutní kolečko v rohu tlačítka, protože btn-login má overflow:hidden */
@media (max-width: 600px) {
  .zpravy-nav-badge:not([hidden]) { position: absolute; top: -7px; right: -9px; margin: 0; min-width: 20px; text-align: center; padding: 2px 5px; font-size: 0.76rem; }
}

.info-bar { background: var(--bar-bg); color: var(--bar-text); font-size: 1.1rem; padding: 8px 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #d0c0a0; min-height: 42px; }
.info-bar .bar-right { color: var(--tree-mid); font-style: italic; font-size: 1.1rem; }
.info-bar .bar-right.bar-svatek { color: var(--orange); font-style: normal; font-weight: 600; }
.bar-gratulace { color: var(--orange); font-weight: 700; }
.bar-narozeniny { color: #e05cbf; font-weight: 700; }
.bar-online { font-style: normal; color: var(--bar-text); }
.bar-online strong { color: #7dd444; }
.bar-verze { font-style: normal; color: var(--bar-text); opacity: 0.75; font-size: 0.92em; }
.stats-poznamka { max-width: 760px; margin: 4px auto 26px; text-align: center; font-size: 0.92rem; line-height: 1.6; color: #5a6a4a; background: #f2f7ea; border: 1px solid #dbe8cc; border-radius: 12px; padding: 12px 20px; }
.stats-poznamka a { color: #2a7a1e; font-weight: 600; text-decoration: none; }
.stats-poznamka a:hover { text-decoration: underline; }

.main-content { display: flex; min-height: 260px; }
.panel { background: var(--panel-bg); border: 1px solid var(--panel-border); width: clamp(260px, 20vw, 420px); flex-shrink: 0; display: flex; flex-direction: column; overflow: hidden; }
.panel-title { background: var(--panel-header); color: var(--text-light); font-size: 1.35rem; font-weight: 700; padding: 12px 20px; letter-spacing: 0.3px; border-bottom: 2px solid var(--orange); flex-shrink: 0; }
.panel-left .panel-title::before { content: '🌿 '; }
.pribehy-list { overflow-y: auto; flex: 1; padding: 8px 0; }
.pribehy-list::-webkit-scrollbar { width: 4px; }
.pribehy-list::-webkit-scrollbar-track { background: transparent; }
.pribehy-list::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 2px; }
.pribeh-item { display: flex; gap: 10px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.07); cursor: default; transition: background 0.15s; }
.pribeh-item:hover { background: rgba(255,255,255,0.05); }
.pribeh-ikona { flex-shrink: 0; width: 44px; height: 44px; }
.pribeh-text { flex: 1; min-width: 0; }
.pribeh-druh { color: var(--accent-gold); font-size: 1.55rem; font-weight: 700; margin-bottom: 4px; }
.pribeh-popis { color: var(--text-light); font-size: 1.12rem; line-height: 1.45; margin-bottom: 5px; opacity: 0.9; }
.pribeh-datum { color: var(--text-muted); font-size: 1rem; }

.map-wrapper { flex: 1; position: relative; min-width: 280px; height: 100%; }
#map { position: absolute; inset: 0; }
/* Podklad z OpenStreetMap je sytější než dřívější CARTO Voyager – jemně ho
   ztlumíme, ať ikony budek a shluky zůstanou dobře čitelné. */
.mapa-dlazdice { filter: saturate(0.72) brightness(1.06) contrast(0.94); }

.panel-right .panel-title::before { content: '📊 '; }

/* ── SCROLLABLE WRAPPER FOR RIGHT PANEL ── */
.panel-scroll { overflow-y: auto; flex: 1; min-height: 0; }
.panel-scroll::-webkit-scrollbar { width: 4px; }
.panel-scroll::-webkit-scrollbar-track { background: transparent; }
.panel-scroll::-webkit-scrollbar-thumb { background: var(--panel-border); border-radius: 2px; }

.stats-grid { padding: 4px 10px 6px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; text-align: center; background: rgba(255,255,255,0.06); border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); border-top: 4px solid var(--orange); }
.stat-icon { font-size: 1.5rem; flex-shrink: 0; width: auto; text-align: center; }
.stat-icon-druhy { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 50px; height: 50px; align-items: center; justify-items: center; font-size: 1rem; }
.stat-value { font-size: 2.4rem; font-weight: 800; color: var(--text-light); line-height: 1; }
.stat-value--klikatelny { cursor: pointer; border-bottom: 2px dotted rgba(255,255,255,0.35); transition: color 0.15s; touch-action: manipulation; }
.stat-value--klikatelny:hover { color: #3aff3a; }
.stat-value--klik-aktivni { color: #3aff3a !important; border-bottom-color: #3aff3a; }
.stat-label { font-size: 0.92rem; color: var(--text-muted); margin-top: 4px; text-align: center; }
.stat-item:nth-child(1) { border-top-color: #c8a800; background: rgba(230,200,0,0.18); }
.stat-item:nth-child(1) .stat-value { color: #f0d800; }
.stat-item:nth-child(1) .stat-label { color: #d4bc30; }
.stat-item:nth-child(2) { border-top-color: #4488cc; }
.stat-item:nth-child(3) { border-top-color: #cc8822; }
.stat-item:nth-child(4) { border-top-color: #4a9a4a; }
.stat-box { margin: 5px 10px 0; border: 1px solid rgba(255,255,255,0.18); border-radius: 8px; padding: 8px 12px; background: rgba(255,255,255,0.04); }
.stat-aktualizace { color: var(--text-muted); font-size: 0.9rem; }
.stat-aktualizace span { color: var(--text-light); font-weight: 700; font-size: 0.95rem; }

/* ── DESATERO TILE (full-width banner nad stats-grid) ── */
.desatero-tile { margin: 8px 10px 0; cursor: pointer; display: flex; align-items: center; gap: 12px; border: 2px solid #c8960a; border-left: 5px solid #c8960a; border-radius: 8px; padding: 12px 14px; background: rgba(200,150,10,0.18); transition: background 0.2s; user-select: none; box-shadow: 0 0 10px rgba(200,150,10,0.15); }
.desatero-tile:hover, .desatero-tile:focus { background: rgba(200,150,10,0.22); outline: none; box-shadow: 0 0 0 2px rgba(200,150,10,0.5); }
.desatero-tile-ikona { font-size: 1.6rem; flex-shrink: 0; }
.desatero-tile-text { flex: 1; min-width: 0; }
.desatero-tile-nazev { font-family: 'UnifrakturMaguntia', serif; font-size: 1.25rem; color: #e0aa20; line-height: 1.1; }
.desatero-tile-sub { color: var(--text-muted); font-size: 0.76rem; margin-top: 2px; }
.desatero-tile-arrow { color: #c8960a; font-size: 1.8rem; line-height: 1; opacity: 0.8; flex-shrink: 0; }

/* ── PARTNERÉ ── */
/* ── DESATERO MODAL (overlay) ── */
.desatero-overlay { padding: 4px; overflow: hidden; align-items: stretch; justify-content: stretch; }
.desatero-outer { width: 100%; height: calc(100vh - 8px); border: 2px solid #c8960a; padding: 6px; background: rgba(200,150,10,0.07); overflow-y: auto; flex-shrink: 0; box-sizing: border-box; }
.desatero-wrap { border: 2px solid #c8960a; background: linear-gradient(160deg, #0c2005 0%, #122b08 50%, #0c2005 100%); padding: 36px 56px 48px; position: relative; text-align: center; min-height: calc(100vh - 28px); box-sizing: border-box; }
.desatero-zavrit { position: absolute; top: 8px; right: 12px; background: none; border: none; color: rgba(200,150,10,0.75); font-size: 3.6rem; line-height: 1; cursor: pointer; padding: 0 6px; z-index: 2; }
.desatero-zavrit:hover { color: #c8960a; }
.d-corner { position: absolute; color: #c8960a; font-size: 1.6rem; line-height: 1; user-select: none; opacity: 0.85; }
.d-tl { top: 8px; left: 12px; }
.d-tr { top: 8px; right: 44px; }
.d-bl { bottom: 8px; left: 12px; }
.d-br { bottom: 8px; right: 12px; }
.desatero-header { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 14px; }
.desatero-logo { width: 80px; height: auto; filter: drop-shadow(0 2px 16px rgba(200,150,10,0.35)); }
.desatero-logo-nazev { font-size: 1.4rem; color: #c8960a; font-weight: 700; letter-spacing: 0.08em; line-height: 1; text-transform: uppercase; }
.desatero-ornament { display: flex; align-items: center; gap: 20px; justify-content: center; margin: 10px 0; color: #c8960a; }
.desatero-ornament span:first-child, .desatero-ornament span:last-child { flex: 1; max-width: 300px; height: 1px; background: linear-gradient(90deg, transparent, #c8960a, transparent); display: block; }
.desatero-ornament span:nth-child(2) { font-size: 1.2rem; flex-shrink: 0; }
.desatero-ornament--bird span:nth-child(2) { font-size: 1.5rem; }
.desatero-nadpis { font-family: 'UnifrakturMaguntia', serif; color: var(--text-light); font-size: 2.8rem; font-weight: 400; margin-bottom: 6px; line-height: 1.2; text-shadow: 0 2px 12px rgba(200,150,10,0.2); }
.desatero-podnadpis { color: var(--text-muted); font-size: 1.1rem; font-style: italic; margin-bottom: 2px; }
.desatero-list { list-style: none; counter-reset: desatero; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding: 0; margin-top: 28px; text-align: left; }
.desatero-list li { counter-increment: desatero; background: rgba(255,255,255,0.03); border: 1px solid rgba(200,150,10,0.22); border-radius: 10px; padding: 30px 28px 30px 88px; color: var(--text-muted); font-size: 1.58rem; line-height: 1.7; position: relative; transition: border-color 0.2s, background 0.2s; }
.desatero-list li:hover { border-color: rgba(200,150,10,0.5); background: rgba(255,255,255,0.05); }
.desatero-list li:nth-child(10) { grid-column: 2; }
.desatero-list li::before { content: counter(desatero); position: absolute; left: 20px; top: 28px; width: 44px; height: 44px; background: #c8960a; color: #0c1f05; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; }
.desatero-list li strong { color: var(--text-light); display: block; margin-bottom: 8px; font-size: 1.7rem; }
@media (max-width: 900px) {
  .desatero-wrap { padding: 28px 18px 40px; }
  .desatero-list { grid-template-columns: 1fr 1fr; }
  .desatero-nadpis { font-size: 1.8rem; }
}
@media (max-width: 580px) {
  .desatero-list { grid-template-columns: 1fr; }
  .desatero-nadpis { font-size: 1.5rem; }
}

/* ── SLIB MODAL ── */
.slib-overlay { align-items: flex-start; overflow-y: auto; padding: 32px 12px; }
.slib-outer { max-width: 860px; width: 100%; margin: 0 auto; border: 2px solid #c8960a; padding: 7px; background: rgba(200,150,10,0.07); box-shadow: 0 0 60px rgba(0,0,0,0.6), 0 0 100px rgba(200,150,10,0.05); flex-shrink: 0; }
.slib-box { border: 2px solid #c8960a; background: linear-gradient(160deg, #0c2005 0%, #122b08 50%, #0c2005 100%); padding: 44px 60px 52px; position: relative; text-align: center; }
.slib-corner { position: absolute; color: #c8960a; font-size: 1.4rem; line-height: 1; user-select: none; opacity: 0.85; }
.slib-tl { top: 8px; left: 12px; } .slib-tr { top: 8px; right: 12px; } .slib-bl { bottom: 8px; left: 12px; } .slib-br { bottom: 8px; right: 12px; }
.slib-header { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.slib-logo { width: 80px; height: auto; filter: drop-shadow(0 2px 16px rgba(200,150,10,0.35)); }
.slib-logo-nazev { font-size: 1.3rem; color: #c8960a; font-weight: 700; letter-spacing: 0.08em; line-height: 1; text-transform: uppercase; }
.slib-ornament { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 12px 0; color: #c8960a; }
.slib-ornament span:first-child, .slib-ornament span:last-child { flex: 1; max-width: 160px; height: 1px; background: linear-gradient(90deg, transparent, #c8960a, transparent); display: block; }
.slib-ornament span:nth-child(2) { font-size: 1.1rem; flex-shrink: 0; }
.slib-ornament--bird span:nth-child(2) { font-size: 1.4rem; }
.slib-nadpis { font-family: 'UnifrakturMaguntia', serif; color: var(--text-light); font-size: 2.3rem; font-weight: 400; margin-bottom: 4px; line-height: 1.2; }
.slib-subtitle { font-family: 'UnifrakturMaguntia', serif; color: #c8960a; font-size: 1.4rem; margin-bottom: 4px; font-weight: 400; }
.slib-text { text-align: left; margin: 16px 0 12px; }
.slib-uvod { color: var(--text-light); font-size: 1.07rem; margin-bottom: 16px; line-height: 1.7; text-align: center; }
.slib-list { list-style: none; padding: 0; margin: 0 0 16px; }
.slib-list li { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; padding: 10px 0 10px 32px; border-bottom: 1px solid rgba(200,150,10,0.12); position: relative; }
.slib-list li:last-child { border-bottom: none; }
.slib-list li::before { content: '✦'; position: absolute; left: 4px; top: 12px; color: #c8960a; font-size: 0.7rem; }
.slib-list li strong { color: var(--text-light); }
.slib-zaver { color: var(--text-muted); font-size: 1rem; font-style: italic; text-align: center; margin: 8px 0 0; line-height: 1.65; }
.slib-podpis-radek { display: flex; justify-content: center; gap: 10px; align-items: baseline; margin: 18px 0 22px; }
.slib-datum-label { color: var(--text-muted); font-size: 0.87rem; }
.slib-datum { color: #c8960a; font-size: 0.96rem; font-weight: 600; }
.slib-checkbox-wrap { display: flex; align-items: center; gap: 14px; cursor: pointer; margin: 0 auto 24px; text-align: left; }
.slib-cb-input { position: absolute; opacity: 0; width: 0; height: 0; }
.slib-cb-box { width: 30px; height: 30px; border: 2px solid #c8960a; border-radius: 7px; background: rgba(200,150,10,0.08); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.slib-cb-input:checked ~ .slib-cb-box, .slib-cb-input:checked + .slib-cb-box { background: #c8960a; }
.slib-cb-input:checked ~ .slib-cb-box::after, .slib-cb-input:checked + .slib-cb-box::after { content: '✓'; color: #0c2005; font-weight: 900; font-size: 1.2rem; }
.slib-cb-text { color: var(--text-light); font-size: 0.97rem; font-weight: 500; line-height: 1.4; }
.slib-btn { padding: 14px 48px; background: rgba(200,150,10,0.15); border: 2px solid rgba(200,150,10,0.35); border-radius: 8px; color: rgba(200,150,10,0.45); font-size: 1.05rem; font-weight: 700; cursor: not-allowed; transition: all 0.3s; letter-spacing: 0.03em; }
.slib-btn.slib-btn--active { background: #c8960a; border-color: #c8960a; color: #0c2005; cursor: pointer; box-shadow: 0 4px 20px rgba(200,150,10,0.4); }
.slib-btn.slib-btn--active:hover { background: #e0a80c; box-shadow: 0 6px 28px rgba(200,150,10,0.5); }
.slib-fade-out { animation: slibFadeOut 0.7s forwards; }
@keyframes slibFadeOut { to { opacity: 0; transform: scale(0.97); } }
@media (max-width: 640px) {
  .slib-overlay { padding: 12px 8px; }
  .slib-outer { padding: 4px; }
  .slib-box { padding: 28px 18px 36px; }
  .slib-nadpis { font-size: 1.5rem; }
}

.partners-section { background: #1a3a0a; border-top: 2px solid var(--orange); padding: 18px 52px 28px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.partners-section h3 { color: var(--text-light); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 14px; }
.podekovani-wrap { margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 8px; border-radius: 8px; }
.podekovani-label { display: block; color: var(--text-muted); font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; margin-top: 14px; }
.podekovani-grid { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; }
.podekovani-item { color: var(--text-light); font-size: 1.35rem; font-weight: 600; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; padding: 6px 18px; box-shadow: 0 2px 6px rgba(0,0,0,0.18); }
.podekovani-item--ma-text { cursor: pointer; border-color: var(--accent-gold); position: relative; }
.podekovani-item--ma-text:hover { background: rgba(212,160,48,0.15); }
.pod-bublina { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #ffe066; border: 1px solid #c8960a; border-radius: 10px; padding: 10px 14px; font-size: 1rem; font-weight: 400; color: #3a2000; white-space: normal; max-width: min(340px, calc(100vw - 32px)); width: max-content; box-shadow: 0 4px 16px rgba(0,0,0,0.35); z-index: 10; pointer-events: none; }
.pod-bublina::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #c8960a; }
.podekovani-item--ma-text.pod-open .pod-bublina { display: block; }
@media (hover: hover) { .podekovani-item--ma-text:hover .pod-bublina { display: block; } }
.podekovani-item--ma-text:focus-visible .pod-bublina { display: block; }
.podekovani-item--ma-text { display: inline-flex; align-items: center; gap: 6px; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.podekovani-item--ma-text:hover { transform: translateY(-2px); }
.pod-jmeno { text-decoration: underline dotted; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--accent-gold); }
.pod-ikona { font-size: 0.8em; line-height: 1; }
.podekovani-hint { text-align: center; color: var(--text-muted); font-size: 0.95rem; margin: -2px 0 12px; }

/* ── PARTNEŘI MODAL ── */
.pm-box { max-width: 1152px; width: 96%; padding: 0; overflow: hidden; text-align: center; max-height: 92vh; overflow-y: auto; }
.pm-header { background: linear-gradient(135deg, #0f2a04, #1e4a0a); color: var(--accent-gold); font-size: 2rem; font-weight: 800; padding: 32px 48px; border-bottom: 2px solid var(--accent-gold); letter-spacing: 0.3px; }
.pm-podpora { border-bottom: 1px solid rgba(255,215,0,0.25); padding: 30px 48px 26px; background: rgba(255,215,0,0.04); }
.pm-podpora-nadpis { font-size: 1.6rem; font-weight: 800; color: #f0d800; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.pm-podpora p { color: var(--text-light); font-size: 1.3rem; line-height: 1.75; margin-bottom: 14px; }
.pm-podpora-jak { color: #f0d800; font-size: 1.35rem; font-weight: 700; margin: 16px 0 8px; }
.pm-podpora a { color: var(--orange-light); font-weight: 600; }
.pm-podpora a:hover { color: #f0d800; }
.pm-loga { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 28px; padding: 32px 40px 24px; }
.pm-logo-item { display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); border-radius: 12px; padding: 14px 22px; border: 1px solid rgba(255,255,255,0.15); transition: background 0.2s, transform 0.15s; text-decoration: none; }
.pm-logo-item:hover { background: rgba(255,255,255,0.18); transform: scale(1.05); }
.pm-logo-img { height: 64px; max-width: 160px; width: auto; object-fit: contain; display: block; }
.pm-logo-text { color: var(--text-light); font-size: 1.15rem; font-weight: 600; }
.pm-podekovani { border-top: 1px solid rgba(255,255,255,0.15); padding: 28px 48px 40px; }
.pm-pod-label { color: var(--accent-gold); font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 20px; }
.pm-pod-grid { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: center; }
.pm-pod-osoba { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.pm-pod-jmeno { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; color: var(--text-light); font-size: 1.4rem; font-weight: 600; text-decoration: none; cursor: default; font-family: inherit; padding: 7px 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.18); transition: background 0.2s, box-shadow 0.2s; }
.pm-pod-jmeno--ma-text { cursor: pointer; color: var(--accent-gold); border-color: rgba(212,160,64,0.4); }
.pm-pod-jmeno--ma-text:hover { background: rgba(212,160,64,0.15); box-shadow: 0 4px 14px rgba(0,0,0,0.28); color: #ffe080; }
.pm-bublina { display: none; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: #f0e830; border: 2px solid #3a8a1a; border-radius: 14px; padding: 11px 18px; font-size: 1rem; color: #1a4a0a; font-weight: 600; font-style: italic; box-shadow: 0 4px 18px rgba(0,0,0,0.5); z-index: 10; min-width: 180px; max-width: 280px; white-space: normal; text-align: center; line-height: 1.45; }
.pm-bublina::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: #3a8a1a; }
.pm-bublina::before { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 2px; border: 7px solid transparent; border-top-color: #f0e830; z-index: 1; }
.pm-pod-osoba:hover .pm-bublina { display: block; }
.pm-bublina--open { display: block; }
#partneriList { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; padding-bottom: 4px; }
.partner-item { background: rgba(255,255,255,0.1); color: var(--text-light); padding: 10px 24px; border-radius: 50px; font-size: 1.3rem; text-decoration: none; border: 1px solid rgba(255,255,255,0.2); transition: background 0.2s, box-shadow 0.2s, transform 0.2s; white-space: nowrap; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.partner-item:hover { background: rgba(255,255,255,0.22); box-shadow: 0 4px 16px rgba(0,0,0,0.3); transform: translateY(-2px); }
.partner-item { background: rgba(255,255,255,0.1); color: var(--text-light); padding: 10px 24px; border-radius: 50px; font-size: 1.3rem; text-decoration: none; border: 1px solid rgba(255,255,255,0.2); transition: background 0.2s, box-shadow 0.2s; white-space: nowrap; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.partner-item:hover { background: rgba(255,255,255,0.22); box-shadow: 0 4px 16px rgba(0,0,0,0.28); transform: translateY(-2px); }
.partner-item--logo { padding: 8px 14px; }
.partner-logo { height: 56px; max-width: 140px; width: auto; object-fit: contain; display: block; }
.partner-placeholder { background: linear-gradient(135deg, #f5e840 0%, #f0c820 100%); border: 2px dashed #b8920a; color: #3a2a04; text-align: center; line-height: 1.35; font-size: 1.1rem; font-weight: 700; font-style: italic; white-space: normal; min-width: 140px; box-shadow: 0 2px 10px rgba(200,160,0,0.35); }
.partner-placeholder:hover { background: linear-gradient(135deg, #ffe840 0%, #f5d030 100%); border-color: #8a6a04; box-shadow: 0 4px 16px rgba(200,160,0,0.55); transform: scale(1.04); }

/* ── PODPORA PROJEKTU ── */
.nav-podpora-btn { background: rgba(255,215,0,0.15); color: #f0d800; border: 1px solid rgba(255,215,0,0.45); border-radius: 20px; padding: 9px 18px; font-size: 2.15rem; font-weight: 700; cursor: pointer; transition: all 0.2s; white-space: nowrap; font-family: inherit; }
.nav-podpora-btn:hover { background: rgba(255,215,0,0.28); color: #ffe040; border-color: rgba(255,215,0,0.8); }
.nav-podpora-link { color: #b06a00 !important; border-color: rgba(255,215,0,0.6) !important; }
.nav-podpora-link:hover { background: #fff6df !important; color: #8a5200 !important; border-color: rgba(255,215,0,0.9) !important; }
/* Modal podpora – světlé okno */
.podpora-modal-box { background: linear-gradient(160deg, #fffdf0 0%, #fff8d6 100%); border: 2px solid #e8c840; border-radius: 24px; padding: 0; max-width: 696px; width: 94%; position: relative; box-shadow: 0 12px 60px rgba(0,0,0,0.55); overflow: hidden; }
.podpora-modal-header { background: linear-gradient(135deg, #3a6010, #2a4a08); padding: 26px 38px; display: flex; align-items: center; gap: 17px; }
.podpora-modal-header-text { color: #f0d800; font-size: 1.76rem; font-weight: 800; }
.podpora-logo-img { height: 43px; width: auto; }
.podpora-modal-body { padding: 29px 38px 34px; }
.podpora-modal-body p { color: #2a1a04; font-size: 1.39rem; line-height: 1.7; margin-bottom: 14px; }
.podpora-modal-jak { color: #3a6010; font-size: 1.45rem; font-weight: 800; margin: 16px 0 8px; }
.podpora-modal-body a { color: var(--orange); font-weight: 700; }
.podpora-modal-body a:hover { color: var(--orange-dark); }

/* ── FOOTER ── */
.footer-sep { opacity: 0.35; }
.footer-bar { background: var(--footer-bg); color: var(--text-light); font-size: 1.15rem; padding: 13px 36px; display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-copy { color: var(--text-light); }
.footer-author { color: var(--accent-gold); text-decoration: none; transition: color 0.15s; }
.footer-author:hover { color: var(--text-light); text-decoration: underline; }
.footer-email { color: var(--text-light); text-decoration: none; transition: color 0.15s; }
.footer-email:hover { color: var(--text-light); }
.footer-fb { display: inline-flex; align-items: center; gap: 6px; color: #a8c4f0; text-decoration: none; transition: color 0.15s; }
.footer-fb:hover { color: #6ea8e8; }
.footer-fb-icon { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.footer-li { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-style: italic; font-size: 0.9rem; }
.footer-li-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
.nav-fb-link { display: inline-flex !important; align-items: center; gap: 0; }
.nav-fb-icon { width: 32px; height: 32px; flex-shrink: 0; }
.nav-social-wrap { display: flex !important; align-items: center; gap: 8px; padding: 0 8px; border: none !important; }
.nav-linkedin-wrap { display: inline-flex; align-items: center; gap: 4px; opacity: 0.7; cursor: default; }
.nav-li-icon { width: 30px; height: 30px; flex-shrink: 0; }
.nav-li-badge { font-size: 0.75rem; color: var(--text-muted); font-style: italic; white-space: nowrap; }
.online-admins { color: var(--accent-gold); }

/* ── POPUP ── */
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 6px 30px rgba(0,0,0,0.45); padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: auto !important; }
.leaflet-popup-close-button { width: 32px !important; height: 32px !important; font-size: 22px !important; line-height: 32px !important; top: 4px !important; right: 4px !important; color: #555 !important; }
.popup-zavrit-btn { display: none; }
.budka-popup { font-size: 1.15rem; font-family: 'Segoe UI', system-ui, sans-serif; min-width: 420px; max-height: calc(var(--mapa-vyska, 2000px) - 120px); overflow-y: auto; }
.popup-header { padding: 16px 22px 12px; background: #faf6ee; border-bottom: 1px solid #e8dcc8; }
.popup-cislo { font-weight: 800; font-size: 1.6rem; color: #3a1a06; margin-bottom: 4px; }
.popup-nazev-hlavni { font-weight: 800; font-size: 1.65rem; color: #3a1a06; }
.popup-cislo-sub { font-weight: 400; font-size: 1.2rem; color: #a07050; }
.popup-badge { font-size: 1.2rem; font-weight: 600; }
.popup-foto { padding: 0; position: relative; }
.popup-foto img { width: 100%; display: block; height: 200px; object-fit: cover; }
.foto-nav { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 0; background: linear-gradient(transparent, rgba(0,0,0,0.6)); }
.foto-nav-btn { background: rgba(255,255,255,0.9); border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 1.7rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.3); touch-action: manipulation; }
.foto-nav-btn:hover:not(:disabled) { background: #fff; }
.foto-nav-btn:disabled { opacity: 0.3; cursor: default; }
.foto-counter { color: #fff; font-size: 0.95rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.8); min-width: 40px; text-align: center; }
.popup-ptak { display: flex; align-items: center; gap: 10px; padding: 12px 22px 6px; color: #2d5516; font-weight: 600; font-size: 1.3rem; }
.popup-bird-icon { flex-shrink: 0; line-height: 0; }
.popup-detail { padding: 8px 22px 14px; display: flex; flex-direction: column; gap: 7px; }
.popup-radek { color: #555; font-size: 1.15rem; }
.popup-radek strong { color: #333; font-size: inherit; font-weight: 600; }
.popup-gps { display: flex; align-items: flex-start; gap: 5px; }
.gps-icon { flex-shrink: 0; line-height: 1.5; }
.gps-vals { display: flex; flex-direction: column; gap: 1px; font-weight: 600; color: #333; }
.popup-sekce { border-top: 1px solid #e8dcc8; padding: 12px 22px 16px; }
.popup-sekce-title { font-weight: 700; font-size: 1.2rem; color: #3a1a06; margin-bottom: 8px; }
.popup-historie { width: 100%; border-collapse: collapse; font-size: 1.1rem; }
.popup-historie th { background: #f0e8d8; color: #5a3010; font-weight: 700; padding: 7px 12px; text-align: left; border-bottom: 1px solid #e0d0b8; }
.popup-historie td { padding: 7px 12px; color: #555; border-bottom: 1px solid #f0e8e0; }
.popup-historie tr:last-child td { border-bottom: none; }
.popup-poznamka { font-style: italic; color: #7a5030; font-size: 1rem; background: #fdf6ee; }
.popup-edit-btn { display: block; width: 100%; background: #c96420; color: #fff; border: none; padding: 14px 22px; font-size: 1.2rem; font-weight: 700; cursor: pointer; text-align: center; transition: background 0.15s; font-family: inherit; }
.popup-edit-btn:hover { background: #a0501a; }
.popup-edit-spravce-btn { background: #2d6010; }
.popup-edit-spravce-btn:hover { background: #3a7a18; }

/* ── TOOLTIP ── */
.budka-tooltip { background: #fffef8; border-radius: 10px; overflow: hidden; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 1.05rem; min-width: 200px; }
.tt-nazev-hlavni { background: #faf6ee; font-weight: 800; font-size: 1.35rem; color: #3a1a06; padding: 10px 16px 4px; }
.tt-cislo-sub { padding: 0 16px 6px; color: #a07050; font-size: 1rem; }
.tt-stav { padding: 4px 16px; font-weight: 600; font-size: 1.05rem; }
.tt-ptak { padding: 4px 16px 10px; color: #2d5516; font-size: 1.05rem; }

/* ── MAPA ── */
.mapa-legenda { background: rgba(255,255,255,0.95); border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.25); padding: 10px 14px; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 0.8rem; color: #3a2008; display: flex; flex-direction: column; gap: 7px; min-width: 140px; }
.legenda-nadpis { color: #6b5a45; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 1px; }
/* Položky legendy jsou zároveň přepínače filtru, proto tlačítka. */
.legenda-polozka { display: flex; align-items: center; gap: 9px; width: 100%; background: none; border: 1px solid transparent; border-radius: 7px; padding: 3px 6px; margin: 0; font: inherit; font-size: 0.8rem; color: #3a2008; text-align: left; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.legenda-polozka:hover { background: rgba(0,0,0,0.06); }
.legenda-polozka--aktivni { background: rgba(224,104,32,0.16); border-color: var(--orange); font-weight: 600; }
.legenda-vse-ikona { width: 18px; text-align: center; color: var(--orange); font-size: 1rem; flex-shrink: 0; margin: 0 7px; }
.legenda-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--dot-color, #e06820); border: 2.5px solid #fff; box-shadow: 0 0 0 2px #1a1a1a, 0 2px 5px rgba(0,0,0,0.45); display: inline-block; flex-shrink: 0; margin: 0 7px; }
.legenda-telo { display: flex; flex-direction: column; gap: 7px; }
/* Přepínač sbalené legendy má smysl jen na telefonu, jinde je legenda celá vidět. */
.legenda-prepinac { display: none; }
/* Na telefonu zabírala rozbalená legenda skoro třetinu mapy, proto je sbalená
   do chipu a rozbalí se až klepnutím; po výběru filtru se zase zavře.
   Zapnutý filtr je vidět na chipu, ať se uživatel nediví, kam se budky poděly. */
@media (max-width: 600px) {
  .mapa-legenda { padding: 0; gap: 0; min-width: 0; font-size: 0.76rem; }
  .mapa-legenda .legenda-telo { display: none; }
  .mapa-legenda--otevrena .legenda-telo { display: flex; gap: 5px; padding: 2px 10px 9px; }
  .legenda-prepinac { display: flex; align-items: center; gap: 7px; width: 100%; background: none; border: 0; border-radius: 8px; padding: 8px 11px; margin: 0; font: inherit; font-size: 0.78rem; font-weight: 600; color: #3a2008; text-align: left; cursor: pointer; }
  .legenda-prepinac--aktivni { color: var(--orange); }
  .legenda-prepinac-ikona { font-size: 0.95rem; line-height: 1; }
  .mapa-legenda .legenda-nadpis { font-size: 0.64rem; }
  .mapa-legenda .legenda-polozka { font-size: 0.76rem; padding: 2px 5px; gap: 6px; }
  .mapa-legenda .legenda-polozka svg { width: 21px; height: 21px; }
  .mapa-legenda .legenda-dot { width: 14px; height: 14px; border-width: 2px; margin: 0 4px; }
  .mapa-legenda .legenda-vse-ikona { width: 14px; font-size: 0.85rem; margin: 0 4px; }
}
.budka-marker { display: flex; align-items: flex-end; justify-content: center; transition: transform 0.15s; cursor: pointer; transform: scale(var(--budka-scale, 1)); transform-origin: bottom center; }
.budka-marker:hover { transform: scale(calc(var(--budka-scale, 1) * 1.25)); }
/* Body na nízkém zoomu — plynule se zvětšují, u ZOOM_DETAIL se přepnou na plné ikony */
.budka-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--dot-color, #e06820); border: 2.5px solid #fff; box-shadow: 0 0 0 2px #1a1a1a, 0 2px 5px rgba(0,0,0,0.5); cursor: pointer; transition: transform 0.15s; transform: scale(var(--budka-scale, 1)); transform-origin: center center; }
.budka-dot:hover { transform: scale(calc(var(--budka-scale, 1) * 1.35)); }
.budka-aktivni { filter: drop-shadow(1px 3px 4px rgba(0,0,0,0.5)); }
.budka-osidlena { filter: drop-shadow(0 2px 6px rgba(58,154,58,0.6)); }
.budka-nezjisteno { position: relative; filter: drop-shadow(0 2px 6px rgba(184,134,11,0.6)); }
.budka-otaznik { position: absolute; top: -4px; right: -6px; background: #b8860b; color: #fff; font-size: 0.85rem; font-weight: 900; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.4); line-height: 1; }
.budka-marker img { display: block; }
.budka-marker svg { display: block; }
/* Shluk překrývajících se budek — jedna neutrální bublina s počtem */
.budka-cluster { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(20,71,20,0.9); color: #fff; font-weight: 800; font-size: 15px; line-height: 1; border: 3px solid rgba(255,255,255,0.95); box-shadow: 0 0 0 2px #1a1a1a, 0 2px 7px rgba(0,0,0,0.45); cursor: pointer; transition: transform 0.15s; }
.leaflet-marker-icon:hover > .budka-cluster { transform: scale(1.1); }
.legenda-polozka svg { display: block; flex-shrink: 0; }

/* ── Slíbené budky (místa, kde budka teprve bude) ─────────────────────────
   Schválně nenápadné: šedý průsvitný obrys, aby mezi skutečnými budkami
   nekřičely, ale po najetí myší se zvýrazní. */
.budka-prislib { filter: grayscale(1); opacity: 0.8; transition: opacity 0.15s, filter 0.15s; }
.budka-prislib::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 26px; height: 9px; transform: translateX(-50%); border: 1.5px dashed #6b6b6b; border-radius: 50%; }
.leaflet-marker-icon:hover .budka-prislib { opacity: 0.95; filter: grayscale(0.35); }
.budka-dot-prislib { background: #8b9096 !important; opacity: 1; }
.legenda-dot-prislib { background: #8b9096; }

/* Text po najetí myší. Tooltipy na mapě jsou světlé (#fffef8), takže barvy
   z tmavých panelů webu tu byly nečitelné – tady platí stejné odstíny hnědé
   jako v bublinách budek. */
.prislib-tip { text-align: left; line-height: 1.45; color: #3a1a06; }
.prislib-tip strong { color: #3a1a06; font-weight: 700; }
.prislib-tip-kdy { color: #8a6a50; font-size: 0.9em; }
.prislib-sms-ano { color: #2d7a2d; font-size: 0.9em; font-weight: 600; }
.prislib-sms-ne { color: #b06000; font-size: 0.9em; font-weight: 600; }

/* Bublina slíbené budky – stejná stavba i barvy jako bublina budky:
   hlavička na krémovém podkladu, pod ní tělo. */
.prislib-popup { text-align: left; width: 300px; max-width: calc(100vw - 100px); font-family: 'Segoe UI', system-ui, sans-serif; }
.prislib-popup-hlavicka { padding: 14px 20px 11px; background: #faf6ee; border-bottom: 1px solid #e8dcc8; }
.prislib-popup-nadpis { font-weight: 800; font-size: 1.35rem; color: #3a1a06; line-height: 1.25; }
.prislib-popup-cislo { color: #a07050; font-size: 1.1rem; margin-top: 3px; }
.prislib-popup-telo { padding: 13px 20px 16px; }
.prislib-popup-text { color: #555; font-size: 1.08rem; line-height: 1.5; margin: 0 0 13px; }
.prislib-btn { background: #f4efe4; color: #5a3010; border: 1px solid #e0d0b8; border-radius: 8px; padding: 8px 14px; font-size: 1rem; font-family: inherit; cursor: pointer; transition: background 0.15s; }
.prislib-btn:hover { background: #ebe2d0; }
.prislib-btn-napsat { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 700; width: 100%; padding: 10px 14px; }
.prislib-btn-napsat:hover { background: var(--orange-light); }
.prislib-popup-detail { margin-top: 13px; padding-top: 11px; border-top: 1px solid #e8dcc8; color: #555; font-size: 1.02rem; line-height: 1.5; }
.prislib-popup-detail strong { color: #3a1a06; font-size: 1.12rem; font-weight: 700; }
.prislib-popup-admin { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #e8dcc8; }
.prislib-popup-admin .prislib-btn { font-size: 0.92rem; padding: 7px 11px; }
.prislib-btn-smazat { color: #a03030; }
.prislib-btn-smazat:hover { background: #f5e0e0; }

/* Blok „Slíbil jsem vám budku?" pod statistikami */
.slibene-blok { background: rgba(255,255,255,0.04); border: 1px solid var(--panel-border); border-left: 3px solid #8a8a8a; border-radius: 12px; padding: 1.4rem 1.6rem; margin: 1.8rem 0 0; text-align: left; }
.slibene-nadpis { color: var(--accent-gold); font-size: 1.25rem; margin: 0 0 0.7rem; }
.slibene-text { color: var(--text-muted); font-size: 1rem; line-height: 1.65; margin: 0 0 0.8rem; }
.slibene-text strong { color: var(--text-light); }
.slibene-btn { background: var(--orange); color: #fff; border: none; border-radius: 8px; padding: 0.7rem 1.4rem; font-size: 1rem; font-family: inherit; font-weight: 600; cursor: pointer; }
.slibene-btn:hover { background: var(--orange-light); }
@media (max-width: 640px) { .slibene-blok { padding: 1.1rem 1.2rem; } .slibene-nadpis { font-size: 1.1rem; } }
/* Zoom +/- ovládání – vlastní styl, ať je vždy vidět (nezávisle na Leaflet CSS z CDN) a větší pro dotyk */
.leaflet-control-zoom { border: none !important; box-shadow: 0 2px 8px rgba(0,0,0,0.3); border-radius: 8px; overflow: hidden; }
.leaflet-control-zoom a {
  width: 40px !important; height: 40px !important; line-height: 40px !important; font-size: 24px !important;
  font-weight: 700; background: #fff; color: #1c5c10; text-align: center; display: block; text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.leaflet-control-zoom a:last-child { border-bottom: none; }
.leaflet-control-zoom a:hover { background: #eef4e8; }
/* Ve fullscreenu posuň ovládání pod stavovou lištu / výřez telefonu */
body.mapa-cele .leaflet-top { top: calc(env(safe-area-inset-top, 0px) + 10px); }
body.mapa-cele .leaflet-left { left: calc(env(safe-area-inset-left, 0px) + 8px); }
.main-content.mapa-fullscreen { min-height: 0; }
.main-content.mapa-fullscreen .panel { display: none; }
.main-content.mapa-fullscreen .map-wrapper { flex: 1; }
.main-content.mapa-fullscreen .map-hint { display: none; }
.main-content.mapa-fullscreen ~ .partners-section,
.main-content.mapa-fullscreen ~ .footer-bar { display: none; }
.map-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); background: rgba(80,180,60,0.95); color: #1a1a00; font-size: 1.35rem; font-weight: 700; padding: 16px 36px; border-radius: 40px; border: 3px solid #fff; pointer-events: none; opacity: 0; transition: opacity 0.3s; z-index: 500; white-space: nowrap; box-shadow: 0 6px 24px rgba(0,0,0,0.45); text-shadow: none; }
/* Jen s myší – na dotyku zůstává :hover „přilepený" po klepnutí a velká
   zelená nápověda pak zakrývala proužek s nejbližší budkou. */
@media (hover: hover) { .map-wrapper:hover .map-hint { opacity: 1; } }
.btn-zpet-mapa { position: absolute; top: 16px; left: 16px; z-index: 1000; background: var(--orange); color: #fff; border: none; border-radius: 8px; padding: 14px 30px; font-size: 1.3rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.5); transition: background 0.2s; }
.btn-zpet-mapa:hover { background: var(--orange-dark); }
.btn-zpet-mapa--tr { left: auto; right: 16px; }
/* Na PC skryj levé „Zpět" – překrývalo zoom +/-; ven z fullscreenu vede pravé „Zpět" nahoře */
@media (min-width: 601px) {
  .btn-zpet-mapa:not(.btn-zpet-mapa--tr) { display: none !important; }
}

/* ── HAMBURGER ── */
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; margin-left: 6px; min-width: 44px; min-height: 44px; touch-action: manipulation; }
.nav-napsat-mobile { display: none; }
.nav-podpora-mobile { display: none; }
.nav-navod-mobile { display: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text-light); border-radius: 2px; transition: all 0.25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── NAPIŠTE NÁM v navbaru ── */
.btn-napsat { position: relative; background: rgba(255,255,255,0.1); color: var(--text-light); border: 1px solid rgba(255,255,255,0.22); padding: 10px 19px; border-radius: 7px; font-size: 1.2rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 0.2s; }
.btn-napsat:hover { background: rgba(255,255,255,0.2); color: #fff; }
.napsat-tip { display: none; position: absolute; top: calc(100% + 10px); right: 0; background: var(--panel-bg); border: 1px solid var(--panel-border); color: var(--text-light); font-size: 0.83rem; font-weight: 400; line-height: 1.6; padding: 10px 16px; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,0.5); z-index: 300; min-width: 220px; text-align: left; pointer-events: none; }
.napsat-tip strong { color: var(--accent-gold); }
.btn-napsat:hover .napsat-tip { display: block; }

.btn-navod { background: rgba(255,255,255,0.1); color: var(--text-light); border: 1px solid rgba(255,255,255,0.22); padding: 10px 16px; border-radius: 7px; font-size: 1.05rem; font-weight: 600; white-space: nowrap; transition: background 0.2s; cursor: pointer; }
.btn-navod:hover { background: rgba(255,255,255,0.2); color: #fff; }
@media (max-width: 1100px) { .btn-navod { display: none; } }

#modalNavod { align-items: flex-start; overflow-y: auto; padding: 40px 12px; }
#modalNavod .modal-box { margin: 0 auto; }

.navod-kroky-nadpis { text-align: left; color: var(--text-light); font-size: 1.08rem; font-weight: 700; margin: 1.6rem 0 0.8rem; }
.navod-list { text-align: left; padding-left: 1.3rem; margin: 0; display: flex; flex-direction: column; gap: 0.9rem; color: var(--text-muted); font-size: 1.02rem; line-height: 1.6; }
.navod-list strong { color: var(--accent-gold); }

/* ── Návod: sekce o PWA aplikaci ── */
.navod-pwa { text-align: left; margin-top: 1.6rem; padding: 1.1rem 1.2rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; }
.navod-pwa-nadpis { color: var(--accent-gold); font-size: 1.15rem; font-weight: 700; margin: 0 0 0.6rem; }
.navod-pwa-uvod { color: var(--text-muted); font-size: 1.0rem; line-height: 1.6; margin: 0 0 0.9rem; }
.navod-pwa-uvod strong { color: var(--text-light); }
.navod-pwa-podnadpis { color: var(--text-light); font-size: 1.02rem; font-weight: 700; margin: 0.9rem 0 0.4rem; }
.navod-pwa-list { text-align: left; padding-left: 1.2rem; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; color: var(--text-muted); font-size: 0.98rem; line-height: 1.55; }
.navod-pwa-list strong { color: var(--accent-gold); }
.navod-pwa-list em { color: var(--text-light); font-style: normal; font-weight: 600; }
.navod-pwa-tip { color: var(--text-muted); font-size: 0.94rem; line-height: 1.5; margin: 1rem 0 0; padding-top: 0.7rem; border-top: 1px solid rgba(255,255,255,0.1); }
.navod-pwa-tip strong { color: var(--text-light); }

/* ── NÁVŠTĚVNOST v pravém panelu ── */
.navstevnost-panel { }
.navstevnost-title { color: var(--text-muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.navstevnost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.navst-item { background: rgba(255,255,255,0.06); border-radius: 6px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.navst-cislo { font-size: 1.5rem; font-weight: 800; color: #7dd444; line-height: 1; }
.navst-label { font-size: 0.72rem; color: var(--text-muted); }
.online-pocet-panel { font-size: 0.88rem; color: var(--text-muted); border-top: 1px solid rgba(255,255,255,0.12); padding-top: 8px; margin-top: 4px; }
.online-pocet-panel strong { color: #7dd444; font-size: 1rem; }

/* ── DRUHY PTÁKŮ ── */
.druhy-panel { }
.druhy-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 8px; }
.druhy-title { color: var(--accent-gold); font-size: 1.0rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.druhy-filter-reset { background: rgba(229,57,53,0.15); color: #ff7070; border: 1px solid rgba(229,57,53,0.35); border-radius: 20px; padding: 3px 10px; font-size: 0.82rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.15s; touch-action: manipulation; }
.druhy-filter-reset:hover { background: rgba(229,57,53,0.3); }
.druhy-intro { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 6px; line-height: 1.45; }
.druhy-intro strong { color: var(--text-light); }
.druhy-list { display: flex; flex-direction: column; gap: 6px; }
.druh-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: rgba(255,255,255,0.05); border-radius: 6px; cursor: pointer; transition: background 0.15s; }
.druh-item:hover { background: rgba(255,255,255,0.12); }
.druh-svg { flex-shrink: 0; line-height: 0; }
.druh-nazev { flex: 1; color: var(--text-light); font-size: 1.32rem; font-weight: 600; }
.druh-pocet { color: var(--accent-gold); font-size: 1.35rem; font-weight: 700; }
.druh-pocet--klik { cursor: pointer; border-bottom: 2px dotted rgba(212,160,64,0.5); transition: color 0.15s; }
.druh-pocet--klik:hover { color: #fff; border-bottom-color: #fff; }
.druh-pocet-label { color: var(--text-muted); font-size: 1.0rem; margin-left: 3px; }
.druh-mapa-btn { background: none; border: none; color: var(--text-muted); font-size: 1rem; cursor: pointer; padding: 2px 4px; margin-left: 4px; border-radius: 4px; transition: color 0.15s, background 0.15s; touch-action: manipulation; }
.druh-mapa-btn:hover { color: var(--accent-gold); background: rgba(255,255,255,0.1); }
.druh-item--aktivni-filter { background: rgba(212,160,64,0.15) !important; border: 1px solid rgba(212,160,64,0.4); }
.druhy-dalsi-toggle { background: none; border: none; color: var(--text-muted); font-size: 0.98rem; font-weight: 600; cursor: pointer; padding: 8px 2px; margin-top: 4px; text-align: left; width: 100%; transition: color 0.15s; }
.druhy-dalsi-toggle:hover { color: var(--text-light); }
.druhy-list--prazdne { margin-top: 6px; }
.druh-item--prazdny { opacity: 0.62; cursor: pointer; }
.druh-item--prazdny:hover { opacity: 0.85; }
.druh-item--prazdny .druh-pocet { color: var(--text-muted); }

/* ── PŘIDAT NA PLOCHU ── */
.pridat-na-plochu { border-top: 1px solid var(--panel-border); padding: 8px 10px; background: rgba(0,0,0,0.1); flex-shrink: 0; display: none; }
.oblibene-pc { margin: 8px 10px 6px; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 8px 12px; font-size: 0.88rem; color: var(--text-muted); display: block; }
.oblibene-pc strong { color: var(--accent-gold); display: block; margin-bottom: 4px; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.5px; }
.oblibene-pc span { display: block; margin-bottom: 3px; }
.pridat-title { color: var(--text-muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.pridat-body { display: flex; gap: 10px; align-items: flex-start; }
.pridat-ikona { width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0; object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.pridat-text { flex: 1; font-size: 0.74rem; line-height: 1.5; }
.pridat-text p { color: var(--text-light); margin-bottom: 4px; }
.pridat-navod { color: var(--text-light); font-size: 0.71rem; margin-bottom: 2px; }
.pridat-navod em { color: var(--text-light); font-style: normal; font-weight: 600; }
.pridat-os { font-weight: 700; color: var(--text-light); }
.btn-push-notif { display: block; width: 100%; margin-top: 7px; background: var(--orange); color: #fff; border: none; border-radius: 20px; padding: 6px 10px; font-size: 0.74rem; font-weight: 600; cursor: pointer; transition: background 0.2s; text-align: center; }
.btn-push-notif:hover { background: var(--orange-light); }
.push-info { display: block; margin-top: 7px; font-size: 0.71rem; font-style: italic; }
.push-ok { color: #7dd444; }
.push-denied { color: var(--text-muted); }

/* ── DRUH PTÁKA DETAIL MODAL ── */
.druh-modal-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(10,30,5,0.82); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.druh-modal-overlay[hidden] { display: none; }
.druh-modal-box { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 18px; padding: 2.8rem 3.2rem; max-width: 860px; width: 96%; position: relative; box-shadow: 0 8px 40px rgba(0,0,0,0.55); }
.druh-modal-box--foto { display: flex; flex-direction: row; gap: 0; padding: 0; overflow: hidden; max-width: 1100px; }
.druh-modal-foto { flex: 0 0 400px; position: relative; background: #0a1a05; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.druh-modal-foto-img { width: 100%; height: 100%; object-fit: contain; display: block; min-height: 380px; max-height: 520px; }
.druh-modal-foto-autor { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.55); color: rgba(255,255,255,0.7); font-size: 0.75rem; padding: 4px 8px; text-align: center; }
.druh-modal-foto--klikatelna { cursor: zoom-in; }
.druh-foto-zoom-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,0.55); color: #fff; font-size: 0.95rem; padding: 7px 14px; border-radius: 20px; opacity: 0; transition: opacity 0.2s; pointer-events: none; white-space: nowrap; }
.druh-modal-foto--klikatelna:hover .druh-foto-zoom-hint { opacity: 1; }
.foto-zoom-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; cursor: zoom-out; }
.foto-zoom-img { max-width: 95vw; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.8); cursor: default; flex-shrink: 1; }
.foto-zoom-zavrit { position: absolute; top: 18px; right: 22px; color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer; opacity: 0.8; }
.foto-zoom-nav { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.foto-zoom-btn { background: rgba(255,255,255,0.15); border: none; border-radius: 50%; width: 44px; height: 44px; color: #fff; font-size: 1.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.foto-zoom-btn:hover:not([disabled]) { background: rgba(255,255,255,0.35); }
.foto-zoom-btn[disabled] { opacity: 0.25; cursor: default; }
.foto-zoom-cnt { color: #fff; font-size: 1rem; font-weight: 600; min-width: 50px; text-align: center; }
.druh-modal-content { flex: 1; padding: 2.8rem 3rem; min-width: 0; display: flex; flex-direction: column; }
.druh-modal-zavrit { position: absolute; top: 0.8rem; right: 1rem; background: rgba(0,0,0,0.45); border: none; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; border-radius: 50%; width: 2.2rem; height: 2.2rem; display: flex; align-items: center; justify-content: center; z-index: 10; }
.druh-modal-zavrit:hover { color: var(--text-light); }
.druh-modal-header { display: flex; align-items: center; gap: 26px; margin-bottom: 1.8rem; }
.druh-modal-icon { flex-shrink: 0; line-height: 0; }
.druh-modal-nazev { color: var(--accent-gold); font-size: 2.6rem; font-weight: 700; }
.druh-modal-vedecky { color: var(--text-muted); font-size: 1.3rem; font-style: italic; margin-top: 6px; }
.druh-modal-popis { color: var(--text-light); font-size: 1.35rem; line-height: 1.75; margin-bottom: 1.8rem; }
.druh-modal-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 1.8rem; }
.druh-modal-info-item { background: rgba(255,255,255,0.06); border-radius: 10px; padding: 16px 20px; }
.druh-modal-info-label { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 6px; }
.druh-modal-info-value { color: var(--text-light); font-size: 1.5rem; font-weight: 600; }
.druh-modal-links { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.druh-modal-zpev { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #1a5a1a, #2d8a2d); color: #fff; font-size: 1.2rem; font-weight: 700; padding: 12px 22px; border-radius: 50px; text-decoration: none; transition: all 0.2s; box-shadow: 0 3px 12px rgba(0,0,0,0.3); width: fit-content; }
.druh-modal-zpev:hover { background: linear-gradient(135deg, #2d8a2d, #3aaa3a); transform: translateY(-2px); box-shadow: 0 5px 18px rgba(0,0,0,0.4); }
.druh-modal-wiki { display: inline-block; color: var(--orange-light); font-size: 1.25rem; text-decoration: none; transition: color 0.15s; }
.druh-modal-wiki:hover { color: var(--accent-gold); text-decoration: underline; }

/* Skryjeme sekci 'Přidat na plochu' když běží jako nainstalovaná aplikace */
@media (display-mode: standalone) {
  .pridat-na-plochu { display: none; }
}

/* ── NARROW DESKTOP 1200px ── */
@media (max-width: 1200px) {
  .panel { width: clamp(240px, 19vw, 360px); }
  .search-box input { width: 180px; }
}

/* ── NAV HAMBURGER (vždy) – řádek odkazů se nevejde ani na širokoúhlé monitory,
   hamburger je spolehlivější pro všechny. Dřív to bylo omezené na max-width:2600px,
   takže po oddálení stránky (Ctrl+-) se řádek odkazů zase objevil a přetekl z okna. ── */
.search-box { display: none; }
.btn-napsat { display: none; }
.nav-hamburger { display: flex; margin-left: auto; }
.nav-links { display: none; position: fixed; top: 120px; left: 0; right: 0; background: #ffffff; flex-direction: column; padding: 8px 0 12px; box-shadow: 0 8px 24px rgba(40,70,30,0.18); z-index: 1100; gap: 0; }
.nav-links.open { display: flex; }
.nav-links li { width: 100%; }
.nav-links a { display: block; padding: 14px 20px; font-size: 1.1rem; color: #2e4a22; border: none; border-bottom: 1px solid #eef4e8; border-radius: 0 !important; }
.nav-napsat-mobile { display: block; }
.nav-podpora-mobile { display: block; }
.nav-navod-mobile { display: block; }

/* ── LAPTOP 1100px – stack layout, hamburger nav ── */
@media (max-width: 1100px) {
  #app { height: auto; min-height: 100vh; overflow: visible; }
  .main-content { flex-direction: column; }
  .panel { width: 100%; max-height: none; }
  .panel-scroll { overflow-y: visible; }
  .map-wrapper { height: calc(55vh); min-height: 300px; }
  #map { height: 100% !important; min-height: 300px; }
  .nav-search-mobile-btn { display: flex; font-size: 1.5rem; padding: 6px 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  #mobileSearchOverlay.open { display: flex !important; }
  .info-bar { flex-wrap: wrap; gap: 2px; font-size: 0.9rem; }
  .info-bar .bar-right { width: 100%; padding-top: 2px; }
  .partners-section { padding: 14px 20px; }
  .partners-section h3 { font-size: 1.15rem; }
  .podekovani-item { font-size: 1.05rem; }
  .partner-item { font-size: 1rem; padding: 7px 14px; }
  .navbar { height: 68px; padding: 0 16px; }
  .nav-logo-img { width: 42px; height: 56px; }
  .logo-text { font-size: 1.5rem; }
  .logo-autor { font-size: 0.68rem; }
  .btn-login { font-size: 1rem; padding: 9px 16px; }
  .budka-popup { min-width: 300px; }
  .admin-dropdown { min-width: unset; }
  .pridat-na-plochu { display: block; }
  .oblibene-pc { display: none; }
}

/* ── TABLET 900px ── */
@media (max-width: 900px) {
  .partners-section { padding: 14px 20px; }
  .nav-podpora-btn { font-size: 1.1rem; padding: 7px 12px; }
}

@media (max-width: 600px) {
  /* Zabránit horizontálnímu přetékání */
  body, #app { overflow-x: hidden; max-width: 100%; }
  .main-content { width: 100%; max-width: 100%; }
  /* Panel: clamp(380px) přetéká na 375px viewportu – vynutit 100% */
  .panel { width: 100% !important; max-width: 100%; min-width: 0; box-sizing: border-box; }
  /* Stats: 2×2 na malém mobilu */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
  .stat-item { flex-direction: column; padding: 8px 6px; gap: 4px; }
  .stat-value { font-size: 1.8rem; }
  /* Navbar: skryj velké tlačítko Podpořit, uvolni místo pro hamburger + login */
  .nav-podpora-btn { display: none; }
  .navbar { padding: 0 10px; height: 58px; gap: 8px; }
  .nav-logo { padding: 3px 8px 3px 4px; gap: 8px; }
  .nav-logo-img { width: 28px; height: 38px; }
  .logo-text { font-size: 1.05rem; }
  .logo-autor { font-size: 0.55rem; margin-top: 4px; }
  .nav-actions { gap: 6px; }
  .btn-login { font-size: 0.82rem; padding: 7px 10px; white-space: nowrap; }
  .btn-login-prefix { display: none; }
  .btn-login-suffix { display: none; }
  .btn-login.prihlaseny { max-width: 130px; overflow: hidden !important; text-overflow: ellipsis; white-space: nowrap; }
  .splash-box { padding: 40px 28px 36px; }
  .splash-nadpis { font-size: 2rem; }
  .navbar { padding: 0 12px; height: 58px; }
  .nav-logo-img { width: 32px; height: 44px; }
  .logo-text { font-size: 1.15rem; }
  .logo-autor { font-size: 0.6rem; }
  .btn-login { font-size: 0.88rem; padding: 8px 12px; }
  .btn-napsat { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }
  .nav-napsat-mobile { display: block; }
  .nav-podpora-mobile { display: block; }
  .nav-navod-mobile { display: block; }
  /* Vzhled rozbaleného menu je společný (světlý) výše; tady jen mobilní rozměry.
     Dřív se tu znovu nastavovalo tmavé menu ze starého vzhledu navbaru. */
  .nav-links a { padding: 12px 18px; font-size: 1.25rem; }
  /* Info bar: skryj hodiny a bar-right, jen datum + svátek */
  .info-bar { padding: 5px 10px; font-size: 0.82rem; flex-wrap: wrap; overflow: visible; }
  .info-bar .bar-right { display: none; }
  .info-bar-cas { display: none; }
  /* Verze na mobilu: vlastní řádek, ať se neustřihne mimo obrazovku */
  .info-bar .bar-verze { display: block; width: 100%; margin-top: 3px; opacity: 0.9; }
  /* Mapa: první a plná výška viewportu */
  .map-wrapper { order: -1; height: calc(100svh - 90px); min-height: 280px; flex-shrink: 0; background: #a8d4f0; }
  #map { height: 100% !important; min-height: unset; }
  /* Pravý panel pod mapou — přirozená výška, stránka scrolluje */
  .panel { max-height: none; }
  .panel-scroll { overflow-y: visible; }
  /* Levý panel skrytý na mobilu */
  .panel-left { display: none; }
  /* Popup na mobilu – užší (místo po stranách) + scrollovatelný na výšku */
  .budka-popup { min-width: 0; width: calc(100vw - 80px); max-width: 300px; max-height: min(calc(100svh - 180px), calc(var(--mapa-vyska, 2000px) - 120px)); overflow-y: auto; -webkit-overflow-scrolling: touch; font-size: 1rem; box-sizing: border-box; }
  .leaflet-popup-content-wrapper,
  .budka-popup-wrap .leaflet-popup-content-wrapper { width: auto !important; max-width: calc(100vw - 80px) !important; min-width: 0 !important; box-sizing: border-box; overflow: visible !important; }
  .leaflet-popup-content { width: auto !important; margin: 0 !important; padding: 0 !important; }
  .popup-header { padding: 12px 16px 10px; }
  .popup-cislo { font-size: 1.2rem; }
  /* Větší close button Leaflet + vlastní Zavřít tlačítko */
  .leaflet-popup-close-button { width: 44px !important; height: 44px !important; font-size: 28px !important; line-height: 44px !important; top: 0 !important; right: 0 !important; }
  .popup-zavrit-btn { display: block; width: 100%; padding: 12px; background: #e8e0d4; border: none; border-top: 1px solid #d0c0a8; font-size: 1.1rem; font-weight: 700; color: #3a1a06; cursor: pointer; text-align: center; }
  .popup-nazev-hlavni { font-size: 1.25rem; }
  .popup-ptak { padding: 10px 16px 4px; font-size: 1.1rem; }
  .popup-detail { padding: 6px 16px 12px; }
  .popup-sekce { padding: 10px 16px 14px; }
  .popup-edit-btn { padding: 12px 16px; font-size: 1.1rem; }
  /* Foto v popupu: pevná nižší výška aby popup neskákal při načtení */
  .popup-foto img { height: 150px; }
  /* Splash – plná šířka na mobilu */
  .splash-box { padding: 40px 28px 36px; }
  .splash-nadpis { font-size: 2rem; }
  .panel-title { font-size: 1rem; padding: 10px 14px; }
  .pribeh-druh { font-size: 1rem; }
  .pribeh-popis { font-size: 0.95rem; }
  .pribeh-datum { font-size: 0.85rem; }
  .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
  .stat-item { padding: 8px 10px; }
  .stat-value { font-size: 1.5rem; }
  .stat-label { font-size: 0.75rem; }
  .partners-section { padding: 14px 12px; }
  .partners-section h3 { font-size: 1.05rem; }
  #partneriList { flex-wrap: wrap; justify-content: center; overflow-x: visible; gap: 8px; }
  .partner-item { font-size: 0.9rem; padding: 6px 12px; }
  .partner-logo { height: 32px; max-width: 80px; }
  .podekovani-item { font-size: 1rem; }
  .footer-bar { gap: 8px; padding: 10px 12px; font-size: 0.88rem; }
  .footer-sep { display: none; }
  .map-hint { font-size: 1rem; padding: 10px 16px; white-space: normal; max-width: calc(100vw - 40px); text-align: center; }
  .btn-zpet-mapa { font-size: 1rem; padding: 10px 18px; top: auto; bottom: 56px; }
  .btn-zpet-mapa--tr { display: none !important; }

  /* Admin dropdown — full-width na mobilu (pozicování viz konec souboru) */
  .admin-dropdown { min-width: unset; border-radius: 12px; }
  .admin-dropdown-hlavicka { padding: 12px 16px; font-size: 0.95rem; }
  .admin-dropdown-item { font-size: 1rem; padding: 12px 16px; }
  .admin-dropdown-sec { padding: 10px 16px 4px; font-size: 0.8rem; }
  .admin-dropdown-budka { font-size: 1rem; }

  /* Admin banner — kompakt */
  .admin-banner { flex-wrap: wrap; gap: 6px; padding: 8px 12px; font-size: 0.82rem; }

  /* Modaly na mobilu — overlay centrovaný, box sám scrolluje */
  .modal-overlay { align-items: center; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 6px; }
  /* Karta správce — bottom-sheet: overlay neroluje, box má pevnou výšku a roluje (iOS) */
  .profil-overlay { align-items: flex-start !important; overflow: hidden !important; padding: 4svh 0 0 !important; }
  .profil-box { width: 100% !important; height: 92svh !important; max-height: none !important; overflow-y: scroll !important; -webkit-overflow-scrolling: touch !important; overscroll-behavior: contain; border-radius: 16px 16px 0 0 !important; }
  .profil-header { padding: 16px 14px; gap: 12px; }
  .profil-foto { width: 64px; height: 64px; }
  .profil-nadpis { font-size: 1.15rem; }
  .profil-budka { font-size: 0.9rem; }
  .profil-form { padding: 14px; gap: 12px; }
  .profil-row { flex-direction: column; gap: 8px; }
  .profil-field--wide { flex: 1; min-width: unset; }
  .profil-actions { padding: 12px 14px 18px; gap: 10px; }
  .profil-btn-ulozit { padding: 12px 24px; font-size: 1.1rem; }
  .profil-btn-zpet { padding: 10px 16px; font-size: 0.95rem; }

  /* Modaly obecně — plná šířka, větší padding */
  .modal-box { width: 98% !important; max-width: unset !important; padding: 2rem 1.4rem 1.8rem !important; }
  .modal-nadpis { font-size: 1.6rem; }
  .modal-hint { font-size: 1rem; }
  .modal-form input { font-size: 1.2rem; padding: 0.9rem 1rem; }
  .modal-form button { font-size: 1.2rem; padding: 0.95rem 1rem; }
  .link-zapomnel { font-size: 1.05rem; }
  .uvitani-box { max-width: 98% !important; }
  .uvitani-zprava { margin: 16px 16px 0; font-size: 1rem; }
  .uvitani-logo-wrap { padding: 20px 16px 16px; }

  /* Detail ptáka — foto pod text */
  .druh-modal-box--foto { flex-direction: column; overflow: visible; max-height: 90vh; overflow-y: auto; }
  .druh-modal-foto { width: 100%; max-height: 180px; min-height: unset; }
  .druh-modal-foto-img { width: 100%; height: 180px; min-height: unset; object-fit: cover; }
  .druh-modal-content { padding: 1.4rem 1.6rem; }
  .druh-modal-nazev { font-size: 1.8rem; }
  .druh-modal-popis { font-size: 1.1rem; }
  .druh-modal-info { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1.2rem; }
  .druh-modal-zpev { font-size: 1rem; padding: 12px 18px; }
  .druh-modal-wiki { font-size: 1rem; }

  /* Info bar — svátek a narozeniny na druhém řádku */
  .bar-gratulace, .bar-narozeniny { display: block; font-size: 0.8rem; }
}

/* ── LANDSCAPE MOBIL ── */
@media (max-width: 900px) and (orientation: landscape) {
  .main-content { flex-direction: row; height: calc(100vh - 68px); min-height: unset; }
  .panel { width: 200px; max-height: none; flex-shrink: 0; }
  .map-wrapper { height: 100%; min-height: unset; }
  #map { height: 100%; }
  .info-bar .bar-right { display: block; width: auto; }
}

/* ── PŘÁNÍ K NAROZENINÁM / SVÁTKU ── */
.prani-overlay { position: fixed; inset: 0; z-index: 2500; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.prani-overlay--show { opacity: 1; pointer-events: auto; }
.prani-box { border-radius: 28px; padding: 52px 64px 44px; text-align: center; max-width: 560px; width: 92%; box-shadow: 0 20px 70px rgba(0,0,0,0.6); transform: scale(0.88); transition: transform 0.4s ease; }
.prani-overlay--show .prani-box { transform: scale(1); }
.prani-box--narozeniny { background: linear-gradient(150deg, #fff8e0 0%, #ffe9a0 50%, #ffd060 100%); border: 3px solid #e8a800; color: #5a3800; }
.prani-box--svatek    { background: linear-gradient(150deg, #e0f5ff 0%, #a8dff5 50%, #60bce8 100%); border: 3px solid #2080b8; color: #0a3050; }
.prani-ikona   { font-size: 4rem; margin-bottom: 12px; }
.prani-nadpis  { font-size: 2.2rem; font-weight: 800; margin-bottom: 14px; }
.prani-text    { font-size: 1.15rem; font-weight: 500; line-height: 1.7; margin-bottom: 32px; opacity: 0.9; }
.prani-btn     { background: rgba(0,0,0,0.15); border: 2px solid rgba(0,0,0,0.2); border-radius: 50px; padding: 12px 36px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: background 0.2s; font-family: inherit; color: inherit; }
.prani-btn:hover { background: rgba(0,0,0,0.25); }

/* ── PŘIHLAŠOVACÍ TOAST ── */
.admin-toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -40%); background: linear-gradient(135deg, #d4f5d4 0%, #a8e6a8 60%, #7dd67d 100%); border: 3px solid #3aaa3a; border-radius: 28px; color: #1a4a1a; font-size: 2.1rem; font-weight: 700; padding: 48px 80px; box-shadow: 0 16px 60px rgba(0,0,0,0.55); z-index: 2000; text-align: center; opacity: 0; transition: opacity 0.5s, transform 0.5s; pointer-events: none; max-width: 90vw; max-height: 85vh; overflow-y: auto; line-height: 1.6; }
.admin-toast--show { opacity: 1; transform: translate(-50%, -50%); }
/* Mobil: menší toast. Musí být AŽ ZA základním pravidlem – dřív stál v bloku
   výš a základní 2.1rem + 80px odsazení ho přebilo, takže uvítání zakrylo celý
   displej. Bez pointer-events, ať jde stránka pod ním dál posouvat. */
@media (max-width: 600px) {
  .admin-toast { font-size: 1.1rem; padding: 22px 18px; border-radius: 16px; width: 88vw; max-width: 88vw; box-sizing: border-box; max-height: 80vh; line-height: 1.5; }
}
.toast-posledni { display: block; font-size: 0.48em; font-weight: 500; opacity: 0.72; margin-top: 6px; }
.uvod-toast-slovo { opacity: 0; transition: opacity 0.2s ease; }
.uvod-toast-slovo--viditelne { opacity: 1; }

/* ── PUSH FOREGROUND BANNER ── */
.push-banner { position: fixed; top: 70px; right: 16px; z-index: 3000; opacity: 0; transform: translateY(-12px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; max-width: 340px; }
.push-banner--show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.push-banner-inner { background: linear-gradient(135deg, #1c4210 0%, #0e2706 100%); border: 1.5px solid rgba(120,190,80,0.35); border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); padding: 14px 16px; display: flex; align-items: flex-start; gap: 12px; color: var(--text-light); }
.push-banner-ico { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.push-banner-text { flex: 1; font-size: 0.95rem; line-height: 1.4; }
.push-banner-text strong { display: block; margin-bottom: 3px; color: #a8e670; }
.push-banner-zavrit { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; padding: 0 0 0 8px; line-height: 1; flex-shrink: 0; }

/* ── PROFIL SPRÁVCE ── */
.profil-box { max-width: 760px; width: 96%; padding: 0; overflow: hidden; text-align: left; }
.profil-header { display: flex; align-items: center; gap: 24px; background: linear-gradient(135deg, #0f2a04, #1e4a0a); padding: 28px 56px 28px 36px; border-bottom: 2px solid var(--accent-gold); }
.profil-foto-wrap { position: relative; flex-shrink: 0; }
.profil-foto { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-gold); box-shadow: 0 4px 16px rgba(0,0,0,0.5); display: block; }
.profil-foto-btn { position: absolute; bottom: 2px; right: 2px; background: var(--orange); color: #fff; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 1rem; cursor: pointer; border: 2px solid var(--panel-bg); transition: background 0.2s; }
.profil-foto-btn:hover { background: var(--orange-light); }
.profil-foto--klikatelna { cursor: pointer; }
.profil-foto--klikatelna:hover { opacity: 0.85; transition: opacity 0.15s; }
.foto-sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 3000; display: flex; align-items: flex-end; }
.foto-sheet { width: 100%; background: #1a2e12; border-radius: 18px 18px 0 0; padding: 12px 16px 28px; display: flex; flex-direction: column; gap: 8px; }
.foto-sheet-btn { background: rgba(255,255,255,0.07); color: var(--text-light); border: none; border-radius: 12px; padding: 16px; font-size: 1.05rem; cursor: pointer; text-align: center; }
.foto-sheet-btn:hover { background: rgba(255,255,255,0.13); }
.foto-sheet-zrusit { margin-top: 4px; color: var(--text-muted); font-size: 0.95rem; }
.profil-header-text { flex: 1; }
.profil-nadpis { color: var(--accent-gold); font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.profil-budka { color: var(--text-light); font-size: 1.1rem; margin-bottom: 4px; }
.profil-budka--hlavni { font-weight: 700; margin-bottom: 2px; }
.profil-budka--dalsi { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 2px; }
.profil-id-wrap { font-size: 0.95rem; color: var(--text-muted); }
.profil-id { color: var(--accent-gold); font-weight: 700; letter-spacing: 1px; }
.profil-form { padding: 28px 36px; display: flex; flex-direction: column; gap: 20px; }

/* Žádosti správců — dlouhý seznam zpráv jde srolovat uvnitř boxu.
   Bez toho box přeroste obrazovku (overflow:hidden) a spodek zpráv se ořízne. */
#modalZadosti .profil-box { max-height: 90vh; display: flex; flex-direction: column; }
#modalZadosti .profil-form { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.profil-row { display: flex; gap: 16px; flex-wrap: wrap; }
.profil-field { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 120px; }
.profil-field--wide { min-width: 180px; flex: 2; }
.profil-field label { color: var(--text-muted); font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.profil-field input { background: rgba(255,255,255,0.07); border: 1px solid var(--panel-border); border-radius: 8px; color: var(--text-light); font-size: 1.15rem; padding: 12px 16px; outline: none; transition: border-color 0.2s; width: 100%; box-sizing: border-box; }
.profil-field input:focus { border-color: var(--accent-gold); background: rgba(255,255,255,0.1); }
.profil-field input[readonly] { opacity: 0.5; cursor: not-allowed; }
.profil-select { background: rgba(255,255,255,0.07); border: 1px solid var(--panel-border); border-radius: 8px; color: var(--text-light); font-size: 1.15rem; padding: 12px 16px; outline: none; transition: border-color 0.2s; width: 100%; box-sizing: border-box; cursor: pointer; }
.profil-select:focus { border-color: var(--accent-gold); background: rgba(255,255,255,0.1); }
.profil-select option { background: #1a2a1a; color: var(--text-light); }
.aktivita-seznam { display: flex; flex-direction: column; gap: 0; max-height: 60vh; overflow-y: auto; }
.aktivita-radek { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--panel-border); font-size: 1rem; }
.aktivita-radek:last-child { border-bottom: none; }
.akt-ikona { font-size: 1.2rem; flex-shrink: 0; }
.akt-text { flex: 1; color: var(--text-light); }
.akt-cas { color: var(--text-muted); font-size: 0.85rem; white-space: nowrap; }
.badge-admin { background: var(--accent-gold); color: #1a2e1a; font-size: 0.75rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.profil-hint { color: var(--text-muted); font-size: 0.85rem; font-style: italic; text-transform: none; letter-spacing: 0; margin-left: 4px; }
.profil-narozeniny { cursor: help; }
.profil-hint--under { display: block; margin-left: 0; margin-top: 5px; font-size: 0.82rem; }
.profil-actions { padding: 22px 36px 30px; display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--panel-border); }
.profil-btn-ulozit { background: var(--orange); color: #fff; border: none; border-radius: 8px; padding: 14px 36px; font-size: 1.2rem; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.profil-btn-ulozit:hover { background: var(--orange-light); }
.profil-btn-zpet { background: rgba(255,255,255,0.08); color: var(--text-muted); border: 1px solid var(--panel-border); border-radius: 8px; padding: 12px 22px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s; font-family: inherit; }
.profil-btn-zpet:hover { background: rgba(255,255,255,0.14); color: var(--text-light); }
.profil-ulozeno { color: #6dcc6d; font-size: 1.1rem; font-weight: 600; }
.profil-vzdy-label { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.95rem; cursor: pointer; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--panel-border); margin-bottom: 4px; min-height: 44px; touch-action: manipulation; user-select: none; }
.profil-vzdy-label input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent-gold); cursor: pointer; flex-shrink: 0; touch-action: manipulation; }

/* ── ADMIN SEZNAM SPRÁVCŮ ── */
.admin-seznam-box { max-width: 960px; width: 98%; padding: 0; overflow: hidden; text-align: left; max-height: 92vh; display: flex; flex-direction: column; }
.admin-sz-hledat-wrap { padding: 10px 16px; border-bottom: 1px solid var(--panel-border); flex-shrink: 0; }
.admin-sz-hledat { width: 100%; background: rgba(255,255,255,0.07); border: 1px solid var(--panel-border); border-radius: 8px; color: var(--text-light); font-size: 1rem; padding: 10px 14px; font-family: inherit; outline: none; }
.admin-sz-hledat:focus { border-color: var(--accent-gold); }
.admin-sz-obsah { overflow-y: auto; flex: 1; }
.admin-sz-empty { padding: 24px; color: var(--text-muted); text-align: center; }
.admin-seznam-tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.admin-seznam-tbl thead th { background: var(--panel-header); color: var(--text-muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 9px 14px; text-align: left; border-bottom: 2px solid var(--panel-border); position: sticky; top: 0; }
.admin-seznam-tbl tbody tr { border-bottom: 1px solid rgba(255,255,255,0.06); transition: background 0.12s; }
.admin-seznam-tbl tbody tr:hover { background: rgba(255,255,255,0.05); }
.admin-seznam-tbl td { padding: 9px 14px; color: var(--text-light); vertical-align: middle; }
.admin-sz-id { color: var(--text-muted); font-family: monospace; font-size: 0.85rem; white-space: nowrap; }
.admin-sz-email { color: var(--text-muted); font-size: 0.88rem; }
.admin-sz-pocet { text-align: center; color: var(--accent-gold); font-weight: 700; }
.admin-sz-edit-btn { background: var(--orange); color: #fff; border: none; border-radius: 6px; padding: 6px 12px; font-size: 0.85rem; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.admin-sz-edit-btn:hover { background: var(--orange-light); }

/* ── ADMIN DROPDOWN ── */
#authNavArea { position: relative; }
/* Pozicování jen přes media queries níže — base rule nemá position aby ji nepřebilo */
.admin-dropdown { display: none; background: var(--panel-bg); border: 1px solid var(--accent-gold); border-radius: 14px; min-width: 300px; max-height: 80vh; overflow-y: auto; box-shadow: 0 10px 36px rgba(0,0,0,0.55); z-index: 1200; }
.admin-dropdown.open { display: block; }
.admin-dropdown-hlavicka { padding: 14px 20px; font-size: 1.05rem; color: var(--accent-gold); border-bottom: 1px solid var(--panel-border); font-weight: 700; }
.admin-dropdown-item { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text-light); font-size: 1.05rem; padding: 12px 20px; cursor: pointer; transition: background 0.15s; font-family: inherit; }
.admin-dropdown-item:hover { background: rgba(255,255,255,0.07); }
.admin-dropdown-item.pripravujeme { color: var(--text-muted); }
.admin-dropdown-item.odhlasit { color: #e07070; }
.admin-dropdown-item.odhlasit:hover { background: rgba(220,80,80,0.1); }
.admin-dropdown-oddelovac { border-top: 1px solid var(--panel-border); margin: 4px 0; }

/* ── KARTA SPRÁVCE ── */
.karta-box { max-width: 360px; }
.karta-grid { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.karta-radek { display: flex; gap: 12px; align-items: baseline; }
.karta-label { color: var(--text-muted); font-size: 0.78rem; min-width: 70px; flex-shrink: 0; }
.karta-hodnota { color: var(--text-light); font-size: 0.9rem; font-weight: 600; }

/* ── PŘIHLAŠOVACÍ MODAL ── */
.heslo-wrap { position: relative; display: flex; align-items: center; }
.heslo-wrap input { padding-right: 42px !important; }
.btn-oko { position: absolute; right: 10px; background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--text-muted); padding: 4px; line-height: 1; transition: color 0.15s; }
.btn-oko:hover { color: var(--text-light); }
.zobrazit-heslo-label { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.82rem; cursor: pointer; user-select: none; margin-top: -4px; }
.zobrazit-heslo-label input[type=checkbox] { accent-color: var(--orange); cursor: pointer; }
.link-zapomnel { display: inline-block; margin-top: 10px; color: var(--text-muted); font-size: 1rem; text-decoration: underline; text-decoration-style: dotted; transition: color 0.15s; }
.link-zapomnel:hover { color: var(--text-light); }
/* druhý odkaz pod formulářem musí na vlastní řádek, jinak se slepí se „Zapomněl jsem heslo" */
#linkChciPristup { display: block; margin-top: 14px; }
.zapomnel-msg { margin-top: 8px; background: rgba(255,255,255,0.06); border: 1px solid var(--panel-border); border-radius: 6px; padding: 8px 12px; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.zapomnel-msg strong { color: var(--accent-gold); }

/* ── Žádost o přístup správce (panel A v přihlašovacím modalu, 9/2026) ── */
.pristup-box { text-align: left; background: rgba(255,255,255,0.04); border: 1px solid var(--panel-border); border-left: 3px solid var(--accent-gold); border-radius: 10px; padding: 1.2rem 1.4rem; margin-bottom: 1.6rem; color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; }
.pristup-box p { margin: 0 0 0.8rem; }
.pristup-box p:last-child { margin-bottom: 0; }
.pristup-box strong { color: var(--accent-gold); }
.pristup-nadpis { color: var(--text-light) !important; font-size: 1.2rem; font-weight: 600; }
/* Přihlašovací pole jsou schválně obří (ID a heslo se ťukají na mobilu),
   ale u žádosti se píše jméno a e-mail – tam se hodí běžná velikost a
   zarovnání doleva, jinak by okno bylo zbytečně vysoké. */
#loginPristupInfo .modal-form input { font-size: 1.15rem; padding: 0.85rem 1.2rem; text-align: left; letter-spacing: 0; }
#loginPristupInfo .modal-form input::placeholder { font-size: 1rem; }
#loginPristupInfo .modal-form button { font-size: 1.25rem; padding: 0.95rem 1.2rem; }
#loginPristupInfo .modal-form { gap: 0.8rem; }
.pristup-textarea { background: rgba(255,255,255,0.07); border: 1px solid var(--panel-border); border-radius: 8px; color: var(--text-light); font-family: inherit; font-size: 1rem; padding: 0.9rem 1.1rem; outline: none; width: 100%; box-sizing: border-box; resize: vertical; }
.pristup-textarea:focus { border-color: var(--accent-gold); }
.pristup-textarea::placeholder { color: var(--text-muted); }
.pristup-mail { color: var(--text-muted); font-size: 0.95rem; margin: 1rem 0 0; }
.pristup-mail a { color: var(--accent-gold); }

/* Víceřádkové pole v modálních oknech — stejný vzhled jako .pristup-textarea,
   jen pod obecnějším názvem, ať se nemusí psát styl přímo do HTML. */
.modal-textarea { background: rgba(255,255,255,0.07); border: 1px solid var(--panel-border); border-radius: 8px; color: var(--text-light); font-family: inherit; font-size: 1rem; padding: 0.9rem 1.1rem; outline: none; width: 100%; box-sizing: border-box; resize: vertical; }
.modal-textarea:focus { border-color: var(--accent-gold); }
.modal-textarea::placeholder { color: var(--text-muted); }

/* Výběr vletového otvoru — průměr rozhoduje, který pták se do budky vejde,
   tak ať u voleb rovnou stojí, pro koho která je. */
.chci-otvor { text-align: left; background: rgba(255,255,255,0.04); border: 1px solid var(--panel-border); border-radius: 8px; padding: 0.9rem 1.1rem; }
.chci-otvor-nadpis { margin: 0 0 0.7rem; color: var(--text-light); font-size: 1.02rem; font-weight: 600; }
.chci-otvor-volba { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 0.6rem; color: var(--text-muted); font-size: 0.98rem; line-height: 1.5; cursor: pointer; }
.chci-otvor-volba:last-child { margin-bottom: 0; }
.chci-otvor-volba input { width: 20px; height: 20px; min-width: 20px; margin: 2px 0 0; accent-color: var(--orange); cursor: pointer; }
.chci-otvor-volba strong { color: var(--accent-gold); }

/* Vysvětlení, proč po lidech chci telefon — bez něj jim nemám jak potvrdit,
   že jsem žádost založil, a formulář by jinak vypadal jako zbytečné vyzvídání. */
.chci-krok-nadpis { margin: 0 0 0.7rem; color: var(--text-light); font-size: 1.08rem; font-weight: 700; text-align: left; }
.chci-krok-cislo { display: inline-block; background: var(--accent-gold); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: 0.85rem; margin-right: 6px; vertical-align: 2px; }
.chci-mapa-hledat { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chci-mapa-hledat input { flex: 1 1 180px; min-width: 0; background: rgba(255,255,255,0.07); border: 1px solid var(--panel-border); border-radius: 8px; color: var(--text-light); font-size: 1.05rem; padding: 0.6rem 0.9rem; outline: none; font-family: inherit; }
.chci-mapa-hledat input:focus { border-color: var(--accent-gold); }
.chci-mapa-hledat input::placeholder { color: var(--text-muted); }
.chci-mapa-btn { flex: 0 0 auto; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--panel-border); background: rgba(255,255,255,0.08); color: var(--text-light); font-size: 0.95rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.chci-mapa-btn:hover { border-color: var(--accent-gold); }
.chci-mapa-btn:disabled { opacity: 0.6; cursor: wait; }
.chci-mapa { height: min(380px, 48vh); border-radius: 8px; border: 1px solid var(--panel-border); overflow: hidden; cursor: crosshair; background: #e8eee0; }
.chci-mapa .leaflet-container, .chci-mapa.leaflet-container { cursor: crosshair; }
.chci-mapa-stav { margin: 8px 0 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.chci-mapa-stav--ok { color: #4caf50; font-weight: 600; }
.chci-pokracovat { display: block; width: 100%; margin-top: 10px; padding: 13px 18px; border: none; border-radius: 10px; background: var(--orange); color: #fff; font-size: 1.08rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.chci-pokracovat:disabled { opacity: 0.45; cursor: not-allowed; }
.chci-preskocit { display: block; text-align: center; margin-top: 10px; }
.chci-misto-souhrn { text-align: left; background: rgba(76,175,80,0.1); border: 1px solid rgba(76,175,80,0.45); border-radius: 8px; padding: 0.6rem 0.9rem; color: var(--text-light); font-size: 0.98rem; }
.chci-misto-souhrn:empty { display: none; }
.chci-misto-souhrn button { background: none; border: none; color: var(--accent-gold); text-decoration: underline; cursor: pointer; font-size: 0.95rem; padding: 0 0 0 6px; font-family: inherit; }
.chci-pin { font-size: 34px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4)); }
.chci-telefon-info { text-align: left; background: rgba(255,255,255,0.04); border-left: 3px solid var(--accent-gold); border-radius: 8px; padding: 0.9rem 1.1rem; margin: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.chci-telefon-info strong { color: var(--accent-gold); }
@media (max-width: 640px) {
  .pristup-box { font-size: 0.98rem; padding: 1rem 1.1rem; }
  .pristup-nadpis { font-size: 1.08rem; }
}

/* ── ADMIN BADGE & ŽÁDOSTI ── */
.admin-badge { display: inline-block; background: #e03030; color: #fff; border-radius: 10px; font-size: 0.75rem; font-weight: 700; padding: 1px 7px; margin-left: 6px; vertical-align: middle; }
.zadosti-skupina { margin-bottom: 16px; }
.zadosti-typ { color: var(--accent-gold); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.zadost-item { background: rgba(255,255,255,0.05); border: 1px solid var(--panel-border); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; font-size: 0.95rem; color: var(--text-light); line-height: 1.6; }
.zadost-item--vyrizena { opacity: 0.5; background: transparent; }
.zadost-detail { color: var(--accent-gold); }
.zadost-zprava-text { color: var(--text-light); white-space: pre-wrap; }
.zadost-btn-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.zadost-btn-zamit { background: #7a2020; color: #fff; border: none; border-radius: 6px; padding: 6px 14px; font-size: 0.9rem; cursor: pointer; min-height: 44px; touch-action: manipulation; }
.zadost-btn-zamit:hover { background: #a03030; }
.prehled-box .profil-header { flex-shrink: 0; }
.prehled-filtry { display: flex; gap: 8px; padding: 10px 16px 4px; flex-wrap: wrap; flex-shrink: 0; }
.prehled-filtr { background: rgba(255,255,255,0.07); color: var(--text-light); border: 1px solid var(--panel-border); border-radius: 20px; padding: 5px 14px; font-size: 0.88rem; cursor: pointer; }
.prehled-filtr--aktivni { background: var(--orange); border-color: var(--orange); }
.prehled-kopirovat { display: flex; gap: 8px; padding: 6px 16px 10px; flex-wrap: wrap; flex-shrink: 0; }
.prehled-kopir-btn { background: rgba(255,255,255,0.07); color: var(--accent-gold); border: 1px solid var(--panel-border); border-radius: 8px; padding: 5px 12px; font-size: 0.85rem; cursor: pointer; }
.prehled-kopir-btn:hover { background: rgba(255,255,255,0.13); }
.prehled-radek { padding: 10px 16px; border-bottom: 1px solid var(--panel-border); display: flex; flex-direction: column; gap: 3px; }
.prehled-jmeno { font-size: 0.97rem; color: var(--text-light); font-weight: 600; }
.prehled-id { font-size: 0.8rem; color: var(--text-muted); font-weight: normal; }
.prehled-kontakt { font-size: 0.9rem; color: var(--accent-gold); text-decoration: none; }
.prehled-kontakt:hover { text-decoration: underline; }
.prehled-prazdny { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }
.prehled-notif-detail { font-size: 0.82rem; color: #7dd444; margin: 2px 0; }
.zh-error { color: #ff9090; font-size: 0.9rem; margin-top: 10px; padding: 8px 10px; background: rgba(255,80,80,0.1); border-radius: 6px; }
.zh-pravidla { background: rgba(255,200,0,0.07); border: 1px solid rgba(255,200,0,0.2); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.zh-pravidla-nadpis { color: var(--accent-gold); font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.zh-pravidla-seznam { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }
.zh-pravidla-seznam strong { color: var(--text-light); }
.prehled-box { max-width: 580px; width: 96%; max-height: 88vh; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.prehled-seznam { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.prehled-hledat-wrap { padding: 8px 16px 4px; flex-shrink: 0; }
.prehled-hledat { width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.07); border: 1px solid var(--panel-border); border-radius: 10px; color: var(--text-light); font-size: 1rem; padding: 10px 14px; outline: none; }
.prehled-hledat:focus { border-color: var(--accent-gold); }
.prehled-pocet { font-size: 0.85rem; color: var(--text-muted); font-weight: normal; }
.tt-spravce { font-size: 0.82rem; margin-top: 3px; }
.tt-aktivni-datum { color: #888; font-size: 0.77rem; margin-top: 2px; }
.stav-top       { color: #3aaa3a; }
.stav-aktivni   { color: #c8a000; }
.stav-pasivni   { color: #c09060; }
.stav-nezajem   { color: #444; }
.popup-osidlena-chip { display: inline-block; font-size: 0.75rem; font-weight: 600; color: #fff; background: #3a9a3a; border-radius: 10px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.popup-osidlena-chip--nezjisteno { background: #b8860b; }
.popup-ptak--nezjisteno { color: #b8860b; font-style: italic; }
.popup-spravce-stav { font-size: 0.85rem; font-weight: normal; margin-left: 4px; }
.popup-aktivni-datum { color: var(--text-muted); font-size: 0.83rem; }
.zadost-cas { color: var(--text-muted); font-size: 0.82rem; }
.zadost-budka { color: var(--accent-gold); font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.zadost-idlabel { color: var(--text-muted); font-size: 0.8rem; white-space: nowrap; }
.zadost-btn-ok { margin-top: 8px; background: #2d7a2d; border: none; border-radius: 6px; color: #fff; padding: 6px 16px; font-size: 0.9rem; cursor: pointer; min-height: 44px; touch-action: manipulation; }
.zadost-btn-ok:hover { background: #3aaa3a; }

/* ── UVÍTACÍ MODAL (první přihlášení) ── */
.uvitani-box { max-width: 860px; padding: 0; text-align: center; overflow: hidden; max-height: 94vh; display: flex; flex-direction: column; }
.uvitani-logo-wrap { background: linear-gradient(135deg, #1a3318 0%, #2a5a28 100%); padding: 36px 48px 28px; flex-shrink: 0; }
.uvitani-logo { width: 180px; }
.uvitani-obsah { overflow-y: auto; padding: 0 0 40px; flex: 1; }
.uvitani-zprava { margin: 28px 48px 0; color: var(--text-light); font-size: 1.18rem; line-height: 1.9; text-align: left; border-left: 4px solid #3a8a3a; padding: 20px 28px; background: rgba(255,255,255,0.04); border-radius: 0 10px 10px 0; }
.uvitani-zprava p { margin: 0 0 16px; }
.uvitani-zprava p:last-child { margin-bottom: 0; }
.uvitani-podpis { font-weight: 700; color: var(--accent-gold); font-size: 1.2rem; }
.uvitani-co { margin: 22px 48px 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.uvitani-co-item { color: var(--text-light); font-size: 1.08rem; padding: 12px 18px; background: rgba(255,255,255,0.05); border-radius: 10px; line-height: 1.4; }
.uvitani-actions { margin: 26px 48px 0; }
.uvitani-btn { width: 100%; font-size: 1.25rem !important; padding: 18px 28px !important; background: linear-gradient(135deg, #1a5a1a, #2d8a2d) !important; }
.uvitani-btn:hover { background: linear-gradient(135deg, #236023, #3aaa3a) !important; }

/* ── GPS OPRAVA ── */
.eb-gps-hlasit-btn { background: none; border: none; color: #e09030; cursor: pointer; font-size: 1rem; padding: 0 4px; vertical-align: middle; opacity: 0.8; transition: opacity 0.15s; }
.eb-gps-hlasit-btn:hover { opacity: 1; }
.eb-gps-form-wrap { background: rgba(200,120,20,0.12); border: 1px solid rgba(200,140,40,0.4); border-radius: 10px; padding: 16px 18px; margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.eb-gps-form-title { color: var(--accent-gold); font-weight: 700; font-size: 1rem; }
.eb-gps-radek { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.eb-gps-input { background: rgba(255,255,255,0.07); border: 1px solid var(--panel-border); border-radius: 8px; color: var(--text-light); font-size: 1rem; padding: 9px 12px; outline: none; flex: 1; min-width: 150px; }
.eb-gps-input:focus { border-color: var(--accent-gold); }
.eb-gps-hint { color: var(--text-muted); font-size: 0.82rem; font-style: italic; line-height: 1.4; }
.eb-gps-odeslat { font-size: 0.95rem !important; padding: 10px 20px !important; }

/* ── EDITOVAT BUDKU ── */
.eb-modal { max-width: 646px; }
.eb-rok-ctrl { display: flex; align-items: center; gap: 0; }
.eb-rok-btn { background: var(--orange); color: #fff; border: none; border-radius: 8px; width: 48px; height: 48px; font-size: 1.2rem; cursor: pointer; flex-shrink: 0; transition: background 0.15s; touch-action: manipulation; }
.eb-rok-btn:hover { background: var(--orange-dark); }
.eb-rok-btn:active { transform: scale(0.92); }
.eb-rok-val { font-size: 1.4rem; font-weight: 800; color: var(--text-light); padding: 0 18px; min-width: 80px; text-align: center; }
.eb-gps-hlasit-btn { background: none; border: none; color: var(--text-muted); font-size: 0.82rem; cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: color 0.15s; }
.eb-gps-hlasit-btn:hover { color: #ffcc44; }
.eb-gps-form-wrap { background: rgba(255,200,0,0.06); border: 1px solid rgba(255,200,0,0.25); border-radius: 8px; padding: 14px 16px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.eb-gps-form-title { color: var(--accent-gold); font-weight: 700; font-size: 0.95rem; }
.eb-gps-radek { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.eb-gps-input { background: rgba(255,255,255,0.07); border: 1px solid var(--panel-border); border-radius: 6px; color: var(--text-light); font-size: 1rem; padding: 8px 12px; outline: none; flex: 1; min-width: 140px; }
.eb-gps-input:focus { border-color: var(--accent-gold); }
.eb-gps-hint { color: var(--text-muted); font-size: 0.8rem; font-style: italic; line-height: 1.4; }
.eb-gps-odeslat { font-size: 0.95rem !important; padding: 10px 20px !important; }
.admin-dropdown-sec { padding: 10px 20px 4px; font-size: 0.82rem; color: var(--accent-gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-dropdown-budka { font-size: 1.05rem; }
.admin-budka-aktivni { color: var(--accent-gold) !important; font-weight: 700 !important; text-decoration: underline; text-underline-offset: 3px; text-shadow: 0 0 10px rgba(212,160,64,0.7); }

/* Date inputs v tmavém formuláři */
.profil-field input[type="date"] { color-scheme: dark; cursor: pointer; min-width: 165px; }
.profil-field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8) sepia(1) saturate(2) hue-rotate(10deg); cursor: pointer; width: 20px; height: 20px; }
.eb-readonly-info { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; font-size: 0.9rem; color: var(--text-muted); flex-shrink: 0; max-width: 160px; word-break: break-word; text-align: right; }
.eb-chipy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.eb-chip { background: rgba(255,255,255,0.07); border: 2px solid var(--panel-border); color: var(--text-light); border-radius: 24px; padding: 8px 18px; font-size: 0.89rem; cursor: pointer; transition: all 0.15s; }
.eb-chip:hover { background: rgba(255,255,255,0.14); border-color: var(--accent-gold); }
.eb-chip--sel { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 700; }
.eb-chip--jiny { border-style: dashed; color: var(--text-muted); }
.eb-chip--jiny.eb-chip--sel { background: #4a7a30; border-color: #6aaa50; border-style: solid; color: #fff; }
.eb-jiny-wrap { margin-top: 10px; }
.eb-jiny-wrap input { background: rgba(255,255,255,0.07); border: 1px solid var(--panel-border); border-radius: 8px; color: var(--text-light); font-size: 1.1rem; padding: 10px 14px; outline: none; width: 100%; }
.eb-jiny-wrap input:focus { border-color: var(--accent-gold); }
.eb-dalsi-wrap { width: 100%; margin-top: 6px; }
.eb-dalsi-toggle { background: none; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; padding: 4px 0; text-align: left; }
.eb-dalsi-toggle:hover { color: var(--accent-gold); }
.eb-dalsi-chipy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ── ADMIN BANNER ── */
.admin-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 900; background: var(--nav-bg); border-top: 2px solid var(--accent-gold); color: var(--text-light); display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 1.5rem; font-size: 0.9rem; }
.admin-banner strong { color: var(--accent-gold); font-size: inherit; }
.admin-banner button { background: none; border: 1px solid var(--panel-border); color: var(--text-muted); border-radius: 4px; padding: 0.3rem 0.8rem; cursor: pointer; font-size: 0.82rem; }
.admin-banner button:hover { color: var(--text-light); border-color: var(--text-muted); }

/* ── PROFIL FORM TEXTAREA ── */
.profil-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(200,168,120,0.3);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 1.15rem;
  padding: 12px 16px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}
.profil-form textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255,255,255,0.10);
}

/* ── EDITOVAT BUDKU ── */
.eb-naposledy { font-size: 0.8rem; color: rgba(200,168,120,0.55); text-align: right; margin-top: 6px; }
.eb-foto-wrap { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.eb-foto-nahled { max-width: 100%; max-height: 160px; border-radius: 8px; object-fit: cover; }
.eb-foto-placeholder { width: 90px; height: 70px; background: rgba(255,255,255,0.06); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 1.6rem; color: var(--text-muted); }
.eb-foto-placeholder span { font-size: 0.68rem; text-align: center; line-height: 1.2; }
.eb-foto-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eb-foto-btn { display: inline-block; background: var(--orange); color: #fff; border-radius: 8px; padding: 8px 16px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.15s; user-select: none; border: none; }
.eb-foto-btn:hover { background: var(--orange-light); }
.eb-foto-smazat { background: #7a2a2a; }

/* ── SLIB SPRÁVCE ── */
.slib-box { max-width: 600px; width: 94%; padding: 0; text-align: left; max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.slib-header { background: linear-gradient(135deg, #0f2a04, #1e4a0a); padding: 28px 32px 20px; border-bottom: 2px solid var(--accent-gold); position: sticky; top: 0; z-index: 1; }
.slib-header-nadpis { font-size: 1.4rem; font-weight: 800; color: var(--accent-gold); margin-bottom: 6px; }
.slib-header-sub { font-size: 0.9rem; color: var(--text-muted); }
.slib-body { padding: 20px 32px 8px; }
.slib-desatero { list-style: none; counter-reset: slib; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 14px; }
.slib-desatero li { counter-increment: slib; position: relative; padding: 14px 16px 14px 58px; background: rgba(255,255,255,0.03); border: 1px solid rgba(200,150,10,0.2); border-radius: 10px; color: var(--text-muted); font-size: 0.97rem; line-height: 1.6; }
.slib-desatero li::before { content: counter(slib); position: absolute; left: 12px; top: 14px; width: 32px; height: 32px; background: #c8960a; color: #0c1f05; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; }
.slib-desatero li strong { color: var(--text-light); display: block; margin-bottom: 4px; font-size: 1.05rem; }
.slib-nadpis-zavazky { font-size: 1.25rem; font-weight: 800; color: var(--accent-gold); margin-bottom: 14px; letter-spacing: 0.02em; }
.slib-podpis { font-size: 0.92rem; color: var(--text-muted); font-style: italic; text-align: right; margin-top: 4px; margin-bottom: 0; }
.slib-podpis strong { color: var(--accent-gold); }
.slib-footer { padding: 16px 32px 28px; border-top: 1px solid var(--panel-border); position: sticky; bottom: 0; background: var(--panel-bg); }
.slib-souhlas-label { display: flex; align-items: flex-start; gap: 10px; color: var(--text-light); font-size: 1rem; cursor: pointer; margin-bottom: 10px; line-height: 1.45; user-select: none; }
.slib-souhlas-label input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--orange); cursor: pointer; flex-shrink: 0; margin-top: 2px; }
.slib-souhlas--chyba { color: #ff9090 !important; }
.slib-souhlas-error { color: #ff9090; font-size: 0.9rem; margin-bottom: 10px; }
.slib-btn-prijimam { width: 100%; background: var(--orange); color: #fff; border: none; border-radius: 10px; padding: 14px 24px; font-size: 1.15rem; font-weight: 700; cursor: pointer; transition: background 0.2s; font-family: inherit; }
.slib-btn-prijimam:hover { background: var(--orange-light); }
@media (max-width: 600px) {
  .slib-box { width: 100% !important; height: 92svh !important; max-height: none !important; overflow-y: scroll !important; -webkit-overflow-scrolling: touch !important; overscroll-behavior: contain; border-radius: 16px 16px 0 0 !important; }
  .slib-header { padding: 16px 16px 12px; }
  .slib-header-nadpis { font-size: 1.15rem; }
  .slib-body { padding: 14px 16px 8px; }
  .slib-desatero li { padding: 12px 12px 12px 52px; font-size: 0.93rem; }
  .slib-footer { padding: 12px 16px 20px; }
  .slib-souhlas-label { font-size: 1rem; }
  .slib-souhlas-label input[type=checkbox] { width: 24px; height: 24px; }
  .slib-footer { padding: 12px 18px 22px; }
}
.eb-foto-smazat:hover { background: #a33; }

/* ── VELMI ÚZKÉ OBRAZOVKY (360px a méně) ── */
@media (max-width: 360px) {
  .navbar { padding: 0 8px; gap: 4px; }
  .logo-text { display: none; }
  .logo-autor { display: none; }
  .nav-logo { padding: 3px 6px; gap: 6px; border: none; background: none; }
  .btn-login { font-size: 0.78rem; padding: 6px 8px; }
  .btn-login.prihlaseny { max-width: 120px; overflow: hidden !important; text-overflow: ellipsis; white-space: nowrap; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; }
  .stat-value { font-size: 1.6rem; }
  .stat-label { font-size: 0.7rem; }
}

/* ── ADMIN DROPDOWN POZICOVÁNÍ (musí být na konci — přebíjí base rule) ── */
@media (min-width: 901px) {
  .admin-dropdown { position: absolute; top: calc(100% + 8px); right: 0; }
}
@media (max-width: 900px) {
  .admin-dropdown { position: fixed; top: 68px; left: 8px; right: 8px; width: auto; }
}
@media (max-width: 600px) {
  .admin-dropdown { position: fixed; top: 58px; left: 8px; right: 8px; width: auto; }
}
/* ── AKTIVITA SPRÁVCŮ LEADERBOARD ─────────────────────────────────────── */
.akt-radek { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--panel-border); }
.akt-radek:last-child { border-bottom: none; }
.akt-medal { font-size: 1.5rem; line-height: 1; flex-shrink: 0; width: 32px; text-align: center; }
.akt-rank { font-size: 1rem; color: var(--text-muted); flex-shrink: 0; width: 32px; text-align: center; font-weight: 600; }
.akt-info { flex: 1; min-width: 0; }
.akt-jmeno { font-weight: 600; font-size: 1rem; color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.akt-detail { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.akt-prave { text-align: right; flex-shrink: 0; }
.akt-celkem { font-size: 1.4rem; font-weight: 700; color: var(--orange); line-height: 1; }
.akt-datum { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.btn-aktivita-spravcu { background: none; border: none; cursor: pointer; font-size: 1.2rem; padding: 4px 8px; border-radius: 8px; transition: background 0.15s; vertical-align: middle; }
.btn-aktivita-spravcu:hover { background: rgba(255,255,255,0.1); }
.akt-radek:hover { background: rgba(255,255,255,0.04); }
.akt-edity-detail { background: rgba(0,0,0,0.18); border-left: 3px solid var(--orange); margin: 0 8px 4px 8px; border-radius: 0 8px 8px 0; padding: 6px 4px; }
.akt-edit-item { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 5px 10px; font-size: 0.84rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.akt-edit-item:last-child { border-bottom: none; }
.akt-edit-budka { font-weight: 600; color: var(--text-light); white-space: nowrap; }
.akt-edit-zprava { color: var(--text-muted); flex: 1; }
.akt-edit-cas { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; margin-left: auto; }

/* ── ONLINE POPUP (kdo je online) ─────────────────────────────────────── */
.online-popup { position: fixed; z-index: 2000; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: 12px; padding: 10px 14px; min-width: 220px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); }
.op-nadpis { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.op-radek { font-size: 0.95rem; color: var(--text-light); padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.op-radek:last-child { border-bottom: none; }
.op-navstevnik { color: var(--text-muted); font-style: italic; }
.op-badge { display: inline-block; background: rgba(90,180,90,0.2); color: #5db85d; border-radius: 4px; padding: 1px 6px; font-size: 0.78rem; margin-left: 4px; }

/* ── ONLINE PRUH POD INFO-BAREM (jen mobil) ──────────────────────────── */
.online-mobile-bar { display: none; }
@media (max-width: 900px) {
  .online-mobile-bar { display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(0,0,0,0.25); color: var(--text-muted); font-size: 0.82rem; padding: 4px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); cursor: default; }
  .online-mobile-bar strong { color: #7dd444; }
  .online-mobile-bar .online-admins { color: var(--text-muted); font-size: 0.78rem; }
}

/* ── ZPRÁVY SPRÁVCI (dvoucestné zprávy) ───────────────────────────────── */
.zprava-neprectena { border-left: 3px solid #e53935 !important; background: rgba(229,57,53,0.08) !important; }
.zpravy-nav-badge--prazdny { background: transparent !important; color: var(--text-muted) !important; animation: none !important; font-size: 1rem !important; padding: 0 2px !important; }
.zpravy-nova-bublina { display: inline-block; background: #e53935; color: #fff; border-radius: 8px; font-size: 0.72rem; font-weight: 700; padding: 1px 7px; margin-left: 6px; text-transform: uppercase; vertical-align: middle; }
.zadost-btn-odpovedet { background: rgba(212,160,64,0.15); color: var(--accent-gold); border: 1px solid rgba(212,160,64,0.4); border-radius: 6px; padding: 5px 13px; font-size: 0.88rem; cursor: pointer; transition: background 0.15s; min-height: 44px; touch-action: manipulation; }
.zadost-btn-odpovedet:hover { background: rgba(212,160,64,0.28); }
/* Založení slibu ze žádosti o budku — hlavní akce u takové žádosti, proto
   oranžová jako ostatní „udělej to“ tlačítka webu. */
.zadost-btn-slib { background: var(--orange); color: #fff; border: none; border-radius: 6px; padding: 5px 15px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.15s; min-height: 44px; touch-action: manipulation; }
.zadost-btn-slib:hover { background: var(--orange-light); }
/* Dvojice tlačítek pro doplnění místa ve formuláři slibu */
.prislib-gps-radek { display: flex; gap: 8px; flex-wrap: wrap; }
.prislib-gps-radek .zadost-btn-ok { flex: 1 1 46%; margin-top: 0; background: rgba(255,255,255,0.09); border: 1px solid var(--panel-border); }
.prislib-gps-radek .zadost-btn-ok:hover { background: rgba(255,255,255,0.16); }
.prislib-gps-radek .zadost-btn-ok:disabled { opacity: 0.6; cursor: default; }
.zadost-odpoved-wrap { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
/* Bez tohohle přebíjelo `display: flex` atribut hidden a okénko na odpověď
   bylo vidět pořád — i u zpráv, na které se odpovědět nedá. */
.zadost-odpoved-wrap[hidden] { display: none; }
/* Telefon a e-mail v hlavičce žádosti jsou odkazy (tel: / mailto:) */
.zadost-kontakt { color: var(--accent-gold); text-decoration: none; border-bottom: 1px dotted rgba(212,160,64,0.5); }
.zadost-kontakt:hover { border-bottom-style: solid; }
.zadost-odpoved-ta { width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.07); border: 1px solid var(--panel-border); border-radius: 8px; color: var(--text-light); font-size: 0.95rem; padding: 9px 12px; resize: vertical; font-family: inherit; line-height: 1.5; outline: none; }
.zadost-odpoved-ta:focus { border-color: var(--accent-gold); }
.zadost-btn-odeslat-odpoved { align-self: flex-end; background: var(--orange); color: #fff; border: none; border-radius: 6px; padding: 7px 18px; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.zadost-btn-odeslat-odpoved:hover { background: var(--orange-light); }
.popup-edit-napis-btn { background: rgba(212,160,64,0.12); color: var(--accent-gold); border: 1px solid rgba(212,160,64,0.35); }
.popup-edit-napis-btn:hover { background: rgba(212,160,64,0.25); }
.popup-edit-push-btn { background: rgba(80,160,80,0.12); color: #7ed957; border: 1px solid rgba(80,180,80,0.35); }

/* ── VIZITKA SPRÁVCE ── */
.vizitka-modal { max-width: 520px; }
.vizitka-wrap { padding: 24px 28px 28px; }
.vizitka-karta { background: linear-gradient(150deg, #0e2706 0%, #1c4210 60%, #2a6018 100%); border-radius: 16px; padding: 20px 24px 18px; color: #eef4e8; box-shadow: 0 8px 32px rgba(0,0,0,0.5); border: 1px solid rgba(212,160,64,0.35); }
.vizitka-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; border-bottom: 1px solid rgba(212,160,64,0.25); padding-bottom: 14px; }
.vizitka-logo { width: 32px; height: auto; }
.vizitka-brand { font-size: 1.15rem; font-weight: 800; color: #eef4e8; letter-spacing: 0.3px; }
.vizitka-brand-cz { color: var(--accent-gold); }
.vizitka-telo { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.vizitka-foto { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-gold); flex-shrink: 0; }
.vizitka-foto--placeholder { background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.vizitka-info { flex: 1; }
.vizitka-jmeno { font-size: 1.25rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 4px; }
.vizitka-role { font-size: 0.78rem; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 8px; }
.vizitka-budky { font-size: 0.88rem; color: rgba(238,244,232,0.8); }
.vizitka-kontakt { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.88rem; color: rgba(238,244,232,0.75); border-top: 1px solid rgba(212,160,64,0.25); padding-top: 14px; align-items: center; }
.vizitka-web { margin-left: auto; color: var(--accent-gold); font-weight: 700; font-size: 0.82rem; }
.vizitka-qr { width: 64px; height: 64px; border-radius: 6px; flex-shrink: 0; }
.vizitka-akce { display: flex; justify-content: center; margin-top: 18px; }

/* ── TISK VIZITKY ── */
@media print {
  body > *:not(#modalVizitka) { display: none !important; }
  #modalVizitka { position: static !important; background: none !important; backdrop-filter: none !important; padding: 0 !important; display: block !important; }
  .vizitka-modal { box-shadow: none !important; border: none !important; max-width: none !important; width: auto !important; }
  .modal-zavrit, .profil-header, .vizitka-akce { display: none !important; }
  .vizitka-wrap { padding: 0 !important; }
  .vizitka-karta { box-shadow: none !important; border: 1px solid #aaa !important; width: 85mm; min-height: 50mm; page-break-inside: avoid; }
  .vizitka-brand { color: #000 !important; }
  .vizitka-brand-cz { color: #4a7a1a !important; }
  .vizitka-jmeno { color: #fff !important; }
  .vizitka-kontakt, .vizitka-budky, .vizitka-role { color: rgba(238,244,232,0.9) !important; }
}
.popup-edit-push-btn:hover { background: rgba(80,160,80,0.25); }

/* ════════════════════════════════════════════════════════════════
   REDESIGN 2026 — SVĚTLÝ SCROLL LAYOUT
   Mapa nahoře jako hero, obsah ve stohovaných sekcích pod sebou.
   Modaly (login, desatero, vizitka, edit budky) zůstávají tmavé.
   ════════════════════════════════════════════════════════════════ */

/* Světlé pozadí celé stránky, vypnout tmavou scénu */
body { background: linear-gradient(180deg, #f3f9ec 0%, #e9f3df 100%); }
.bg-scene { display: none; }

/* Scrollovací layout místo fixního dashboardu */
#app { height: auto; min-height: 100vh; overflow: visible; display: block; background: transparent; }

/* ── NAVBAR (světlý) ── */
.navbar { background: #ffffff; box-shadow: 0 1px 12px rgba(40,70,30,0.08); height: 120px; }
.nav-logo { border-color: rgba(28,92,16,0.25); background: rgba(28,92,16,0.04); padding: 6px 16px 6px 8px; }
.nav-logo-img { width: 72px; height: 96px; }
.logo-text { color: #1c5c10; font-size: 2.8rem; }
.logo-autor { color: #2a8018; font-size: 0.95rem; }
.nav-links { gap: 4px; }
.nav-links a { color: #2e4a22; border-color: transparent; font-weight: 700; font-size: 1.75rem; padding: 12px 16px; }
.nav-links a:hover, .nav-links a.active { background: #eaf4e2; color: #1c5c10; border-color: transparent; }
.search-box { background: #eef4e8; border-radius: 12px; }
.search-box input { color: #2e3d24; font-size: 1.15rem; width: 180px; padding: 12px 16px; }
.search-box input::placeholder { color: #8aa078; }
.search-box button { color: #6b7d5a; font-size: 1.2rem; }
.search-box button:hover { color: #1c5c10; }
.btn-napsat { background: #eef4e8; color: #2e4a22; border-color: #d6e6c8; font-size: 1.1rem; padding: 12px 20px; }
.btn-napsat:hover { background: #e0eed4; color: #1c5c10; }
/* Návod pro správce – ve světlém navbaru měl světlý text a mizel (stejná úprava jako btn-napsat) */
.btn-navod { background: #eef4e8; color: #2e4a22; border-color: #d6e6c8; font-size: 1.05rem; padding: 12px 18px; }
.btn-navod:hover { background: #e0eed4; color: #1c5c10; }
/* OPRAVA PŘETÉKÁNÍ NA TELEFONECH: blok „světlý navbar" výše nastavuje desktop
   velikost loga (font-size 2.8rem, ikona 72px) jako base pravidla, která přebíjela
   mobilní @media a roztahovala navbar přes okraj displeje na telefonech 361–600 px
   (např. Samsung S21+ = 384px). Na telefonech proto text loga skrýt a ikonu zmenšit
   (stejně jako už funguje u ≤360px). */
@media (max-width: 600px) {
  .navbar { height: 64px; }
  .nav-logo-img { width: 40px; height: 53px; }
  .logo-text, .logo-autor { display: none; }
  .nav-links { top: 64px; }
}
/* Lupa (🔍) na desktopu – byla malá a nenápadná; teď plnohodnotné světlé tlačítko */
@media (min-width: 1101px) {
  .nav-search-mobile-btn { display: flex; align-items: center; justify-content: center; background: #eef4e8; color: #2e4a22; border: 1px solid #d6e6c8; border-radius: 10px; font-size: 1.4rem; min-width: 50px; min-height: 50px; padding: 0 14px; cursor: pointer; transition: background 0.2s; }
  .nav-search-mobile-btn:hover { background: #e0eed4; }
}
.btn-login { font-size: 1.15rem !important; padding: 12px 26px !important; }
.nav-hamburger span { background: #2e4a22; }


/* Světlý navbar výše nastavuje velké desktopové logo jako base pravidlo, takže ho
   @media výš nepřebijí. Na užších oknech (601–1100 px) proto logo zmenšit — jinak
   spolu s tlačítky navbar přetéká ven z okna (od zhruba 800 px dolů). */
@media (max-width: 700px) {
  .nav-logo-img { width: 38px; height: 50px; }
  .logo-text { font-size: 1.3rem; }
  .btn-login { font-size: 0.95rem !important; padding: 9px 14px !important; }
}
@media (max-width: 1100px) {
  .nav-logo-img { width: 44px; height: 58px; }
  .logo-text { font-size: 1.6rem; }
  .logo-autor { font-size: 0.7rem; }
  .navbar { padding: 0 14px; }
}

/* Na širokých oknech ať rozbalené menu není přes celou šířku obrazovky —
   úhledný panel zarovnaný pod hamburger vpravo. Na užších oknech zůstává
   přes celou šířku. */
@media (min-width: 901px) {
  .nav-actions { margin-left: auto; }
  .nav-links { left: auto; right: 16px; width: min(360px, 90vw); border-radius: 0 0 14px 14px; overflow: hidden; }
  .nav-links a { font-size: 1.25rem; padding: 12px 20px; }
}

/* ── INFO BAR (světlý) ── */
.info-bar { background: #eaf4e2; color: #3a4a30; border-bottom: 1px solid #d6e6c8; font-size: 1.35rem; min-height: 54px; padding: 10px 28px; }
.info-bar .bar-right { color: #4a7a2a; font-size: 1.35rem; }
.bar-gratulace { font-size: 1.55rem; font-weight: 800; color: #c05a00; background: #fff3e0; border-radius: 8px; padding: 2px 10px; }
.bar-narozeniny { font-size: 1.45rem; font-weight: 800; }

/* ── ÚVODNÍ SEKCE ── */
.sekce-uvod { background: #f7faf3; padding: 56px 0 48px; }
.uvod-logo-wrap { text-align: center; margin-bottom: 48px; }
.uvod-logo { width: 220px; height: auto; filter: drop-shadow(0 4px 20px rgba(28,92,16,0.13)); }
.uvod-blok { background: #fff; border-radius: 16px; padding: 28px 32px; box-shadow: 0 2px 16px rgba(28,92,16,0.08); border-top: 4px solid #c06000; margin-bottom: 28px; text-align: center; }
.uvod-blok-nadpis { color: #1c5c10; font-size: 1.55rem; font-weight: 700; margin: 0 0 14px; text-align: center; }
.uvod-blok p { color: #3a4a30; line-height: 1.75; margin: 0 0 10px; font-size: 1rem; }
.uvod-blok p:last-child { margin: 0; }
.uvod-mapa-cta { background: linear-gradient(135deg, #1c5c10 0%, #2a8018 100%); color: #fff; border-radius: 16px; padding: 36px 40px; margin-bottom: 28px; text-align: center; }
.uvod-mapa-cta h3 { font-size: 1.75rem; font-weight: 800; margin: 0 0 16px; color: #eef4e8; }
.uvod-mapa-cta > p { color: rgba(255,255,255,0.92); line-height: 1.8; margin: 0 0 16px; font-size: 1.1rem; }
.uvod-mapa-cta ul { color: rgba(255,255,255,0.92); line-height: 1.8; margin: 0 auto 20px; padding-left: 22px; display: inline-block; text-align: left; }
.uvod-mapa-cta li { margin-bottom: 10px; font-size: 1.08rem; }
a.uvod-cta-text { display: inline-block; color: #ffe84a !important; text-decoration: none; font-size: 1.2rem !important; font-weight: 800 !important; background: rgba(255,255,255,0.12); padding: 13px 32px; border-radius: 40px; border: 2px solid rgba(255,255,255,0.35); transition: background 0.2s, transform 0.15s; margin-top: 4px; }
a.uvod-cta-text:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.uvod-teaser { background: #fff; border-radius: 16px; box-shadow: 0 2px 16px rgba(28,92,16,0.08); border-top: 4px solid #1c5c10; overflow: hidden; margin-bottom: 28px; }
.uvod-teaser-player { background: linear-gradient(135deg, #0a1f04 0%, #1a4a08 55%, #0c2804 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 36px 52px; text-align: center; position: relative; min-height: 240px; }
/* Kinematický text (filmové titulky) */
.uvod-teaser-kino { font-size: 1.65rem; font-weight: 700; color: #fff; max-width: 740px; line-height: 1.65; padding: 0 16px; opacity: 0; letter-spacing: 0.01em; text-shadow: 0 2px 20px rgba(0,0,0,0.7); }
.uvod-teaser-kino-title { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,0.38); font-size: 0.88rem; font-style: italic; padding: 0 20px; line-height: 1.5; }
@keyframes kinoCard {
  0%  { opacity:0; transform:translateY(70px) scale(0.62); filter:blur(6px); }
  13% { opacity:1; transform:translateY(0)    scale(1.0);  filter:blur(0);   }
  82% { opacity:1; transform:translateY(-8px)  scale(1.07); filter:blur(0);  }
  100%{ opacity:0; transform:translateY(-28px) scale(1.40); filter:blur(9px);}
}
@keyframes kinoFadeIn {
  0%   { opacity:0; transform:translateY(28px); }
  100% { opacity:1; transform:translateY(0); }
}
@media (max-width:600px) { .uvod-teaser-kino { font-size:1.2rem; } }
/* Video přehrávač promo intra */
.uvod-teaser-video { background: linear-gradient(135deg, #0a1f04 0%, #1a4a08 55%, #0c2804 100%); padding: 22px 22px 16px; text-align: center; }
.uvod-video { width: 100%; max-width: 860px; aspect-ratio: 16 / 9; display: block; margin: 0 auto; border-radius: 10px; background: #000; box-shadow: 0 6px 30px rgba(0,0,0,0.45); }
.uvod-videos { display: flex; gap: 18px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.uvod-videos-item { flex: 1 1 380px; min-width: 0; max-width: 560px; }
.uvod-videos-item .uvod-video { max-width: 100%; }
.uvod-videos--single .uvod-videos-item { flex: 1 1 100%; max-width: 860px; }
.uvod-video-embed { position: relative; width: 100%; max-width: 860px; aspect-ratio: 16 / 9; margin: 0 auto; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 6px 30px rgba(0,0,0,0.45); }
.uvod-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.uvod-teaser-video-title { color: rgba(255,255,255,0.5); font-size: 0.9rem; font-style: italic; margin: 12px 0 2px; padding: 0 16px; line-height: 1.5; }
@media (max-width:600px) { .uvod-teaser-video { padding: 14px 12px 10px; } .uvod-teaser-video-title { font-size: 0.82rem; } }
.uvod-teaser-text { padding: 28px 32px; text-align: center; }
.uvod-teaser-text p { color: #3a4a30; line-height: 1.8; margin: 0 0 14px; font-size: 1rem; }
.uvod-teaser-text p:last-child { margin: 0; }
.uvod-teaser-cta { font-weight: 700 !important; color: #1c5c10 !important; font-size: 1.08rem !important; border-top: 1px solid #e0ead4; padding-top: 14px !important; margin-top: 4px; text-align: center; }
@media (max-width: 600px) {
  .sekce-uvod { padding: 36px 0 28px; }
  .uvod-logo { width: 160px; }
  .uvod-blok, .uvod-video-wrap { padding: 20px 18px; }
  .uvod-mapa-cta { padding: 22px 18px; }
}

/* ── HERO: mapa na celou šířku ── */
.main-content { display: block; min-height: 0; }
.map-wrapper { width: 100%; height: 72vh; min-height: 440px; }
#map { position: absolute; inset: 0; }

/* Fullscreen mapa skryje i nové sekce */
.main-content.mapa-fullscreen ~ .sekce { display: none; }
.main-content.mapa-fullscreen .map-wrapper { height: 100%; }

/* ── SEKCE (společné) ──
   Předefinováním proměnných se přebarví všechny vnitřní komponenty na světlé. */
.sekce {
  --text-light: #2b3a22;
  --text-muted: #6b7d5a;
  --panel-bg: #ffffff;
  --panel-border: #e0ead4;
  --panel-header: #eef6e8;
  --accent-gold: #b07d10;
  padding: 56px 24px;
  color: #2b3a22;
}
.sekce-inner { max-width: 1120px; margin: 0 auto; }
.sekce-nadpis { text-align: center; color: #1c5c10; font-size: 2.1rem; font-weight: 800; margin-bottom: 8px; letter-spacing: 0.2px; }
.sekce-podnadpis { text-align: center; color: #5a6e48; font-size: 1.12rem; margin-bottom: 34px; line-height: 1.5; }

/* ── Fotogalerie ── */
.sekce-galerie { background: #f7faf3; }
.galerie-taby { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.galerie-tab {
  background: #ffffff; color: #3a4a30; border: 1px solid #d3e3c4;
  border-radius: 999px; padding: 9px 20px; font-size: 1rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.galerie-tab:hover { border-color: #7fae5a; }
.galerie-tab.is-active { background: #1c5c10; color: #fff; border-color: #1c5c10; box-shadow: 0 4px 14px rgba(28,92,16,.22); }
/* Fotogalerie je sbalená – seznam se ukáže až na kliknutí. */
.galerie-rozbalit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 auto 22px; padding: 13px 26px; border: 1px solid #a9cc8a;
  border-radius: 12px; background: #fff; color: #1c5c10; font-family: inherit;
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 3px 12px rgba(60,90,40,.10); transition: background .15s, border-color .15s;
}
.galerie-rozbalit:hover { background: #f2f8ec; border-color: #7fae5a; }
.galerie-tlacitka { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 22px; }
.galerie-tlacitka .galerie-rozbalit { margin: 0; }
.galerie-info-btn[hidden] { display: none; }
.galerie-rozbalit-sipka { transition: transform .2s; font-size: 1.1rem; }
.galerie-rozbalit.je-otevreno .galerie-rozbalit-sipka { transform: rotate(180deg); }

/* Seznam budek s fotkami – ne mřížka náhledů: 192 fotek naráz je na mobilu
   zbytečná zátěž, fotka se stáhne až po kliknutí (lightbox). */
.galerie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 10px; }
.galerie-loading, .galerie-prazdno { grid-column: 1 / -1; text-align: center; color: #6b7d5a; padding: 40px 16px; line-height: 1.6; }
.galerie-radek {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
  padding: 10px 14px; border: 1px solid #dfeacf; border-radius: 10px; background: #fff;
  font-family: inherit; font-size: 1.05rem; color: #2e4a22; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.galerie-radek:hover { background: #f2f8ec; border-color: #a9cc8a; }
.galerie-radek:active { transform: scale(.99); }
.galerie-cislo {
  flex-shrink: 0; min-width: 36px; padding: 3px 6px; border-radius: 7px;
  background: #eaf4e2; color: #1c5c10; font-weight: 800; font-size: .95rem; text-align: center;
}
.galerie-nazev { flex: 1; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
.galerie-pocet { flex-shrink: 0; color: #6b7d5a; font-size: .85rem; font-weight: 600; }

/* Lightbox galerie */
.galerie-lightbox {
  position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px;
}
.galerie-lightbox .glb-stred { display: flex; flex-direction: column; align-items: center; max-width: 92vw; max-height: 92vh; }
.galerie-lightbox .glb-img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.galerie-lightbox .glb-info { margin-top: 12px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; color: #fff; }
.galerie-lightbox .glb-nadpis { font-weight: 700; font-size: 1.05rem; }
.galerie-lightbox .glb-pocitadlo { color: #cfe0bf; font-size: .95rem; }
.galerie-lightbox .glb-mapa {
  background: #1c5c10; color: #fff; border: 0; border-radius: 999px; padding: 8px 16px;
  font-size: .95rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.galerie-lightbox .glb-mapa:hover { background: #26761a; }
.galerie-lightbox .glb-zavrit {
  position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff;
  font-size: 2.4rem; line-height: 1; cursor: pointer; z-index: 2;
}
.galerie-lightbox .glb-nav {
  background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 2.2rem;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.galerie-lightbox .glb-nav:hover { background: rgba(255,255,255,.28); }
@media (max-width: 600px) {
  /* Na telefonu dva sloupce – řádky jsou proto užší: menší písmo, užší
     štítek s číslem a delší názvy se zalomí do dvou řádků místo ořezání. */
  .galerie-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .galerie-radek { padding: 8px 9px; gap: 7px; font-size: 0.95rem; align-items: flex-start; }
  .galerie-cislo { min-width: 32px; padding: 2px 5px; font-size: 0.85rem; }
  .galerie-nazev { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
  .galerie-pocet { font-size: 0.8rem; }
  .galerie-pocet-ikona { display: none; }
  .galerie-rozbalit { width: 100%; font-size: 1rem; padding: 12px 16px; }
  .galerie-tlacitka .galerie-info-btn { width: auto; flex: 1 1 40%; }
  /* Fotka má 92vw, takže šipky vedle ní by vypadly z obrazovky –
     na telefonu proto leží přes okraje fotky. */
  .galerie-lightbox .glb-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 44px; height: 44px; font-size: 1.8rem; background: rgba(0,0,0,.45);
  }
  .galerie-lightbox .glb-prev { left: 6px; }
  .galerie-lightbox .glb-next { right: 6px; }
  .galerie-lightbox { padding: 8px; gap: 2px; }
}

/* ── STATISTIKY ── */
/* Dvě dlaždice (Celkem budek, Správci) — „Aktivní budky“ zrušeny 9/2026,
   „Osídlené budky“ skryty 10/2026. Užší mřížka, ať nezbyde prázdné místo. */
.sekce-stats .stats-grid { grid-template-columns: repeat(2, 1fr); max-width: 540px; margin: 0 auto 22px; gap: 18px; padding: 0; }
.sekce-stats .stat-item { background: #ffffff; border: 1px solid #e0ead4; border-top: 4px solid var(--orange); border-radius: 14px; box-shadow: 0 4px 16px rgba(60,90,40,0.07); padding: 20px 14px; }
.sekce-stats .stat-value { color: #1c3d10; }
.sekce-stats .stat-label { color: #6b7d5a; }
.sekce-stats .stat-item:nth-child(1) { background: #fffbe8; }
.sekce-stats .stat-item:nth-child(1) .stat-value { color: #b89400; }
.sekce-stats .stat-box { background: #ffffff; border: 1px solid #e0ead4; box-shadow: 0 4px 16px rgba(60,90,40,0.06); border-radius: 12px; }
.sekce-stats .navst-item { background: #f1f7ea; }
.sekce-stats .navst-cislo { color: #2a8018; }
.sekce-stats .online-pocet-panel { border-top-color: #e0ead4; }
.sekce-stats .online-pocet-panel strong { color: #2a8018; }
.sekce-stats .druh-item { background: #f4f9ef; }
.sekce-stats .druh-item:hover { background: #e9f3df; }
.sekce-stats .druhy-filter-reset { background: #fdeceb; color: #d04540; border-color: #f3c9c7; }
.sekce-dvojsloupec { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-bottom: 18px; }
.sekce-stats .stat-aktualizace { text-align: center; }
.sekce-stats .pridat-na-plochu { display: block; background: #f1f7ea; border: 1px solid #e0ead4; border-radius: 12px; margin-top: 18px; }
.sekce-stats .oblibene-pc { background: #f1f7ea; border-color: #e0ead4; }

/* ── Výzva: pomozte pokrýt budkami celou mapu ── */
.sekce-vyzva-mapa { background: transparent; }
.vyzva-mapa-box {
  max-width: 820px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #eef7e4 100%);
  border: 1px solid #d6e6c8; border-top: 4px solid #1c5c10;
  border-radius: 16px; padding: 34px 28px;
  box-shadow: 0 4px 20px rgba(28, 92, 16, 0.10);
}
.vyzva-mapa-ikona { font-size: 2.6rem; line-height: 1; margin-bottom: 8px; }
.vyzva-mapa-nadpis { color: #1c5c10; font-size: 1.6rem; margin: 0 0 12px; }
.vyzva-mapa-text { color: #3a4a30; line-height: 1.75; font-size: 1.06rem; margin: 0 auto 22px; max-width: 680px; }
.vyzva-mapa-btn {
  display: inline-block; background: #1c5c10; color: #eef4e8; text-decoration: none;
  font-weight: 700; padding: 13px 26px; border-radius: 999px; font-size: 1.02rem;
  box-shadow: 0 3px 14px rgba(28, 92, 16, 0.28); transition: background .2s, transform .1s;
}
.vyzva-mapa-btn:hover { background: #164a0c; transform: translateY(-1px); }
@media (max-width: 600px) {
  .vyzva-mapa-box { padding: 26px 18px; }
  .vyzva-mapa-nadpis { font-size: 1.35rem; }
  .vyzva-mapa-text { font-size: 1rem; }
  .vyzva-mapa-btn { display: block; }
}

/* ── PODPOROVATELÉ (světlé) ── */
.partners-section {
  --text-light: #2b3a22;
  --text-muted: #6b7d5a;
  --accent-gold: #b07d10;
  background: #eef6e8;
  border-top: 1px solid #d6e6c8;
  padding: 48px 24px;
}
.partners-section h3 { color: #1c5c10; }
.partners-section .partner-item { background: #ffffff; color: #2e4a22; border: 1px solid #d6e6c8; box-shadow: 0 2px 10px rgba(60,90,40,0.07); }
.partners-section .partner-item:hover { background: #f6fbf0; box-shadow: 0 4px 16px rgba(60,90,40,0.12); }
.partners-section .podekovani-wrap { border-top-color: #d6e6c8; }
.partners-section .podekovani-item { background: #ffffff; color: #2e4a22; border: 1px solid #d6e6c8; box-shadow: 0 2px 8px rgba(60,90,40,0.06); }
.partners-section .podekovani-item--ma-text { background: #fff9e8; border-color: #e3c574; }
.partners-section .podekovani-item--ma-text:hover,
.partners-section .podekovani-item--ma-text.pod-open { background: #fff3cc; border-color: #c8960a; box-shadow: 0 4px 12px rgba(176,125,16,0.18); }

/* Responsivita redesignu */
@media (max-width: 760px) {
  .sekce { padding: 40px 16px; }
  .sekce-nadpis { font-size: 1.7rem; }
  .sekce-stats .stats-grid { grid-template-columns: 1fr 1fr; }
  .sekce-dvojsloupec { grid-template-columns: 1fr; }
  .map-wrapper { height: 60vh; min-height: 360px; }
}

/* ── Mobil: mapa na celou obrazovku (schová statistiky a horní lišty) ── */
#btn-mapa-cele { display: none; }
@media (max-width: 600px) {
  /* Viditelné tlačítko na spuštění celoobrazovkové mapy */
  #btn-mapa-cele {
    display: inline-flex; align-items: center; gap: 6px;
    position: absolute; top: 10px; right: 10px; z-index: 1200;
    background: rgba(28, 92, 16, 0.94); color: #eef4e8;
    border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px;
    padding: 9px 15px; font-size: 0.9rem; font-weight: 700;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  body.mapa-cele #btn-mapa-cele { display: none; }

  /* Výchozí (ne-fullscreen) výška mapy – rozumná, ať se dá stránka pohodlně scrollovat
     (velkou mapu má na starosti tlačítko „Celá obrazovka") */
  .map-wrapper { height: 56vh; min-height: 320px; }

  /* Fullscreen: schovej horní lišty a statistiky, mapu roztáhni přes celý displej.
     Mapa se stane pevnou (fixed) vrstvou – spolehlivě vyplní displej bez ohledu
     na výšky rodičů i pořadí sekcí v DOM. */
  body.mapa-cele { overflow: hidden; }
  body.mapa-cele .navbar,
  body.mapa-cele .info-bar,
  body.mapa-cele .online-mobile-bar,
  body.mapa-cele .sekce-stats { display: none !important; }
  body.mapa-cele .map-wrapper {
    position: fixed !important; inset: 0 !important;
    height: auto !important; min-height: 0 !important; z-index: 1100 !important;
  }
}

/* Fullscreen mapa přes celý viewport – platí i na desktopu (dřív jen mobil ≤600px):
   skryje horní lišty i sekci se statistikami a roztáhne mapu přes celou plochu monitoru. */
body.mapa-cele { overflow: hidden; }
body.mapa-cele .navbar,
body.mapa-cele .info-bar,
body.mapa-cele .online-mobile-bar,
body.mapa-cele .sekce-stats { display: none !important; }
body.mapa-cele .map-wrapper {
  position: fixed !important; inset: 0 !important;
  height: auto !important; min-height: 0 !important; z-index: 1100 !important;
}

/* Nejužší telefony: ve dvou sloupcích zbývá na název ~100 px, tak o kousek
   menší písmo a užší štítek s číslem – jinak se láme i „Theodorka“. */
@media (max-width: 400px) {
  .galerie-radek { font-size: 0.9rem; padding: 8px 7px; gap: 6px; }
  .galerie-cislo { min-width: 27px; padding: 2px 4px; font-size: 0.8rem; }
}

/* ── ŽIVÁ POLOHA (navigační režim mapy) ── */

/* Popsaná pilulka pod ovládáním zoomu (styl sjednocen s „Celá obrazovka") —
   samotná ikonka se v mapě ztrácela a nebylo poznat, k čemu je. */
.gps-btn-wrap {
  border: none !important; box-shadow: none !important; margin-top: 10px !important;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.gps-btn-wrap a.gps-btn {
  display: inline-flex !important; align-items: center; gap: 7px;
  width: auto !important; height: auto !important; line-height: 1.1 !important;
  padding: 10px 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4);
  background: rgba(28,92,16,0.94); color: #eef4e8;
  font-family: 'Segoe UI', system-ui, sans-serif; font-size: 0.9rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
}
.gps-btn-wrap a.gps-btn:hover { background: #1c5c10; color: #fff; }
/* Leaflet zaobluje v liště první a poslední tlačítko po svém
   (.leaflet-touch .leaflet-bar a:first-child) — pilulky by pak měly
   nahoře uříznuté rohy. Vlastní zaoblení proto vynutíme. */
.gps-btn-wrap a.gps-btn,
.gps-btn-wrap a.jizda-btn { border-radius: 999px !important; }
.gps-btn-ikona { display: block; flex: none; }
.gps-btn-ikona svg { display: block; }
.gps-btn-popis { display: block; }

/* Hledám — probliknutí, ať je vidět, že se něco děje */
.gps-btn--hleda .gps-btn-ikona { animation: gps-btn-blika 1.1s ease-in-out infinite; }
/* Sleduji — světlá pilulka se zeleným rámečkem, jasně odlišená od vypnutého stavu */
.gps-btn-wrap a.gps-btn--sleduji,
.gps-btn-wrap a.gps-btn--sleduji:hover {
  background: #f4fbef; color: #1c5c10; border-color: #1c5c10;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35), inset 0 0 0 2px #1c5c10;
}
/* Pozastaveno — oranžová jako ostatní „udělej něco" tlačítka v mapě */
.gps-btn-wrap a.gps-btn--volne,
.gps-btn-wrap a.gps-btn--volne:hover {
  background: var(--orange, #e06820); color: #fff; border-color: rgba(255,255,255,0.5);
}
@keyframes gps-btn-blika { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* Modrá tečka s kuželem směru jízdy */
.gps-poloha { position: relative; width: 26px; height: 26px; transform-origin: 50% 50%; transition: transform 0.35s ease-out; }
.gps-poloha-jadro {
  position: absolute; top: 50%; left: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px;
  background: #1a73e8; border: 2.5px solid #fff; border-radius: 50%;
  box-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
.gps-poloha-puls {
  position: absolute; top: 50%; left: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px;
  background: rgba(26,115,232,0.4); border-radius: 50%;
  animation: gps-puls 2s ease-out infinite;
}
@keyframes gps-puls {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0; }
}
/* Kužel = trojúhelník nad tečkou, ukazuje směr jízdy */
.gps-poloha-smer {
  position: absolute; top: -1px; left: 50%; margin-left: -6.5px;
  width: 0; height: 0;
  border-left: 6.5px solid transparent;
  border-right: 6.5px solid transparent;
  border-bottom: 12px solid #1a73e8;
  filter: drop-shadow(0 0 1.5px rgba(255,255,255,0.95));
}
.gps-poloha--bez-smeru .gps-poloha-smer { display: none; }

/* Kruh přesnosti GPS */
.gps-presnost { fill: #1a73e8; fill-opacity: 0.12; stroke: #1a73e8; stroke-opacity: 0.35; stroke-width: 1; }

/* Proužek s přesností / rychlostí */
/* ── Jízda nahoru ──────────────────────────────────────────────
   Kontejner mapy se otočí o −azimut (směr jízdy míří vzhůru) a je
   o --mb-prekryv větší na všechny strany, aby po otočení nezůstaly
   v rozích prázdné plochy; přesah ořízne .map-wrapper. Ovládání a
   ikony budek dostanou zpětné otočení (--mb-zpet), takže zůstanou
   nohama dolů. Podrobnosti viz blok „JÍZDA NAHORU" v js/mapa.js. */
.map-wrapper.mb-jizda { overflow: hidden; }

.map-wrapper.mb-jizda #map {
  /* !important kvůli mobilním pravidlům `#map { height: 100% !important }` —
     bez toho by mapa vyrostla jen do šířky a dole by v rozích chyběla. */
  inset: calc(-1 * var(--mb-prekryv, 0px)) !important;
  width: auto !important;
  height: auto !important;
  transform: rotate(var(--mb-uhel, 0deg));
  transform-origin: 50% 50%;
  transition: transform 0.45s ease-out;
}

/* Ovládání se posadí zpátky na viditelnou část mapy a narovná se. */
.map-wrapper.mb-jizda .leaflet-control-container {
  position: absolute;
  inset: var(--mb-prekryv, 0px);
  transform: rotate(var(--mb-zpet, 0deg));
  transform-origin: 50% 50%;
  transition: transform 0.45s ease-out;
  /* Vrstva teď leží přes celou mapu – sama nesmí brát dotyky, jinak
     prsty nedosáhly na mapu (nešlo posouvat ani klepnout na budku).
     Samotná tlačítka (.leaflet-control) dotyky berou dál. */
  pointer-events: none;
}

.map-wrapper.mb-jizda .budka-marker,
.map-wrapper.mb-jizda .budka-dot,
.map-wrapper.mb-jizda .budka-cluster { transition: transform 0.45s ease-out; }
.map-wrapper.mb-jizda .budka-marker { transform: rotate(var(--mb-zpet, 0deg)) scale(var(--budka-scale, 1)); }
.map-wrapper.mb-jizda .budka-marker:hover { transform: rotate(var(--mb-zpet, 0deg)) scale(calc(var(--budka-scale, 1) * 1.25)); }
.map-wrapper.mb-jizda .budka-dot { transform: rotate(var(--mb-zpet, 0deg)) scale(var(--budka-scale, 1)); }
.map-wrapper.mb-jizda .budka-dot:hover { transform: rotate(var(--mb-zpet, 0deg)) scale(calc(var(--budka-scale, 1) * 1.35)); }
.map-wrapper.mb-jizda .budka-cluster { transform: rotate(var(--mb-zpet, 0deg)); }
.map-wrapper.mb-jizda .leaflet-marker-icon:hover > .budka-cluster { transform: rotate(var(--mb-zpet, 0deg)) scale(1.1); }

/* Popisek u kurzoru by v otočené mapě ležel našikmo — za jízdy stejně
   není k ničemu (je jen pro myš), tak ho schováme. */
.map-wrapper.mb-jizda .leaflet-tooltip { display: none; }

/* Tlačítko „podle jízdy" — menší sourozenec tlačítka polohy, hned pod ním. */
.gps-btn-wrap a.jizda-btn {
  display: inline-flex !important; align-items: center; gap: 6px;
  width: auto !important; height: auto !important; line-height: 1.1 !important;
  padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4);
  background: rgba(58,32,8,0.92); color: #fff8ee;
  font-family: 'Segoe UI', system-ui, sans-serif; font-size: 0.82rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
}
.gps-btn-wrap a.jizda-btn:hover { background: #3a2008; color: #fff; }
.gps-btn-wrap a.jizda-btn--zap,
.gps-btn-wrap a.jizda-btn--zap:hover {
  background: #fff6e6; color: #8a4b07; border-color: #8a4b07;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35), inset 0 0 0 2px #8a4b07;
}
.gps-btn-wrap a.jizda-btn--skryto { display: none !important; }
.jizda-btn-ikona { display: block; flex: none; font-size: 1rem; line-height: 1; }
.jizda-btn-popis { display: block; }

@media (max-width: 600px) {
  .gps-btn-wrap a.jizda-btn { font-size: 0.76rem; padding: 7px 11px; }
}

.gps-info {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  margin-bottom: 8px !important;
}

.gps-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.95); border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  padding: 6px 14px; font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.8rem; font-weight: 600; color: #3a2008; white-space: nowrap;
}
.gps-chip-sep { color: #b09070; }

/* Proužek „nejbližší budka". Sbalený je to malá pecka s šipkou a
   vzdáleností, rozbalený doplní číslo, název a výzvu ke klepnutí. */
.gps-blizko {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  background: rgba(58, 32, 8, 0.92); color: #fff8ee; border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  padding: 6px 13px; font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.8rem; font-weight: 600; white-space: nowrap;
  max-width: calc(100vw - 24px);
  transition: background 0.2s ease;
}
.gps-blizko:hover, .gps-blizko:focus-visible { background: rgba(58, 32, 8, 1); outline: none; }
.gps-blizko:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,0.65); }
.gps-blizko-ikona { font-size: 0.95em; }
.gps-blizko-sipka {
  display: inline-block; line-height: 1; color: #ffd79a; font-size: 1.05em;
}
.gps-blizko--otevrena { white-space: normal; }
.gps-blizko-text { flex: 1 1 auto; }
.gps-blizko-akce {
  flex: 0 0 auto; padding-left: 8px; margin-left: 2px;
  border-left: 1px solid rgba(255,248,238,0.35); color: #ffd79a;
}
/* Rozbalený proužek: nahoře co a kam, pod tím tlačítka (dřív vše v jednom
   řádku a text se na telefonu lámal po slovech) */
.gps-blizko--otevrena { flex-direction: column; align-items: stretch; gap: 7px; padding: 9px 12px; text-align: left; }
.gps-blizko-hlava { display: flex; align-items: center; gap: 6px; }
.gps-blizko-vzd { margin-left: auto; padding-left: 8px; white-space: nowrap; font-weight: 800; color: #ffd79a; }
.gps-blizko-tlacitka { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.gps-blizko--otevrena .gps-blizko-akce {
  border: 1px solid rgba(255,248,238,0.45); border-left: 1px solid rgba(255,248,238,0.45);
  border-radius: 999px; padding: 6px 12px; margin: 0; min-height: 32px;
  display: inline-flex; align-items: center; white-space: nowrap;
}
.gps-blizko--otevrena .gps-blizko-akce--hl { background: #ffd79a; color: #3a2008; border-color: #ffd79a; }
.leaflet-container a.gps-blizko-akce { color: #ffd79a; text-decoration: none; }
/* Navigace k vybrané budce – zelený proužek, ať se nesplete s „nejbližší" */
.gps-blizko--cil { background: rgba(28, 92, 16, 0.95); }
.gps-blizko--cil:hover, .gps-blizko--cil:focus-visible { background: rgba(28, 92, 16, 1); }
/* Čára od polohy k budce, ke které se naviguje */
.gps-cara { filter: drop-shadow(0 0 2px rgba(255,255,255,0.9)); }

/* Bublina budky: navigace k ní */
.popup-navigace { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 22px 12px; border-top: 1px solid #e8dcc8; }
.popup-nav-btn { background: #1c5c10; color: #fff; border: none; border-radius: 999px; padding: 9px 16px; font-size: 0.95rem; font-weight: 700; cursor: pointer; min-height: 44px; touch-action: manipulation; }
.popup-nav-btn:hover { background: #164a0c; }
.leaflet-container a.popup-nav-google, .popup-nav-google { color: #1c5c10; font-weight: 600; font-size: 0.92rem; }
@media (max-width: 600px) { .popup-navigace { padding: 8px 12px 10px; } .popup-nav-btn { font-size: 0.9rem; padding: 8px 14px; } }

@media (max-width: 600px) {
  .gps-chip { font-size: 0.75rem; padding: 5px 11px; max-width: calc(100vw - 24px); }
  .gps-blizko { font-size: 0.75rem; padding: 5px 11px; }
  .gps-blizko--otevrena { max-width: min(260px, calc(100vw - 24px)); }
}

/* Vynucená změna hesla po přechodu na serverové ověřování.
   Záměrně informativní tón, ne varovný – není to chyba uživatele. */
.zh-vynuceno {
  margin: 0 24px 4px;
  padding: 12px 14px;
  border: 1px solid #cfe0c8;
  border-left: 4px solid #6a9c58;
  border-radius: 8px;
  background: #f4f9f1;
  color: #3f5738;
  font-size: 13.5px;
  line-height: 1.5;
}

/* Únik z vynuceného modalu, když se nové heslo nedaří uložit. */
.profil-btn-zrusit {
  margin-left: 10px;
  padding: 10px 16px;
  border: 1px solid var(--panel-border, #ccc);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}
.profil-btn-zrusit:hover { background: rgba(127, 127, 127, 0.12); }

/* Přepínač velikosti popisků mapy („Aa“) — pod tlačítky zoomu */
.popisky-btn-wrap a.popisky-btn { width: 34px; height: 34px; line-height: 34px; font-size: 15px; font-weight: 800; color: #1c5c10; text-align: center; text-decoration: none; }
.popisky-btn small { font-size: 11px; font-weight: 800; margin-left: 1px; }
.leaflet-touch .popisky-btn-wrap a.popisky-btn { width: 44px; height: 44px; line-height: 44px; font-size: 17px; }
