/* =====================================================================
   BRAND – alt som har med merkevare å gjøre ligger her.
   Ny logo: bytt public/brand/logo.svg (+ kjør scripts/make_icons.py) og
   juster --brand* under. Typefarger brukes av kartmarkører (icons.js leser dem).
   ===================================================================== */
:root {
  --brand: #0277bd;          /* hovedaksent (logo-blå): knapper, brytere, lenker, fokus */
  --brand-ink: #ffffff;      /* tekst/ikon oppå --brand */
  --brand-soft: #e3f1fa;     /* svak aksentflate (valgt rad, fokusring) */
  /* Typefarger (kart + UI) */
  --type-h: #2f5fe3;         /* P-hus */
  --type-k: #e8672c;         /* Gateparkering */
  --type-a: #14946a;         /* Område */
  --type-u: #7b8494;
  --type-l: #cf9100;         /* Lading (ladestasjoner) – i familie med --c-el */
  /* Semantiske kartfarger */
  --c-hc: #0a7cc4; --c-el: #d19a07; --c-buss: #6b7280; --c-beboer: #8b5cf6; --c-forbud: #e5484d;
  --c-privat: #9ca3af; --c-free: #0f9488; --c-unknown: #f2a516; --c-innfart: #0f766e;
}
body.dark {
  --brand: #55b6ee; --brand-ink: #0b1020; --brand-soft: rgba(85,182,238,.16); /* lysere logo-blå, 7,2:1 mot --bg (mørk) */
}

/* ---------- Nøytrale tokens ---------- */
:root {
  --ink: #111827; --ink2: #374151; --muted: #6b7280; --line: rgba(17,24,39,.07);
  --bg: #ffffff; --bg-soft: #f3f4f6; --glass: rgba(255,255,255,.9);
  --shadow: 0 1px 2px rgba(17,24,39,.05), 0 4px 16px rgba(17,24,39,.09);
  --shadow-lg: 0 -1px 0 rgba(17,24,39,.04), 0 -8px 30px rgba(17,24,39,.10);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --r: 14px; --r-lg: 22px;
  /* Typeskala 13 / 15 / 17 / 22 */
  --fs-s: 13px; --fs-m: 15px; --fs-l: 17px; --fs-xl: 22px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font); font-size: var(--fs-m);
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; color-scheme: light;
}
body.dark {
  --ink: #f3f4f6; --ink2: #d1d5db; --muted: #9ca3af; --line: rgba(255,255,255,.07);
  --bg: #1b1f27; --bg-soft: #262b35; --glass: rgba(30,34,43,.9);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 18px rgba(0,0,0,.4);
  --shadow-lg: 0 -8px 30px rgba(0,0,0,.45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; color: var(--ink); background: #f4f1ea; overscroll-behavior: none; }
body.dark { background: #14181f; }
#app { position: fixed; inset: 0; overflow: hidden; }
/* STATUSLINJE-STRIPE: fjern denne blokka for å rulle tilbake.
   iOS standalone (viewport-fit=cover): kartet tegnes under statuslinja og får en blur/fade der. Vi dekker safe-area-toppen med en helt
   dekkende stripe i sidebakgrunnen (samme farge som theme-color). Ligger i #app (egen stacking context) over kartet, under topbar/FAB/ark.
   Høyde 0 uten safe-area (desktop/Android) = ingen effekt. */
#app::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--safe-t); background: #f4f1ea; z-index: 3; pointer-events: none; }
body.dark #app::before { background: #14181f; }
/* /STATUSLINJE-STRIPE */
#map { position: absolute; inset: 0; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.glass { background: var(--glass); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); }

/* ---------- Topp: søk + filter ---------- */
.topbar { position: absolute; top: calc(var(--safe-t) + 10px); left: 12px; right: 12px; z-index: 5; }
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 4px 0 10px; border-radius: 16px; box-shadow: var(--shadow);
  background: var(--glass); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); transition: box-shadow .2s; }
.search:focus-within { box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.brand-mark { width: 30px; height: 30px; flex: none; display: grid; place-items: center; }
.brand-mark img { width: 30px; height: 30px; border-radius: 15%; display: block; }
.search input { flex: 1; border: 0; outline: 0; font: 500 16px/1.2 var(--font); color: var(--ink); background: transparent; min-width: 0; height: 100%; letter-spacing: -.005em; }
.search input::placeholder { color: var(--muted); font-weight: 400; }
.search input::-webkit-search-cancel-button { display: none; }
.icon-btn { border: 0; background: transparent; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.icon-btn .i { width: 20px; height: 20px; }
.icon-btn.soft { width: 32px; height: 32px; background: var(--bg-soft); }
.icon-btn.soft .i { width: 16px; height: 16px; stroke-width: 2.4; }
.suggest { list-style: none; margin: 8px 0 0; padding: 6px; border-radius: 16px; box-shadow: var(--shadow); max-height: 56vh; overflow: auto;
  background: var(--glass); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); }
.suggest li { padding: 9px 10px; min-height: 52px; cursor: pointer; display: flex; gap: 12px; align-items: center; border-radius: 12px; }
.suggest li + li:not(.src) { box-shadow: 0 -1px 0 var(--line); }
.suggest li .pinico { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; flex: none; color: var(--muted); }
.suggest li .pinico .i { width: 16px; height: 16px; }
.suggest li .tx { display: flex; flex-direction: column; min-width: 0; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--brand-soft); box-shadow: none; }
.suggest .s1 { font-weight: 600; font-size: var(--fs-m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest .s2 { font-size: var(--fs-s); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest .src { font-size: var(--fs-s); color: var(--muted); padding: 12px; min-height: 0; cursor: default; }
.suggest .src:hover { background: none; }
.chips { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 999px; padding: 0 12px 0 10px; height: 34px;
  font-size: var(--fs-s); font-weight: 600; white-space: nowrap; color: var(--ink); box-shadow: 0 1px 2px rgba(17,24,39,.06), 0 2px 8px rgba(17,24,39,.08);
  background: var(--glass); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); transition: color .15s, opacity .15s; }
.chip::before { content: ""; position: absolute; inset: -5px -2px; } /* 44 px treffflate */
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); transition: all .15s; }
.chip:not(.on) { color: var(--muted); }
.chip:not(.on) .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.chip:active { transform: scale(.97); }
.sheet-open .chips { opacity: 0; pointer-events: none; }
.chips { transition: opacity .2s; }

/* ---------- Kartknapper (én gruppe) ---------- */
.fabs { position: absolute; right: 12px; bottom: calc(var(--safe-b) + 84px); z-index: 4; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--glass); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); transition: opacity .2s; }
.fab { width: 46px; height: 46px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink2); }
.fab + .fab { box-shadow: 0 -1px 0 var(--line); }
.fab .i { width: 21px; height: 21px; }
.fab.locate { color: var(--brand); }
.fab.locate.active .i { fill: currentColor; }
.fab:active { background: var(--bg-soft); }
.sheet-open .fabs { opacity: 0; pointer-events: none; }

/* ---------- Paneler ---------- */
.panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--bg); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-lg); color: var(--ink); }
.grab { display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--muted); opacity: .3; margin: 7px auto 0; }
.muted { color: var(--muted); }

/* Kart-ark (lag) */
.layers { z-index: 8; padding: 0 16px calc(var(--safe-b) + 16px); max-height: 82dvh; overflow-y: auto; overscroll-behavior: contain; animation: up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.layers-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 12px; }
.layers-head h2 { margin: 0; font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.02em; }
.layer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.layer-card { border: 0; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: var(--fs-s); font-weight: 500; color: var(--ink2); min-height: 44px; }
.layer-card .pv { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s; }
.layer-card .pv img, .layer-card .pv svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.layer-card small { display: none; }
.layer-card[aria-checked="true"] .pv { box-shadow: 0 0 0 2.5px var(--brand); }
.layer-card[aria-checked="true"] { color: var(--ink); font-weight: 600; }
.group { display: block; width: 100%; margin-top: 14px; background: var(--bg-soft); border-radius: var(--r); padding: 0 14px; border: 0; text-align: left; color: var(--ink); font: inherit; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; font-size: var(--fs-m); cursor: pointer; }
.switch + .switch { box-shadow: 0 -1px 0 var(--line); }
.switch small { display: block; font-size: var(--fs-s); color: var(--muted); margin-top: 1px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .slider { width: 46px; height: 28px; border-radius: 14px; background: rgba(120,120,128,.24); position: relative; flex: none; transition: background .2s; }
.switch .slider::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.18); transition: transform .2s; }
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::after { transform: translateX(18px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--brand); outline-offset: 2px; }
.legend-wrap summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 50px; cursor: pointer; font-size: var(--fs-m); }
.legend-wrap summary::-webkit-details-marker { display: none; }
.legend-wrap[open] summary .chev-r { transform: rotate(90deg); }
.legend-wrap #legend-body { padding-bottom: 14px; }
.chev-r { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.row-link { display: flex; align-items: center; gap: 12px; min-height: 50px; cursor: pointer; }
.row-link span { flex: 1; }
.row-link > .i:first-child { width: 20px; height: 20px; color: var(--muted); }

/* Nærmeste (peek) */
.nearby { padding-bottom: var(--safe-b); max-height: 62vh; display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.nearby-head { border: 0; background: transparent; text-align: left; padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.nh-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.nh-t { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
#nearby-title { font-weight: 650; font-size: var(--fs-l); letter-spacing: -.015em; white-space: nowrap; }
#nearby-sub { font-size: var(--fs-s); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearby-head .chev { width: 20px; height: 20px; color: var(--muted); transition: transform .25s; flex: none; }
.nearby:not(.collapsed) .chev { transform: rotate(180deg); }
.nearby-list { list-style: none; margin: 0; padding: 0 8px 10px; overflow: auto; }
.nearby.collapsed .nearby-list { display: none; }
.nearby-list li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; min-height: 56px; border-radius: 12px; cursor: pointer; }
.nearby-list li + li { box-shadow: 0 -1px 0 var(--line); }
.nearby-list li:hover { background: var(--bg-soft); }
.nearby-list .ic { width: 26px; height: 32px; flex: none; object-fit: contain; }
.nearby-list .t { flex: 1; min-width: 0; }
.nearby-list .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: var(--fs-m); }
.nearby-list .t span { font-size: var(--fs-s); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin-top: 1px; }
.nearby-list .d { font-size: var(--fs-s); font-weight: 500; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.nearby.hidden { transform: translateY(110%); }

/* Detaljark */
.sheet { max-height: 78vh; overflow-y: auto; transform: translateY(105%); transition: transform .34s cubic-bezier(.2,.8,.2,1); padding: 0 18px calc(var(--safe-b) + 22px); z-index: 7; overscroll-behavior: contain; }
.sheet.open { transform: translateY(0); }
.sheet .close { position: absolute; top: 14px; right: 14px; }
.sh-head { margin: 10px 44px 0 0; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; font-size: var(--fs-s); font-weight: 600; color: var(--muted); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.sheet h2 { margin: 0; font-size: var(--fs-xl); line-height: 1.22; letter-spacing: -.022em; font-weight: 700; }
.sheet .sub { color: var(--muted); margin: 4px 0 0; font-size: var(--fs-m); line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pill { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 999px; padding: 2px 8px 2px 9px; font: 600 12px/1.5 var(--font); color: var(--ink2); background: var(--bg-soft); position: relative; }
.pill::before { content: ""; position: absolute; inset: -10px -4px; }
.pill .i { width: 13px; height: 13px; stroke-width: 2.2; color: var(--muted); }
.hint { font-size: var(--fs-s); color: var(--muted); line-height: 1.45; margin: 10px 0 0; }
.facts { display: flex; margin: 18px 0 4px; background: var(--bg-soft); border-radius: var(--r); padding: 12px 0; }
.facts > div { flex: 1; min-width: 0; text-align: center; padding: 0 6px; }
.facts > div + div { box-shadow: -1px 0 0 var(--line); }
.facts span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.facts b { display: block; font-size: var(--fs-l); font-weight: 650; letter-spacing: -.01em; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { display: flex; align-items: center; gap: 9px; margin: 14px 0 0; font-weight: 600; font-size: var(--fs-m); color: #0f7a4f; }
body.dark .live { color: #5eead4; }
.live small { color: var(--muted); font-weight: 500; font-size: var(--fs-s); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); flex: none; }
.rows { margin-top: 6px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: var(--fs-m); line-height: 1.35; }
.row + .row { box-shadow: 0 -1px 0 var(--line); }
.row span:first-child { color: var(--muted); flex: none; }
.row span:last-child { text-align: right; font-weight: 500; }
.actions { display: flex; gap: 10px; margin: 18px 0 4px; }
.btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border-radius: var(--r); min-height: 50px; padding: 12px 14px;
  font-weight: 600; font-size: var(--fs-m); border: 0; color: var(--ink); background: var(--bg-soft); transition: transform .1s; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.secondary { flex: 0 0 auto; }
.btn .i { width: 19px; height: 19px; }
.btn:active { transform: scale(.98); }
.sheet a { color: var(--brand); text-decoration: none; }
h3 { font-size: var(--fs-m); color: var(--ink); margin: 24px 0 8px; font-weight: 650; letter-spacing: -.01em; }
h3 small { font-weight: 500; color: var(--muted); font-size: var(--fs-s); margin-left: 6px; }
.list { background: var(--bg-soft); border-radius: var(--r); overflow: hidden; }
.list > * + * { box-shadow: 0 -1px 0 var(--line); }
.item { display: flex; width: 100%; align-items: center; gap: 12px; text-decoration: none; color: var(--ink) !important; padding: 9px 12px; min-height: 56px; border: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; }
.item:active { background: var(--line); }
.item .logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; font-size: 16px; }
.item .dotbig { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); font-weight: 750; font-size: 15px; }
.item .nm { flex: 1; min-width: 0; font-weight: 600; font-size: var(--fs-m); }
.item .nm small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-s); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .chev-r { flex: none; }
.item .stores { display: flex; gap: 10px; }
.item .stores a { font-size: var(--fs-s); font-weight: 600; white-space: nowrap; }
.pay-extra[hidden] { display: none; }
.pay-more { border: 0; background: transparent; color: var(--brand); font-weight: 600; font-size: var(--fs-s); padding: 10px 2px; min-height: 44px; cursor: pointer; }
details.more { margin-top: 12px; font-size: var(--fs-m); color: var(--ink2); }
details.more summary { cursor: pointer; font-weight: 500; color: var(--brand); padding: 10px 0; min-height: 44px; }
details.more p { margin: 6px 0; line-height: 1.5; }
.skeleton { height: 14px; background: linear-gradient(90deg, var(--bg-soft), var(--line), var(--bg-soft)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; margin: 14px 0; }
@keyframes sk { to { background-position: -200% 0; } }

/* Om data */
.about p { font-size: var(--fs-m); line-height: 1.55; color: var(--ink2); margin: 8px 0 0; }
.about .src-list .item { min-height: 0; padding: 11px 14px; cursor: default; }
.about .src-list .nm small { white-space: normal; }
.about .src-list a { color: var(--ink); }
.about .sh-head { margin-top: 14px; }

.toast { position: absolute; left: 50%; top: calc(var(--safe-t) + 112px); transform: translateX(-50%); background: rgba(17,24,39,.88); backdrop-filter: blur(10px); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: var(--fs-s); font-weight: 500; z-index: 9; max-width: 90%; text-align: center; box-shadow: var(--shadow); animation: pop .2s; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -6px); } }

/* ---------- Markører i DOM ---------- */
.me { width: 20px; height: 20px; border-radius: 50%; background: #1d7cf2; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(29,124,242,.5); position: relative; }
.me::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: rgba(29,124,242,.25); animation: pulse 2.4s infinite ease-out; z-index: -1; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.searchpin { width: 30px; height: 40px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.25)); }

/* Desktop: sidepanel til venstre */
@media (min-width: 760px) {
  .topbar { width: 400px; right: auto; left: 16px; top: 16px; }
  .panel { width: 400px; left: 16px; right: auto; bottom: 16px; border-radius: var(--r-lg); }
  .nearby { max-height: calc(100vh - 180px); }
  .sheet { max-height: calc(100vh - 140px); transform: translateX(-120%); }
  .sheet.open { transform: translateX(0); }
  .layers { left: auto; right: 76px; bottom: 24px; width: 360px; max-height: calc(100vh - 48px); }
  .fabs { bottom: 24px !important; right: 16px; }
  .sheet-open .fabs { opacity: 1; pointer-events: auto; }
  .sheet-open .chips { opacity: 1; pointer-events: auto; }
  .toast { left: 216px; top: 120px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Tegnforklaring ---------- */
.legend { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; font-size: var(--fs-s); line-height: 1.25; color: var(--ink2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend li.pin img { width: 16px; height: 20px; object-fit: contain; margin: 0 2px; }
.sw { flex: none; display: inline-block; width: 20px; height: 12px; border-radius: 3px; }
.sw.ln { height: 5px; border-radius: 3px; background: var(--c); }
.sw.ln.dash { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px); }
.sw.ar { background: color-mix(in srgb, var(--c) 22%, transparent); border: 1.5px solid var(--c); }
.sw.ar.dash { border-style: dashed; }
.sw.zn { background: color-mix(in srgb, var(--c) 12%, transparent); border: 1.5px dashed var(--c); }
.sw.pt { width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin: 0 5px; }
.legend-note { font-size: var(--fs-s); color: var(--muted); line-height: 1.45; margin: 12px 0 0; }

/* ---------- Lading ---------- */
.plugs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; padding: 0; list-style: none; }
.plugs li { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--bg-soft); font-size: var(--fs-s); color: var(--ink2); }
.plugs b { font-weight: 650; color: var(--ink); }
.plugs em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.item .dotbig .i { width: 18px; height: 18px; stroke-width: 2.1; }
h3.also { margin-top: 14px; }
.hint.op-note { margin: 6px 2px 0; }

/* ---------- Beboersoner (v10) ---------- */
button.btn { font-family: inherit; cursor: pointer; }
.btn.zone-hi[aria-pressed="true"] { background: color-mix(in srgb, var(--c-beboer) 16%, var(--bg-soft)); color: var(--ink); }
.zbadge { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 5px; border-radius: 7px; background: var(--c-beboer); color: #fff; font-weight: 700; font-size: 11px; line-height: 1; box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgba(17,24,39,.3); flex: none; white-space: nowrap; }
.nearby-list .zic { display: grid; place-items: center; }
.nearby-list .zic .zbadge { max-width: 40px; overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; }
.legend li .zbadge { margin: 0 1px; min-width: 18px; height: 15px; font-size: 10px; }

/* ---------- Native-funksjoner (iOS-app): «Parkert her», Del / Åpne i Apple Maps. Påvirker ikke weben (elementene finnes bare i native). ---------- */
.native-actions { margin-top: 10px; }
.native-actions .btn { flex: 1; }
.fab.parked.has { color: #1d4ed8; }
body.dark .fab.parked.has { color: #7aa7ff; }
.parked-marker { cursor: pointer; filter: drop-shadow(0 2px 4px rgba(17,24,39,.35)); }
.parked-marker svg { display: block; }
.parked h3 small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.opt-sub { margin: 14px 0 0; font-size: var(--fs-s); color: var(--muted); }
.opt { border: 0; border-radius: 999px; padding: 0 14px; height: 38px; display: inline-flex; align-items: center; background: var(--bg-soft); color: var(--ink2); font: 600 var(--fs-s)/1 var(--font); }
.opt.on { background: var(--brand); color: var(--brand-ink); }
.opt:active { transform: scale(.97); }
.opt.custom { padding: 0 12px; }
.opt.custom input { width: 96px; border: 0; background: transparent; color: inherit; font: inherit; outline: 0; }
.opt.custom input::placeholder { color: var(--muted); font-weight: 500; }
.opt.custom.on input::placeholder { color: inherit; }
.btn.danger { color: #b91c1c; }
body.dark .btn.danger { color: #f87171; }
