/* Luftek: oblikovni sistem (žetoni) in nadzorna plošča Domov. Naloži se za app.css.
   ŽETONI: razmik 4/8/12/16/24 px (--sp-1…5), oblike --r (kartice 18 px; v ravni temi 8 px), pisava Noto Sans, lestvica naslovov:
   h1 2,1 rem · .dh (naslov kartice) 1,05 rem · besedilo 15 px · pomožno .78 rem. Barve stanja zraka: EEA EAQI (js/util.js, dokumentirano v ANALIZA_FAZA0.md).
   Barva nikoli ni edino sporočilo: ob njej je beseda ali številka. */
:root { --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --tap: 44px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* navigacija: zgoraj (računalnik), spodaj (telefon) */
.topnav { display: flex; }
.tn { min-height: 36px; }
@media (max-width: 1100px) { .tn .nl { display: none; } .tn { padding: .45rem .6rem; } }
@media (max-width: 760px) {
  .topnav { display: none; }
  .bottomnav { grid-template-columns: repeat(5, 1fr); }
  .bn { min-height: var(--tap); justify-content: center; font-size: .66rem; }
  .bn .ni svg { width: 22px; height: 22px; }
}
@media (min-width: 901px) { .bottomnav { display: none; } }
/* tablica (do 900 px): spodnja navigacija kot na telefonu, v glavi ni vrstice (preprečuje vodoravni preliv) */
@media (min-width: 761px) and (max-width: 900px) {
  .topnav { display: none; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: var(--card); border-top: 1px solid var(--line); padding: .25rem .2rem max(.25rem, env(safe-area-inset-bottom)); }
  .bn { flex-direction: column; gap: 0; padding: .3rem 0; border-radius: 12px; font-size: .7rem; font-weight: 600; min-height: var(--tap); justify-content: center; }
  main.page { padding-bottom: calc(5.2rem + env(safe-area-inset-bottom)); } footer.foot { padding-bottom: 6rem; }
}
.bn.on, .tn.on { color: var(--accent2); }

/* Domov */
.dplace { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); }
.dpwho { display: flex; align-items: center; gap: var(--sp-2); position: relative; }
.dpick { position: relative; }
.dpick > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); padding: 0 var(--sp-4); border-radius: 999px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 1.05rem; }
.dpick > summary::-webkit-details-marker { display: none; }
.dpick .dname { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmenu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 16rem; max-width: 90vw; display: grid; padding: var(--sp-2); gap: 2px; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.ditem { text-align: left; background: none; border: 0; color: var(--fg); font: inherit; padding: .6rem .7rem; min-height: var(--tap); border-radius: 10px; cursor: pointer; }
.ditem:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.dgrp { padding: .4rem .7rem 0; color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.dstar { width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.dstar.on { color: #e0a100; }
.dlink { color: var(--accent2); font-weight: 600; text-decoration: none; font-size: .9rem; }
.dlink:hover { text-decoration: underline; }
.dwarn { margin: 0; font-size: .85rem; color: var(--warn); }
.dgrid { display: grid; gap: var(--sp-4); align-items: start; }
.dcol { display: grid; gap: var(--sp-4); min-width: 0; }
@media (min-width: 960px) { .dgrid { grid-template-columns: 1.25fr 1fr; gap: var(--sp-5); } }
.dh { font-size: 1.05rem; margin: 0 0 var(--sp-2); }

.dhero { border-left: 6px solid var(--lvl); display: grid; gap: var(--sp-2); padding: var(--sp-5) var(--sp-4); background: linear-gradient(135deg, color-mix(in srgb, var(--lvl) 14%, var(--card)), var(--card) 65%); }
.dkicker { margin: 0; font-size: .8rem; font-weight: 700; color: var(--muted); }
.dlevel { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-3); }
.dl { display: inline-block; font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; padding: 0 .4em .05em; border-radius: .3em; background: var(--lvl); color: var(--lvl-fg); text-transform: capitalize; }
.dnum { font-weight: 700; color: var(--muted); }
.dscale { position: relative; padding-top: 7px; max-width: 28rem; }
.dbar { display: grid; grid-template-columns: repeat(6, 1fr); height: 7px; border-radius: 4px; overflow: hidden; }
.dpin { position: absolute; top: 0; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--fg); border-bottom: 0; transition: left .5s var(--ease); }
.dadvice { margin: var(--sp-2) 0 0; font-size: 1.12rem; font-weight: 600; }
.dsub { margin: 0; font-size: .9rem; } .dsub.dlink { display: inline-block; }
.dmeta { margin: var(--sp-1) 0 0; font-size: .78rem; color: var(--muted); line-height: 1.4; }

.dpolgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
@media (max-width: 520px) { .dpolgrid { grid-template-columns: repeat(2, 1fr); } }
.dpol { display: grid; gap: 2px; padding: var(--sp-3); border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--c); color: var(--fg); text-decoration: none; min-height: var(--tap); transition: transform .15s, box-shadow .15s; }
.dpol:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dpol.top { background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.dpn { font-weight: 700; font-size: .85rem; color: var(--muted); }
.dpv { font-size: 1.7rem; line-height: 1.1; }
.dpu { color: var(--muted); font-size: .72rem; } .dpl { font-weight: 700; font-size: .78rem; }

.dcells { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; margin: var(--sp-2) 0; }
.dcell { height: 30px; border-radius: 4px; display: grid; place-items: center; font-size: .6rem; overflow: hidden; }
@media (max-width: 520px) { .dcells { grid-template-columns: repeat(12, 1fr); } .dcell:nth-child(n+13) { display: none; } }

.dhhead { display: flex; align-items: center; justify-content: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-2); text-align: left; } .dhhead img { border-radius: 10px; } .dhhead h2 { margin: 0; }
.dlead { font-size: 1rem; margin: 0 0 var(--sp-3); }
.dq { border-top: 1px solid var(--line); padding: var(--sp-2) 0; } .dq summary::after { content: "＋"; margin-left: auto; color: var(--accent2); } .dq[open] summary::after { content: "−"; } .dq summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; } .dq p { margin: var(--sp-2) 0 0; color: var(--muted); font-size: .92rem; }

.dwhead { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); }
.dwnow { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin: var(--sp-2) 0; }
.dtemp { font-size: 2.6rem; line-height: 1; }
.dwfacts { list-style: none; padding: 0; margin: 0 0 0 auto; display: grid; gap: 2px; font-size: .88rem; color: var(--muted); } .dwfacts b { color: var(--fg); }
.dhours { display: flex; gap: var(--sp-2); overflow-x: auto; padding: var(--sp-1) 0; }
.dhours .hcell { display: grid; justify-items: center; gap: 2px; min-width: 52px; color: var(--fg); } .dhours .hcell small { color: var(--muted); font-size: .72rem; }
.ddays { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); margin-top: var(--sp-2); }
.dday { display: grid; justify-items: center; gap: 2px; padding: var(--sp-2); border-radius: 12px; border: 1px solid var(--line); text-align: center; } .dday small { font-size: .72rem; }

.dtiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
@media (max-width: 420px) { .dtiles { grid-template-columns: 1fr; } }
.dtile, .dmap { display: grid; gap: 4px; align-content: start; padding: var(--sp-3) var(--sp-4); border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--fg); text-decoration: none; min-height: var(--tap); transition: transform .15s, box-shadow .15s; }
.dtile:hover, .dmap:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dtile small:first-child { color: var(--muted); font-weight: 700; }
.dmapbar { display: grid; grid-template-columns: repeat(6, 1fr); height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: var(--sp-2); }
@media (prefers-reduced-motion: reduce) { .dpol, .dtile, .dmap, .dpin { transition: none; } .dpol:hover, .dtile:hover, .dmap:hover { transform: none; } }

/* brez WebGL2: umirjeno obvestilo namesto velikega besedila čez kontrole */
.map.nomap { display: grid; place-items: center; text-align: center; padding: 4rem var(--sp-5) var(--sp-5); font-size: .95rem; line-height: 1.45; color: var(--muted); background: var(--card2); }
.fullmap .map.nomap { align-content: center; }

/* Luftek mlajši (js/mascot.js): lik, stanja, oblaček */
.mascot { display: inline-block; line-height: 0; flex: none; }
.mascot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mascot .eyes { animation: mblink 6s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mblink { 0%, 94%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(.1); } }
.mascot .bob { animation: mbob 5s ease-in-out infinite; }
@keyframes mbob { 50% { transform: translateY(-1.5px); } }
.mascot[data-mood="warning"] .badge { animation: mpulse 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mpulse { 50% { transform: scale(1.12); } }
.mascot[data-mood="greet"] .hand { animation: mwave 1.1s ease-in-out 3; transform-box: fill-box; transform-origin: 0% 100%; }
@keyframes mwave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-24deg); } 70% { transform: rotate(14deg); } }
.mascot .tuft { animation: mtuft 4.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 20% 100%; }
@keyframes mtuft { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-9deg); } }
.mascot .spark { animation: mtwinkle 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mtwinkle { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .mascot * { animation: none !important; } }
.mbubble { display: flex; gap: var(--sp-3); align-items: flex-start; }
.mbubble .mtxt { position: relative; flex: 1; min-width: 0; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: var(--sp-2) var(--sp-3); }
.mbubble .mtxt::before { content: ""; position: absolute; left: -7px; top: 16px; width: 12px; height: 12px; background: inherit; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.mbubble[data-mood="warning"] .mtxt { border-color: color-mix(in srgb, var(--warn) 65%, var(--line)); }
.mbubble .mwho { margin: 0 0 2px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.mbubble .mbody { font-size: .95rem; line-height: 1.45; }
.mbubble .mbody p { margin: 0 0 var(--sp-1); }
.kind[data-kind="interp"] { color: #0f766e; } .kind[data-kind="advice"] { color: #64748b; }

/* Zrak: preprost / strokovni prikaz */
.modebar { display: grid; gap: var(--sp-3); }
[data-aqmode="simple"] .expertonly { display: none; }
.modeseg { justify-self: start; }
.expert h3.charttitle { margin: var(--sp-3) 0 var(--sp-2); }
.xrow { display: flex; flex-wrap: wrap; align-items: end; gap: var(--sp-3); margin: var(--sp-2) 0; }
.xpick { display: grid; gap: 2px; font-size: .78rem; color: var(--muted); font-weight: 700; } .xpick select { font: inherit; min-height: 40px; max-width: 100%; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); padding: 0 var(--sp-2); }
.xchips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.xchip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .85rem; }
.xchip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); } .xchip button { background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; min-width: 28px; min-height: 28px; }
.xhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2) var(--sp-4); margin: var(--sp-3) 0 var(--sp-2); font-size: .92rem; }
.xscroll { overflow-x: auto; } .xtab { width: 100%; border-collapse: collapse; font-size: .92rem; }
.xtab th, .xtab td { text-align: left; padding: var(--sp-2) var(--sp-2); border-bottom: 1px solid var(--line); vertical-align: top; }
.xtab thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.xtab th small, .xtab td small { color: var(--muted); font-weight: 400; } .xtab .block { display: block; } .xtab td.num b { font-size: 1.25rem; }
.trend[data-dir="up"] { color: var(--err); font-weight: 700; } .trend[data-dir="down"] { color: #0f766e; font-weight: 700; }
.expert .mbubble { margin: var(--sp-3) 0; } .xhealth { margin-top: var(--sp-3); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }

/* Domov: dnevni povzetek */
.dsum { margin-top: var(--sp-3); } .dsum dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px var(--sp-4); margin: 0; font-size: .92rem; } .dsum dt { color: var(--muted); font-weight: 700; } .dsum dd { margin: 0; }
.dhelper .mbubble { margin-bottom: var(--sp-2); }
.wmascot { margin-bottom: var(--sp-2); }
.card.error .mascot { margin-bottom: var(--sp-2); }
.events .cardhead { align-items: center; gap: var(--sp-3); justify-content: flex-start; } .events .cardhead small { margin-left: auto; }

/* Vodnik po zemljevidu: vrstica nad zemljevidom, ki mu odvzame višino (ne prekriva ničesar) */
.mguide { position: relative; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); padding: var(--sp-2) var(--gut); background: var(--card); border-bottom: 1px solid var(--line); }
.mguide[hidden] { display: none; }
.mguide .mbubble { flex: 1 1 18rem; align-items: center; } .mguide .mbubble .mtxt { background: none; border: 0; padding: 0; } .mguide .mbubble .mtxt::before { display: none; }
.mguide .mwho { display: none; } .mguide .mbody p { margin: 2px 0 0; font-size: .86rem; } .mstep { color: var(--muted); font-size: .78rem; }
.mnav { display: flex; gap: var(--sp-2); }
.fullmap .map.big { height: calc(100svh - var(--hdr, 58px) - var(--bnav, 0px) - var(--mguide, 0px)); }
.guidebtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--accent2); font-weight: 800; font-size: 1.05rem; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0,0,0,.55); }
@media (max-width: 760px) { .mguide .mbody p { font-size: .8rem; } .mguide .mascot { display: none; } }

.xtab th small { display: block; }

/* Zemljevid: kartica postaje, legenda simbolov, opozorila, moja lokacija */
.animmap { position: relative; }
.scard { position: absolute; z-index: 20; left: 12px; top: 64px; bottom: calc(var(--tl, 80px) + 10px); width: min(23rem, calc(100% - 24px)); display: flex; flex-direction: column;
  background: var(--card2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.schead { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); }
.sctitle { flex: 1; min-width: 0; cursor: default; } .sctitle b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sctitle small { color: var(--muted); font-size: .76rem; }
.scx, .scmin { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; } .scmin { display: none; }
.scbody { padding: var(--sp-3); overflow-y: auto; display: grid; gap: var(--sp-2); align-content: start; }
.scidx, .sctime, .scsrc { margin: 0; font-size: .86rem; } .sctime.stale b, .sctime.stale { color: var(--warn); }
.sctab { width: 100%; border-collapse: collapse; font-size: .9rem; } .sctab th, .sctab td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); } .sctab td.num b { font-size: 1.1rem; }
.sch3 { margin: var(--sp-2) 0 0; font-size: .92rem; } .scchart .uchart { margin: 0; }
.scsay .mbubble .mtxt { padding: var(--sp-1) var(--sp-2); } .scsay .mbody p { margin: 0; font-size: .84rem; }
.scact { display: flex; gap: var(--sp-2); }
@media (max-width: 760px) {
  .scard { left: 6px; right: 6px; top: auto; width: auto; bottom: calc(var(--tl, 80px) + 6px); max-height: 46%; border-radius: 16px 16px 12px 12px; }
  .scmin { display: block; } .scard.min .scbody { display: none; } .scard.min { max-height: none; }
}
.stlegend { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: .76rem; color: var(--muted); margin-top: var(--sp-1); }
.stlegend:empty { display: none; }
.sy { display: inline-block; width: 12px; height: 12px; vertical-align: -2px; background: #50ccaa; border: 2px solid #1f3a52; box-sizing: border-box; }
.sy.c { border-radius: 50%; } .sy.d { transform: rotate(45deg) scale(.85); } .sy.s { border-radius: 50%; background: #fff; border: 2px dashed #50ccaa; } .sy.x { border-radius: 50%; background: #cbd5e1; border-color: #64748b; }
.alertpanel { position: absolute; z-index: 14; top: 58px; left: 12px; width: min(24rem, calc(100% - 24px)); max-height: 45%; overflow: auto; padding: var(--sp-3); border-radius: 14px; background: var(--card2); border: 1px solid var(--line); box-shadow: var(--shadow); }
.alertpanel[hidden] { display: none; } .alertpanel ul { margin: var(--sp-2) 0; padding-left: 1.1rem; font-size: .86rem; }
.kind[data-kind="official"] { color: #b45309; }
.stbtn.alertbtn { border-color: #f59e0b; }
.myloc { width: 16px; height: 16px; border-radius: 50%; background: #0ea5e9; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(14,165,233,.28); }
.locbtn { font-size: 1.15rem; }

/* Faza 4: Moj Luftek, Luftek danes, Vprašaj Lufta, deljenje, opozorila */
.bellbtn { position: relative; text-decoration: none; } .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--err); color: #fff; font-size: .68rem; display: grid; place-items: center; padding: 0 4px; }
.badge[hidden] { display: none; }
.alerttoast { position: fixed; z-index: 1800; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); max-width: min(32rem, calc(100vw - 20px)); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-radius: 12px; background: var(--card2); border: 1px solid var(--line); border-left: 5px solid #38bdf8; box-shadow: var(--shadow); font-size: .9rem; }
.alerttoast[data-sev="warning"] { border-left-color: #f59e0b; } .alerttoast button { background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
@media (min-width: 761px) { .alerttoast { bottom: 24px; } }
.moj { display: grid; gap: var(--sp-4); max-width: 52rem; } .mojsec { display: grid; gap: var(--sp-3); }
.mplaces { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); } .mplaces li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.mpa { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.maddrow { display: flex; flex-wrap: wrap; gap: var(--sp-2); } .maddrow input { flex: 1 1 14rem; min-height: 40px; }
.msuggest { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } .msuggest[hidden] { display: none; } .msuggest li { padding: var(--sp-2) var(--sp-3); cursor: pointer; min-height: var(--tap); display: flex; align-items: center; gap: 6px; } .msuggest li:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.mrule { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); padding: var(--sp-1) 0; border-bottom: 1px solid var(--line); } .mrule.vertical { display: grid; justify-items: start; }
.mrule select { min-height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; padding: 0 var(--sp-2); }
.opt.check.big { font-size: 1.05rem; }
.alist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.aitem { padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line); border-left: 5px solid #38bdf8; border-radius: 12px; background: var(--card); } .aitem[data-sev="warning"] { border-left-color: #f59e0b; }
.ahead { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; } .areason { margin: 4px 0; font-size: .92rem; }
.evsev { font-size: .7rem; font-weight: 800; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 20%, transparent); }

.dtoday { display: grid; gap: var(--sp-3); border-left: 6px solid var(--accent); }
.dtl { display: grid; grid-template-columns: max-content 1fr; gap: 4px var(--sp-4); margin: 0; font-size: .93rem; } .dtl dt { color: var(--muted); font-weight: 700; } .dtl dd { margin: 0; }
.dtadvice p { margin: 0 0 4px; font-size: .9rem; } .dtfoot { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.sharewrap { position: relative; display: inline-flex; align-items: center; gap: var(--sp-2); } .sharemenu { position: absolute; z-index: 40; top: 100%; left: 0; margin-top: 6px; display: grid; min-width: 12rem; padding: var(--sp-1); background: var(--card2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); } .sharemenu[hidden] { display: none; }
.sharemenu button { text-align: left; background: none; border: 0; color: var(--fg); font: inherit; padding: .5rem .7rem; min-height: var(--tap); border-radius: 8px; cursor: pointer; } .sharemenu button:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); } .sharemsg { color: var(--muted); }
.dhero .sharewrap { margin-top: var(--sp-2); }

.lhead, .lchat { display: grid; gap: var(--sp-3); max-width: 52rem; }
.lthread { display: grid; gap: var(--sp-3); } .lmsg { display: flex; gap: var(--sp-3); align-items: flex-start; } .lmsg.me { justify-content: flex-end; background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 14px; padding: var(--sp-2) var(--sp-3); justify-self: end; max-width: 85%; }
.lans { background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: var(--sp-2) var(--sp-3); display: grid; gap: 4px; } .lans p { margin: 0; font-size: .95rem; } .lwarn { color: var(--warn); }
.lform { display: flex; gap: var(--sp-2); } .lq { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; padding: 0 var(--sp-3); }
.lchips { display: flex; flex-wrap: wrap; gap: var(--sp-2); } .lchips .lchip { min-height: 36px; text-align: left; white-space: normal; }

/* Faza 5: dostopnost (WCAG 2.2 AA) */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* barva ravni je poudarek, besedilo ostane v običajni barvi (kontrast): beseda/številka + podčrtna oznaka */
.lvlword { color: var(--fg); box-shadow: inset 0 -.42em 0 color-mix(in srgb, var(--c, transparent) 55%, transparent); padding: 0 .12em; border-radius: 2px; }
/* oznake vrste podatka: v svetli temi temnejše barve (≥ 4,5:1 na beli kartici) */
[data-theme="light"] { --kind-measured: #0369a1; --kind-analysis: #0f766e; --kind-forecast: #6d28d9; --kind-derived: #92400e; --kind-missing: #475569; --kind-stale: #b91c1c; --kind-official: #92400e; }
[data-theme="light"] .kind[data-kind="interp"] { color: #0f766e; } [data-theme="light"] .kind[data-kind="advice"] { color: #475569; } [data-theme="light"] .kind[data-kind="official"] { color: #92400e; }
[data-theme="light"] .kind.meas { color: #0369a1; }
[data-theme="light"] .tmin { color: #1d4ed8; } [data-theme="light"] .tmax { color: #c2410c; } [data-theme="light"] .rain { color: #0369a1; } [data-theme="light"] .gust { color: #c2410c; }
.pill { color: var(--on-accent, #fff); } .pill.ghost { color: var(--fg); }
/* tapne površine: samostojne povezave in povzetki vsaj 24 px (WCAG 2.5.8), kjer so v stavku, veljajo izjeme */
.dlink, a.back, .dtfoot a, summary { display: inline-flex; align-items: center; min-height: 24px; }
details > summary { min-height: 28px; }
footer.foot a { display: inline-block; padding: 3px 2px; min-height: 24px; }

/* urni trak vremena (Kraj): ne podeduje belega besedila iz agro traku (v svetli temi je bilo neberljivo) */
.hourstrip.wxstrip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(4.2rem, 1fr); overflow-x: auto; gap: .3rem; }
.wxstrip .hcell { background: var(--card2); color: var(--fg); border: 0; border-radius: 12px; padding: .45rem .2rem; min-height: 0; display: grid; justify-items: center; gap: .1rem; font-size: .9rem; }
.wxstrip .hcell b { font-size: 1.05rem; } .wxstrip .hcell small { color: var(--muted); font-size: .72rem; } .wxstrip .hcell .wind { color: var(--muted); }
.seg.tabs { flex-wrap: wrap; max-width: 100%; }

.lans .mwho { margin: 0; font-size: .74rem; font-weight: 700; color: var(--muted); }

/* Slike Luftka mlajšega (js/gfx.js) */
.gfxcard .gfximg { display: block; width: 100%; height: auto; border-radius: 10px; }

/* Zemljevid je primarni pogled: poudarjena povezava v navigaciji, obvestilo o zastareli sceni, odčitek kot list */
/* gumb Zemljevid v glavi je enak ostalim (brez modre podlage); okrogli poudarek ostane samo v spodnji navigaciji na telefonu */
.bn.prim .ni { display: grid; place-items: center; width: 40px; height: 40px; margin-top: -14px; border-radius: 50%; background: var(--accent); color: var(--on-accent, #fff); box-shadow: var(--shadow); }
.bn.prim.on { background: none; }
.mapnotice { position: absolute; z-index: 30; top: 56px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); padding: .4rem .8rem; border-radius: 10px;
  background: var(--card); border: 1px solid var(--kind-stale); color: var(--fg); font-size: .8rem; box-shadow: var(--shadow); }
.probecard .probeval { font-size: 1.5rem; margin: 0 0 .2rem; }
.probecard .sctitle small { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .fullmap .maptitle { display: block; } .mapnotice { top: 100px; } }

/* Povzetek Slovenije (mediana + najslabša postaja) */
.aqnow { max-width: min(22rem, calc(100% - 80px)); }
.aqnow .aqmed, .aqnow .aqworst { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; font-size: .78rem; color: var(--fg); text-decoration: none; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; text-align: left; }
.aqnow .aqworst span { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scact { display: flex; flex-wrap: wrap; gap: .4rem; }
@media (max-width: 760px) { .fullmap .aqnow { top: 100px; bottom: auto; right: 8px; left: 8px; max-width: none; padding: .25rem .5rem; flex-wrap: wrap; flex-direction: row; display: flex; gap: .2rem .6rem; align-items: center; }
  .fullmap .aqnow small { display: block; flex: 1 1 100%; font-size: .6rem; } }

/* Časovnica: ‹ › koraki, jasna ura; vrstica slojev (vodoravno drsenje) */
.fullmap .animmap .timeline { grid-template-columns: auto auto 1fr auto auto auto; gap: .5rem; }
.tlstep { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card2); color: var(--fg); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.tlstep:hover { border-color: var(--accent); }
.fullmap .tlabel b { font-size: .95rem; }
.layerbar { position: absolute; z-index: 25; top: 54px; left: 10px; right: 56px; display: flex; gap: .35rem .8rem; overflow-x: auto; scrollbar-width: none; padding: 2px; pointer-events: none; }
.layerbar::-webkit-scrollbar { display: none; }
.layerbar > * { pointer-events: auto; }
.lgrp { display: flex; align-items: center; gap: .25rem; flex: none; padding: .2rem .4rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lgrp > small { color: var(--muted); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 0 .2rem; }
.lgrp .lchip { white-space: nowrap; text-decoration: none; min-height: 30px; display: inline-flex; align-items: center; }
.layerbar[hidden] { display: none; }
@media (min-width: 761px) {
  .animmap:has(.layerbar) .scard { top: 100px; }
  .animmap:has(.scard) .layerbar { left: 390px; }
  .fullmap .aqnow { top: 100px; }
  .fullmap .insight { top: 100px; }
}
@media (max-width: 760px) {
  .layerbar { top: 52px; left: 6px; right: 6px; }
  .fullmap .animmap .timeline { grid-template-columns: auto auto 1fr auto; row-gap: .15rem; padding: .35rem .55rem; bottom: calc(40px + env(safe-area-inset-bottom)); }
  .fullmap .animmap .tlabel { grid-column: 1 / span 3; grid-row: 2; display: flex; align-items: baseline; gap: .5rem; text-align: left; }
  .fullmap .animmap #tlnow { grid-column: 4; grid-row: 2; }
  .fullmap .animmap #tlnext { grid-column: 4; grid-row: 1; }
  .fullmap .animmap .tl { grid-column: 3; grid-row: 1; }
  .tlstep { width: 32px; height: 32px; }
  .fullmap .maptitle { bottom: 140px; }
  .fullmap .animmap .maplibregl-ctrl-bottom-right, .fullmap .animmap .maplibregl-ctrl-bottom-left { bottom: 136px; }
  .mapnotice { top: 140px; }
  .fullmap .aqnow { top: 96px; }
}

/* ============ poliranje: temna tema zemljevida, tapni cilji, list, mikrointerakcije ============ */
/* temna tema: zemljevid temnejši, kontrolniki, kartice in legende svetlejši in kontrastnejši od podlage */
[data-theme="dark"] .fullmap { --card: #243447; --card2: #243447; --line: #455d75; --fg: #f4f7fa; --muted: #c0cbd8; --shadow: 0 2px 6px rgba(0, 0, 0, .55), 0 8px 22px rgba(0, 0, 0, .45); }
[data-theme="dark"] .fullmap .map.big { background: #090e14; }
[data-theme="dark"] .fullmap .maplibregl-ctrl-group { background: #243447; border-color: #455d75; }
[data-theme="dark"] .fullmap .maplibregl-ctrl-group button { filter: invert(1) hue-rotate(180deg) brightness(1.15); }
[data-theme="dark"] .fullmap .maplibregl-ctrl-attrib { background: rgba(36, 52, 71, .88) !important; color: #c0cbd8; }
[data-theme="dark"] .fullmap .maplibregl-ctrl-attrib a { color: #dbe6f2; }
.legendbox { color: var(--fg); }
.legendbox .gticks span, .legendbox small { color: var(--muted); }
/* legenda ne ujame potez: zemljevid pod njo ostane premakljiv do roba, vsebina legende pa je še vedno klikljiva */
.fullmap .legendbox { pointer-events: none; } .fullmap .legendbox abbr { pointer-events: auto; }

/* mikrointerakcije */
.lchip, .tlstep, .play, .btn, .scx, .scmin, .stbtn, .aqworst, details.dd > summary { transition: background-color .15s, border-color .15s, transform .1s, box-shadow .15s; }
.lchip:hover, .tlstep:hover, .stbtn:hover { border-color: var(--accent); }
.lchip:active, .tlstep:active, .play:active, .btn:active, .stbtn:active { transform: scale(.96); }
.lchip.on { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent); }
.scard { transition: transform .2s var(--ease), max-height .2s var(--ease); }
.scx, .scmin { min-width: 36px; min-height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--fg); cursor: pointer; font-size: 1.15rem; }
.scx:hover, .scmin:hover { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.loading { display: grid; justify-items: center; gap: .6rem; padding: 3rem 1rem; color: var(--muted); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: luftspin .8s linear infinite; }
@keyframes luftspin { to { transform: rotate(360deg); } }
button, input, select, textarea { font-family: inherit; }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } .scard, .lchip, .tlstep { transition: none; } }

/* tapni cilji ≥ 44 px na dotik in telefonu */
@media (max-width: 760px), (pointer: coarse) {
  .lchip, .tlstep, .play, .stbtn, .guidebtn, .scx, .scmin, details.dd > summary, .aqworst, #tlnow, .scact .btn { min-height: 44px; }
  .tlstep, .play, .scx, .scmin, .guidebtn { min-width: 44px; }
  .lchip { padding-left: .8rem; padding-right: .8rem; }
  .maplibregl-ctrl-group button { width: 44px; height: 44px; }
  .scard .btn { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 760px) {
  .layerbar { top: 52px; }
  .lgrp { padding: .1rem .3rem; }
  .fullmap .aqnow { top: 112px; }
  .mapnotice { top: 164px; }
  .fullmap .animmap .timeline { padding: .25rem .5rem; }
  .fullmap .maptitle { bottom: 164px; }
  .fullmap .animmap .maplibregl-ctrl-bottom-right, .fullmap .animmap .maplibregl-ctrl-bottom-left { bottom: 158px; }
  .scard .schead { position: relative; padding-top: 16px; }
  .scard .schead::before { content: ""; position: absolute; top: 6px; left: 50%; width: 44px; height: 4px; border-radius: 2px; background: var(--line); transform: translateX(-50%); }
  .scard { max-height: 62%; }
  .scard.min { max-height: none; }
}
@media (max-width: 760px), (pointer: coarse) {
  .fullmap .lgrp .lchip, .fullmap .stbtn, .fullmap details.dd > summary, .fullmap .guidebtn, .fullmap .infobtn, .fullmap .locbtn { min-height: 44px; min-width: 44px; }
  .fullmap .animmap .timeline .play, .fullmap .animmap .tlstep { width: 44px; height: 44px; }
  .iconbtn, #geobtn, .geobtn { min-width: 44px; min-height: 44px; }
  .fullmap .animmap .tl input { height: 44px; margin: 0; }
  #cookie-note button, .wcard button { min-height: 44px; }
  .fullmap .maptoolbar { gap: .3rem; }
  .fullmap .maptoolbar .infobtn { width: 44px; height: 44px; }
}

/* popravki po pregledu žive strani */
/* legenda simbolov postaj ne sme povečati strani (prej je izrinila legendo lestvice pod rob zaslona) */
.fullmap .stlegend { position: absolute; left: 10px; bottom: 112px; z-index: 40; max-width: 290px; margin: 0; padding: .35rem .6rem; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--fg); gap: .1rem .8rem; font-size: .72rem; pointer-events: none; }
.fullmap .stlegend .muted { flex: 1 1 100%; }
@media (max-width: 760px) { .fullmap .stlegend { display: none; } }
/* vrstica slojev na računalniku je zbitejša, da se vsi sloji vidijo brez drsenja */
@media (min-width: 761px) and (pointer: fine) {
  .layerbar { gap: .3rem .5rem; }
  .lgrp { padding: .15rem .3rem; gap: .15rem; }
  .lgrp .lchip { padding: .22rem .55rem; font-size: .8rem; min-height: 28px; }
  .lgrp > small { font-size: .58rem; }
}

/* ================= Windy-style: zemljevid je skoraj edini element; razlage in povzetki samo na zahtevo ================= */
.fullmap { --tlh: 92px; }
/* časovnica: velika, na dnu, glavni kontrolnik */
.fullmap .animmap .timeline { left: 50%; right: auto; transform: translateX(-50%); width: min(1100px, calc(100% - 20px)); bottom: 10px; padding: .55rem 1rem; gap: .8rem;
  grid-template-columns: auto auto 1fr auto auto auto; border-radius: 16px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); }
.fullmap .animmap .timeline .play { width: 52px; height: 52px; font-size: 1.15rem; }
.fullmap .animmap .tlstep { width: 44px; height: 44px; font-size: 1.5rem; }
.fullmap .animmap .tl input { height: 44px; margin: 0; }
.fullmap #tl { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; cursor: pointer; }
.fullmap #tl::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--fg) 24%, transparent); }
.fullmap #tl::-moz-range-track { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--fg) 24%, transparent); }
.fullmap #tl::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--accent); border: 3px solid var(--card); box-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.fullmap #tl::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--card); box-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.fullmap .tlabel b { font-size: 1.35rem; line-height: 1.1; white-space: nowrap; }
.fullmap .tlabel small { font-size: .85rem; }
.fullmap #tlnow { min-height: 44px; padding: 0 1rem; font-size: .95rem; }
.fullmap .tlmarks { font-size: .7rem; }

/* legenda: droben kartica nad časovnico (ne čez celo širino); opomba o modelu se pokaže ob odprtem vodniku */
.fullmap .legendbox { left: 10px; right: auto; bottom: calc(var(--tlh) + 22px); width: auto; max-width: min(520px, calc(100% - 80px)); border: 1px solid var(--line); border-radius: 10px; padding: .3rem .5rem; background: color-mix(in srgb, var(--card) 88%, transparent); display: grid; grid-template-columns: 1fr; }
.fullmap .legendbox > small { display: none; }
.fullmap.guideopen .legendbox > small { display: block; grid-column: 1; grid-row: auto; text-align: left; max-width: none; }
.fullmap .maptitle { bottom: calc(var(--tlh) + 22px); }
.fullmap .animmap .maplibregl-ctrl-bottom-right, .fullmap .animmap .maplibregl-ctrl-bottom-left { bottom: calc(var(--tlh) + 20px); }
.fullmap .stlegend { display: none; bottom: calc(var(--tlh) + 80px); }
.fullmap.guideopen .stlegend { display: flex; }

/* sloji: minimalna vrstica brez oznak skupin; nastavitve so za gumbom ☰ */
.lgrp > small { display: none; }
.lgrp { padding: .15rem .25rem; }
.fullmap .layerdd > summary { min-width: 44px; justify-content: center; }
.fullmap .layerdd > summary .ddcur, .fullmap .layerdd > summary .ddarrow { display: none; }
.fullmap .layerdd > summary::before { content: "☰"; font-size: 1.1rem; line-height: 1; }
.fullmap .layerdd .msec[data-group="links"] .mchips { display: flex; flex-wrap: wrap; gap: .3rem; }

/* povzetek Slovenije: droben čip, razgrne se na klik */
.fullmap .aqnow { top: 100px; right: 56px; left: auto; display: block; padding: 0; background: none; border: 0; box-shadow: none; max-width: none; }
.aqchip { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .15rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
.aqchip b { padding: 0 .45rem; border-radius: 6px; font-size: .8rem; }
.aqchip i { font-style: normal; color: var(--muted); }
.aqnow .aqmore { display: none; position: absolute; top: calc(100% + 6px); right: 0; width: max-content; max-width: 280px; gap: .3rem; padding: .55rem .75rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.aqnow.open .aqmore { display: grid; }
.aqnow.open .aqchip i { transform: rotate(180deg); }

/* kartica ob kliku: čista, poltransparentna */
.scard { background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

@media (max-width: 760px) {
  .fullmap { --tlh: 116px; }
  .fullmap .animmap .timeline { bottom: calc(8px + env(safe-area-inset-bottom)); width: calc(100% - 12px); padding: .4rem .6rem; grid-template-columns: auto auto 1fr auto; }
  .fullmap .animmap .timeline .play { width: 48px; height: 48px; }
  .fullmap .tlabel b { font-size: 1.2rem; }
  .fullmap .legendbox { left: 6px; max-width: calc(100% - 12px); bottom: calc(var(--tlh) + 14px); }
  .fullmap .maptitle { display: none; }
  .fullmap .animmap .maplibregl-ctrl-bottom-right, .fullmap .animmap .maplibregl-ctrl-bottom-left { bottom: calc(var(--tlh) + 60px); }
  .fullmap .aqnow { top: 108px; right: 8px; left: auto; bottom: auto; }
  .mapnotice { top: 150px; }
}
.fullmap .legendbox { min-width: min(380px, calc(100% - 20px)); }
.fullmap .legendbox .steps, .fullmap .legendbox .scale { width: 100%; }
@media (max-width: 760px) { .fullmap .layerdd { flex: none; } .fullmap .layerdd > summary { width: 44px; padding: 0; } }

/* ================= postaje glavni element; ožja, mirna časovnica ================= */
.fullmap { --tlh: 72px; }
.fullmap .animmap .timeline { width: min(760px, calc(100% - 20px)); padding: .3rem .8rem; gap: .6rem; border-radius: 14px; bottom: 10px; }
.fullmap .animmap .timeline .play { width: 40px; height: 40px; font-size: .95rem; }
.fullmap .animmap .tlstep { width: 36px; height: 36px; font-size: 1.25rem; }
.fullmap .animmap .tl input { height: 36px; }
.fullmap #tl::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background:
  linear-gradient(90deg, transparent calc(var(--now, 50%) - 1.5px), var(--fg) calc(var(--now, 50%) - 1.5px), var(--fg) calc(var(--now, 50%) + 1.5px), transparent calc(var(--now, 50%) + 1.5px)),
  linear-gradient(90deg, color-mix(in srgb, var(--kind-analysis) 60%, transparent) var(--now, 50%), color-mix(in srgb, var(--kind-forecast) 60%, transparent) var(--now, 50%)); }
.fullmap #tl::-moz-range-track { height: 10px; border-radius: 5px; background:
  linear-gradient(90deg, transparent calc(var(--now, 50%) - 1.5px), var(--fg) calc(var(--now, 50%) - 1.5px), var(--fg) calc(var(--now, 50%) + 1.5px), transparent calc(var(--now, 50%) + 1.5px)),
  linear-gradient(90deg, color-mix(in srgb, var(--kind-analysis) 60%, transparent) var(--now, 50%), color-mix(in srgb, var(--kind-forecast) 60%, transparent) var(--now, 50%)); }
.fullmap #tl::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -6px; }
.fullmap .tlabel b { font-size: 1.05rem; }
.fullmap .tlabel small { font-size: .75rem; }
.fullmap .tlabel small.past { color: var(--kind-analysis); }
.fullmap #tlnow { min-height: 36px; padding: 0 .7rem; font-size: .85rem; }
.fullmap .tlmarks { font-size: .62rem; opacity: .8; }
.sccmp { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .4rem 0; }
.sccmp > div { display: grid; gap: .1rem; padding: .45rem .55rem; border-radius: 10px; background: color-mix(in srgb, var(--fg) 6%, transparent); }
.sccmp b { font-size: 1.1rem; }
.sccmp small { color: var(--muted); font-size: .68rem; line-height: 1.25; }
.pnear { display: grid; gap: .25rem; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.pnear small { color: var(--muted); }
.pnrow { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; }
.fullmap .legendbox { bottom: calc(var(--tlh) + 20px); }
.fullmap .maptitle { bottom: calc(var(--tlh) + 20px); }
.fullmap .animmap .maplibregl-ctrl-bottom-right, .fullmap .animmap .maplibregl-ctrl-bottom-left { bottom: calc(var(--tlh) + 18px); }
.fullmap .stlegend { bottom: calc(var(--tlh) + 78px); }

@media (max-width: 760px) {
  .fullmap { --tlh: 66px; }
  .fullmap .animmap .timeline { width: calc(100% - 12px); padding: .25rem .5rem; grid-template-columns: auto 1fr auto auto; gap: .5rem; bottom: calc(6px + env(safe-area-inset-bottom)); }
  .fullmap .animmap .tlstep { display: none; }
  .fullmap .animmap .timeline .play { width: 44px; height: 44px; grid-column: 1; grid-row: 1; }
  .fullmap .animmap .tl { grid-column: 2; grid-row: 1; }
  .fullmap .animmap .tlabel { grid-column: 3; grid-row: 1; display: grid; text-align: right; }
  .fullmap .animmap #tlnow { grid-column: 4; grid-row: 1; min-height: 44px; }
  .fullmap .tlabel b { font-size: .95rem; }
  .fullmap .legendbox { bottom: calc(var(--tlh) + 14px); }
  .fullmap .animmap .maplibregl-ctrl-bottom-right, .fullmap .animmap .maplibregl-ctrl-bottom-left { bottom: calc(var(--tlh) + 52px); }
}

/* ================= ena vrstica zgoraj, ožja časovnica, spodnji trak z lestvico in viri ================= */
.fullmap { --strip: 34px; --tlh: 96px; }
/* zgornja vrstica: ☰ · Zrak ▾ · Vreme ▾ · Ostalo ▾ · Postaje · ⚠ · ◎ · ? */
.fullmap .animcard > .maptoolbar { top: 10px; left: 10px; right: 230px; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: .35rem; overflow: visible; }
.fullmap .layerbar { display: none; }
.fullmap .grpdd { position: relative; flex: none; }
.fullmap .grpdd > summary { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; min-height: 40px; padding: 0 .75rem; border-radius: 999px; cursor: pointer; list-style: none; white-space: nowrap;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; font-size: .86rem; color: var(--fg); }
.fullmap .grpdd > summary::-webkit-details-marker { display: none; }
.fullmap .grpdd .gv { font-weight: 600; color: var(--accent2); }
.fullmap .grpdd .gv:empty { display: none; }
.fullmap .grpdd .ddarrow { font-style: normal; color: var(--muted); font-size: .7rem; }
.fullmap .grpdd.active > summary { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent), var(--shadow); }
.fullmap .grpdd .ddmenu { position: absolute; top: calc(100% + 6px); left: 0; right: auto; min-width: 0; max-width: none; width: max-content; padding: .5rem; border-radius: 12px; z-index: 60;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fullmap .grpdd .mchips { display: flex; flex-direction: column; align-items: stretch; gap: .25rem; }
.fullmap .grpdd .lchip { text-align: left; border-radius: 10px; min-height: 40px; display: flex; align-items: center; text-decoration: none; }
.fullmap .layerdd > summary { min-width: 40px; min-height: 40px; padding: 0; }
.fullmap .stbtn, .fullmap .guidebtn, .fullmap .locbtn { min-height: 40px; }
/* povzetek Slovenije v isti vrstici, desno ob kontrolah */
.fullmap .aqnow { top: 10px; right: 56px; }
.fullmap .insight { top: 62px; }
.mapnotice { top: 62px; }
@media (min-width: 761px) { .animmap:has(.layerbar) .scard, .fullmap .scard { top: 64px; } }

/* časovnica: ozka, brez vrstice napisov */
.fullmap .tlmarks { display: none; }
.fullmap .animmap .timeline { width: min(600px, calc(100% - 20px)); padding: .2rem .65rem; gap: .5rem; bottom: calc(var(--strip) + 8px); border-radius: 12px; }
.fullmap .animmap .timeline .play { width: 36px; height: 36px; font-size: .85rem; }
.fullmap .animmap .tlstep { width: 30px; height: 30px; font-size: 1.05rem; }
.fullmap .animmap .tl input { height: 28px; }
.fullmap #tl::-webkit-slider-runnable-track { height: 8px; }
.fullmap #tl::-moz-range-track { height: 8px; }
.fullmap #tl::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -5px; }
.fullmap .tlabel b { font-size: .92rem; }
.fullmap .tlabel small { font-size: .68rem; }
.fullmap #tlnow { min-height: 30px; padding: 0 .6rem; font-size: .78rem; }

/* spodnji trak: lestvica (levo) in viri (desno), nemoteče */
.fullmap .legendbox { position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-width: none; min-width: 0; height: var(--strip); display: flex; align-items: center; gap: .8rem; padding: 0 .75rem calc(0px + env(safe-area-inset-bottom));
  border: 0; border-top: 1px solid var(--line); border-radius: 0; background: color-mix(in srgb, var(--card) 90%, transparent); overflow: hidden; }
.fullmap .legendbox .scale, .fullmap .legendbox .steps, .fullmap .legendbox .gticks { flex: none; width: auto; margin: 0; }
.fullmap .legendbox .scale { display: flex; gap: 2px; }
.fullmap .legendbox .scale span { padding: .1rem .5rem; font-size: .66rem; border-radius: 4px; white-space: nowrap; }
.fullmap .legendbox .steps { display: flex; width: 220px; height: 10px; }
.fullmap .legendbox .steps i { flex: 1; display: block; }
.fullmap .legendbox .gticks { display: flex; gap: .55rem; font-size: .62rem; color: var(--muted); white-space: nowrap; }
.fullmap .legendbox > small, .fullmap.guideopen .legendbox > small { display: block; flex: 1 1 0; min-width: 0; margin: 0; text-align: right; font-size: .62rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: none; grid-column: auto; }
.fullmap .maptitle { bottom: calc(var(--strip) + 62px); }
.fullmap .animmap .maplibregl-ctrl-bottom-right, .fullmap .animmap .maplibregl-ctrl-bottom-left { bottom: calc(var(--strip) + 2px); }
.fullmap .maplibregl-ctrl-attrib { font-size: 9px; }
.fullmap .stlegend { bottom: calc(var(--tlh) + 6px); }

@media (max-width: 760px) {
  .fullmap { --strip: 30px; --tlh: 92px; }
  .fullmap .animcard > .maptoolbar { right: 0; left: 0; top: 8px; padding: 0 8px; overflow-x: auto; scrollbar-width: none; pointer-events: auto; }
  .fullmap .animcard > .maptoolbar::-webkit-scrollbar { display: none; }
  .fullmap .animcard > .maptoolbar > * { flex: none; }
  .fullmap .grpdd { position: static; }
  .fullmap .grpdd .ddmenu { position: fixed; left: 8px; right: 8px; top: calc(var(--hdr, 52px) + 56px); width: auto; z-index: 1000; }
  .fullmap .grpdd .mchips { display: grid; grid-template-columns: 1fr 1fr; }
  .fullmap .aqnow { top: 58px; right: 8px; left: auto; }
  .mapnotice { top: 102px; }
  .fullmap .animmap .timeline { width: calc(100% - 12px); bottom: calc(var(--strip) + 6px); padding: .2rem .5rem; grid-template-columns: auto 1fr auto auto; }
  .fullmap .animmap .timeline .play { width: 40px; height: 40px; }
  .fullmap .legendbox .gticks, .fullmap .legendbox > small { display: none; }
  .fullmap .legendbox .scale { overflow-x: auto; scrollbar-width: none; }
  .fullmap .animmap .maplibregl-ctrl-bottom-right, .fullmap .animmap .maplibregl-ctrl-bottom-left { bottom: calc(var(--strip) + 60px); }
}
.fullmap details.grpdd > summary { min-width: 0; width: auto; padding: 0 .75rem; justify-content: flex-start; }
.fullmap details.layerdd > summary { min-width: 40px; width: 40px; padding: 0; justify-content: center; }
.fullmap details.grpdd .ddmenu { left: 0; }
.fullmap .layerdd > summary::before { content: none; }
.fullmap .layerdd > summary { font-size: 1.2rem; line-height: 1; }

/* ================= spodnja vrstica (telefon, tablica): nižja in bolj subtilna, 4 elementi ================= */
@media (max-width: 900px) {
  .bottomnav { grid-template-columns: repeat(4, 1fr); padding: .1rem .25rem max(.1rem, env(safe-area-inset-bottom)); gap: 0; }
  .bn { min-height: 46px; padding: .05rem 0; gap: 0; font-size: .62rem; font-weight: 600; border-radius: 10px; letter-spacing: .01em; }
  .bn .ni svg { width: 20px; height: 20px; }
  .bn.on { background: none; color: var(--accent2); }
  .bn.on .ni svg { stroke-width: 2.2; }
  .bn.prim .ni { width: auto; height: auto; margin: 0; background: none; box-shadow: none; border-radius: 0; color: inherit; }
  .bn.prim.on { background: none; }
}
.lmorelinks { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ================= telefon: zemljevidna aplikacija – prvi zaslon brez razlag, večja časovnica nad spodnjo vrstico ================= */
@media (max-width: 760px) {
  .fullmap { --tlh: 108px; }
  .fullmap .aqnow { display: none; }                      /* povzetek Slovenije samo ob odprtem vodniku (?) */
  .fullmap.guideopen .aqnow { display: block; }
  .fullmap .animmap .timeline { width: calc(100% - 16px); bottom: calc(var(--strip) + 8px); padding: .4rem .65rem; gap: .6rem; border-radius: 16px; grid-template-columns: auto 1fr auto auto; }
  .fullmap .animmap .timeline .play { width: 52px; height: 52px; font-size: 1.15rem; }
  .fullmap .animmap .tl input { height: 44px; }
  .fullmap #tl::-webkit-slider-runnable-track { height: 12px; border-radius: 6px; }
  .fullmap #tl::-moz-range-track { height: 12px; border-radius: 6px; }
  .fullmap #tl::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -9px; }
  .fullmap .tlabel b { font-size: 1.1rem; }
  .fullmap .tlabel small { font-size: .78rem; }
  .fullmap #tlnow { min-height: 44px; padding: 0 .8rem; font-size: .9rem; }
  .fullmap .animmap .maplibregl-ctrl-bottom-right, .fullmap .animmap .maplibregl-ctrl-bottom-left { bottom: calc(var(--strip) + 84px); }
}

/* jezik: gumb SL/EN v glavi (računalnik), v meniju (telefon) */

/* ================= telefon: nič razen zemljevida se ne premika; ozka časovnica; lestvica spodaj, viri v desnem kotu ================= */
@media (max-width: 900px) {
  body[data-full="1"] { position: fixed; inset: 0; width: 100%; height: 100dvh; min-height: 0; overflow: hidden; overscroll-behavior: none; }
  html:has(body[data-full="1"]) { overflow: hidden; overscroll-behavior: none; height: 100%; }
  body[data-full="1"] main.page { padding: 0; overflow: hidden; }
  .fullmap .map.big { height: calc(100dvh - var(--hdr, 52px) - var(--bnav, 0px)); }
}
@media (max-width: 760px) {
  .fullmap { --strip: 30px; --tlh: 52px; }
  .fullmap .animmap .timeline { width: calc(100% - 16px); padding: .1rem .45rem; gap: .45rem; border-radius: 12px; bottom: calc(var(--strip) + 6px); grid-template-columns: auto 1fr auto; }
  .fullmap .animmap .timeline .play { width: 30px; height: 30px; min-width: 30px; min-height: 30px; font-size: .8rem; position: relative; }
  .fullmap .animmap .timeline .play::after { content: ""; position: absolute; inset: -7px; }   /* tapna površina 44 px kljub ožji časovnici */
  .fullmap .animmap .tl input { height: 30px; }
  .fullmap #tl::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; }
  .fullmap #tl::-moz-range-track { height: 6px; border-radius: 3px; }
  .fullmap #tl::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -6px; }
  .fullmap .tlabel { cursor: pointer; line-height: 1.05; }
  .fullmap .tlabel b { font-size: .8rem; }
  .fullmap .tlabel small { font-size: .62rem; }
  .fullmap #tlnow { display: none; }
  /* viri in zemljevid (ⓘ) v spodnjem desnem kotu, lestvica čez spodnji rob */
  .fullmap .animmap .maplibregl-ctrl-bottom-right, .fullmap .animmap .maplibregl-ctrl-bottom-left { bottom: 0; z-index: 900; }
  .fullmap .legendbox { padding-right: 40px; }
}

/* ================================================================ Zrak: nadzorna plošča z animiranim ozadjem (aqdash.js, ambient.js) */
.aqdash { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; margin-bottom: 1rem; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 420px; }
.aqd-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.aqd-in { padding: clamp(.7rem, 2.4vw, 1.3rem); display: grid; gap: .8rem; }
.glass { background: color-mix(in srgb, var(--card) 76%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid color-mix(in srgb, var(--lvl, var(--line)) 28%, var(--line)); border-radius: 18px; padding: .85rem 1rem; }
.aqd-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; justify-content: space-between; background: color-mix(in srgb, var(--card) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 18px; padding: .6rem 1rem; }
.aqd-head .kicker { margin: 0; }
.aqd-place { margin: 0; font-size: clamp(1.2rem, 3.6vw, 1.7rem); }
.aqd-ctl { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.aqd-ctl .placesel { max-width: 12rem; }
.aqd-upd { flex-basis: 100%; }
.aqd-main { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 1rem 1.6rem; align-items: center; border-left: 5px solid var(--lvl); }
.aqd-gauge { text-align: center; }
.aqgauge { width: 100%; max-width: 290px; color: var(--fg); overflow: visible; }
.aqgauge .gnum { font-size: 38px; font-weight: 800; fill: currentColor; }
.aqgauge .needle { transition: all .6s ease; }
.aqd-word { margin-top: -.2rem; } .aqd-word .lvlword { display: inline-block; padding: .1em .6em .15em; border-radius: 10px; font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 800; }
.aqd-text .advice { font-size: 1.1rem; margin: 0 0 .4rem; } .aqd-text .say { margin: 0 0 .4rem; } .aqd-text .meta { margin: 0; }
.aqd-pols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.polc { display: grid; gap: .3rem; align-content: start; background: color-mix(in srgb, var(--card) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 16px; padding: .7rem .8rem; }
.polh { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.polv { font-size: 1.7rem; font-weight: 800; line-height: 1.1; } .polv small { font-size: .7rem; font-weight: 500; color: var(--muted); margin-left: .25rem; }
.bband { position: relative; display: flex; height: 8px; border-radius: 6px; margin: .35rem 0 .15rem; }
.bband i { display: block; height: 100%; } .bband i:first-child { border-radius: 6px 0 0 6px; } .bband i:last-child { border-radius: 0 6px 6px 0; }
.bband em { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; border-radius: 3px; background: var(--fg); box-shadow: 0 0 0 2px var(--card); }
.aqd-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: .8rem; }
.aqd-card h3 { margin: 0 0 .5rem; font-size: 1rem; }
.hstrip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; margin-bottom: .5rem; }
.hs { position: relative; height: 30px; border-radius: 5px; background: var(--card2); display: grid; align-items: end; justify-items: center; color: #10202c; }
.hs small { font-size: .6rem; line-height: 1; padding-bottom: 2px; } .hs.now { outline: 2px solid var(--fg); outline-offset: 1px; }
.wxnow { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; } .wxt { font-size: 2.1rem; line-height: 1; display: block; }
.wxfacts { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; }
.wxfacts li { display: grid; gap: .05rem; } .wxfacts small:first-child { color: var(--muted); text-transform: uppercase; font-size: .66rem; letter-spacing: .08em; }
.windarrow { display: inline-block; transition: transform .4s; }
.aqd-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.dayc { display: grid; gap: .25rem; justify-items: start; background: var(--card2); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 14px; padding: .6rem .7rem; }
.dayc.today { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent); }
.aqd-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; }
.minic { display: grid; gap: .2rem; padding: .65rem .85rem; } .minic small:first-child { color: var(--muted); text-transform: uppercase; font-size: .66rem; letter-spacing: .08em; }
.aqdash .uchart { margin-top: .3rem; }
@media (max-width: 760px) {
  .aqd-main { grid-template-columns: 1fr; text-align: center; border-left-width: 4px; } .aqd-gauge { margin: 0 auto; width: min(100%, 260px); }
  .aqd-grid { grid-template-columns: 1fr; } .aqd-days { grid-template-columns: repeat(2, 1fr); } .hs small { font-size: .52rem; }
  .aqd-head { padding: .5rem .8rem; } .aqd-ctl { width: 100%; } .aqd-ctl .placesel { flex: 1; max-width: none; }
}

/* ---- razlaga pod nadzorno ploščo (aqexplain.js) */
.aqexp .exp-block { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line); } .aqexp .exp-block h3 { margin: 0 0 .3rem; }
.exp-levels { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; margin: .6rem 0; }
.exp-levels button { display: grid; gap: .1rem; justify-items: center; padding: .5rem .2rem; border-radius: 12px; border: 2px solid transparent; background: var(--c); color: var(--fg2); cursor: pointer; font: inherit; opacity: .72; }
.exp-levels button b { font-size: 1.2rem; } .exp-levels button span { font-size: .72rem; line-height: 1.1; } .exp-levels button small { font-size: .62rem; font-weight: 700; }
.exp-levels button.on { opacity: 1; border-color: var(--fg); transform: translateY(-2px); }
.exp-lvl { margin-bottom: .4rem; } .exp-lvl .lvlword { display: inline-block; padding: .1em .6em .15em; border-radius: 10px; font-size: 1.2rem; font-weight: 800; }
.exp-two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; margin: .6rem 0; }
.exp-dl { margin: 0; display: grid; gap: .15rem; } .exp-dl dt { font-weight: 700; margin-top: .45rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } .exp-dl dd { margin: 0; }
.exp-big { font-size: 1.6rem; margin: .2rem 0; } .exp-big b { font-size: 2.2rem; }
.exp-why-list { margin: .6rem 0 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.exp-faq { border: 1px solid var(--line); border-radius: 12px; padding: .5rem .8rem; margin-bottom: .4rem; background: var(--card2); } .exp-faq summary { cursor: pointer; font-weight: 600; } .exp-faq p { margin: .4rem 0 0; }
@media (max-width: 760px) { .exp-levels { grid-template-columns: repeat(3, 1fr); } .exp-two { grid-template-columns: 1fr; } }
.aqd-xw:empty { display: none; } .aqd-xw .minic { max-width: 26rem; }

/* ================================================================ v2: oder z vidno animacijo, kompakten izbirnik kraja, nadzorna plošča vremena */
.aqdash { overflow: visible; }
.aqd-clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; z-index: -1; }
.aqd-clip .aqd-bg { position: absolute; inset: 0; z-index: 0; }
.aqd-in { gap: .7rem; }
.glass, .polc { background: color-mix(in srgb, var(--card) 68%, transparent); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.aqd-stage { display: grid; gap: .5rem; min-height: clamp(190px, 30vw, 290px); align-content: space-between; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
.aqd-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; position: relative; z-index: 5; }
.aqd-top .dpwho { gap: .35rem; } .aqd-top .dstar { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .45); color: #fff; width: 40px; height: 40px; text-shadow: none; }
.aqd-top .dstar.on { color: #ffd54a; }
.aqd-top .dpick > summary { background: rgba(10, 30, 45, .45); color: #fff; border-color: rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); min-height: 40px; padding: 0 .8rem; font-size: 1rem; text-shadow: none; }
.aqd-top .dmenu { color: var(--fg); text-shadow: none; }
.aqd-top .aqd-tools { display: flex; gap: .4rem; align-items: center; } .aqd-top .aqd-tools .btn { background: rgba(10, 30, 45, .45); color: #fff; border-color: rgba(255, 255, 255, .35); min-height: 40px; text-shadow: none; }
.aqd-hero { display: grid; gap: .1rem; }
.aqd-kick { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 700; opacity: .9; }
.aqd-phrase { margin: 0; font-size: clamp(1.9rem, 7vw, 3.4rem); line-height: 1.05; font-weight: 800; }
.aqd-hero .aqd-upd { opacity: .9; font-size: .8rem; color: #fff; }
.wxhero { display: flex; align-items: center; gap: .9rem; } .wxhero .wx { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4)); }
.wxtemp { font-size: clamp(2.6rem, 11vw, 4.6rem); }
.wxdash .wxfacts { list-style: none; margin: 0; padding: .8rem 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem 1rem; }
.wxdash .wxfacts li { display: grid; gap: .05rem; } .wxdash .wxfacts li > small:first-child { color: var(--muted); text-transform: uppercase; font-size: .66rem; letter-spacing: .08em; } .wxdash .wxfacts b { font-size: 1.15rem; }
.wxhscroll { display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.wxh { flex: 0 0 auto; min-width: 54px; display: grid; justify-items: center; gap: .1rem; padding: .35rem .3rem; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); }
.wxh.now { outline: 2px solid var(--accent); }
.wxdays { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; }
.wxday { flex: 0 0 auto; min-width: 84px; justify-items: center; text-align: center; }
@media (max-width: 760px) {
  .aqd-stage { min-height: 170px; } .aqd-in { padding: .55rem; gap: .55rem; }
  .aqd-top .dname { max-width: 46vw; } .aqd-top .aqd-tools .btn { padding: 0 .6rem; }
  .wxdash .wxfacts { grid-template-columns: 1fr 1fr; }
}
.aqd-in, .aqd-in > *, .aqd-card, .wxhours, .aqd-grid > * { min-width: 0; max-width: 100%; }

/* ================================================================ glava: manjša, enotni gumbi navigacije, skrije se ob pomiku navzdol */
header.top { padding: .2rem var(--gut); padding-top: max(.2rem, env(safe-area-inset-top)); gap: .6rem; transition: transform .25s ease; will-change: transform; }
body.hdrhide header.top { transform: translateY(-110%); }
.brand img { width: 24px; height: 24px; border-radius: 6px; } .brand b { font-size: .95rem; }
.topnav { gap: .1rem; } .tn { min-height: 30px; padding: .2rem .6rem; font-size: .82rem; gap: .3rem; }
.tn .ni svg, .tn .ni img { width: 16px; height: 16px; display: block; } .tn .ni img { border-radius: 4px; }
.status { gap: .35rem; } .conn { font-size: .7rem; } .conn i { width: .45rem; height: .45rem; }
.iconbtn { width: 30px; height: 30px; } .iconbtn svg { width: 17px; height: 17px; }
.hsearch .search, .search { padding-top: .28rem; padding-bottom: .28rem; font-size: .85rem; }
.xmob { display: none; } .xmob img { border-radius: 5px; display: block; }
@media (max-width: 1100px) { .tn .nl { display: none; } .xtn .nl { display: none; } }
@media (max-width: 760px) {
  header.top { padding: .15rem 8px; padding-top: max(.15rem, env(safe-area-inset-top)); gap: .4rem; }
  .xmob { display: grid; } .brand img { width: 24px; height: 24px; }
  .iconbtn { width: 30px; height: 30px; }
}
.bn .nl { white-space: normal; text-align: center; line-height: 1.05; font-size: .62rem; }
@media (min-width: 761px) { .tn .nl { white-space: nowrap; } }

/* ================================================================ pasica podstrani in majhni zavihki (pagebanner.js) */
.pbanner { position: relative; isolation: isolate; border-radius: 18px; margin: 0 0 .8rem; min-height: 96px; display: grid; align-items: end; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.pbanner .aqd-clip { z-index: -1; }
.pbin { padding: .6rem .8rem .55rem; display: grid; gap: .45rem; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .55); min-width: 0; }
.pbtitle { margin: 0; font-size: clamp(1.25rem, 4.6vw, 1.9rem); font-weight: 800; line-height: 1.05; }
.pbtabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; text-shadow: none; -webkit-overflow-scrolling: touch; }
.pbtabs::-webkit-scrollbar { display: none; }
.pbtabs button { flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, .35); background: rgba(10, 30, 45, .42); color: #fff; font: inherit; font-size: .76rem; font-weight: 700; padding: .2rem .65rem; min-height: 26px; border-radius: 999px; cursor: pointer; white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pbtabs button.on { background: #fff; color: #0b2a3c; border-color: #fff; }
.pbtabs.plain { margin: 0 0 .6rem; } .pbtabs.plain button { background: var(--card2); color: var(--muted); border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.pbtabs.plain button.on { background: var(--accent); color: var(--on-accent, #062026); border-color: var(--accent); }
@media (max-width: 760px) { .pbanner { min-height: 84px; border-radius: 14px; margin-bottom: .6rem; } .pbin { padding: .5rem .65rem; gap: .35rem; } .pbtabs button { font-size: .72rem; padding: .15rem .55rem; min-height: 24px; } }

/* ---- AgroLuftek: vstopna nadzorna plošča */
.agstage { min-height: clamp(210px, 32vw, 300px); } .agstage.compact { min-height: clamp(130px, 20vw, 170px); }
.agbrand { display: flex; align-items: center; gap: .45rem; background: rgba(10, 30, 45, .42); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 3px .8rem 3px 4px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: none; }
.agbrand img { border-radius: 50%; display: block; } .agbrand b { font-size: .95rem; }
.agtabs { margin-top: .2rem; } .agtabs .pbtabs button { font-size: .8rem; }
.agtiles .chip { font-size: .8rem; }
.agrodash .aqd-top .agro-share { min-height: 36px; }
@media (max-width: 760px) { .agstage { min-height: 200px; } .agstage.compact { min-height: 120px; } .agbrand b { font-size: .88rem; } }
.aqd-hero, .aqd-stage > * { min-width: 0; } .aqd-hero .aqd-upd { white-space: normal; overflow-wrap: anywhere; }

/* regija kraja (js/region.js): zunaj Slovenije se AgroLuftek v Lufteku skrije */
html.no-agro [data-page="agroluft"] { display: none !important; }

/* meritve bližnjih postaj na strani kraja zunaj Slovenije (npr. hrvaška mreža AZO) */
.aqstations { margin-top: .8rem; }
.aqstations h3 { margin: 0 0 .35rem; font-size: .95rem; }
.aqstation { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; padding: .4rem 0; border-top: 1px solid var(--line); }

/* povezave na druge poglede na dnu strani z lastno nadzorno ploščo (Zrak, Vreme) */
.moreviews { margin: 1.2rem 0 .5rem; display: grid; gap: .45rem; justify-items: center; text-align: center; }
.moreviews small { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; }
.mvrow { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.mvrow button { font: inherit; font-weight: 700; font-size: .85rem; padding: .5rem 1rem; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; }
.mvrow button:hover { background: color-mix(in srgb, var(--accent) 16%, var(--card)); }

/* zemljevid: manjši spustni meniji in meni ☰ (v1); postaje, lokacija in vodnik so v meniju ☰ */
.fullmap .maptoolbar { gap: .25rem; }
.fullmap .maptoolbar details.dd > summary, .fullmap .maptoolbar .stbtn.alertbtn { min-height: 30px; min-width: 0; font-size: .74rem; padding: 0 .5rem; gap: .2rem; border-radius: 999px; box-shadow: none; }
.fullmap .maptoolbar details.layerdd > summary { width: 30px; min-width: 30px; min-height: 30px; padding: 0; font-size: 1rem; }
.fullmap .maptoolbar .grpdd .gv { font-size: .72rem; max-width: 7ch; overflow: hidden; text-overflow: ellipsis; }
.fullmap .maptoolbar .grpdd .ddarrow { font-size: .6rem; }
.fullmap .layerdd .msec[data-group="tools"] .mchips { display: flex; flex-wrap: wrap; gap: .3rem; }
.fullmap .layerdd .msec[data-group="tools"] .stbtn { min-height: 40px; border-radius: 999px; padding: 0 .8rem; }
@media (max-width: 760px) {
  .fullmap .maptoolbar details.dd > summary, .fullmap .maptoolbar .stbtn.alertbtn { min-height: 30px; }
  .fullmap .animcard > .maptoolbar { top: 6px; }
}
@media (max-width: 760px) { .view.swipe-l { animation: swipeInL .24s ease-out; } .view.swipe-r { animation: swipeInR .24s ease-out; } }
@keyframes swipeInL { from { opacity: .2; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes swipeInR { from { opacity: .2; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* Izbira jezika: spustni seznam */
.langsel { position: relative; }
.langbtn { display: inline-flex; align-items: center; gap: .2rem; height: 34px; padding: 0 .5rem 0 .6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); color: var(--fg); font: inherit; font-size: .74rem; font-weight: 800; cursor: pointer; }
.langbtn:hover { border-color: var(--accent); } .langbtn[aria-expanded="true"] .lcv { transform: rotate(180deg); } .lcv { display: grid; transition: transform .15s; }
.langlist { position: absolute; z-index: 1200; right: 0; top: calc(100% + 6px); min-width: 11.5rem; margin: 0; padding: .3rem; list-style: none; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.langlist li { display: flex; align-items: center; gap: .55rem; padding: .55rem .6rem; border-radius: 10px; cursor: pointer; font-size: .9rem; outline: none; }
.langlist li:hover, .langlist li:focus-visible { background: var(--card2); } .langlist li.on { font-weight: 700; }
.langlist .lc { display: inline-grid; place-items: center; width: 1.9rem; height: 1.5rem; border-radius: 8px; background: var(--card2); font-size: .7rem; font-weight: 800; } .langlist .lk { margin-left: auto; color: var(--accent); }
.langsel.mn { margin: .3rem .6rem; } .langsel.mn .langbtn { height: 40px; } .langsel.mn .langlist { right: auto; left: 0; }
@media (max-width: 760px) { .langsel.hdr { display: none; } }
.has-share { padding-bottom: 46px !important; }
.sharehero { position: absolute; right: 10px; bottom: 8px; z-index: 6; height: 32px; display: inline-flex; align-items: center; gap: .35rem; padding: 0 .75rem; font-family: inherit; font-size: .76rem; font-weight: 700; border-radius: 999px; cursor: pointer; color: #fff; background: rgba(8, 30, 40, .42); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(4px); }
.sharehero:hover { background: rgba(8, 30, 40, .62); }
@media (min-width: 761px) { .langsel.mn { display: none; } }

/* ============ drsnik časa: oznaka ima stalno širino, da se drsnik ne spreminja ob menjavi zapisa (tor, 15:15 ↔ čez 6 h) ============ */
.fullmap .animmap .tlabel { min-width: 8.4rem; }
.fullmap .animmap .tlabel b, .fullmap .animmap .tlabel small { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fullmap .animmap .tlabel small { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .fullmap .animmap .tlabel { min-width: 6.3rem; width: 6.3rem; flex: none; }
  .fullmap .animmap .tlabel b { font-size: .85rem; }
  .fullmap .animmap .tlabel small { font-size: .66rem; }
}

/* ============ izbirnik slojev nad časovnico + ožja časovnica ============ */
.lstrip { position: absolute; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 20px)); z-index: 3; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 1px; bottom: 120px; }
.lstrip::-webkit-scrollbar { display: none; }
.lsc { flex: none; min-height: 32px; padding: 0 .7rem 0 .6rem; display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-weight: 700; font-size: .78rem; color: var(--fg); white-space: nowrap; cursor: pointer; }
.lsc svg { color: var(--muted); }
.lsc.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--card)); }
.lsc.on svg { color: var(--accent2); }
.fullmap .maptitle { bottom: var(--mtb, calc(var(--strip) + 62px)); }
.fullmap .animmap .timeline { width: min(520px, calc(100% - 20px)); }
@media (max-width: 760px) {
  .lstrip { width: calc(100% - 16px); }
  .fullmap .animmap .timeline { width: calc(100% - 16px); padding: .28rem .55rem; gap: .5rem; border-radius: 14px; }
  .fullmap .animmap .timeline .play { width: 44px; height: 44px; font-size: 1.05rem; }
  .fullmap .animmap .tl input { height: 36px; }
  .fullmap #tl::-webkit-slider-runnable-track, .fullmap #tl::-moz-range-track { height: 10px; }
  .fullmap #tl::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -8px; }
  .fullmap .tlabel b { font-size: .95rem; }
  .fullmap #tlnow { min-height: 38px; padding: 0 .7rem; font-size: .84rem; }
}

/* spodnja legenda: enota + segmenti z vrednostmi pod mejami (ena sama legenda; navpične mini-legende ni več) */
.fullmap .legendbox .lgd { display: flex; align-items: center; gap: .5rem; flex: none; min-width: 0; }
.fullmap .legendbox .lgu { font-size: .68rem; color: var(--fg); white-space: nowrap; }
.fullmap .legendbox .lgbar { display: flex; height: 10px; margin-bottom: 11px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.fullmap .legendbox .lgbar i { display: block; position: relative; height: 10px; width: clamp(13px, 2.4vw, 24px); }
.fullmap .legendbox .lgbar i:first-child { border-radius: 3px 0 0 3px; } .fullmap .legendbox .lgbar i:last-child { border-radius: 0 3px 3px 0; }
.fullmap .legendbox .lgbar em { position: absolute; left: -1px; top: 12px; font-size: .58rem; font-style: normal; font-weight: 600; color: var(--fg); white-space: nowrap; font-variant-numeric: tabular-nums; }

.sharehero svg { width: 15px; height: 15px; flex: none; }
section.hero > .sharehero { color: var(--fg); background: var(--card); border: 1px solid var(--line); }
/* gumbi med naslovno vrstico in glavno kartico (enako kot .lp-quick na luftek.eu) */
.quicknav { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .6rem; }
.quicknav button { display: inline-flex; align-items: center; gap: .3rem; min-height: 30px; padding: .22rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.quicknav button:hover { border-color: var(--accent); }
.quicknav .qi { display: inline-flex; }
@media (max-width: 420px) { .quicknav { gap: .25rem; } .quicknav button { font-size: .72rem; padding: .2rem .5rem; } }
/* meni v naslovni vrstici: majhne pilule kot ostali gumbi */
.menupanel .menugrid { display: flex; flex-wrap: wrap; gap: .35rem; }
.menupanel .mn { min-height: 32px; gap: .35rem; padding: .22rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .78rem; font-weight: 700; }
.menupanel .mn .ni svg { width: 15px; height: 15px; }
.menupanel .mn:hover { border-color: var(--accent); background: var(--card); }
.menupanel .mn.on { border-color: var(--accent); background: var(--bg); }
.menupanel .langsel.mn { margin: 0; padding: 0; border: 0; background: none; }
.menupanel .langsel.mn .langbtn { height: 32px; font-size: .78rem; border-radius: 999px; }
@media (min-width: 761px) { .menupanel .langsel.mn { display: none; } }
/* zavihki virov cvetnega prahu: samostojne pilule namesto prelomljenega ovalnega okvirja */
nav.seg.ptabs { background: none; border: 0; border-radius: 0; overflow: visible; padding: 0; gap: .35rem; box-shadow: none; }
/* telefon: široke tabele drsijo znotraj kartice, ne raztegnejo strani; zaobljen vsebnik ne reže zavihkov */
.cvetni { min-width: 0; }
nav.seg.ptabs button { min-height: 30px; padding: .22rem .65rem; border-radius: 999px; border: 1px solid var(--line); font-size: .76rem; font-weight: 700; }
nav.seg.ptabs button:not(.on) { background: var(--card); }

.agstage.compact { min-height: 0; }
.aqdash.agrodash:not(:has(.agtiles)) { min-height: 0; }
.agrodash .agstage.compact + .aqd-mini:empty { display: none; }
