/* Lounasko app styles. Tokens come from research/team/brand/tokens.css (brand designer, 04.11.2026). */
/* Lounasko — Targo palette (Roman, 05.11.2026; replaced the Kohde pink): Targo pink #F71884, plum #781B56, black #0B0B0B, warm paper, Finlandica.
   Chart colours validated with the dataviz validator (light + dark): lunch #0F7A57/#2FA073, open #822274/#C46AB8 (re-validated 05.11 after the Targo swap: deutan ΔE 11.1 / 9.2 vs lunch), bars #E0187B/#FF6FB0. */
@font-face { font-family: "Finlandica"; src: url("/fonts/finlandica-var.woff2") format("woff2-variations"), url("/fonts/finlandica-var.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --sign: #F71884; --sign-press: #E0187B; --on-sign: #0B0B0B;
  --bg: #F1F0EE; --surface: #FFFFFF; --surface-2: #F7F6F4; --scrim: rgba(11, 11, 11, .42);
  --ink: #0B0B0B; --ink-2: #333333; --muted: #595959; --line: #E1E0DC; --line-strong: #8A8A8A;
  --sign-text: #781B56; --sign-soft: #FDE7F1; --fav: #B3261E; --fav-soft: #FBE4E2;
  --open: #0F7A57; --open-soft: #DFF0E8; --closed: #8A8A8A; --focus: #0B0B0B;
  --btn: #0B0B0B; --on-btn: #FFFFFF;
  --c-lunch: #0F7A57; --c-open: #822274; --c-closed: #8A8A8A; --c-unknown: #D6D3CE; --c-bar: #E0187B; --c-track: #EFEDEA; --c-no: #B3261E;
  --font-ui: "Finlandica", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sign: "Finlandica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tnum: "tnum" 1, "lnum" 1;
  --r-xs: 6px; --r-s: 12px; --r-m: 16px; --r-l: 20px; --pill: 999px;
  --sh-1: 0 1px 2px rgba(11, 11, 11, .08);
  --sh-2: 0 12px 30px -12px rgba(11, 11, 11, .28);
  --sh-sheet: 0 -1px 0 rgba(11, 11, 11, .06), 0 -12px 30px -16px rgba(11, 11, 11, .3);
  --tap: 44px; --header-h: 56px; --chips-h: 52px; --btn-h: 48px;
  --ease-set: cubic-bezier(.2, .8, .2, 1); --ease-std: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 140ms; --t-set: 320ms; --t-sheet: 300ms; --t-grow: 650ms;
}
[data-theme="dark"] {
  color-scheme: dark;
  --sign-press: #FF4FA0;
  --bg: #0B0B0B; --surface: #151515; --surface-2: #1E1E1E; --scrim: rgba(0, 0, 0, .6);
  --ink: #F4F2F0; --ink-2: #CFCBC7; --muted: #A3A09C; --line: #2A2A2A; --line-strong: #6E6E6E;
  --sign-text: #FF8CC0; --sign-soft: #2C1A23; --fav: #FF7A6B; --fav-soft: #3A1F1D;
  --open: #4FCB9C; --open-soft: #14302A; --closed: #8A8A8A; --focus: #F71884;
  --btn: #F4F2F0; --on-btn: #0B0B0B;
  --c-lunch: #2FA073; --c-open: #C46AB8; --c-closed: #6E6E6E; --c-unknown: #3A3A3A; --c-bar: #FF6FB0; --c-track: #232323; --c-no: #FF7A6B;
  --sh-1: 0 0 0 1px rgba(255, 255, 255, .06);
  --sh-2: 0 0 0 1px rgba(255, 255, 255, .06), 0 12px 30px -12px rgba(0, 0, 0, .8);
  --sh-sheet: 0 -1px 0 rgba(255, 255, 255, .06), 0 -12px 30px -16px rgba(0, 0, 0, .9);
}
/* Pinkki: Kohde pink header, pink paper; pins turn black on the pink map. Charts validated on #FDE7F1 */
[data-theme="pink"] {
  --bg: #FCE4EF; --surface: #FFF8FB; --surface-2: #FDE7F1; --top-bg: #F71884; --top-line: #D0177A;
  --ink: #0B0B0B; --ink-2: #3A2230; --muted: #61485A; --line: #F2CADB; --line-strong: #8A6578;
  --sign-text: #781B56; --sign-soft: #FAD6E6; --open: #0F7A57; --open-soft: #DFF0E8;
  --c-lunch: #0F7A57; --c-open: #822274; --c-closed: #8A8A8A; --c-unknown: #DCC7D1; --c-bar: #C4126F; --c-track: #F7DCE8; --c-no: #B3261E;
  --sh-sheet: 0 -1px 0 rgba(120, 27, 86, .1), 0 -12px 30px -16px rgba(120, 27, 86, .35);
}
/* Yö: deep plum night, pink buttons. Charts validated on #2E1A25 */
[data-theme="night"] {
  color-scheme: dark;
  --sign-press: #FF4FA0;
  --bg: #160A10; --surface: #21111A; --surface-2: #2E1A25; --scrim: rgba(0, 0, 0, .6);
  --ink: #F7EEF2; --ink-2: #DFCBD5; --muted: #B8A2AE; --line: #402833; --line-strong: #836A77;
  --sign-text: #FF8CC0; --sign-soft: #40213A; --fav: #FF7A6B; --fav-soft: #3A1F1D;
  --open: #4FCB9C; --open-soft: #15302A; --closed: #937A87; --focus: #F71884;
  --btn: #F71884; --on-btn: #0B0B0B;
  --c-lunch: #2FA073; --c-open: #C46AB8; --c-closed: #7C6E75; --c-unknown: #4E3A45; --c-bar: #FF6FB0; --c-track: #3A2230; --c-no: #FF7A6B;
  --sh-1: 0 0 0 1px rgba(255, 255, 255, .06);
  --sh-2: 0 0 0 1px rgba(255, 255, 255, .07), 0 12px 30px -12px rgba(0, 0, 0, .8);
  --sh-sheet: 0 -1px 0 rgba(255, 255, 255, .07), 0 -12px 30px -16px rgba(0, 0, 0, .9);
}
/* Kontrasti: pure black on white, 2px borders, no tinted surfaces. Charts validated on #FFFFFF */
[data-theme="contrast"] {
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #FFFFFF;
  --ink: #000000; --ink-2: #000000; --muted: #1F1F1F; --line: #000000; --line-strong: #000000;
  --sign-text: #5A0F3C; --sign-soft: #FFFFFF; --open: #00592F; --open-soft: #E6F4EC; --closed: #4D4D4D; --focus: #000000;
  --btn: #000000; --on-btn: #FFFFFF; --fav: #A1150B;
  --c-lunch: #006B3C; --c-open: #822274; --c-closed: #6E6E6E; --c-unknown: #A6A6A6; --c-bar: #781B56; --c-track: #E6E6E6; --c-no: #A1150B;
  --sh-1: 0 0 0 2px #000; --sh-2: 0 0 0 2px #000; --sh-sheet: 0 -2px 0 #000;
}
[data-theme="contrast"] :is(.chip, .btn.ghost, .loc-btn, .mini-btn, .seg button, .days button, .field input, .field textarea, .field select, #q) { border-width: 2px !important; border-color: #000 !important; }
[data-theme="contrast"] .menu-today, [data-theme="contrast"] .area, [data-theme="contrast"] .kz-banner, [data-theme="contrast"] .offer { box-shadow: inset 0 0 0 2px #000; }
[data-theme="contrast"] .row { border-bottom-width: 2px; }
[data-theme="contrast"] a.lnk, [data-theme="contrast"] .footer a { text-decoration-thickness: 2px; }
:root { --logo-accent: var(--sign); --logo-ink: var(--ink); --logo-on-accent: #0B0B0B; --top-bg: var(--surface); --top-line: var(--line); }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font-ui); font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:where(a, button, [role="button"], input, select, textarea, summary):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--sign); border-radius: var(--r-s); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sign { font-family: var(--font-sign); font-weight: 700; font-feature-settings: var(--tnum); letter-spacing: -.005em; }
.num { font-feature-settings: var(--tnum); }
[hidden] { display: none !important; }

/* ---------- top bar */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; background: var(--top-bg); box-shadow: 0 1px 0 var(--top-line); transition: background var(--t-fast); }
.bar { height: var(--header-h); display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand svg { display: block; }
.brand .b-mark { width: 36px; height: 36px; }
.brand .b-logo { display: none; height: 30px; width: auto; }
.loc-btn { flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface-2); text-align: left; }
.loc-btn .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.loc-btn svg { flex: none; }
.icon-btn { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; background: transparent; border-radius: var(--r-s); flex: none; }
.icon-btn:hover { background: var(--surface-2); }
.lang-mini { display: none; }

.chips { height: var(--chips-h); display: flex; gap: 8px; align-items: center; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: var(--pill); transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); border: 1px solid var(--line-strong); background: var(--surface); display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; white-space: nowrap; position: relative; }
.chip::after { content: ""; position: absolute; inset: -4px 0; } /* 44px target */
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"], .chip.on { background: var(--btn); border-color: var(--btn); color: var(--on-btn); font-weight: 600; }
.chip .ck { display: none; }
.chip[aria-pressed="true"] .ck, .chip.on .ck { display: inline; }
.chip.clear { border-style: dashed; }

/* ---------- map */
#map { position: fixed; inset: calc(var(--header-h) + var(--chips-h)) 0 0 0; background: var(--bg); }
.maplibregl-ctrl-attrib { font-size: 11px; }
.map-fab { position: fixed; z-index: 15; width: var(--tap); height: var(--tap); border-radius: var(--r-s); border: 0; background: var(--surface); box-shadow: var(--sh-1); display: grid; place-items: center; }
.search-here { position: fixed; z-index: 15; left: 50%; transform: translateX(-50%); top: calc(var(--header-h) + var(--chips-h) + 12px); height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-s); background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: var(--sh-2); }
.crosshair { position: fixed; z-index: 16; left: 50%; top: calc((100dvh + var(--header-h) + var(--chips-h)) / 2); transform: translate(-50%, -100%); pointer-events: none; }
.pick-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: var(--sh-sheet); display: flex; gap: 8px; }

/* ---------- sheet / panel */
.sheet { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--header-h) - var(--chips-h)); background: var(--surface); border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: var(--sh-sheet); display: flex; flex-direction: column; transform: translateY(var(--sheet-y, 50%)); transition: transform var(--t-sheet) var(--ease-std); will-change: transform; }
.sheet.dragging { transition: none; }
.sheet-head { flex: none; touch-action: none; padding: 0 16px; }
.handle { display: block; width: 100%; height: 24px; border: 0; background: transparent; position: relative; }
.handle::before { content: ""; position: absolute; left: 50%; top: 10px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-strong); }
.summary { min-height: 40px; display: flex; align-items: center; gap: 8px; padding-bottom: 6px; }
.summary .count { flex: 1; font-size: .9rem; color: var(--muted); }
.summary .count b { color: var(--ink); font-weight: 600; }
.mini-btn { height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--surface); font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

/* ---------- intro (first visit) */
.intro { margin: 4px 12px 12px; padding: 20px 18px 18px; background: var(--sign); color: var(--on-sign); border-radius: var(--r-l); }
.intro p { color: #1d1d1d !important; }
.intro .btn.primary { background: #0B0B0B; color: #fff; }
.intro .btn.ghost { background: transparent; border-color: #0B0B0B; color: #0B0B0B; }
.intro .steps li { color: #1d1d1d; } .intro .steps b { color: #0B0B0B; }
.intro h1 { font-family: var(--font-sign); font-weight: 700; font-size: 2.3rem; line-height: 1.02; margin: 4px 0 8px; letter-spacing: -.01em; }
.intro p { margin: 0 0 14px; color: var(--ink-2); }
.intro .fine { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.btn { height: var(--btn-h); padding: 0 20px; border-radius: var(--pill); transition: transform var(--t-fast) var(--ease-std), box-shadow var(--t-fast), background var(--t-fast); border: 1px solid transparent; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.primary { background: var(--btn); color: var(--on-btn); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn.pink { background: var(--sign); color: var(--on-sign); }
.btn.ghost { background: var(--surface); border-color: var(--line-strong); }
.btn.ink { background: var(--btn); color: var(--on-btn); }
.btn:active { transform: scale(.97); }
.btn.wide { width: 100%; }
.btn-row { display: flex; flex-direction: column; gap: 8px; }
.steps { display: grid; gap: 10px; margin: 18px 0 4px; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; font-size: .92rem; color: var(--ink-2); }
.steps li::before { counter-increment: s; content: counter(s); font-family: var(--font-sign); font-weight: 700; font-size: 1rem; width: 30px; height: 30px; display: grid; place-items: center; background: #0B0B0B; color: #fff; border-radius: 50%; }
.steps b { display: block; color: var(--ink); }

/* ---------- list */
.sec { padding: 14px 16px 6px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.note-line { padding: 4px 16px 8px; font-size: .88rem; color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { position: relative; border-bottom: 1px solid var(--line); }
.row a.main { display: block; padding: 12px 60px 12px 16px; text-decoration: none; color: inherit; }
.row a.main:hover, .row.hl a.main { background: var(--surface-2); }
.row .name { font-size: 1.06rem; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta { font-size: .875rem; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 0 6px; }
.row .meta .dot::before { content: "·"; margin-right: 6px; }
.row .dishes { margin: 6px 0 0; padding: 0; list-style: none; font-size: .93rem; }
.row .dishes li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .fav { position: absolute; right: 8px; top: 8px; }
.row.past .name, .row.past .dishes { opacity: .62; }
.status { display: inline-flex; align-items: center; gap: 5px; }
.status i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; background: var(--closed); flex: none; }
.status.on { color: var(--open); } .status.on i { background: var(--open); }
.status.soon { color: var(--sign-text); font-weight: 600; } .status.soon i { background: var(--sign); box-shadow: 0 0 0 1px var(--sign-text); }
.status.off i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--closed); }
.badges { display: inline-flex; gap: 4px; margin-left: 2px; }
.bdg { font-size: .72rem; font-weight: 600; padding: 1px 5px; border-radius: var(--r-xs); border: 1px solid var(--ink-2); color: var(--ink-2); line-height: 1.3; }
.bdg.solid { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: 0 5px; margin-left: 4px; border-radius: var(--r-xs); background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); line-height: 1.5; vertical-align: 1px; }
.tag.ve { background: var(--open-soft); color: var(--open); border-color: transparent; }
.tag.veg { background: var(--open-soft); color: var(--ink-2); border-color: transparent; }
.more { display: block; margin: 12px 16px; }
.unknown-toggle { width: calc(100% - 32px); margin: 8px 16px; height: 44px; border: 1px dashed var(--line-strong); border-radius: var(--r-s); background: transparent; color: var(--ink-2); }
.empty { padding: 24px 16px; text-align: left; }
.empty h2 { font-family: var(--font-sign); font-weight: 700; font-size: 1.5rem; margin: 0 0 6px; }
.empty p { color: var(--muted); margin: 0 0 12px; }
.fav-btn svg path { fill: transparent; stroke: var(--ink-2); stroke-width: 1.8; }
.fav-btn[aria-pressed="true"] svg path { fill: var(--fav); stroke: var(--fav); }

/* ---------- views over the list (place, owners, about, picker) */
.view { position: fixed; z-index: 35; inset: 0; background: var(--surface); overflow-y: auto; overscroll-behavior: contain; }
.view-head { position: sticky; top: 0; z-index: 2; height: var(--header-h); display: flex; align-items: center; gap: 4px; padding: 0 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
#viewActs { display: flex; align-items: center; gap: 2px; }
.view-head .grow { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view-body { padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); max-width: 640px; }
.place h1 { font-family: var(--font-sign); font-weight: 700; font-size: 2rem; line-height: 1.05; margin: 0 0 6px; letter-spacing: -.01em; }
.place .sub { color: var(--muted); font-size: .9rem; margin: 0 0 2px; }
.place .lunchline { font-size: 1.06rem; font-weight: 600; margin: 12px 0 2px; }
.place .lunchline .status { font-weight: 600; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.acts .btn { flex: 1 1 auto; min-width: 104px; }
.block { border-top: 1px solid var(--line); padding: 16px 0; }
.block h2 { font-size: 1.05rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.block h2 .grow { flex: 1; }
.menu-today { background: var(--sign-soft); margin: 4px -4px; padding: 16px; border-top: 0; border-radius: var(--r-l); }
.menu-today + .block { border-top: 0; }
.dish { padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.dish:last-child { border-bottom: 0; }
.dish .tr { display: block; font-size: .88rem; color: var(--muted); margin-top: 2px; }
.src { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.legend { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.days { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.days button { min-width: 44px; height: 36px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--surface); text-transform: capitalize; }
.days button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.nomenu h3 { margin: 0 0 4px; font-size: 1rem; }
.nomenu p { margin: 0 0 10px; color: var(--ink-2); font-size: .95rem; }
.lnk { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; background: none; border: 0; padding: 0; }
.bn { display: grid; grid-template-columns: 84px 1fr; gap: 4px 10px; align-items: baseline; padding: 6px 0; }
.bn .p { font-weight: 600; }
.bn .s { font-size: .92rem; }
.bn .s small { display: block; color: var(--muted); font-size: .82rem; }
.ok { color: var(--open); } .bad { color: var(--fav); } .mid { color: var(--sign-text); }
.report { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.report .q { width: 100%; font-size: .92rem; color: var(--ink-2); }
.report .btn { height: 44px; flex: 1; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.seg button { height: 40px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: var(--surface); }
.seg button[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); border-color: var(--btn); font-weight: 600; }
.hours-t { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hours-t td { padding: 4px 0; }
.hours-t td + td { text-align: right; font-feature-settings: var(--tnum); }
.hours-t tr.today { font-weight: 600; }
.foot { font-size: .82rem; color: var(--muted); }

/* forms */
.field { display: block; margin: 0 0 12px; }
.field span { display: block; font-size: .88rem; margin-bottom: 4px; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface); }
.checks { display: grid; gap: 6px; margin: 0 0 14px; }
.checks label { display: flex; gap: 10px; align-items: center; min-height: 40px; }
.checks input { width: 20px; height: 20px; accent-color: var(--ink); }
.pitch { background: var(--sign); color: var(--on-sign); margin: 0 0 16px; padding: 22px 18px 20px; border-radius: var(--r-l); }
.pitch h1 { font-family: var(--font-sign); font-weight: 700; font-size: 2.2rem; line-height: 1; margin: 0 0 10px; }
.pitch p { margin: 0; }
.pitch ul { margin: 12px 0 0; padding-left: 18px; }

/* picker */
.pick-list { list-style: none; margin: 8px 0; padding: 0; }
.pick-list button { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.pick-list button small { display: block; color: var(--muted); font-size: .85rem; }
.pick-list .ic { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-s); background: var(--surface-2); flex: none; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* menu drawer */
.drawer { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--surface); box-shadow: var(--sh-2); padding: 8px 16px 24px; overflow-y: auto; }
.scrim { position: fixed; inset: 0; z-index: 45; background: var(--scrim); }
.drawer nav a, .drawer nav button { display: flex; align-items: center; width: 100%; min-height: 48px; border: 0; border-bottom: 1px solid var(--line); background: none; text-decoration: none; text-align: left; padding: 0 2px; font-size: 1rem; }
.drawer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 6px; }
.pop { position: fixed; z-index: 48; left: 12px; right: 12px; top: calc(var(--header-h) + var(--chips-h) + 4px); max-width: 380px; background: var(--surface); border-radius: var(--r-m); box-shadow: var(--sh-2); padding: 14px; }
.pop h3 { margin: 0 0 6px; font-size: .95rem; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: var(--r-s); box-shadow: var(--sh-2); max-width: calc(100vw - 32px); font-size: .95rem; display: flex; gap: 12px; align-items: center; }
.toast button { background: var(--sign); color: var(--on-sign); border: 0; border-radius: var(--r-s); height: 36px; padding: 0 12px; font-weight: 600; }
.footer { padding: 18px 16px 8px; font-size: .8rem; color: var(--muted); }
.footer a { color: var(--ink-2); }

/* signature motion "pystytys" */
@keyframes lk-set { from { transform: perspective(240px) rotateX(-78deg); opacity: 0; } to { transform: none; opacity: 1; } }
.lk-set { transform-origin: 50% 100%; animation: lk-set var(--t-set) var(--ease-set) both; }

/* ---------- desktop */
@media (min-width: 768px), (min-width: 640px) and (max-height: 520px) {
  .menu-today { margin: 4px -4px; }
  .brand .b-mark { display: none; }
  .brand .b-logo { display: block; }
  .bar { padding: 0 16px; gap: 12px; height: 64px; }
  :root { --header-h: 64px; }
  .loc-btn { flex: 0 1 var(--pw); }
  .bar .spacer { flex: 1; }
  .lang-mini { display: flex; gap: 2px; }
  .lang-mini button { height: 36px; min-width: 40px; border: 0; border-radius: var(--r-s); background: transparent; font-size: .85rem; font-weight: 600; color: var(--muted); }
  .lang-mini button[aria-current="true"] { color: var(--ink); background: var(--surface-2); }
  .chips { position: fixed; top: var(--header-h); left: 0; width: var(--pw); height: auto; flex-wrap: wrap; padding: 12px 16px; background: var(--surface); z-index: 21; overflow: visible; border-bottom: 1px solid var(--line); }
  #map { inset: var(--header-h) 0 0 0; }
  .chips, .sheet, .view { transition: transform var(--t-sheet) var(--ease-std), visibility 0s; }
  body.collapsed .chips, body.collapsed .sheet, body.collapsed .view { transform: translateX(-100%) !important; visibility: hidden; transition: transform var(--t-sheet) var(--ease-std), visibility 0s var(--t-sheet); }
  .panel-tab { position: fixed; z-index: 22; left: 16px; top: calc(var(--header-h) + 16px); height: 44px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: var(--pill); background: var(--btn); color: var(--on-btn); font-weight: 600; box-shadow: var(--sh-2); animation: lk-rise 260ms var(--ease-set) both; }
  body.collapsed .search-here { left: 50%; }
  .sheet { left: 0; right: auto; width: var(--pw); top: var(--panel-top, 172px); height: auto; border-radius: 0; transform: none !important; box-shadow: 1px 0 0 var(--line); }
  .sheet .handle { display: none; }
  .sheet-head { padding-top: 8px; }
  .view { left: 0; right: auto; width: var(--pw); top: var(--panel-top, 172px); box-shadow: 1px 0 0 var(--line); z-index: 25; }
  .view.wide { width: var(--pw); }
  .search-here { left: calc(var(--pw) + (100vw - var(--pw)) / 2); top: calc(var(--header-h) + 16px); }
  .crosshair { left: calc(var(--pw) + (100vw - var(--pw)) / 2); top: calc((100vh + var(--header-h)) / 2); }
  .pop { left: 16px; top: var(--panel-top, 172px); }
  .pick-bar { left: var(--pw); }
}
@media (min-width: 431px) and (max-width: 767px) and (min-height: 521px) {
  .sheet { left: 50%; right: auto; width: min(100%, 600px); margin-left: calc(min(100%, 600px) / -2); }
  .view-body { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --t-set: 0ms; --t-sheet: 0ms; }
  .lk-set { animation: lk-fade var(--t-fast) linear both; }
  @keyframes lk-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- charts (dataviz: thin marks, rounded data ends, 2px surface gaps, labels in text colours) */
.area { margin: 4px 12px 8px; padding: 14px 14px 12px; background: var(--surface-2); border-radius: var(--r-l); }
.area h2 { margin: 0 0 2px; font-size: 1.05rem; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.area h2 .big { font-size: 1.8rem; font-feature-settings: var(--tnum); }
.area .sub { margin: 0 0 10px; color: var(--muted); font-size: .85rem; }
.stack { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; background: var(--c-track); }
.stack > span { display: block; height: 100%; min-width: 3px; transform-origin: left center; }
.stack > span:first-child { border-radius: 7px 0 0 7px; } .stack > span:last-child { border-radius: 0 7px 7px 0; }
.legend-row { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: .85rem; color: var(--ink-2); padding: 0; list-style: none; }
.legend-row li { display: inline-flex; align-items: center; gap: 6px; }
.legend-row i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend-row b { font-feature-settings: var(--tnum); color: var(--ink); }
.c-lunch { background: var(--c-lunch); } .c-open { background: var(--c-open); } .c-closed { background: var(--c-closed); }
.c-unknown { background: repeating-linear-gradient(45deg, var(--c-unknown) 0 3px, transparent 3px 6px), var(--c-track); }
.c-no { background: var(--c-no); }
.area details { margin-top: 10px; }
.area summary { cursor: pointer; font-size: .9rem; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.hbars { display: grid; grid-template-columns: minmax(70px, auto) 1fr auto; gap: 6px 10px; align-items: center; font-size: .85rem; margin: 8px 0 4px; }
.hbars .lab { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbars .val { font-feature-settings: var(--tnum); color: var(--ink); font-weight: 600; text-align: right; }
.hbars .track { height: 10px; background: var(--c-track); border-radius: 5px; overflow: hidden; }
.hbars .fill { height: 100%; background: var(--c-bar); border-radius: 0 5px 5px 0; transform-origin: left center; }
.chart-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 2px; font-weight: 600; }
/* day timeline in the place card */
.tl { position: relative; margin: 6px 0 2px; }
.tl-row { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; height: 22px; font-size: .8rem; color: var(--muted); }
.tl-row.today { color: var(--ink); font-weight: 700; }
.tl-track { position: relative; height: 12px; background: var(--c-track); border-radius: 6px; }
.tl-track .open { position: absolute; top: 4px; height: 4px; border-radius: 2px; background: var(--c-open); transform-origin: left center; }
.tl-track .lunch { position: absolute; top: 0; height: 12px; border-radius: 6px; background: var(--c-lunch); box-shadow: 0 0 0 2px var(--surface); transform-origin: left center; }
.tl-axis { display: grid; grid-template-columns: 30px 1fr; gap: 8px; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.tl-axis div { position: relative; height: 14px; }
.tl-axis div span { position: absolute; transform: translateX(-50%); font-feature-settings: var(--tnum); }
.tl-now { position: absolute; top: -4px; bottom: 16px; width: 2px; background: var(--ink); border-radius: 1px; pointer-events: none; }
.tl-now::after { content: ""; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: lk-pulse 2s var(--ease-std) infinite; }
.bnbar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--c-track); margin-top: 4px; max-width: 220px; }
.bnbar span { height: 100%; transform-origin: left center; }
.table-toggle { margin-top: 8px; font-size: .85rem; }
.table-toggle summary { cursor: pointer; color: var(--ink-2); min-height: 32px; display: flex; align-items: center; }
#tip { position: fixed; z-index: 80; pointer-events: none; background: var(--ink); color: var(--bg); font-size: .8rem; padding: 6px 9px; border-radius: 8px; box-shadow: var(--sh-2); max-width: 240px; opacity: 0; transition: opacity var(--t-fast); }
#tip.on { opacity: 1; }

/* ---------- motion: grow bars, rise rows, count-up; all off with reduced motion */
@keyframes lk-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lk-rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lk-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 35%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
@keyframes lk-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.grow { animation: lk-grow-x var(--t-grow) var(--ease-set) both; animation-delay: calc(var(--i, 0) * 60ms); }
.rise { animation: lk-rise 420ms var(--ease-set) both; animation-delay: calc(var(--i, 0) * 35ms); }
.fav-btn[aria-pressed="true"] svg { animation: lk-pop 320ms var(--ease-set); }
.row a.main { transition: background var(--t-fast); }
.intro h1 { animation: lk-set var(--t-set) var(--ease-set) both; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: reduce) {
  .grow, .rise, .intro h1, .fav-btn[aria-pressed="true"] svg, .tl-now::after { animation: none !important; }
  .btn, .chip { transition: none; }
}

/* panel tab is desktop-only */
@media (max-width: 767px) and (min-height: 521px), (max-width: 639px) { .panel-tab { display: none !important; } }
.summary .mini-btn svg { flex: none; }

/* ---------- Kalasatama demo: logos, offers, weekly menus */
.row.has-lg a.main { padding-left: 68px; }
.row .lg { position: absolute; left: 16px; top: 14px; width: 40px; height: 40px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; overflow: hidden; }
.row .lg img { width: 34px; height: 34px; object-fit: contain; }
.offer-b { display: inline-block; margin-left: 8px; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: var(--pill); background: var(--btn); color: var(--on-btn); vertical-align: 2px; white-space: nowrap; }
.offer-b.demo { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 600; }
.row .name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tom-l { margin-top: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--sign-text); }
.kz-banner { margin: 4px 12px 8px; padding: 12px 14px; border-radius: var(--r-m); background: var(--sign-soft); font-size: .86rem; color: var(--ink-2); }
.kz-banner b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.offer-strip { list-style: none; margin: 0 0 4px; padding: 0 12px 6px; display: grid; gap: 8px; }
.offer-card { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-m); background: var(--surface-2); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: transform var(--t-fast); }
.offer-card:hover { transform: translateY(-1px); }
.offer-card img, .offer-card .ph { width: 36px; height: 36px; flex: none; border-radius: 9px; background: #fff; object-fit: contain; padding: 2px; box-shadow: 0 0 0 1px var(--line); }
.offer-card .ph { display: grid; place-items: center; font-weight: 700; color: #0B0B0B; background: var(--sign); }
.offer-card b { display: block; font-size: .93rem; line-height: 1.25; }
.offer-card small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.phead { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.phead h1 { margin: 0; }
.plogo { width: 56px; height: 56px; flex: none; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; overflow: hidden; }
.plogo img { width: 48px; height: 48px; object-fit: contain; }
.offer { padding: 12px 14px; border-radius: var(--r-m); background: var(--surface-2); margin-bottom: 8px; }
.offer p { margin: 4px 0 0; font-size: .93rem; }
.offer .ot { display: flex; align-items: center; gap: 8px; }
.offer .pct { width: 24px; height: 24px; border-radius: 50%; background: #0B0B0B; color: #F71884; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.offer.demo { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); border-style: dashed; }
.demo-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: var(--r-xs); background: var(--ink); color: var(--surface); flex: none; }
.dish .pr { float: right; margin-left: 8px; font-size: .88rem; color: var(--ink-2); }
.mh { font-size: .9rem; margin: 14px 0 4px; }
.mi { margin: 6px 0 0; font-size: .9rem; color: var(--ink-2); }
.tom-note { margin: -4px 0 8px; font-size: .85rem; color: var(--sign-text); font-weight: 600; }
.days button.is-today { box-shadow: inset 0 -3px 0 var(--sign); }
.kz-chip { background: var(--sign) !important; color: #0B0B0B !important; border-color: #0B0B0B !important; }
/* theme picker */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.themes button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: var(--r-s); border: 1px solid var(--line-strong); background: var(--surface); text-align: left; font-size: .92rem; }
.themes button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); border-color: var(--ink); font-weight: 600; }
.sw { width: 32px; height: 32px; border-radius: 9px; flex: none; position: relative; overflow: hidden; background: var(--a); box-shadow: 0 0 0 1px rgba(128, 128, 128, .4); }
.sw i { position: absolute; display: block; }
.sw i:nth-child(1) { left: 4px; right: 4px; top: 4px; height: 9px; border-radius: 3px; background: var(--b); }
.sw i:nth-child(2) { left: 4px; bottom: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
.sw i:nth-child(3) { right: 4px; bottom: 6px; width: 9px; height: 3px; border-radius: 2px; background: var(--d); }
.sw.auto { background: linear-gradient(135deg, #F1F0EE 50%, #0B0B0B 50%); }
.sw.auto i:nth-child(1), .sw.auto i:nth-child(3) { display: none; }
.sw.auto i:nth-child(2) { left: 10px; bottom: 10px; }

/* ---------- icons (Tabler Icons 3.50.0, MIT; rules: research/team/references-foodtech.md §3) */
svg.i { width: 20px; height: 20px; stroke-width: 2; flex: none; display: inline-block; vertical-align: middle; }
svg.i16 { width: 16px; height: 16px; stroke-width: 2.25; }
svg.i24 { width: 24px; height: 24px; stroke-width: 2; }
.btn svg.i { margin-left: -2px; }
.acts .btn[aria-label] { flex: 0 0 auto; min-width: 48px; padding: 0 12px; }
.chip svg.i { color: var(--ink-2); }
.chip[aria-pressed="true"] svg.i { color: inherit; }
.chip .cnt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sign); color: #0B0B0B; font-size: .72rem; display: inline-grid; place-items: center; }
.chip.filt { font-weight: 600; }
.fav-btn .i-on { display: none; color: var(--fav); }
.fav-btn .i-off { color: var(--ink-2); }
.fav-btn[aria-pressed="true"] .i-on { display: inline-block; animation: lk-pop 320ms var(--ease-set); }
.fav-btn[aria-pressed="true"] .i-off { display: none; }
.row .meta { align-items: center; }
.row .meta > svg.i { color: var(--muted); margin-right: -2px; }
.mi-pr { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; color: var(--ink-2); font-weight: 600; }
.mi-pr svg { color: var(--muted); }
.status svg.i { color: currentColor; }
.status.off { color: var(--muted); }
.badges { align-items: center; }
.badges > svg.i { color: var(--muted); }
.row .lg, .plogo { border-radius: 6px !important; }
.row .lg.fb, .plogo.fb { background: var(--surface-2); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); }
.plogo.fb svg.i { width: 28px; height: 28px; }
.offer-b { display: inline-flex; align-items: center; gap: 3px; }
.offer .pct svg { color: #F71884; }
.offer-card .ph svg { color: #0B0B0B; }
.mrow { display: inline-flex; align-items: center; gap: 5px; }
.mrow .mrow { margin-left: 10px; }
.mrow svg { color: var(--muted); }
.svc { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; padding: 0; }
.svc li { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: var(--pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: .85rem; color: var(--ink-2); }
.letter { width: 20px; height: 20px; display: inline-grid; place-items: center; font-weight: 700; font-size: .78rem; border-radius: 4px; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; }
.svc .letter { width: 16px; height: 16px; font-size: .66rem; }
.qwrap { position: relative; padding: 4px 16px 0; }
.qwrap svg.i { position: absolute; left: 28px; top: 16px; color: var(--muted); pointer-events: none; }
.qwrap input { width: 100%; min-height: 44px; padding: 8px 12px 8px 40px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface-2); margin: 0; }
.pick-list .ic svg.i { color: var(--ink-2); }
.pop h3 { display: flex; align-items: center; gap: 6px; }
.pop h3 svg { color: var(--muted); }
/* filter sheet */
.pop.fsheet { left: 0; right: 0; bottom: 0; top: auto; max-width: none; max-height: 88dvh; border-radius: var(--r-l) var(--r-l) 0 0; padding: 0; display: flex; flex-direction: column; animation: lk-rise 240ms var(--ease-set) both; }
.fsheet .fhead { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 0 16px; }
.fsheet .fhead h2 { margin: 0; font-size: 1.25rem; }
.pop-body { overflow-y: auto; overscroll-behavior: contain; }
.fsheet .pop-body { padding: 4px 16px 8px; }
.fsheet h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 16px 0 8px; }
.pop-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.fsheet .pop-foot { margin: 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fbtn { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-s); border: 1px solid var(--line-strong); background: var(--surface); text-align: left; font-size: .92rem; line-height: 1.2; }
.fbtn svg.i, .fbtn .letter { color: var(--ink-2); }
.fbtn[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); border-color: var(--btn); font-weight: 600; }
.fbtn[aria-pressed="true"] svg.i, .fbtn[aria-pressed="true"] .letter { color: inherit; }
@media (min-width: 768px), (min-width: 640px) and (max-height: 520px) {
  .pop.fsheet { left: 16px; right: auto; width: calc(var(--pw) - 32px); top: calc(var(--header-h) + 12px); bottom: 16px; max-height: none; border-radius: var(--r-l); }
}
[data-theme="contrast"] .fbtn { border-width: 2px; border-color: #000; }

/* ---------- search point: draggable pin + address at the top */
.me-pin { width: 44px; height: 44px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.me-pin .dotc { width: 20px; height: 20px; border-radius: 50%; background: #F71884; border: 3px solid #0B0B0B; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); position: relative; z-index: 1; transition: transform var(--t-fast) var(--ease-set); }
.me-pin .dotc::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #0B0B0B; }
.me-pin.geo .dotc { background: #0B0B0B; border-color: #F71884; }
.me-pin.geo .dotc::after { background: #F71884; }
.me-pin .ring { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #F71884; opacity: .5; animation: lk-ring 2s var(--ease-std) infinite; }
.me-pin.drag { cursor: grabbing; }
.me-pin.drag .dotc { transform: translateY(-6px) scale(1.15); }
.me-pin.drag .ring { animation: none; opacity: 0; }
@keyframes lk-ring { from { transform: scale(1); opacity: .5; } to { transform: scale(3.2); opacity: 0; } }
@keyframes lk-loc { 0% { transform: translateY(70%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes lk-locpin { 0%, 100% { transform: none; } 40% { transform: translateY(-4px); } 70% { transform: translateY(1px); } }
.loc-btn { overflow: hidden; }
.loc-btn.flip .t { animation: lk-loc 380ms var(--ease-set) both; }
.loc-btn.flip > svg.i:first-child { animation: lk-locpin 520ms var(--ease-set); color: var(--sign-text); }
.loc-btn > svg.i:first-child { color: var(--ink-2); }
.pick-hint { display: flex; gap: 6px; align-items: center; margin: 4px 0 10px; }
@media (prefers-reduced-motion: reduce) { .me-pin .ring, .loc-btn.flip .t, .loc-btn.flip > svg.i:first-child { animation: none !important; } }

/* likes: public counter, pink like the brand (favourites stay red hearts) */
.place .lunchline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.like-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 11px; margin: 0; border: 0; border-radius: var(--pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; transition: background-color 160ms, box-shadow 160ms, transform 120ms; }
.like-btn::after { content: ''; position: absolute; inset: -4px 0; }
.like-btn:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
.like-btn:active { transform: scale(.96); }
.like-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.like-btn svg { width: 20px; height: 20px; }
.like-btn .i-on { display: none; }
.like-btn[aria-pressed="true"] { background: var(--sign-soft); box-shadow: inset 0 0 0 1px var(--sign-text); color: var(--sign-text); }
.like-btn[aria-pressed="true"] .i-on { display: inline-block; }
.like-btn[aria-pressed="true"] .i-off { display: none; }
.like-btn.pop .i-on { animation: lk-pop 320ms var(--ease-set); }
.like-btn .lb-n { min-width: 1.4em; padding: 1px 7px; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .82rem; text-align: center; }
.mi-lk { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; color: var(--sign-text); font-weight: 600; }
.mi-lk[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .like-btn.pop .i-on { animation: none; } .like-btn { transition: none; } }
/* price is plain text after a separator (the € icon doubled the € sign); wrapped meta lines start flush */
.row .meta .mi-pr, .mi-lk { margin-left: 0; }
.place .mi-pr { color: var(--ink); font-weight: 600; }

/* group discounts: students, pensioners, members, kids — highlighted, colour plus icon plus words */
.grp { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0 1px; }
.grp .gt { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 7px; border-radius: var(--pill); font-size: .78rem; font-weight: 700; letter-spacing: .01em; background: var(--g-bg); color: var(--g-ink); box-shadow: inset 0 0 0 1px var(--g-line); }
.grp .gt svg { width: 15px; height: 15px; }
.grp.big { margin: 12px 0 2px; gap: 6px; }
.grp.big .gt { height: 32px; padding: 0 12px 0 10px; font-size: .88rem; }
.grp.big .gt svg { width: 18px; height: 18px; }
.gt-stu { --g-bg: #E4EEFF; --g-ink: #1F4FA8; --g-line: #B9CEF5; }
.gt-sen { --g-bg: #FFF0D9; --g-ink: #8A4B00; --g-line: #F2CF97; }
.gt-mem { --g-bg: var(--sign-soft); --g-ink: var(--sign-text); --g-line: #EAB4CC; }
.gt-kid { --g-bg: #E2F5EA; --g-ink: #17643A; --g-line: #A9DDBE; }
[data-theme="dark"] .gt-stu, [data-theme="night"] .gt-stu { --g-bg: #17233A; --g-ink: #A9C6FF; --g-line: #2E4573; }
[data-theme="dark"] .gt-sen, [data-theme="night"] .gt-sen { --g-bg: #33240F; --g-ink: #FFCB80; --g-line: #5C4220; }
[data-theme="dark"] .gt-mem, [data-theme="night"] .gt-mem { --g-line: #62394F; }
[data-theme="dark"] .gt-kid, [data-theme="night"] .gt-kid { --g-bg: #12291C; --g-ink: #8FE0B1; --g-line: #24513A; }
[data-theme="contrast"] .grp .gt { --g-bg: transparent; --g-ink: var(--ink); --g-line: var(--ink); }
.offer .grp { margin: 6px 0 2px; }
.offer-card .grp { margin-top: 4px; }

/* ---------- first-visit onboarding: page over the app with a window into the live map */
body.onb-on .sheet, body.onb-on .map-fab, body.onb-on .panel-tab, body.onb-on .search-here, body.onb-on .maplibregl-ctrl-bottom-right { visibility: hidden; }
.onb { position: fixed; inset: 0; z-index: 55; overflow: hidden; }
.onb-sc { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.onb-in { position: relative; max-width: 1160px; margin: 0 auto; padding: 0 20px calc(40px + env(safe-area-inset-bottom)); }
.onb-in > *:not(.onb-win) { position: relative; z-index: 2; }
.onb-top { display: flex; align-items: center; gap: 10px; height: 64px; }
.onb-top .spacer { flex: 1; }
.onb-brand { display: inline-flex; align-items: center; height: 40px; }
.onb-brand .b-mark { display: none; }
.onb-brand .b-logo { display: block; height: 30px; width: auto; }
.onb-top .lang-mini { display: flex; }
.onb-h1 { font-family: var(--font-sign); font-weight: 700; font-size: clamp(2.5rem, 8.4vw, 5.6rem); line-height: .98; letter-spacing: -.02em; text-align: center; max-width: 12.5ch; margin: clamp(18px, 5vh, 56px) auto 14px; text-wrap: balance; }
.onb-sub { text-align: center; max-width: 38rem; margin: 0 auto; font-size: clamp(1rem, 2.4vw, 1.2rem); color: var(--ink-2); text-wrap: pretty; }
/* the inline marker tokens: the map's own vocabulary inside the headline */
.tk { display: inline-block; vertical-align: .12em; position: relative; animation: tk-bob 3.2s ease-in-out infinite; }
.tk-dot { width: .52em; height: .52em; margin: 0 .12em 0 .02em; border-radius: 50%; background: #F71884; box-shadow: 0 0 0 .07em #0B0B0B, 0 .08em .2em rgba(0, 0, 0, .25); }
.tk-price { font-size: .26em; line-height: 1; padding: .32em .5em; margin: 0 .3em 0 .1em; vertical-align: .9em; border-radius: .4em; background: #0B0B0B; color: #fff; transform: rotate(-7deg); letter-spacing: 0; animation-delay: -1.4s; }
@keyframes tk-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.08em; } }
/* the window: transparent, everything around it painted with the page colour */
.onb-win { position: relative; z-index: 1; height: clamp(300px, 46vh, 480px); margin: 44px 0 0; border-radius: 28px; box-shadow: 0 0 0 200vmax var(--bg), inset 0 0 0 1px var(--line); pointer-events: none; transition: box-shadow 420ms var(--ease-std); }
.onb-cta { pointer-events: auto; position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); z-index: 3; display: inline-flex; align-items: center; gap: 10px; height: 64px; padding: 0 30px 0 24px; border: 0; border-radius: var(--pill); background: #F71884; color: #0B0B0B; font-size: 1.3rem; font-weight: 700; white-space: nowrap; box-shadow: 0 0 0 6px var(--bg), 0 10px 28px rgba(0, 0, 0, .22); cursor: pointer; transition: transform 160ms var(--ease-set), box-shadow 160ms; }
.onb-cta:hover { transform: translate(-50%, -50%) scale(1.03); }
.onb-cta:active { transform: translate(-50%, -50%) scale(.98); }
.onb-cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 8px; }
.onb-legend { pointer-events: auto; position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; max-width: calc(100% - 24px); }
.onb-legend li { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 8px; border-radius: var(--pill); background: var(--surface); box-shadow: var(--sh-1); font-size: .82rem; font-weight: 600; color: var(--ink); }
.lg-d { width: 12px; height: 12px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px #8A8A8A; flex: none; }
.lg-d.on { background: #F71884; box-shadow: inset 0 0 0 2px #0B0B0B; }
.lg-g { width: 20px; height: 20px; border-radius: 50%; background: #F71884; box-shadow: inset 0 0 0 2px #0B0B0B; display: grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 800; color: #0B0B0B; flex: none; }
.onb-attr { position: absolute; right: 12px; bottom: 6px; font-size: .62rem; color: var(--muted); background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 1px 5px; border-radius: 4px; }
.onb-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; }
.onb-alt .btn { gap: 8px; }
.onb-h2 { font-family: var(--font-sign); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.3rem); text-align: center; margin: 56px 0 18px; letter-spacing: -.01em; }
.onb-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: ob; }
.onb-steps li { counter-increment: ob; background: var(--surface); border-radius: 22px; padding: 16px 18px 18px; box-shadow: inset 0 0 0 1px var(--line); }
.onb-steps li > b { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-top: 14px; }
.onb-steps li > b::before { content: counter(ob); font-family: var(--font-sign); width: 28px; height: 28px; border-radius: 50%; background: #0B0B0B; color: #fff; display: grid; place-items: center; font-size: .95rem; flex: none; }
.onb-steps li > p { margin: 6px 0 0; color: var(--ink-2); }
.onb-steps .demo { min-height: 112px; border-radius: 16px; background: var(--bg); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 14px; position: relative; overflow: hidden; }
.m-loc { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: .88rem; font-weight: 600; max-width: 100%; }
.m-loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-pin { width: 22px; height: 22px; border-radius: 50%; background: #F71884; border: 3px solid #0B0B0B; box-shadow: 0 0 0 7px rgba(247, 24, 132, .35); animation: m-drag 3.4s var(--ease-std) infinite; }
@keyframes m-drag { 0%, 100% { transform: translate(-18px, 4px); } 45%, 60% { transform: translate(18px, -6px); } }
.m-leg { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 8px; border-radius: var(--pill); background: var(--surface); font-size: .82rem; font-weight: 600; }
.m-sq { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.m-sq img { width: 34px; height: 34px; border-radius: 7px; background: #fff; box-shadow: 0 0 0 1px #0B0B0B; object-fit: contain; padding: 2px; }
.m-sq b { font-size: .72rem; background: #0B0B0B; color: #fff; padding: 2px 6px; border-radius: 5px; }
.m-chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px 0 9px; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: .84rem; font-weight: 600; }
.onb-steps .demo .grp { margin: 0; }
.onb .subf { margin: 40px auto 0; max-width: 760px; }
.onb-own { text-align: center; margin: 26px 0 0; }
.onb-own a { font-weight: 600; color: var(--ink); }
.onb.out .onb-in > *:not(.onb-win) { opacity: 0; transform: translateY(-14px); transition: opacity 300ms var(--ease-std), transform 300ms var(--ease-std); }
.onb.out .onb-win { box-shadow: 0 0 0 200vmax transparent, inset 0 0 0 1px transparent; }
.onb.out .onb-cta, .onb.out .onb-legend { opacity: 0; transition: opacity 200ms; }
@media (max-width: 599px) {
  .onb-in { padding: 0 16px calc(32px + env(safe-area-inset-bottom)); }
  .onb-top { height: 56px; }
  .onb-brand .b-logo { height: 24px; }
  .onb-win { height: clamp(300px, 44vh, 400px); margin-top: 40px; border-radius: 24px; }
  .onb-cta { height: 58px; font-size: 1.12rem; padding: 0 22px 0 18px; }
  .onb-alt .btn { flex: 1 1 100%; }
  .onb-h2 { margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { .tk, .m-pin { animation: none; } .onb-win { transition: none; } }

/* ---------- weekly tips form */
.subf { background: var(--surface); border-radius: 22px; padding: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.subf h2 { font-family: var(--font-sign); font-weight: 700; font-size: 1.5rem; margin: 0 0 4px; }
.subf > p { margin: 0 0 14px; color: var(--ink-2); }
.subf-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.subf label > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; color: var(--ink-2); }
.subf input[type=email], .subf input[type=text] { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface-2); color: var(--ink); font: inherit; }
.subf input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.subf .chk { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; font-size: .92rem; line-height: 1.35; cursor: pointer; }
.subf .chk input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: #0B0B0B; }
.subf-foot { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.subf-msg { color: var(--fav); font-weight: 600; font-size: .92rem; }
.view .subf { padding: 0; box-shadow: none; background: none; }

/* ---------- cookie choice */
#ckHost .ck { position: fixed; z-index: 66; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 16px 16px 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .22), inset 0 0 0 1px var(--line); animation: lk-rise 260ms var(--ease-set) both; }
#ckHost h2 { font-size: 1.02rem; margin: 0 0 4px; }
#ckHost p { margin: 0 0 12px; font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.ck-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ck-row .btn { min-height: 44px; }
.ck-row a { margin-left: auto; font-size: .9rem; font-weight: 600; color: var(--ink); padding: 10px 4px; }
@media (min-width: 900px) { #ckHost .ck { left: auto; right: 20px; bottom: 20px; margin: 0; } }
.onb-top .lang-mini { gap: 2px; }
.onb-top .lang-mini button { height: 36px; min-width: 38px; border: 0; border-radius: var(--r-s); background: transparent; font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.onb-top .lang-mini button[aria-current="true"] { background: var(--surface-2); color: var(--ink); }
.tk-price { background: var(--ink); color: var(--bg); }
@media (max-width: 599px) {
  #ckHost .ck { padding: 12px 12px 10px; border-radius: 16px; }
  #ckHost h2 { font-size: .95rem; }
  #ckHost p { font-size: .82rem; margin-bottom: 10px; }
  .ck-row { gap: 6px; }
  .ck-row .btn { flex: 1 1 0; min-height: 44px; padding: 0 10px; font-size: .9rem; }
  .ck-row a { flex: 1 1 100%; margin: 0; padding: 4px 2px 0; text-align: center; font-size: .82rem; }
}
body.onb-on .maplibregl-ctrl-attrib, body.onb-on .maplibregl-ctrl-bottom-left { visibility: hidden; }

/* ---------- 05.11.2026: Mainos slot, sort, recently viewed, card extras, owners plans */
.qwrap .q-x { position: absolute; right: 22px; top: 8px; width: 36px; height: 36px; border: 0; border-radius: var(--pill); background: transparent; color: var(--muted); display: grid; place-items: center; }
.qwrap .q-x:hover { background: var(--line); color: var(--ink); }
.qwrap .q-x svg.i { position: static; color: inherit; }
.qwrap input { padding-right: 44px; }
.qwrap input::-webkit-search-cancel-button { display: none; }
.sortrow { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px 16px 0; font-size: .86rem; color: var(--muted); }
.sortrow label { display: inline-flex; align-items: center; gap: 5px; }
.sortrow select { min-height: 36px; padding: 0 30px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--pill); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23595959' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center; color: var(--ink); font: inherit; font-weight: 600; -webkit-appearance: none; appearance: none; }
.recent { padding: 2px 0 0; }
.recent-h { display: flex; align-items: center; justify-content: space-between; padding-right: 16px; }
.recent-h .lnk { font-size: .82rem; color: var(--muted); }
.recent-l { list-style: none; margin: 0; padding: 2px 16px 6px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.recent-l::-webkit-scrollbar { display: none; }
.recent-l a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 600; white-space: nowrap; max-width: 220px; }
.recent-l a span:last-child { overflow: hidden; text-overflow: ellipsis; }
.recent-l .rc-lg { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; box-shadow: 0 0 0 1px var(--line); }
.recent-l .rc-lg img { width: 26px; height: 26px; object-fit: contain; }
.recent-l .rc-lg.fb { background: var(--surface-2); color: var(--ink-2); }
.recent-l .rc-lg svg { width: 18px; height: 18px; }
mark { background: var(--sign-soft); color: inherit; border-radius: 3px; box-shadow: 0 -2px 0 var(--sign) inset; padding: 0 1px; }

.ads { padding: 2px 16px 6px; }
.ads .sec { padding-left: 0; }
.ad-sec::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--sign); box-shadow: 0 0 0 1.5px var(--ink); border-radius: 2px; vertical-align: 1px; }
.ad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ad-main { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 12px; border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); text-decoration: none; color: inherit; transition: transform var(--t-fast) var(--ease-std), box-shadow var(--t-fast); }
.ad-main::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--sign); }
.ad-main:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--ink), var(--sh-2); }
.ad-main .ad-lg { position: static; width: 44px; height: 44px; flex: none; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; overflow: hidden; }
.ad-main .ad-lg img { width: 38px; height: 38px; object-fit: contain; }
.ad-main .ad-lg.fb { background: var(--surface-2); color: var(--ink-2); }
.ad-tx { display: grid; gap: 2px; min-width: 0; }
.ad-lab { justify-self: start; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--bg); padding: 2px 7px; border-radius: 4px; margin-bottom: 2px; }
.ad-n { font-size: 1.06rem; line-height: 1.25; }
.ad-h { font-size: .92rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-m { font-size: .84rem; color: var(--muted); }
.ad-m .status { display: inline; }
.ad-why { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.ad-why summary { cursor: pointer; width: fit-content; min-height: 32px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.ad-why p { margin: 4px 0 0; }
.ad-card.rise { animation: lk-rise 420ms var(--ease-set) both; }

.addr-l { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin: 0 0 6px; flex-wrap: wrap; }
.card-low { margin: 12px 0 0; }
.claim-l { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .92rem; }
.claim-l .lnk { color: var(--sign-text); }
.fixf { margin: 10px 0 0; padding: 14px; border-radius: var(--r-m); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.fixf h3 { margin: 0 0 4px; font-size: 1rem; }
.fixf .field { margin: 8px 0 0; }
.fixf .subf-foot { margin-top: 10px; }
.ok-line { margin: 0; font-weight: 600; color: var(--open); }

.pitch-cta { margin: 16px 0 0 !important; }
.pitch-cta .btn { background: var(--on-sign); color: var(--sign); }
.pf { margin: 0 0 18px; padding: 16px; border-radius: var(--r-l); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pf h2 { margin: 0 0 10px; font-size: 1.05rem; }
.pf-bar { height: 10px; border-radius: 10px; background: var(--c-track); overflow: hidden; }
.pf-bar span { display: block; height: 100%; background: var(--c-bar); border-radius: 10px; }
.pf-score { margin: 8px 0 6px; font-size: .92rem; }
.pf-l { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: .9rem; color: var(--muted); }
.pf-l li { display: flex; gap: 6px; align-items: center; }
.pf-l li.ok { color: var(--ink); }
.pf-l li.ok span { color: var(--open); font-weight: 800; }
.plans h2, .faq h2, .form-h { font-family: var(--font-sign); font-weight: 700; font-size: 1.5rem; margin: 22px 0 10px; }
.founding { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-m); background: var(--ink); color: var(--bg); margin: 0 0 12px; }
.founding svg { color: var(--sign); flex: none; margin-top: 2px; }
.founding p { margin: 2px 0 0; font-size: .92rem; opacity: .92; }
.plan-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.plan { position: relative; display: flex; flex-direction: column; padding: 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.plan.pl-pro { box-shadow: inset 0 0 0 2px var(--ink); }
.plan.pl-nak { background: var(--sign-soft); }
.plan h3 { margin: 0; font-size: 1.1rem; }
.pl-pop { position: absolute; top: -9px; right: 14px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--sign); color: var(--on-sign); padding: 2px 8px; border-radius: 4px; box-shadow: 0 0 0 1.5px var(--ink); }
.pl-pr { margin: 4px 0 8px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pl-pr b { font-family: var(--font-sign); font-size: 1.6rem; line-height: 1.1; white-space: nowrap; }
.pl-pr small { color: var(--muted); font-size: .85rem; }
.plan ul { margin: 0 0 14px; padding-left: 18px; font-size: .9rem; flex: 1; }
.plan ul li { margin: 3px 0; }
.plan .btn { height: 44px; }
.pl-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pl-links .btn { flex: 1 1 200px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.faq p { margin: 0 0 10px; color: var(--ink-2); }

.skel-wrap { padding: 8px 0; }
.skel { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.skel i { width: 40px; height: 40px; border-radius: 6px; background: var(--c-track); flex: none; }
.skel span { flex: 1; display: grid; gap: 7px; }
.skel b { height: 11px; border-radius: 6px; background: var(--c-track); }
.skel b:nth-child(1) { width: 62%; height: 14px; } .skel b:nth-child(2) { width: 44%; } .skel b:nth-child(3) { width: 30%; }
@media (prefers-reduced-motion: no-preference) {
  .skel i, .skel b { background: linear-gradient(90deg, var(--c-track) 0%, var(--surface-2) 50%, var(--c-track) 100%); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
}
@keyframes skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
html[data-theme="contrast"] .ad-main { box-shadow: inset 0 0 0 2px #000; }
.toast button { white-space: nowrap; }
.form-h, .plans, .pf { scroll-margin-top: 72px; }

/* active filter chips under search (05.11) */
.af { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 0; }
.af-c { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px 0 12px; border-radius: var(--pill); border: 1px solid var(--btn); background: var(--btn); color: var(--on-btn); font-size: .85rem; font-weight: 600; position: relative; }
.af-c::after { content: ""; position: absolute; inset: -4px 0; } /* 44px target */
.af-c svg.i16 { opacity: .85; }
.af-c.af-all { background: transparent; color: var(--ink); border: 1px dashed var(--line-strong); padding: 0 12px; font-weight: 500; }
.af-c:focus-visible { outline: 3px solid var(--focus, #F71884); outline-offset: 2px; }

/* 44 px touch targets for small text links and controls without shifting layout (05.11) */
.lnk, .footer a, .place .offers a, .place .off a, .menu-today a, .place .foot a, .claim-l a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.place summary, .area summary, .table-toggle summary { padding-block: 6px; min-height: 44px; }
.days button { position: relative; }
.days button::after { content: ""; position: absolute; inset: -4px 0; }
.mini-btn { position: relative; }
.mini-btn::after { content: ""; position: absolute; inset: -4px 0; }
.loc-btn { position: relative; }
.loc-btn::after { content: ""; position: absolute; inset: -2px 0; }

/* similar places, card preview and payback calculator (05.11) */
.sim ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.sim a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 8px; margin: 0 -8px; border-radius: var(--r-s); color: inherit; text-decoration: none; }
.sim a:hover { background: var(--surface-2); }
.sim a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sim a span { display: grid; gap: 2px; min-width: 0; }
.sim a b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim a small { color: var(--muted); font-size: .85rem; }
.prev { margin: 24px 0; }
.prev .rows { border: 1px solid var(--line); border-radius: var(--r-m, 16px); overflow: hidden; background: var(--surface); }
.calc { margin: 24px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-m, 16px); background: var(--surface-2); }
.calc h2 { margin-top: 0; }
.calc-in { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-out { list-style: none; padding: 0; margin: 12px 0 4px; display: grid; gap: 8px; }
.calc-out li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.calc-out span { color: var(--muted); font-size: .9rem; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--btn); color: var(--on-btn); border-radius: var(--pill); font-weight: 600; }
.skip:focus { top: 8px; }

/* Targo blocks (05.11.2026): the big promo surfaces wear the Targo gradient with white type, like the original mark.
   The gradient starts at #D0177A (not #F71884) so white text keeps >= 5.1:1 everywhere; buttons inside flip to white/plum. */
.intro, .pitch { --sign: #781B56; --on-sign: #FFFFFF; --sign-text: #FFFFFF; background: linear-gradient(160deg, #D0177A 0%, #A01964 55%, #781B56 100%); color: #FFFFFF; }
.intro a, .pitch a { color: inherit; }
.intro p, .intro .steps li, .intro .fine { color: #FFFFFF !important; }
.intro .steps b { color: #FFFFFF; }
.intro .btn.primary { background: #FFFFFF; color: #781B56; }
.intro .btn.ghost { border-color: rgba(255, 255, 255, .85); color: #FFFFFF; }
.intro .btn:focus-visible, .pitch .btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }

/* Footer (05.11.2026): structure after pitchbob.io (brand, link columns, legal bar), own look: a dark plum slab
   under a Targo gradient rule. The same slab in every theme except contrast (brand surface). */
.ft { margin: 28px 0 0; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); background: #2B0A1F; color: #F7EEF2; border-radius: var(--r-l) var(--r-l) 0 0; position: relative; overflow: hidden; }
.ft::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #F71884, #BC196E 55%, #781B56); }
.ft-brand { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; }
.ft-mark { width: 44px; height: 44px; grid-row: span 2; }
.ft-name { margin: 0; font-family: var(--font-sign); font-weight: 700; font-size: 1.35rem; line-height: 1.1; letter-spacing: -.01em; }
.ft-name .tm { font-size: .55em; vertical-align: super; margin-left: 1px; font-weight: 600; }
.ft-tag { margin: 2px 0 0; color: #E3C6D5; font-size: .9rem; }
.ft-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin: 22px 0 6px; }
.ft-cols h2 { margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FF8CC0; }
.ft-cols ul { list-style: none; margin: 0; padding: 0; }
.ft-cols li { margin: 0; }
.ft-cols a, .ft-cols button { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 0; font: inherit; font-size: .92rem; color: #F7EEF2; text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; position: relative; }
.ft-cols a::after, .ft-cols button::after { content: ""; position: absolute; inset: -4px -6px; } /* 44 px target without extra rhythm */
.ft-cols a:hover, .ft-cols button:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #FF8CC0; }
.ft-city { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.ft-city li:last-child { grid-column: 1 / -1; }
.ft-note { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r-s); background: rgba(255, 255, 255, .06); color: #E3C6D5; font-size: .85rem; line-height: 1.45; }
.ft-bar { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 8px; font-size: .8rem; color: #D9B3C7; }
.ft-bar p { margin: 0; }
.ft-lang { display: flex; gap: 6px; margin-top: 4px; }
.ft-lang button { min-width: 44px; min-height: 36px; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, .28); background: none; color: #F7EEF2; font: inherit; font-weight: 700; font-size: .8rem; cursor: pointer; }
.ft-lang button[aria-pressed="true"] { background: #F7EEF2; color: #2B0A1F; border-color: #F7EEF2; }
.ft :focus-visible { outline: 3px solid #FF8CC0; outline-offset: 2px; border-radius: 4px; }
#sheetBody:has(> .ft:last-child) { padding-bottom: 0; } /* run the slab to the bottom edge of the list */
html[data-theme="contrast"] .ft { background: #FFFFFF; color: #000; border-top: 2px solid #000; }
html[data-theme="contrast"] .ft :is(.ft-tag, .ft-note, .ft-bar, .ft-cols h2, .ft-cols a, .ft-cols button, .ft-lang button) { color: #000; }
html[data-theme="contrast"] .ft-lang button { border-color: #000; }
html[data-theme="contrast"] .ft-lang button[aria-pressed="true"] { background: #000; color: #fff; }

/* second 200 (05.11.2026): area states, search helpers, card extras */
.status.unk { color: var(--muted); font-weight: 400; }
.status.unk i, .status.unk svg.i { opacity: .55; }
.row .lt { color: var(--ink-2, var(--muted)); font-size: .86rem; }
.row .lt::before { content: '·'; margin: 0 6px 0 2px; color: var(--muted); }
.row .off-l { color: var(--ink); font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.area-state { margin: 4px 0 10px; font-weight: 600; font-size: .95rem; }
.area-price { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.area-price a { color: var(--ink); font-weight: 600; }
.area-far h2 { font-size: 1.15rem; margin: 0 0 4px; }
.area-far .btn { margin-top: 10px; }
.area .lg-b { display: inline-flex; align-items: center; gap: inherit; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; min-height: 32px; }
.area .lg-b[aria-pressed="true"] { text-decoration-color: currentColor; }
.area .area-m { font-size: inherit; color: inherit; padding: 0; min-height: 0; }
.hbars .lab-b { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; }
.city-go { margin: 0 0 12px; }
.q-try { margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.place .pcmp { margin-top: 2px; }
.today-h { margin: 0 0 10px; }

.hbars .fill { display: block; }
.lg.lg-dark, .rc-lg.lg-dark, .plogo.lg-dark { background: #1E1A1C !important; }
/* the recent strip scrolls sideways: fade the cut edge so it reads as "more", snap to chips */
.recent-l { scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); padding-right: 36px; }
.recent-l li { scroll-snap-align: start; }

/* panel width: 420 px on desktops, 360 px on tablets and phones held sideways */
:root { --pw: 420px; }
@media (max-width: 1023px) { :root { --pw: 360px; } }
@media (max-width: 1023px) and (min-width: 640px) { .lang-mini { display: none !important; } .loc-btn { flex: 1 1 auto; } }
/* phone held sideways: compact header, one scrolling row of chips so the list keeps its height */
@media (min-width: 640px) and (max-height: 520px) {
  :root { --header-h: 52px; --pw: 340px; }
  .bar { height: 52px !important; }
  .brand .b-logo { display: none !important; } .brand .b-mark { display: block !important; }
  .chips { flex-wrap: nowrap !important; overflow-x: auto !important; padding: 8px 12px !important; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
}
@media (max-width: 1023px) and (min-width: 640px) {
  .chips { flex-wrap: nowrap !important; overflow-x: auto !important; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
  .chips::-webkit-scrollbar { display: none; }
}
.recent-l { scroll-padding-inline: 16px; }

/* touch: the drag handle keeps its 24 px look but takes a 44 px finger */
.handle { height: 44px; margin-bottom: -20px; z-index: 2; }
/* nothing under 12 px */
.tag, .offer-b { font-size: .75rem; }
.ft-cols h2 { font-size: .75rem; }
/* search stays reachable while scrolling a long list (Wolt, Google Maps) */
#sheetBody > .qwrap { position: sticky; top: 0; z-index: 4; background: var(--surface); padding-bottom: 8px; box-shadow: 0 1px 0 transparent; }
.dishes .pr { margin-left: auto; padding-left: 10px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.dishes.full li { display: flex; align-items: baseline; gap: 4px; }
.dishes .more-d { color: var(--muted); font-size: .85rem; list-style: none; }
/* menu board: the whole width becomes a grid of today's menus (desktop, 1100 px+) */
body.board { --pw: 100vw; }
body.board #map, body.board .loc-fab, body.board #meBtn, body.board .search-here, body.board .maplibregl-ctrl-bottom-right { visibility: hidden; }
body.board .chips { width: 100vw; flex-wrap: wrap; }
body.board #sheetBody { padding: 0 24px 0; }
body.board #sheetBody > :not(#mainRows):not(.ft):not(.rows) { max-width: 1100px; }
body.board #mainRows, body.board .rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
body.board .rows .row { border: 1px solid var(--line); border-radius: var(--r-m, 12px); background: var(--surface); }
body.board .view { width: min(560px, 100vw); left: auto; right: 0; box-shadow: -1px 0 0 var(--line), -12px 0 40px rgba(0,0,0,.12); }
body.board .panel-tab { display: none !important; }

#meBtn.busy svg { animation: lk-spin 1s linear infinite; } @keyframes lk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #meBtn.busy svg { animation: none; opacity: .5; } }
html[data-theme="dark"] .maplibregl-ctrl-group, html[data-theme="night"] .maplibregl-ctrl-group { background: #1E1E1E; box-shadow: 0 0 0 1px #6E6E6E; }
html[data-theme="dark"] .maplibregl-ctrl-group button + button, html[data-theme="night"] .maplibregl-ctrl-group button + button { border-top-color: #6E6E6E; }
html[data-theme="dark"] .maplibregl-ctrl-icon, html[data-theme="night"] .maplibregl-ctrl-icon { filter: invert(1); }
.empty .empty-ic svg { width: 40px; height: 40px; color: var(--muted); }
.ft-city button[aria-current="true"] { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.src .fresh { display: inline-block; font-weight: 700; color: var(--c-lunch); }
.src .stale { display: inline-block; font-weight: 700; color: var(--c-no); }
#bnBlock.ask { box-shadow: inset 3px 0 0 var(--sign); padding-left: 10px; }
.bn-ask { font-weight: 600; margin: 0 0 8px; }
.fav-l { font-weight: 600; }

/* favourites strip */
.favs .fav-tg { display: inline-flex; align-items: center; gap: 6px; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; }
.favs .fav-tg svg.i { color: var(--sign, #F71884); }
.favs .fav-n { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--c-lunch); }
.favs .chev { transition: transform .2s; } .favs.closed .chev { transform: rotate(-90deg); }
.fav-l2 { list-style: none; margin: 0; padding: 2px 16px 10px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 16px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.fav-l2::-webkit-scrollbar { display: none; }
.fav-l2 li { scroll-snap-align: start; flex: none; }
.fav-l2 a { display: flex; gap: 10px; align-items: flex-start; width: 236px; padding: 10px 12px; border-radius: var(--r-m, 12px); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; }
.fav-l2 a:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.fav-l2 .fc { display: grid; gap: 2px; min-width: 0; }
.fav-l2 .fc b { font-size: .95rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-l2 .fc small { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav-l2 .fc .fd { color: var(--ink-2); }
.favs .recent-h .sec { padding-top: 2px; padding-bottom: 0; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pv-box:not(:empty) { margin: 12px 0; padding: 14px 16px; border-radius: var(--r-m, 12px); background: var(--surface-2); }
.pv-box h2 { font-size: 1rem; margin: 0 0 8px; }
.pv-l { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-l b { display: block; font-size: 1.4rem; font-family: var(--font-sign); font-feature-settings: var(--tnum); }
.pv-l span { font-size: .8rem; color: var(--muted); }
.sub-menu .seg { margin-bottom: 10px; }
.vat { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
.ok-l { font-weight: 600; color: var(--c-lunch); }
.add-l { margin: 8px 0 0; }

/* 12 px minimum: chart axis and plan badge */
.tl-axis { font-size: .75rem; }
.tl-axis div { height: 15px; }
.pl-pop { font-size: .75rem; }
/* text links in the area block: a full-size tap area without changing the line height */
.area button.lnk { padding-block: 12px; margin-block: -12px; }
/* cuisine bars: 28 px rows so the tappable label meets the 24 px minimum with room */
.hbars .lab-b { min-height: 28px; }
/* tapped before the data arrived: the button shows it heard the tap */
.loc-btn.busy, #menuBtn.busy { animation: lk-busy 1s ease-in-out infinite alternate; }
@keyframes lk-busy { from { opacity: 1; } to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .loc-btn.busy, #menuBtn.busy { animation: none; opacity: .6; } }
