/* ==========================================================================
   OVspot UI 2026 — één stylesheet voor de hele kaart-interface.
   Vervangt alle losse ovspot-*.css lagen (alleen leaflet.css blijft ernaast).
   Licht + donker thema (body.theme-night), iOS-achtige glas/blur-panelen.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root{
  --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Segoe UI",Roboto,system-ui,sans-serif;

  --accent:#1d6b45;           /* OVspot-groen */
  --accent-hover:#185c3b;
  --accent-ink:#fff;
  --accent-soft:rgba(29,107,69,.10);
  --live:#16a34a;
  --late:#c62828;
  --warn:#c2410c;
  --early:#0e7490;
  --amber:#b45309;

  --ink:#1b2433;
  --ink-2:#3f4957;
  --muted:#6b7686;
  --faint:#9aa3b0;

  --glass:rgba(255,255,255,.72);
  --glass-strong:rgba(255,255,255,.86);
  --glass-blur:saturate(180%) blur(22px);
  --glass-edge:rgba(255,255,255,.65);
  --surface:#fff;
  --chip:rgba(118,128,145,.11);
  --chip-hover:rgba(118,128,145,.18);
  --segment:rgba(118,128,145,.12);
  --segment-active:#fff;
  --line:rgba(27,36,51,.08);
  --line-strong:rgba(27,36,51,.14);
  --row-hover:rgba(27,36,51,.04);
  --row-selected:rgba(29,107,69,.07);

  --train:#1e3a8a;--bus:#0f766e;--tram:#b45309;--metro:#7c3aed;--ferry:#0369a1;
  --ic:#fcc917;

  --shadow:0 10px 32px rgba(20,33,61,.12),0 1px 3px rgba(20,33,61,.06);
  --shadow-sm:0 2px 10px rgba(20,33,61,.10);
  --map-bg:#e7edf4;
  --focus:#2563eb;

  --border:var(--line-strong);--surface-2:var(--chip);--soft:var(--chip);
  --r-panel:22px;
  --r-card:14px;
  --gap:18px;
  --top:8px;
  --bar-h:56px;
  --panel-top:92px;
  --col-w:339px;
  --veh-w:330px;
  color-scheme:light;
}
body.theme-night{
  --accent:#3fb57a;
  --accent-hover:#52c78b;
  --accent-ink:#06150d;
  --accent-soft:rgba(63,181,122,.14);
  --live:#4ade80;
  --late:#ff7070;
  --warn:#ffa45c;
  --early:#5cd0e5;
  --amber:#f2b552;

  --ink:#eef2f6;
  --ink-2:#c5cdd7;
  --muted:#8e9aaa;
  --faint:#647081;

  --glass:rgba(24,28,36,.66);
  --glass-strong:rgba(24,28,36,.84);
  --glass-edge:rgba(255,255,255,.07);
  --surface:#1a1f28;
  --chip:rgba(255,255,255,.08);
  --chip-hover:rgba(255,255,255,.14);
  --segment:rgba(255,255,255,.07);
  --segment-active:rgba(255,255,255,.14);
  --line:rgba(255,255,255,.07);
  --line-strong:rgba(255,255,255,.13);
  --row-hover:rgba(255,255,255,.04);
  --row-selected:rgba(63,181,122,.10);

  --train:#7c9cff;--bus:#2dd4bf;--tram:#f59e0b;--metro:#b794ff;--ferry:#38bdf8;

  --shadow:0 14px 40px rgba(0,0,0,.45),0 1px 2px rgba(0,0,0,.3);
  --shadow-sm:0 2px 12px rgba(0,0,0,.35);
  --map-bg:#0d1117;
  --focus:#7aa7ff;
  color-scheme:dark;
}

/* ---------- 2. Basis ---------- */
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%;margin:0}
body{font-family:var(--font);color:var(--ink);background:var(--map-bg);overflow:hidden;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
a{color:inherit}
[hidden],.hidden{display:none!important}
.ovspot-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
:where(button,a,input,select,textarea,summary,[role="button"],[tabindex="0"]):focus-visible{outline:2.5px solid var(--focus);outline-offset:2px;border-radius:10px}
#map:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
#perf,#status{display:none!important}
#homepageSeo{display:none}   /* SEO-tekst blijft in de DOM voor crawlers */
::selection{background:var(--accent-soft)}

/* Glas: herbruikbare laag. Op een pseudo-element zodat fixed kinderen niet
   aan het element blijven plakken (backdrop-filter maakt anders een containing block). */
.app-bar::before,.detail-panel::before,#exploreDock::before,#quickSearchDock::before,
#stopFavoritesMenu::before,#routeBar::before,.ov-tabbar-bg{
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;
  background:var(--glass);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
  box-shadow:inset 0 0 0 1px var(--glass-edge);
  pointer-events:none}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  :root{--glass:rgba(255,255,255,.97)}
  body.theme-night{--glass:rgba(24,28,36,.97)}
}

/* Gedeelde knoppen */
.ov-icon-btn,.detail-panel>header>button,#toolsClose,#stopFavMenuClose{
  flex:0 0 auto;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  background:var(--chip);color:var(--ink);font-size:17px;line-height:1;transition:background .15s}
.ov-icon-btn:hover,.detail-panel>header>button:hover,#toolsClose:hover,#stopFavMenuClose:hover{background:var(--chip-hover)}
.detail-panel>header>button svg{width:16px;height:16px}

/* Eyebrow */
.ov-eyebrow,.detail-panel>header small,.ov-filter-label,.timeline-head h3,.ux-departure-heading h2,.sSection{
  font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}

/* ---------- 3. Laadscherm ---------- */
#ovspotBoot{background:var(--map-bg)!important;color:var(--ink)!important;font-family:var(--font)!important}
html.ovspot-pre-night #ovspotBoot{background:#0d1117!important;color:#eef2f6!important}
#ovspotBoot::before{display:none}
.ovspotBootBrand b,html.ovspot-pre-night .ovspotBootBrand b{color:var(--accent)!important}
.ovspotBootPulse i,html.ovspot-pre-night .ovspotBootPulse i{background:#1d6b45!important}
html.ovspot-pre-night .ovspotBootPulse i,html.ovspot-pre-night .ovspotBootBrand b{color:#3fb57a!important;background-color:#3fb57a}
html.ovspot-pre-night .ovspotBootBrand b{background:none!important}

/* ---------- 4. Kaart ---------- */
.leaflet-container{font-family:var(--font);background:var(--map-bg)}
#map{position:fixed;inset:0;z-index:0}
.leaflet-pane{z-index:1}
body.theme-night .leaflet-tile-pane{filter:invert(1) hue-rotate(185deg) brightness(.92) contrast(.88) saturate(.55)}
.leaflet-control-attribution.ovspot-native-attribution-hidden{display:none!important}
.leaflet-top.leaflet-left .leaflet-control-zoom{display:none!important}
.leaflet-bottom.leaflet-right{right:var(--gap);bottom:var(--gap);z-index:13}
.leaflet-bottom.leaflet-right .leaflet-control-zoom{margin:0!important;border:0!important;border-radius:14px;overflow:hidden;
  box-shadow:var(--shadow-sm)!important;background:var(--glass-strong);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur)}
.leaflet-bottom.leaflet-right .leaflet-control-zoom a{width:38px;height:38px;line-height:38px;font-size:18px;color:var(--ink);
  background:transparent;border-color:var(--line)!important}
.leaflet-bottom.leaflet-right .leaflet-control-zoom a:hover{background:var(--row-hover)}
.leaflet-interactive.route-main{filter:drop-shadow(0 3px 8px rgba(15,35,50,.18))}

/* Voertuigmarkers (geometrie gelijk aan v44 + marker-visibility r1) */
.ovl-vehicle-icon{width:0!important;height:0!important;overflow:visible!important;background:transparent!important;border:0!important;will-change:transform}
html.ovspot-safari .ovl-vehicle-icon{will-change:auto!important}
.ovl-vehicle{position:absolute;left:0;top:0;transform:translate(-50%,-100%);padding-bottom:5px;cursor:pointer;white-space:nowrap;font-family:var(--font)}
.ovl-pill{position:relative;display:inline-flex;align-items:center;gap:5px;height:22px;min-width:34px;justify-content:center;padding:0 8px;border-radius:11px;
  background:var(--ovl-bg,#18354c);color:var(--ovl-text,#fff);
  box-shadow:0 0 0 2px rgba(255,255,255,.96),0 2px 7px rgba(15,23,42,.32)}
.ovl-pill::after{content:"";position:absolute;left:50%;bottom:-9.5px;transform:translateX(-50%);width:8px;height:8px;border-radius:50%;
  background:var(--ovl-bg,#18354c);box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(15,23,42,.35);pointer-events:none}
.ovl-carrier{max-width:52px;overflow:hidden;text-overflow:ellipsis;font-size:8.5px;font-weight:700;line-height:1;color:var(--ovl-carrier,rgba(255,255,255,.84));letter-spacing:.02em}
.ovl-line{color:var(--ovl-text,#fff);font-size:11.5px;font-weight:800;line-height:1}
.ovl-selected .ovl-pill{box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(15,23,42,.55),0 3px 10px rgba(15,23,42,.4)}
.ovl-favorite::after{content:"★";position:absolute;right:-6px;top:-8px;width:15px;height:15px;border-radius:50%;display:grid;place-items:center;
  background:#ffcd3c;color:#412b00;font-size:9px;box-shadow:0 0 0 1.5px #fff}
.ovl-offroute .ovl-pill{background:#7b8794!important;color:#fff!important}
.ovl-offroute::before{content:"⚠";position:absolute;left:-6px;top:-8px;z-index:2;width:15px;height:15px;border-radius:50%;display:grid;place-items:center;
  background:#eef1f3;color:#5f6973;font-size:9px;box-shadow:0 0 0 1px #c8ced4}
.ovl-hidden{display:none!important}
.ovl-stop,.ovl-station{cursor:pointer}
.ovl-station-split,.leaflet-marker-icon.ovl-station{display:none!important;pointer-events:none!important}
body.theme-night .ovl-pill{box-shadow:0 0 0 2px rgba(13,17,23,.95),0 2px 8px rgba(0,0,0,.5)}
body.theme-night .ovl-pill::after{box-shadow:0 0 0 2px #0d1117,0 0 0 3px rgba(255,255,255,.25)}
body.theme-night .ovl-selected .ovl-pill{box-shadow:0 0 0 2px #0d1117,0 0 0 4px #fff,0 3px 12px rgba(0,0,0,.6)}

/* ---------- 5. Bovenbalk ---------- */
.app-bar{position:fixed;z-index:40;top:calc(var(--top) + env(safe-area-inset-top));left:var(--gap);right:var(--gap);height:var(--bar-h);
  display:flex;align-items:center;gap:14px;padding:0 10px 0 18px;border-radius:18px;box-shadow:var(--shadow);isolation:isolate}
#ovspotStatus{display:contents}
.brand-status-group{order:1;display:flex;align-items:center;gap:8px;flex:0 0 auto}
.brand{display:flex;align-items:baseline;text-decoration:none;font-size:17px;font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.brand-mark{color:var(--accent)}
.connection{display:flex;align-items:center}
#connectionText{position:relative;display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--live);overflow:hidden;color:transparent;font-size:0;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--live) 22%,transparent)}
#connectionText.reconnecting{width:auto;height:auto;padding:3px 8px;border-radius:999px;font-size:10.5px;font-weight:700;color:var(--warn);
  background:color-mix(in srgb,var(--warn) 14%,transparent);box-shadow:none;overflow:visible}

/* Tabs (segmented control) */
.ov-tabs{order:2;display:flex;gap:2px;padding:3px;border-radius:12px;background:var(--segment);flex:0 0 auto}
.ov-tab{position:relative;display:flex;align-items:center;gap:6px;height:32px;padding:0 13px;border-radius:9px;font-size:12.5px;font-weight:500;color:var(--ink-2);
  white-space:nowrap;transition:background .15s,color .15s,box-shadow .15s}
.ov-tab:hover{color:var(--ink)}
.ov-tab[aria-pressed="true"]{background:var(--segment-active);color:var(--accent);font-weight:650;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.ov-tab svg{display:none;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ov-tab .ov-tab-count:empty{display:none}
.ov-tab .ov-tab-count::before{content:"("}.ov-tab .ov-tab-count::after{content:")"}
.ov-spacer{order:3;flex:1 1 auto;min-width:0}

/* Modaliteit-chips */
#brandModeCounts{order:4;display:flex;gap:8px;flex:0 0 auto}
.brand-mode-stat{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px;border-radius:15px;background:var(--chip);font-size:12.5px;
  cursor:pointer;user-select:none;transition:background .15s,opacity .15s}
.brand-mode-stat:hover{background:var(--chip-hover)}
.brand-mode-stat svg{display:none}
.brand-mode-stat::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;color:var(--muted)}
.brand-mode-stat[data-header-mode="train"]::before{color:var(--train)}
.brand-mode-stat[data-header-mode="bus"]::before{color:var(--bus)}
.brand-mode-stat[data-header-mode="tram"]::before{color:var(--tram)}
.brand-mode-stat[data-header-mode="metro"]::before{color:var(--metro)}
.brand-mode-stat[data-header-mode="ferry"]::before{color:var(--ferry)}
.brand-mode-stat small{order:1;font-size:12.5px;font-weight:650;color:var(--ink)}
.brand-mode-stat b{order:2;font-weight:500;color:var(--ink-2);font-variant-numeric:tabular-nums}
.brand-mode-stat[aria-pressed="true"]{background:var(--accent-soft);box-shadow:inset 0 0 0 1.5px var(--accent)}
.brand-mode-stat.is-zero{opacity:.55}
#brandModeCounts .brand-mode-stat[hidden]{display:none!important}
.visible-stat{display:none!important}

/* Bèta-knop */
#ovspotBetaTestLink{order:5;flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:18px;
  background:var(--accent);color:var(--accent-ink);text-decoration:none;font-size:12.5px;font-weight:650;white-space:nowrap;transition:background .15s}
#ovspotBetaTestLink:hover{background:var(--accent-hover)}
#ovspotBetaTestLink>span:first-child{display:none}
#ovspotBetaTestLink .betaShort{display:none}
#ovspotBetaTestLink .betaTag{font-size:9.5px;font-weight:700;letter-spacing:.04em;padding:3px 6px;border-radius:5px;background:rgba(255,255,255,.22)}
body.theme-night #ovspotBetaTestLink .betaTag{background:rgba(0,0,0,.16)}

@media (max-width:1240px){ .brand-mode-stat{padding:0 10px;gap:6px} #brandModeCounts{gap:6px} .ov-tab{padding:0 11px} }
@media (max-width:1140px){ .brand-mode-stat small{display:none} }
@media (max-width:1000px){ #brandModeCounts{display:none} }

/* ---------- 6. Zoeken (links, onder de balk) ---------- */
#quickSearchDock{position:fixed;z-index:24;top:var(--panel-top);left:var(--gap);width:var(--col-w);border-radius:16px;box-shadow:var(--shadow);isolation:isolate}
#searchBox{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:0 8px;min-height:48px;padding:0 8px 0 14px}
#searchBox>#searchInput{height:48px}
#searchBox>#searchResults{flex:0 0 calc(100% + 22px);margin:0 -8px 0 -14px}
.ux-search-icon{display:grid;place-items:center;width:18px;font-size:19px;line-height:1;color:var(--muted);transform:translateY(-1px)}
#searchInput{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font-size:14px;color:var(--ink)}
#searchInput::placeholder{color:var(--muted)}
#searchInput::-webkit-search-cancel-button{display:none}
#searchClear{width:28px;height:28px;border-radius:50%;background:var(--chip);font-size:16px;color:var(--ink-2)}
#searchResults{display:none;position:static;max-height:min(60vh,520px);overflow:auto;padding:6px;margin-top:0;
  border-top:1px solid var(--line);overscroll-behavior:contain}
#searchResults.open{display:block}
#quickSearchDock.search-active{border-radius:16px}
.sSection{padding:10px 10px 6px}
.sItem{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:12px;cursor:pointer}
.sItem:hover,.sItem:focus-visible{background:var(--row-hover)}
.sBadge{flex:0 0 auto;min-width:41px;height:28px;padding:0 7px;border-radius:7px;display:grid;place-items:center;font-size:12px;font-weight:800;
  background:var(--chip);color:var(--ink)}
.sTrainHit .sBadge{background:var(--ic);color:#1b2433}
.sBody{min-width:0;display:flex;flex-direction:column;gap:2px}
.sBody b{font-size:13.5px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sBody small{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sDirectionTabs{display:flex;gap:4px;padding:2px 10px 8px}
.sDirectionTabs button{height:28px;padding:0 10px;border-radius:8px;background:var(--chip);font-size:11.5px;font-weight:600}
.sDirectionTabs button.active,.sDirectionTabs button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
body.panel-open #quickSearchDock,body:has(#exploreDock.is-expanded) #quickSearchDock,body:has(#stopFavoritesMenu:not([hidden])) #quickSearchDock{visibility:hidden;pointer-events:none}

/* ---------- 7. Panelen (algemeen) ---------- */
.detail-panel{position:fixed;z-index:30;display:none;flex-direction:column;border-radius:var(--r-panel);box-shadow:var(--shadow);isolation:isolate;overflow:hidden;
  color:var(--ink)}
.detail-panel.open{display:flex;animation:ovPanelIn .22s cubic-bezier(.2,.8,.2,1)}
@keyframes ovPanelIn{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:none}}
.detail-panel>.sheet-handle{display:none}
.sheet-handle:focus-visible,#filterResizeHandle:focus-visible{outline:none!important}
.sheet-handle:focus-visible::before,#filterResizeHandle:focus-visible span{background:var(--focus)!important}
.detail-panel>header{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:17px 16px 13px 18px;border-bottom:1px solid var(--line)}
.detail-panel>header>div{flex:1;min-width:0}
.detail-panel>header h1{margin:3px 0 0;font-size:17px;font-weight:700;letter-spacing:-.01em;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.detail-panel .panel-body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}
.detail-panel .panel-body::-webkit-scrollbar{width:8px}
.detail-panel .panel-body::-webkit-scrollbar-thumb{background:var(--line-strong);border-radius:8px;border:2px solid transparent;background-clip:padding-box}
.empty-state,.stopEmpty{padding:26px 18px;text-align:center;color:var(--muted);font-size:13px}
.stopEmpty b{display:block;color:var(--ink);font-size:14px;margin-bottom:4px}
.stopEmpty small{display:block;margin-bottom:12px}
.stopEmpty button,[data-ux-retry-stop]{margin:3px;height:34px;padding:0 13px;border-radius:10px;background:var(--chip);font-size:12.5px;font-weight:600}
.stopEmpty button:first-of-type{background:var(--accent);color:var(--accent-ink)}

/* Linkerkolom: halte / favorieten / dienstregeling */
#stopPanel,#favoritePanel,#planningPanel{left:var(--gap);top:var(--panel-top);bottom:var(--gap);width:var(--col-w)}
#stopPanel::before,#favoritePanel::before,#planningPanel::before{
  background:linear-gradient(180deg,var(--glass-strong) 0%,var(--glass) 60%,color-mix(in srgb,var(--glass) 85%,#cfe6f7) 100%)}
body.theme-night #stopPanel::before,body.theme-night #favoritePanel::before,body.theme-night #planningPanel::before{background:var(--glass)}

/* ---------- 8. Haltepaneel ---------- */
#stopPanel>header{align-items:flex-start}
.stopHeaderCopy h1{white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.stopNumberMeta{display:block;margin-top:2px;font-size:11px;color:var(--muted)}
.stopHeaderMeta{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:11.5px;color:var(--muted)}
.stopHeaderMeta:empty{display:none}
.stopLiveChip{display:inline-flex;align-items:center;gap:5px;font-weight:650;color:var(--live)}
.stopLiveChip i,.depStatus i,.vprTimelineStatus i{width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block}
#stopPanelFavorite{font-size:17px}
#stopPanelFavorite.stopFavActive,#stopPanelFavorite[aria-pressed="true"]{color:#f5b800}
#stopPanel>header>button:not(#stopPanelClose):not(#stopPanelFavorite){margin-left:-2px}

.stopStaleBar{margin:12px 14px 0;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--warn) 12%,transparent);color:var(--warn);font-size:12px}
.stopStaleBar b{display:block}.stopStaleBar small{color:var(--ink-2)}
.stopFilterBar{padding:12px 14px 4px}
.stopTabs{display:flex;gap:2px;padding:3px;border-radius:11px;background:var(--segment);overflow-x:auto;scrollbar-width:none}
.stopTabs::-webkit-scrollbar{display:none}
.stopTabs button{flex:1 0 auto;height:29px;padding:0 10px;border-radius:8px;font-size:12px;font-weight:500;color:var(--ink-2);white-space:nowrap}
.stopTabs button.active{background:var(--segment-active);color:var(--accent);font-weight:650;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.ux-stop-lines{margin:6px 14px 0}
.ux-stop-lines>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;height:34px;padding:0 4px;font-size:12px;font-weight:550;color:var(--ink-2);cursor:pointer}
.ux-stop-lines>summary::-webkit-details-marker{display:none}
.ux-stop-lines>summary::after{content:"";width:7px;height:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .15s}
.ux-stop-lines[open]>summary::after{transform:rotate(225deg) translateY(-1px)}
.stopModes{display:flex;flex-wrap:wrap;gap:6px;padding:4px 2px 10px}
.stopLineChip{height:28px;padding:0 11px;border-radius:14px;background:var(--chip);font-size:12px;font-weight:600}
.stopLineChip.active{background:var(--accent);color:var(--accent-ink)}
.ux-departure-heading{display:flex;align-items:baseline;justify-content:space-between;padding:12px 18px 6px;border-top:1px solid var(--line);margin-top:6px}
.ux-departure-heading h2{margin:0}
.ux-departure-heading small{font-size:11px;color:var(--faint)}

/* Vertrekrij — badge | bestemming + meta | tijd + vertraging */
.departureList{padding:0}
.depRow{position:relative;display:grid;grid-template-columns:41px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:11px;row-gap:2px;align-items:center;
  min-height:70px;padding:12px 17px;border-bottom:1px solid var(--line);transition:background .15s}
.depRow.depClickable{cursor:pointer}
.depRow:hover{background:var(--row-hover)}
.depRow.ov-selected{background:var(--row-selected)}
.depCarrierLine{grid-column:1;grid-row:1/3;align-self:center;width:41px;min-height:28px;padding:0 3px;border-radius:7px;display:grid;place-items:center;
  font-size:12px;font-weight:800;letter-spacing:-.01em;line-height:1;text-align:center;overflow:hidden;
  background:var(--dep-carrier-color,#1d6f42);color:var(--dep-carrier-text,#fff)}
.depMain{display:contents}
.depMain>b{grid-column:2;grid-row:1;align-self:end;font-size:13.5px;font-weight:550;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.depMain>b del{color:var(--muted)}
.depTripMeta{grid-column:2;grid-row:2;align-self:start;display:flex;align-items:center;flex-wrap:wrap;gap:3px 6px;min-width:0;font-size:11px;color:var(--muted)}
.depTripMeta>span:first-child:empty{display:none}
.depPlatformBadge{font-weight:550;color:var(--ink-2)}
.depNotice{grid-column:2;font-size:11px;font-style:normal;color:var(--warn)}
.depFollowAction{display:inline-flex;align-items:center;gap:3px;height:20px;padding:0 7px;border-radius:10px;background:var(--accent-soft);color:var(--accent);font-size:10.5px;font-weight:700}
.depFollowAction svg{width:11px;height:11px}
.depStatusCol{display:none}
.depTripMeta .depStatus{order:0}
.depStatus{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:650}
.depStatus.success{color:var(--live)}
.depStatus.warning{color:var(--amber)}
.depStatus.danger{color:var(--late)}
.depStatus.neutral{display:none}
.depTime{grid-column:3;grid-row:1/3;align-self:center;display:flex;flex-direction:column;align-items:flex-end;gap:1px;text-align:right}
.depTimeMain{font-size:14.5px;font-weight:700;font-variant-numeric:tabular-nums}
.depDelayInline{font-size:11px;font-weight:650}
.depDelayInline::after{content:" min"}
.depDelayInline.late{color:var(--late)}
.depDelayInline.early{color:var(--early)}
.ux-dep-planned{font-size:10px;color:var(--faint)}
.depRow.cancelled .depTimeMain{text-decoration:line-through;color:var(--muted)}
.depRow.cancelled .depCarrierLine{opacity:.5}
.depEndLabel,.vprEndLabel{display:none}
.ux-more-departures{display:block;width:calc(100% - 28px);height:38px;margin:12px 14px;border-radius:11px;background:var(--chip);font-size:12.5px;font-weight:600}
.ux-more-departures:hover{background:var(--chip-hover)}
.ux-time-help{display:block;padding:12px 18px 20px;font-size:10.5px;line-height:1.5;color:var(--faint)}
.ux-schematic-note{display:block;padding:6px 18px;font-size:11px;color:var(--muted)}

/* Laden (skeletons) */
.ovPopupSkeleton{display:grid;gap:10px;padding:14px 17px;pointer-events:none}
.ovPopupSkeletonRow{display:grid;grid-template-columns:41px minmax(0,1fr) 42px;gap:11px;align-items:center;min-height:46px}
.ovPopupSkeletonRow .ovPopupSkeletonBar:first-child{display:none}
.ovPopupSkeletonBar{display:block;height:12px;border-radius:7px;
  background:linear-gradient(90deg,var(--chip) 25%,var(--chip-hover) 45%,var(--chip) 65%);background-size:220% 100%;animation:ovSkel 1.15s ease-in-out infinite}
.ovPopupSkeletonRow .ovPopupSkeletonBar:nth-child(2){height:28px;border-radius:7px}
.ovPopupSkeletonRow .ovPopupSkeletonBar:nth-child(3){width:82%}
.ovPopupSkeletonRow .ovPopupSkeletonBar:last-child{width:38px;justify-self:end}
.ovVehicleLoadingStrip{display:grid;gap:7px;padding:4px 0 12px;pointer-events:none}
.ovVehicleLoadingStrip .ovPopupSkeletonBar:first-child{width:72%;height:10px}
.ovVehicleLoadingStrip .ovPopupSkeletonBar:last-child{width:48%;height:10px}
.ovVehicleFieldSkeleton{display:inline-block!important;width:min(180px,72%);height:14px!important;vertical-align:middle}
.ovVehicleJourneySkeleton{display:grid;gap:12px;padding:6px 0 2px;pointer-events:none}
.ovVehicleJourneySkeleton>i{display:grid;grid-template-columns:54px minmax(100px,1fr);gap:14px;align-items:center;font-style:normal}
.ovVehicleJourneySkeleton>i>.ovPopupSkeletonBar:first-child{width:42px}
.ovVehicleJourneySkeleton>i>.ovPopupSkeletonBar:last-child{width:78%}
@keyframes ovSkel{0%{background-position:100% 0}100%{background-position:-100% 0}}

/* ---------- 9. Voertuigpaneel ---------- */
#vehiclePanel{right:var(--gap);top:var(--panel-top);width:var(--veh-w);max-height:calc(100dvh - var(--panel-top) - var(--gap))}
#vehiclePanel::before{background:linear-gradient(180deg,color-mix(in srgb,var(--glass-strong) 90%,#dfeaf5) 0,var(--glass-strong) 70px,var(--glass) 100%)}
body.theme-night #vehiclePanel::before{background:var(--glass)}
#vehiclePanel>header{border-bottom:0;padding:18px 16px 4px 18px;align-items:flex-start}
#vehiclePanel>header small{display:inline-flex;align-items:center;gap:6px;color:var(--live)}
#vehiclePanel>header small::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
#vehiclePanel>header h1{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#vehiclePanelBody{padding:4px 18px 16px}

.vprHeader{display:flex;align-items:center;gap:12px;padding:12px 0 2px}
.vprTopline{display:none}
.vprHero{display:flex;align-items:center;gap:12px;min-width:0}
.vprHeroBadge{flex:0 0 auto;min-width:46px;height:46px;padding:0 8px;border-radius:12px;display:grid;place-items:center;
  background:var(--vehicle-color,#1d6f42);color:var(--vehicle-text,#fff);font-size:17px;font-weight:800;letter-spacing:-.02em}
.vprHeader[data-vehicle-type="trein"] .vprHeroBadge{background:var(--ic);color:#1b2433}
.vprHeroStop{min-width:0}
.vprHeroStop>small{display:none}
.vprHeroStop>b{display:block;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vprHeroStop>b::before{content:"Volgende: ";font-weight:500;color:var(--muted)}
.vprHeroStatus,.vprHeaderBadges{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin-top:4px;font-size:11.5px}
.vprQuality{display:inline-flex;align-items:center;gap:5px;font-weight:650}
.vprQuality::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.vprQuality.live,.vprQuality.ok,.vprQuality.fresh{color:var(--live)}
.vprQuality.estimated,.vprQuality.warning,.vprQuality.stale{color:var(--amber)}
.vprQuality.schedule,.vprQuality.planned,.vprQuality.unknown{color:var(--muted)}
.vprQualityAge{color:var(--muted)}
.vprDelay{font-weight:700}
.vprDelay.late{color:var(--warn)}
.vprDelay.early{color:var(--early)}
.ux-vehicle-quality{display:none}
.vprCoachCount{display:none}
.vprSummary{display:none}

.vprEta{display:grid;grid-template-columns:30px minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:10px;align-items:center;margin:14px 0 4px;padding:12px 14px;
  border-radius:var(--r-card);background:var(--accent-soft)}
.vprEtaIcon{grid-row:1/3;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--accent)}
.vprEtaIcon svg{width:16px;height:16px}
.vprEta>div{min-width:0;grid-row:1/3}
.vprEta>div b{display:block;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.vprEta>div small{display:block;font-size:14.5px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vprEta time{font-size:19px;font-weight:750;color:var(--accent);font-variant-numeric:tabular-nums;text-align:right}
.vprEta em{font-style:normal;font-size:11px;font-weight:600;color:var(--accent);text-align:right}
.ux-eta-source{grid-column:1/-1;margin-top:6px;font-size:10px;color:var(--muted)}
.journeyAlerts,.offrouteNotice,.journeyAdvice{margin:10px 0;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--warn) 12%,transparent);color:var(--warn);font-size:12px;font-weight:600}
.journeyAlerts p{margin:0}

/* Ritverloop */
.vprTimeline{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.timeline-head{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.timeline-head h3{margin:0;flex:1}
.vprTimelineStatus{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:650;color:var(--muted)}
.vprTimelineStatus.live{color:var(--live)}
.ovCompactStops{height:26px;padding:0 9px;border-radius:13px;background:var(--chip);font-size:11px;font-weight:650;color:var(--accent)}
.vprTimeline ol{position:relative;list-style:none;margin:0;padding:0}
.vprTimeline li{position:relative;display:grid;grid-template-columns:50px 14px minmax(0,1fr);column-gap:10px;align-items:start;min-height:42px;padding:8px 6px;margin:0 -6px;
  border-radius:10px;cursor:pointer}
.vprTimeline li:hover{background:var(--row-hover)}
.vprTimeline li>time{display:flex;flex-direction:column;align-items:flex-start;gap:1px;font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums}
.vprDelaySuffix{font-size:10.5px;font-weight:650;color:var(--late)}
.vprDelaySuffix.early{color:var(--early)}
.timeline-dot{position:relative;align-self:stretch;display:block}
.timeline-dot::before{content:"";position:absolute;left:50%;top:-10px;bottom:-10px;width:2px;transform:translateX(-50%);background:var(--line-strong)}
.vprTimeline li:first-child .timeline-dot::before{top:7px}
.vprTimeline li:last-child .timeline-dot::before,.vprTimeline li:has(~ li[hidden]):not(:has(~ li:not([hidden]))) .timeline-dot::before{bottom:calc(100% - 7px)}
.timeline-dot::after{content:"";position:absolute;left:50%;top:4px;width:9px;height:9px;transform:translateX(-50%);border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 2px var(--faint)}
.vprTimeline li.passed{opacity:.5}
.vprTimeline li.passed .timeline-dot::after{background:var(--faint);box-shadow:none}
.vprTimeline li.passed .timeline-dot::before{background:var(--faint)}
.vprTimeline li.current .timeline-dot::after,.vprTimeline li.now .timeline-dot::after{width:11px;height:11px;top:3px;background:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.vprTimeline li.next .timeline-dot::after,.vprTimeline li.next-stop .timeline-dot::after{background:var(--surface);box-shadow:inset 0 0 0 2.5px var(--accent)}
.vprTimeline li>div{min-width:0}
.vprTimeline li>div b{display:block;font-size:13px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vprTimeline li.next>div b{color:var(--accent);font-weight:700}
.vprTimeline li.cancelled>div b{text-decoration:line-through;color:var(--muted)}
.journey-sub{display:block;margin-top:1px;font-size:11px;color:var(--muted)}
.vprTimeline li.current .journey-sub{color:var(--live);font-weight:600}
.vprTimeline li[hidden]{display:none!important}

/* Meer details */
.ovCompactInfo{margin-top:10px;border-top:1px solid var(--line)}
.ovCompactInfo>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;height:44px;cursor:pointer}
.ovCompactInfo>summary::-webkit-details-marker{display:none}
.ovCompactInfoLabel{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:650}
.ovCompactChevron{display:inline-block;font-size:12px;color:var(--muted);transition:transform .15s}
.ovCompactInfo[open] .ovCompactChevron{transform:rotate(180deg)}
.ovCompactMeta{font-size:11px;color:var(--muted)}
.vprTripMeta{font-size:12px;color:var(--ink-2);padding-bottom:8px}
.vprTripMeta small{display:block;margin-top:2px;color:var(--muted)}
.ovCompactComposition{display:grid;gap:0;margin:0 0 8px}
.ovCompactComposition>div{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px solid var(--line);font-size:12px}
.ovCompactComposition dt{color:var(--muted)}
.ovCompactComposition dd{margin:0;font-weight:600;text-align:right}

/* Acties */
.vprActions{display:flex;align-items:center;gap:8px;margin-top:12px}
.vprActions>#vpRoute,.vprActions>.ov4Follow{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:43px;padding:0 14px;border-radius:12px;
  font-size:13px;font-weight:700;transition:background .15s,filter .15s}
.vprActions>#vpRoute{background:var(--accent);color:var(--accent-ink)}
.vprActions>#vpRoute:hover{background:var(--accent-hover)}
.vprActions>.ov4Follow{background:var(--chip);color:var(--ink)}
.vprActions>#vpRoute:not([hidden])~.ov4Follow{flex:0 0 auto}
.vprActions>.ov4Follow:hover{background:var(--chip-hover)}
.vprActions>.ov4Follow[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
.vprActions svg{width:16px;height:16px}
.vprActions>#vpRoute[hidden],#vpRouteMore[hidden]{display:none!important}
.vprActions>.noRoute{}
#vpMore{position:relative}
#vpMore>summary{list-style:none;width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:var(--chip);font-size:13px;letter-spacing:1px;cursor:pointer}
#vpMore>summary::-webkit-details-marker{display:none}
#vpMore[open]>summary{background:var(--chip-hover)}
.vpMoreMenu{position:absolute;right:0;bottom:calc(100% + 8px);z-index:5;min-width:180px;padding:6px;border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}
.vpMoreMenu button{display:block;width:100%;text-align:left;padding:9px 11px;border-radius:9px;font-size:13px}
.vpMoreMenu button:hover{background:var(--row-hover)}
.vprShare{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:var(--chip)}
.vprShare:hover{background:var(--chip-hover)}

/* V6 mobiele tabs (alleen in volledig uitgeklapte sheet zichtbaar) */
.ov6Tabs{display:none}

/* ---------- 10. Favorieten ---------- */
#favoritePanelBody{padding:8px}
.favRow{display:flex;align-items:center;gap:6px;border-radius:12px}
.favRow:hover{background:var(--row-hover)}
.favRow>small{padding:24px 12px;color:var(--muted);font-size:13px;width:100%;text-align:center}
.favOpen{flex:1;min-width:0;text-align:left;padding:10px 12px}
.favOpen b{display:block;font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.favOpen small{display:block;font-size:11px;color:var(--muted)}
.favRemove{width:30px;height:30px;border-radius:50%;font-size:16px;color:var(--muted)}
.favRemove:hover{background:var(--chip)}

/* Favoriete haltes (menu uit stop-favorites) — als paneel in de linkerkolom */
#stopFavoritesMenu{position:fixed!important;z-index:32;top:var(--panel-top)!important;left:var(--gap)!important;right:auto!important;width:var(--col-w);
  max-height:calc(100dvh - var(--panel-top) - var(--gap));display:flex;flex-direction:column;border-radius:var(--r-panel);box-shadow:var(--shadow);isolation:isolate;overflow:hidden;
  animation:ovPanelIn .22s cubic-bezier(.2,.8,.2,1)}
.stopFavMenuHead{display:flex;align-items:center;gap:10px;padding:17px 16px 13px 18px;border-bottom:1px solid var(--line)}
.stopFavMenuHead b{flex:1;font-size:17px;font-weight:700}
#stopFavMenuCount{font-size:11.5px;color:var(--muted)}
#stopFavoritesList{overflow:auto;padding:8px}
.stopFavRow{display:flex;align-items:center;gap:4px;border-radius:12px}
.stopFavRow:hover{background:var(--row-hover)}
.stopFavOpen{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:10px;text-align:left}
.stopFavOpen svg{flex:0 0 auto;width:34px;height:34px;padding:8px;border-radius:10px;background:var(--accent-soft);fill:none;stroke:var(--accent);stroke-width:1.8}
.stopFavOpen span{min-width:0}
.stopFavOpen b{display:block;font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stopFavOpen small{display:block;font-size:11px;color:var(--muted)}
.stopFavRemove{width:30px;height:30px;border-radius:50%;font-size:16px;color:var(--muted);margin-right:6px}
.stopFavRemove:hover{background:var(--chip)}
.stopFavEmpty{padding:28px 16px;text-align:center;font-size:13px;line-height:1.6;color:var(--muted)}

/* ---------- 11. Dienstregeling ---------- */
#planningPanelBody{padding:6px 0 16px}
.planningIntro{margin:10px 18px;font-size:12px;color:var(--muted)}
.planningTripHero{display:flex;align-items:center;gap:12px;margin:12px 16px;padding:12px;border-radius:var(--r-card);background:var(--chip)}
.planningModeBadge{min-width:41px;height:28px;padding:0 7px;border-radius:7px;display:inline-grid;place-items:center;font-size:12px;font-weight:800;background:var(--route-color,var(--accent));color:#fff}
.planningRouteRow,.planningStopRow{display:flex;align-items:center;gap:11px;padding:11px 18px;border-bottom:1px solid var(--line);font-size:13px;cursor:pointer}
.planningRouteRow:hover,.planningStopRow:hover{background:var(--row-hover)}

/* ---------- 12. Filters ---------- */
#exploreDock{position:fixed;z-index:31;left:var(--gap);top:var(--panel-top);width:var(--col-w);border-radius:var(--r-panel);isolation:isolate;box-shadow:var(--shadow);
  display:flex;flex-direction:column;max-height:calc(100dvh - var(--panel-top) - var(--gap))}
#exploreDock.collapsed{display:none}
#exploreDock:not(.collapsed){animation:ovPanelIn .22s cubic-bezier(.2,.8,.2,1)}
#exploreDock #filterResizeHandle,#exploreDock #mobileQuickBar{display:none}
#mapTools{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;overflow:hidden}
#exploreDock.collapsed #mapTools{display:none!important}
.ov-filter-head{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:17px 16px 13px 18px;border-bottom:1px solid var(--line)}
.ov-filter-title{flex:1;display:flex;align-items:center;gap:8px;font-size:17px;font-weight:700}
.ov-filter-mark{display:none}
#approvedFilterReset{height:30px;padding:0 11px;border-radius:15px;font-size:12px;font-weight:650;color:var(--accent);background:var(--accent-soft)}
#approvedFilterReset:hover{background:color-mix(in srgb,var(--accent) 18%,transparent)}
.ov-filter-body{flex:1 1 auto;min-height:0;overflow:auto;padding:6px 16px 10px;overscroll-behavior:contain}
.ov-filter-section{padding:10px 0 4px}
.ov-filter-label{display:block;margin:0 2px 8px}
.ov-line-search{display:flex;align-items:center;gap:8px;height:40px;padding:0 10px 0 12px;border-radius:11px;background:var(--chip)}
.ov-line-search svg{width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:1.9;stroke-linecap:round;flex:0 0 auto}
.ov-line-search input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;font-size:13px}
.ov-line-search input::placeholder{color:var(--muted)}
.ov-line-search input::-webkit-search-cancel-button{display:none}
.ov-line-clear{width:24px;height:24px;border-radius:50%;background:var(--chip-hover);font-size:14px}
.ov-stop-search-wrap{position:relative}
.ov-stop-search-results{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:6;max-height:280px;overflow:auto;padding:6px;border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}
.ov-stop-result{display:block;width:100%;text-align:left;padding:9px 10px;border-radius:9px}
.ov-stop-result:hover{background:var(--row-hover)}
.ov-stop-result strong{display:block;font-size:13px;font-weight:600}
.ov-stop-result small{display:block;font-size:11px;color:var(--muted)}
.ov-stop-search-empty{padding:12px;font-size:12px;color:var(--muted);text-align:center}
.ov-filter-dual{display:grid;grid-template-columns:1fr;gap:8px;padding:10px 0 4px}
.ov-filter-select{position:relative}
.ov-filter-select>summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:50px;padding:7px 12px;border-radius:12px;background:var(--chip);cursor:pointer}
.ov-filter-select>summary::-webkit-details-marker{display:none}
.ov-filter-select[open]>summary{background:var(--chip-hover)}
.ov-select-icon{width:18px;height:18px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.ov-select-copy{flex:1;min-width:0;display:flex;flex-direction:column}
.ov-select-copy small{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ov-select-copy strong{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ov-select-chevron{width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:2;transition:transform .15s}
.ov-filter-select[open] .ov-select-chevron{transform:rotate(180deg)}
.ov-filter-popover{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:7;max-height:300px;overflow:auto;padding:6px;border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}
.ov-filter-popover label{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:9px;font-size:13px;cursor:pointer}
.ov-filter-popover label:hover{background:var(--row-hover)}
.ov-filter-popover input{accent-color:var(--accent);width:16px;height:16px;margin:0}
.ov-mode-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(52px,1fr));gap:6px}
.ov-mode-grid button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:58px;padding:6px 4px;border-radius:12px;
  background:var(--chip);color:var(--muted);font-size:11.5px;font-weight:650;transition:background .15s,color .15s,box-shadow .15s}
.ov-mode-grid button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ov-mode-grid button.active{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--accent),0 1px 3px rgba(0,0,0,.06)}
.ov-mode-grid button.active svg{color:var(--accent)}
.ov-mode-grid button[data-mode="train"].active svg{color:var(--train)}
.ov-mode-grid button[data-mode="bus"].active svg{color:var(--bus)}
.ov-mode-grid button[data-mode="tram"].active svg{color:var(--tram)}
.ov-mode-grid button[data-mode="metro"].active svg{color:var(--metro)}
.ov-mode-grid button[data-mode="ferry"].active svg{color:var(--ferry)}
#mapTools .mode-buttons [data-mode][hidden]{display:none!important}
.ov-ndw-row{position:relative;display:flex;align-items:center;gap:12px;min-height:54px;padding:9px 12px;border-radius:12px;background:var(--chip);cursor:pointer;user-select:none}
.ov-ndw-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.ov-ndw-copy strong{font-size:13px;font-weight:650}
.ov-ndw-copy small{font-size:11px;color:var(--muted)}
.ov-ndw-row input{position:absolute;width:1px;height:1px;opacity:0}
.ov-ndw-switch{position:relative;flex:0 0 42px;width:42px;height:25px;border-radius:13px;background:var(--line-strong);transition:background .18s}
.ov-ndw-switch::before{content:"";position:absolute;left:2px;top:2px;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .18s}
.ov-ndw-row input:checked+.ov-ndw-switch{background:var(--accent)}
.ov-ndw-row input:checked+.ov-ndw-switch::before{transform:translateX(17px)}
.ov-ndw-row:has(input:focus-visible){outline:2.5px solid var(--focus);outline-offset:2px}
.ov-ndw-status{display:block;margin:6px 2px 0;font-size:10.5px;color:var(--muted)}
.ov-filter-footer{flex:0 0 auto;display:flex;gap:8px;padding:12px 16px 16px;border-top:1px solid var(--line)}
.ov-footer-action{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:40px;border-radius:11px;background:var(--chip);font-size:12.5px;font-weight:650}
.ov-footer-action:hover{background:var(--chip-hover)}
.ov-footer-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
#stopsToggle[aria-pressed="true"],#stopsToggle.active{background:var(--accent-soft);color:var(--accent)}
#themeToggle::before{content:"";width:15px;height:15px;border-radius:50%;box-shadow:inset -4px -2px 0 0 currentColor;transform:rotate(-25deg)}
body.theme-night #themeToggle::before{box-shadow:none;background:currentColor;width:10px;height:10px;outline:2px dotted currentColor;outline-offset:2px}
.ov-filter-compat{display:none!important}

/* Actieve filter-chips + lege resultaten */
#approvedActiveFilters{position:fixed;z-index:22;top:calc(var(--top) + var(--bar-h) + 12px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);
  display:flex;flex-wrap:wrap;justify-content:center;gap:6px;max-width:min(560px,calc(100vw - 2*var(--col-w) - 80px))}
.ux-filter-chip,#approvedChipsReset{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 6px 0 12px;border-radius:15px;font-size:12px;font-weight:650;
  background:var(--glass-strong);color:var(--ink);box-shadow:var(--shadow-sm);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur)}
.ux-filter-remove{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:var(--chip);font-size:13px}
#approvedChipsReset{padding:0 12px;color:var(--accent)}
#approvedEmptyResults{position:fixed;z-index:22;left:50%;top:50%;transform:translate(-50%,-50%);width:340px;max-width:calc(100vw - 32px);padding:20px;
  border-radius:var(--r-panel);background:var(--glass-strong);box-shadow:var(--shadow);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);text-align:center}
#approvedEmptyResults strong{display:block;font-size:15px}
#approvedEmptyResults p{margin:8px 0 14px;font-size:12.5px;line-height:1.55;color:var(--muted)}
#approvedEmptyResults button,#approvedConnectionNotice button{height:36px;padding:0 14px;border-radius:10px;background:var(--accent);color:var(--accent-ink);font-size:12.5px;font-weight:650}
#approvedConnectionNotice{position:fixed;z-index:45;top:calc(var(--top) + var(--bar-h) + 12px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);
  display:flex;align-items:center;gap:12px;padding:10px 10px 10px 16px;border-radius:16px;background:var(--glass-strong);box-shadow:var(--shadow);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);max-width:calc(100vw - 32px)}
#approvedConnectionNotice strong{display:block;font-size:13px}
#approvedConnectionNotice small{display:block;font-size:11.5px;color:var(--muted)}
#approvedConnectionNotice.ux-error strong,#approvedConnectionNotice.ux-warning strong{color:var(--warn)}

/* ---------- 13. Routebalk ---------- */
#routeBar{position:fixed;z-index:26;left:50%;bottom:var(--gap);transform:translateX(-50%);display:none;align-items:center;flex-wrap:wrap;gap:8px;
  max-width:min(620px,calc(100vw - 2*var(--col-w) - 80px));padding:8px 8px 8px 16px;border-radius:18px;box-shadow:var(--shadow);isolation:isolate}
#routeBar.open{display:flex}
#routeTitle{font-size:13px;font-weight:700;margin-right:auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
#routeTitle::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;border-radius:50%;background:var(--accent);vertical-align:1px}
.route-view-modes{display:flex;gap:2px;padding:3px;border-radius:11px;background:var(--segment)}
.route-view-modes button{height:28px;padding:0 10px;border-radius:8px;font-size:11.5px;font-weight:550;color:var(--ink-2)}
.route-view-modes button.active,.route-view-modes button[aria-pressed="true"]{background:var(--segment-active);color:var(--accent);font-weight:650}
#routeFit{height:34px;padding:0 13px;border-radius:11px;background:var(--accent);color:var(--accent-ink);font-size:12px;font-weight:700}
#routeClear{width:34px;height:34px;border-radius:50%;background:var(--chip);font-size:17px}
#approvedRouteFocus{flex-basis:100%;display:flex;align-items:center;gap:7px;font-size:11.5px;color:var(--muted);padding:0 2px 2px}
#approvedRouteFocus input{accent-color:var(--accent);margin:0}

/* ---------- 14. Losse kaartknoppen, attributie ---------- */
#mapActions{display:none}
#contactMapLink,#mapHelpLink{position:fixed;z-index:13;bottom:var(--gap);width:38px;height:38px;border-radius:14px;display:grid;place-items:center;
  background:var(--glass-strong);color:var(--ink);box-shadow:var(--shadow-sm);text-decoration:none;
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);font-size:17px;font-weight:700;transition:background .15s}
#contactMapLink{right:calc(var(--gap) + 48px)}
#mapHelpLink{right:calc(var(--gap) + 94px)}
#contactMapLink:hover,#mapHelpLink:hover{background:var(--surface)}
#contactMapLink svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#ovspotOsmAttribution{position:fixed;z-index:12;left:auto;right:calc(var(--gap) + 142px);bottom:calc(var(--gap) + 10px);margin:0;padding:2px 7px;border-radius:8px;
  font-size:10px;line-height:1.5;background:color-mix(in srgb,var(--surface) 70%,transparent);color:var(--muted)}
#ovspotOsmAttribution a{color:inherit;text-decoration:none}

/* ---------- 15. Meldingen ---------- */
#toast{position:fixed;z-index:60;left:50%;bottom:calc(var(--gap) + 64px);transform:translate(-50%,8px);max-width:calc(100vw - 32px);padding:11px 16px;border-radius:14px;
  background:color-mix(in srgb,var(--ink) 88%,transparent);color:var(--map-bg);font-size:13px;font-weight:550;box-shadow:var(--shadow);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}
#toast:empty{display:none}
#toast.show{opacity:1;transform:translate(-50%,0)}
#cookieBanner{position:fixed;z-index:70;left:50%;bottom:var(--gap);transform:translateX(-50%);width:min(560px,calc(100vw - 32px));display:flex;align-items:center;gap:14px;
  padding:14px 14px 14px 18px;border-radius:18px;background:var(--glass-strong);box-shadow:var(--shadow);-webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);font-size:12.5px}
#cookieBanner p{margin:0;flex:1;line-height:1.5}
#cookieBanner a{color:var(--accent);font-weight:650}
.cookie-actions{display:flex;gap:6px;flex:0 0 auto}
.cookie-actions button{height:36px;padding:0 13px;border-radius:10px;background:var(--chip);font-size:12.5px;font-weight:650}
.cookie-actions button.primary{background:var(--accent);color:var(--accent-ink)}
#ovspotUpdateBanner.ovspotUpdateBanner{position:fixed;z-index:120;left:50%;bottom:var(--gap);transform:translateX(-50%);display:flex;align-items:center;gap:12px;width:max-content;
  max-width:min(94vw,540px);padding:8px 8px 8px 16px;border-radius:16px;background:var(--glass-strong);box-shadow:var(--shadow);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);font-size:13px;font-weight:550}
#ovspotUpdateRefresh{height:36px;padding:0 14px;border-radius:11px;background:var(--accent);color:var(--accent-ink);font-size:12.5px;font-weight:700}

/* Advertentie */
#ovspotAdDock{position:fixed;z-index:14;left:50%;bottom:var(--gap);transform:translateX(-50%);width:min(520px,calc(100vw - 2*var(--col-w) - 120px))}
#ovspotAdDock.ovspotAdClosed{display:none!important}
.ovspotAdCard{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 8px 8px 12px;border-radius:16px;background:var(--glass-strong);box-shadow:var(--shadow-sm);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur)}
.ovspotAdLabel{flex:0 0 auto;padding:4px 7px;border-radius:6px;background:var(--chip);color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.ovspotAdText{flex:1;min-width:0}
.ovspotAdText b{display:block;font-size:12.5px}
.ovspotAdText small{display:block;margin-top:1px;font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ovspotAdClose{flex:0 0 auto;width:28px;height:28px;border-radius:50%;background:var(--chip);color:var(--muted);font-size:16px}
#ovspotAdDock.ovspotAdNoPlaceholder .ovspotAdCard{justify-content:center;max-width:260px;margin:auto;min-height:40px}
body.panel-open #ovspotAdDock,body:has(#routeBar.open) #ovspotAdDock,body:has(#cookieBanner:not(.hidden)) #ovspotAdDock,body.map-is-interacting #ovspotAdDock{display:none!important}
@media (max-height:620px){#ovspotAdDock{display:none!important}}
@media print{#ovspotAdDock{display:none!important}}

/* Feedback-dialoog */
#ovspotFeedbackModal{width:min(440px,calc(100vw - 32px));padding:22px;border:0;border-radius:var(--r-panel);background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
#ovspotFeedbackModal::backdrop{background:rgba(10,14,20,.35);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.ovfb-head{display:flex;align-items:flex-start;gap:12px}
.ovfb-head>div{flex:1}
.ovfb-eyebrow{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
.ovfb-head h2{margin:3px 0 0;font-size:18px}
.ovfb-close{width:32px;height:32px;border-radius:50%;background:var(--chip);font-size:17px}
.ovfb-intro{margin:10px 0 14px;font-size:13px;color:var(--muted)}
#ovspotFeedbackForm label{display:block;margin:10px 0 5px;font-size:12px;font-weight:650}
#ovspotFeedbackForm input,#ovspotFeedbackForm textarea{width:100%;padding:10px 12px;border:0;border-radius:11px;background:var(--chip);font-size:13.5px;outline:0}
#ovspotFeedbackForm input:focus,#ovspotFeedbackForm textarea:focus{box-shadow:inset 0 0 0 1.5px var(--accent)}
#ovspotFeedbackForm textarea{resize:vertical;min-height:110px}
.ovfb-status{min-height:16px;margin:8px 0 0;font-size:12px;color:var(--warn)}
.ovfb-send{width:100%;height:43px;margin-top:8px;border-radius:12px;background:var(--accent);color:var(--accent-ink);font-size:13.5px;font-weight:700}
.ovfb-note{margin:8px 0 0;font-size:11px;color:var(--muted);text-align:center}
.ovfb-thanks p{font-size:14px;font-weight:650;color:var(--live)}
#ovspotFeedbackModal form[hidden],#ovspotFeedbackModal .ovfb-thanks[hidden]{display:none}


/* ---------- 15b. Banners met eigen inline CSS (analytics-toestemming, feedback) ---------- */
#ovspotAnalyticsConsent{font-family:var(--font)!important;color:var(--ink)!important;background:var(--glass-strong)!important;border:0!important;border-radius:20px!important;
  box-shadow:var(--shadow)!important;-webkit-backdrop-filter:var(--glass-blur)!important;backdrop-filter:var(--glass-blur)!important;width:min(560px,calc(100vw - 24px))!important;padding:16px!important}
#ovspotAnalyticsConsent .ovga-icon{background:var(--accent)!important;color:var(--accent-ink)!important;border-radius:12px!important;font-weight:800!important}
#ovspotAnalyticsConsent .ovga-copy p{color:var(--muted)!important;font-size:13px}
#ovspotAnalyticsConsent .ovga-copy a{color:var(--accent)!important;font-weight:650!important}
#ovspotAnalyticsConsent .ovga-btn{border:0!important;border-radius:11px!important;background:var(--chip)!important;color:var(--ink)!important;font:650 13px/1 var(--font)!important;padding:11px 14px!important}
#ovspotAnalyticsConsent .ovga-btn.primary{background:var(--accent)!important;color:var(--accent-ink)!important}
#ovFeedbackPrompt{font-family:var(--font)!important;background:var(--glass-strong)!important;border:0!important;border-radius:18px!important;box-shadow:var(--shadow)!important;
  -webkit-backdrop-filter:var(--glass-blur)!important;backdrop-filter:var(--glass-blur)!important;color:var(--ink)!important}
#ovFeedbackModal{font-family:var(--font)!important;background:rgba(10,14,20,.35)!important;-webkit-backdrop-filter:blur(6px)!important;backdrop-filter:blur(6px)!important}
#ovFeedbackModal .ovfb-card{background:var(--surface)!important;color:var(--ink)!important;border:0!important;border-radius:var(--r-panel)!important;box-shadow:var(--shadow)!important}
#ovFeedbackModal input,#ovFeedbackModal textarea,#ovFeedbackModal select{border:0!important;border-radius:11px!important;background:var(--chip)!important;color:var(--ink)!important;padding:10px 12px!important}
.ovfb-open,.ovfb-submit{background:var(--accent)!important;color:var(--accent-ink)!important;border-radius:11px!important}
.ovfb-check{background:var(--accent-soft)!important;color:var(--accent)!important}
.ovfb-success{color:var(--accent)!important}
@media (max-width:760px){
  #ovspotAnalyticsConsent,#ovFeedbackPrompt{bottom:calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom))!important}
}

/* QA */
body.qa-candidate.ovspot-ready #perf[hidden]{display:block!important}
.qa-watermark{position:fixed;z-index:9999;left:50%;bottom:4px;transform:translateX(-50%);font-size:10px;color:var(--late);pointer-events:none}

/* ---------- 16. Mobiel ---------- */
.ov-tabbar-bg{display:none}
@media (max-width:760px){
  :root{--gap:10px;--bar-h:52px;--panel-top:72px;--tabbar-h:62px}
  .app-bar{padding:0 8px 0 16px;border-radius:18px;z-index:46}  /* stapelcontext van de zwevende tabbalk: boven de sheets */
  .ov-tabs{position:fixed;z-index:46;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));height:var(--tabbar-h);
    display:grid;grid-template-columns:repeat(5,1fr);gap:0;padding:6px;border-radius:22px;background:none;box-shadow:var(--shadow);isolation:isolate}
  .ov-tabbar-bg{display:block}
  .ov-tab{flex-direction:column;justify-content:center;gap:2px;height:100%;padding:0 2px;border-radius:16px;font-size:10px;font-weight:600;color:var(--muted)}
  .ov-tab svg{display:block}
  .ov-tab[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent);box-shadow:none}
  .ov-tab-text{font-size:0;line-height:1}
  .ov-tab-text::after{content:attr(data-short);font-size:10px}
  .ov-tab .ov-tab-count{position:absolute;top:5px;left:calc(50% + 6px);min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--accent);color:var(--accent-ink);
    font-size:9.5px;font-weight:700;display:grid;place-items:center}
  .ov-tab .ov-tab-count::before,.ov-tab .ov-tab-count::after{content:none}
  #ovspotBetaTestLink{height:34px;padding:0 12px;font-size:12px}
  #ovspotBetaTestLink .betaFull{display:none}
  #ovspotBetaTestLink .betaShort{display:inline}

  #quickSearchDock{left:10px;right:10px;width:auto;top:calc(var(--panel-top) + env(safe-area-inset-top))}
  #searchBox,#searchBox>#searchInput{min-height:46px;height:auto}
  #searchResults{max-height:calc(100dvh - 220px)}

  /* Sheets */
  .detail-panel,#stopPanel,#favoritePanel,#planningPanel,#vehiclePanel{left:0!important;right:0!important;top:auto!important;bottom:0!important;width:auto!important;
    border-radius:24px 24px 0 0;max-height:calc(100dvh - 70px - env(safe-area-inset-top));padding-bottom:calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom));z-index:42}
  .detail-panel.open{animation:ovSheetIn .26s cubic-bezier(.2,.8,.2,1)}
  @keyframes ovSheetIn{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
  .detail-panel::before{box-shadow:inset 0 1px 0 var(--glass-edge)}
  .detail-panel>.sheet-handle{position:relative;display:block;flex:0 0 26px;width:100%;height:26px;touch-action:none;cursor:ns-resize;font-size:0;color:transparent}
  .detail-panel>.sheet-handle::before{content:"";position:absolute;top:9px;left:50%;width:38px;height:5px;margin-left:-19px;border-radius:3px;background:var(--line-strong)}
  .detail-panel>header{padding:2px 14px 12px 18px}
  #stopPanel,#favoritePanel,#planningPanel{height:62dvh}
  #stopPanel.expanded,#favoritePanel.expanded,#planningPanel.expanded{height:calc(100dvh - 70px - env(safe-area-inset-top))}
  #stopPanel.ux-sheet-compact{height:auto;max-height:calc(230px + var(--tabbar-h) + 14px)}
  #stopPanel.ux-sheet-compact>.sheet-handle{height:34px;flex-basis:34px;font-size:11px;color:var(--muted);padding-top:14px}
  #stopPanel.ux-sheet-compact .stopNumberMeta,#stopPanel.ux-sheet-compact .stopHeaderCopy>small{display:none}
  #stopPanel.ux-sheet-compact .panel-body{overflow:hidden}
  #stopPanel.ux-sheet-compact .panel-body>*:not(.departureList){display:none!important}
  #stopPanel.ux-sheet-compact .depRow:not(:first-child){display:none!important}

  #vehiclePanel.open{height:var(--vehicle-sheet-height,60dvh)!important;min-height:35dvh;max-height:88dvh;transition:height .2s cubic-bezier(.2,.8,.2,1)}
  #vehiclePanel.vehicle-resizing{transition:none!important}
  #vehiclePanel>header{padding:0 14px 0 18px}
  #vehiclePanelBody{padding:2px 16px 14px}
  #vehiclePanel[data-vehicle-snap="compact"] .vprTimeline,
  #vehiclePanel[data-vehicle-snap="compact"] .ovCompactInfo,
  #vehiclePanel[data-vehicle-snap="compact"] .ov6Tabs{display:none!important}
  #vehiclePanel[data-vehicle-snap="compact"] .vprTimeline li.passed{display:none}
  #vehiclePanel[data-vehicle-snap="full"] .vprHeader{position:sticky;top:-2px;z-index:8;background:var(--surface);margin:0 -16px;padding:10px 16px 8px}
  #vehiclePanel[data-vehicle-snap="full"] .ov6Tabs{display:flex;gap:2px;position:sticky;top:var(--ov6-header-height,70px);z-index:7;margin:10px 0 6px;padding:3px;border-radius:11px;background:var(--segment)}
  body:not(.theme-night) #vehiclePanel[data-vehicle-snap="full"] .ov6Tabs{background:#eef0f3}
  .ov6Tab{flex:1;min-width:0;height:32px;border-radius:8px;font-size:12px;font-weight:550;color:var(--ink-2)}
  .ov6Tab.selected{background:var(--segment-active);color:var(--accent);font-weight:650;box-shadow:0 1px 3px rgba(0,0,0,.08)}
  body.theme-night .ov6Tab.selected{background:#2a313d}
  #vehiclePanel[data-vehicle-snap="full"][data-ov6-tab="stops"] .ovCompactInfo{display:none!important}
  #vehiclePanel[data-vehicle-snap="full"][data-ov6-tab="info"] .vprTimeline,
  #vehiclePanel[data-vehicle-snap="full"][data-ov6-tab="composition"] .vprTimeline{display:none!important}
  #vehiclePanel[data-vehicle-snap="full"][data-ov6-tab="info"] .ovCompactInfo,
  #vehiclePanel[data-vehicle-snap="full"][data-ov6-tab="composition"] .ovCompactInfo{display:block!important;border-top:0}
  #vehiclePanel[data-vehicle-snap="full"][data-ov6-tab="info"] .ovCompactInfo>summary,
  #vehiclePanel[data-vehicle-snap="full"][data-ov6-tab="composition"] .ovCompactInfo>summary{display:none!important}
  #vehiclePanel[data-vehicle-snap="full"][data-ov6-tab="info"] .ovCompactComposition{display:none!important}
  #vehiclePanel[data-vehicle-snap="full"][data-ov6-tab="composition"] .vprTripMeta{display:none!important}
  .vprActions{position:sticky;bottom:-14px;margin:12px -16px -14px;padding:10px 16px 12px;background:linear-gradient(180deg,transparent,var(--surface) 30%)}
  .vpMoreMenu{bottom:calc(100% + 6px)}

  #exploreDock{left:0;right:0;top:auto;bottom:0;width:auto;border-radius:24px 24px 0 0;z-index:42;max-height:88dvh;padding-bottom:calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom))}
  #exploreDock.collapsed,#exploreDock:not(.is-expanded){display:none}
  #exploreDock.is-expanded{display:flex;height:var(--mobile-filter-sheet-height,60dvh);min-height:35dvh;animation:ovSheetIn .26s cubic-bezier(.2,.8,.2,1)}
  #exploreDock.filter-resizing{animation:none}
  #exploreDock.is-expanded #filterResizeHandle{position:relative;display:block;flex:0 0 26px;width:100%;touch-action:none;cursor:ns-resize}
  #filterResizeHandle span{position:absolute;top:9px;left:50%;width:38px;height:5px;margin-left:-19px;border-radius:3px;background:var(--line-strong)}
  #exploreDock #mapTools.mobile-open{display:flex!important}
  #exploreDock #mapTools:not(.mobile-open){display:none!important}
  .ov-filter-head{padding-top:4px}
  .ov-mode-grid button{min-height:54px}

  #stopFavoritesMenu{left:0!important;right:0!important;top:auto!important;bottom:0!important;width:auto;border-radius:24px 24px 0 0;max-height:70dvh;z-index:42;
    padding-bottom:calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom));animation:ovSheetIn .26s cubic-bezier(.2,.8,.2,1)}

  #routeBar{left:10px;right:10px;transform:none;max-width:none;bottom:calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom));z-index:26}
  body.panel-open #routeBar{bottom:calc(var(--vehicle-sheet-height,60dvh) + 8px)}
  body:has(.detail-panel.expanded) #routeBar{display:none}
  #routeTitle{max-width:none;flex:1}
  .route-view-modes{order:2;flex-basis:100%;display:grid;grid-template-columns:repeat(3,1fr)}
  #approvedActiveFilters{top:calc(var(--panel-top) + 56px + env(safe-area-inset-top));max-width:calc(100vw - 20px)}
  #approvedConnectionNotice{top:calc(var(--panel-top) + 56px + env(safe-area-inset-top))}

  .leaflet-bottom.leaflet-right .leaflet-control-zoom{display:none}
  #mapHelpLink,#contactMapLink{bottom:calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom))}
  #contactMapLink{right:10px}
  #mapHelpLink{right:56px}
  #ovspotOsmAttribution{left:10px;right:auto;bottom:calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom))}
  body.panel-open #mapHelpLink,body.panel-open #contactMapLink,body.panel-open #ovspotOsmAttribution,
  body:has(#exploreDock.is-expanded) #mapHelpLink,body:has(#exploreDock.is-expanded) #contactMapLink{display:none}
  #ovspotAdDock{left:10px;right:10px;width:auto;transform:none;bottom:calc(var(--tabbar-h) + 68px + env(safe-area-inset-bottom))}
  body:has(#exploreDock.is-expanded) #ovspotAdDock{display:none!important}
  #toast{bottom:calc(var(--tabbar-h) + 26px + env(safe-area-inset-bottom))}
  #cookieBanner{flex-direction:column;align-items:stretch;bottom:calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom))}
  .cookie-actions button{flex:1}
  #ovspotUpdateBanner.ovspotUpdateBanner{left:10px;right:10px;width:auto;transform:none;max-width:none;bottom:calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom))}
  #approvedEmptyResults{width:auto;left:16px;right:16px;transform:translateY(-50%)}
}
@media (max-width:360px){
  .brand{font-size:16px}
  #ovspotBetaTestLink .betaShort{display:none}
  #ovspotBetaTestLink::after{content:"App"}
}

/* ---------- 17. Toegankelijkheid / motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
  .ovPopupSkeletonBar{animation:none!important}
}
@media (prefers-contrast:more){
  :root{--glass:rgba(255,255,255,.98);--line:rgba(27,36,51,.2);--muted:#4b5563}
  body.theme-night{--glass:rgba(16,19,25,.98);--line:rgba(255,255,255,.22);--muted:#b5bfcc}
}

/* OVFIX-16 begin: bredere lijnbadge zodra er treinen in de lijst staan (Sprinter/Intercity werden afgekapt) */
#stopPanel:has(.depCarrierLine.mode-trein) .depRow{grid-template-columns:64px minmax(0,1fr) auto}
#stopPanel:has(.depCarrierLine.mode-trein) .depCarrierLine{width:64px;padding:0 4px;font-size:11.5px;letter-spacing:-.02em}
/* OVFIX-16 end */
