/* Tylko telefon (gk 29 XI). Układ jak natywna lista: biel, czerń, szarości.
   Jedyny kolor (czerwień) oznacza to, co trwa i co jest następne. */
:root { --tekst: #111; --szary: #6b6b6b; --linia: #e6e6e6; --tlo: #fff; --akcent: #b0121c; --pasek: 56px; }
html, body { margin: 0; height: 100%; background: var(--tlo); color: var(--tekst); }
body { font: 17px/1.35 system-ui, -apple-system, sans-serif; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button { font-family: inherit; color: inherit; }

#panel-program { padding: max(20px, env(safe-area-inset-top)) 20px calc(var(--pasek) + 32px + env(safe-area-inset-bottom)); }
header { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; }
h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.pod { grid-row: 2; grid-column: 1 / -1; margin: 2px 0 0; color: var(--szary); font-size: 15px; }
.zegar { grid-row: 1; grid-column: 2; margin: 0; color: var(--szary); font-size: 15px; }
.zegar b { color: var(--tekst); font-weight: 600; font-variant-numeric: tabular-nums; }
h2 { margin: 32px 0 4px; font-size: 13px; font-weight: 600; color: var(--szary); }

.poz, .lista li { display: grid; grid-template-columns: 58px 1fr; column-gap: 12px; padding: 14px 0 2px; border-bottom: 1px solid var(--linia); }
.blok .poz { border-bottom-color: var(--linia); }
.blok > .co { padding: 14px 0; }
.godz { font-weight: 600; font-variant-numeric: tabular-nums; }
.godz small { display: block; font-size: 13px; font-weight: 400; color: var(--szary); }
.blok .godz, li.trwa .godz, li.zaczete .godz { color: var(--akcent); }
.kiedy, .znacznik { display: block; margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--akcent); }
.znacznik { margin: 4px 0 0; }
li.przed .znacznik, li.po .znacznik { font-weight: 400; color: var(--szary); }
.co { margin: 0; font-weight: 600; }
.gdzie { margin: 2px 0 0; font-size: 15px; color: var(--szary); }
li.po, li.po .co, li.po .gdzie { color: var(--szary); }
li.po .co { font-weight: 400; }
.mapa-link { min-height: 44px; padding: 0; border: 0; background: none; font-size: 15px; text-decoration: underline; text-decoration-color: #bbb; text-underline-offset: 3px; }
.lista { list-style: none; margin: 0; padding: 0; }
#caly li { grid-template-columns: 1fr; padding: 14px 0; }

.zakladki { position: fixed; z-index: 1100; left: 0; right: 0; bottom: 0; display: flex; background: var(--tlo); border-top: 1px solid var(--linia); padding-bottom: env(safe-area-inset-bottom); }
.zakladki button { flex: 1; height: var(--pasek); border: 0; background: none; color: var(--szary); font-size: 16px; }
.zakladki button[aria-selected="true"] { color: var(--tekst); font-weight: 700; }

#mapa { position: fixed; inset: 0 0 calc(var(--pasek) + 1px + env(safe-area-inset-bottom)) 0; background: #f2efe9; }
.leaflet-tile-pane { filter: grayscale(1) brightness(1.04); }
.leaflet-control-attribution { font-size: 10px; }
#filtr { position: fixed; z-index: 1000; left: 12px; bottom: calc(var(--pasek) + 28px + env(safe-area-inset-bottom)); max-width: calc(100% - 100px); height: 52px; padding: 0 20px; border: 1px solid var(--linia); border-radius: 26px; background: var(--tlo); box-shadow: 0 2px 8px rgb(0 0 0 / .18); font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kategorie { box-sizing: border-box; width: 100%; max-width: 100%; margin: auto 0 0; padding: 8px 0 env(safe-area-inset-bottom); border: 0; border-radius: 16px 16px 0 0; background: var(--tlo); color: var(--tekst); }
.kategorie:focus { outline: none; }
.kategorie::backdrop { background: rgb(0 0 0 / .4); }
.kategorie button { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0 20px; border: 0; background: none; font-size: 17px; text-align: left; }
.kategorie button i { width: 36px; flex: none; color: var(--szary); font-style: normal; font-size: 14px; font-weight: 700; }
.kategorie button[aria-pressed="true"] { font-weight: 700; }
.kategorie button[aria-pressed="true"]::after { content: "✓"; margin-left: auto; padding-left: 12px; }
.leaflet-div-icon { background: none; border: 0; }
.znak { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 2px; border-radius: 16px; border: 1.5px solid #fff; box-sizing: border-box; background: #222; color: #fff; font: 700 11px/1 system-ui, sans-serif; }
.z-bliska .znak { width: 30px; height: 30px; margin: -1px; }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 14px 16px; font-size: 15px; }
.leaflet-popup-content p { margin: 0; }
.dymek-kat { font-size: 13px; color: var(--szary); }
.dymek-nazwa { margin-top: 2px !important; font-weight: 700; font-size: 17px; }
.dymek-opis { margin-top: 6px !important; white-space: pre-line; }
.dymek-trasa { display: block; margin-top: 12px; padding: 13px 12px; border-radius: 8px; background: var(--tekst); color: var(--tlo) !important; text-align: center; font-weight: 600; text-decoration: none; }
#gdzie { position: fixed; z-index: 1000; right: 12px; box-shadow: 0 2px 8px rgb(0 0 0 / .18); bottom: calc(var(--pasek) + 28px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--linia); background: var(--tlo); font-size: 26px; }
#komunikat { position: fixed; z-index: 1000; left: 12px; right: 12px; bottom: calc(var(--pasek) + 92px + env(safe-area-inset-bottom)); margin: 0; border-radius: 8px; background: var(--tekst); color: var(--tlo); padding: 10px 12px; font-size: 14px; }
#komunikat:empty { display: none; }
button:focus-visible, a:focus-visible { outline: 2px solid #1558b0; outline-offset: 2px; }
