:root {
  --bg: #0b1220;
  --bg-2: #111a2c;
  --bg-3: #182338;
  --line: #24304a;
  --text: #e6ecf5;
  --muted: #8b97ad;
  --accent: #5fd3ff;
  --accent-2: #ffb454;
  --ok: #4ade80;
  --warn: #f87171;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5rem; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; } h3 { font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--muted); font-weight: 400; }
[hidden] { display: none !important; }

/* header */
.top { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--bg-2); position: sticky; top: 0; z-index: 900; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand strong { display: block; font-size: 1.05rem; }
.brand small { display: block; color: var(--muted); font-size: .75rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--accent) 0 12%, transparent 13%), repeating-radial-gradient(circle, transparent 0 6px, rgba(95,211,255,.35) 6px 7px); box-shadow: 0 0 0 1px var(--line) inset; }
nav { display: flex; gap: .2rem; margin-left: auto; }
nav a { padding: .4rem .8rem; border-radius: 8px; color: var(--muted); }
nav a.active, nav a:hover { color: var(--text); background: var(--bg-3); text-decoration: none; }
.status { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.ok .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status.err .dot { background: var(--warn); }

main { max-width: 1400px; margin: 0 auto; padding: 1rem 1.2rem 2rem; }
footer { max-width: 1400px; margin: 0 auto; padding: 1rem 1.2rem 2rem; color: var(--muted); font-size: .78rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; border-top: 1px solid var(--line); }

/* foto van de straat als sfeerband achter de hero: sterk gedimd, blauw getint, uitlopend naar de achtergrond */
.streetband { position: absolute; left: 0; right: 0; top: 58px; height: 330px; z-index: 0; overflow: hidden; pointer-events: none; }
.streetband-img { position: absolute; inset: 0; background: url("../img/straat.jpg") center 35% / cover no-repeat; opacity: .5; filter: saturate(.6) contrast(1.05); }
.streetband:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,.05) 0%, rgba(11,18,32,.35) 60%, var(--bg) 100%); }
.page-live .hero, .page-live .mapwrap, .page-live .iss, .page-live .today { position: relative; z-index: 1; }
.page-live .hero-card, .page-live .stat, .page-live .hours { background: rgba(17,26,44,.62); backdrop-filter: blur(3px); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 1rem; }
.hero-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; min-height: 170px; display: grid; grid-template-columns: 1fr; gap: .8rem; position: relative; overflow: hidden; }
.hero-card.has-photo { grid-template-columns: 220px 1fr; }
.hero-label { position: absolute; top: .7rem; left: 1.2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hero-empty { color: var(--muted); align-self: center; padding-top: 1rem; }
.hero-photo { margin-top: 1.4rem; border-radius: 8px; overflow: hidden; background: var(--bg-3); aspect-ratio: 3/2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo small { display: block; font-size: .68rem; color: var(--muted); padding: .2rem .4rem; }
.hero-main { padding-top: 1.4rem; }
.hero-main .cs { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.hero-main .cs small { font-size: 1rem; color: var(--muted); font-weight: 400; margin-left: .5rem; }
.hero-main .desc { font-size: 1.05rem; margin: .2rem 0 .6rem; }
.hero-main .route { color: var(--accent-2); font-weight: 600; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .4rem .8rem; font-size: .85rem; }
.kv b { display: block; font-family: var(--mono); font-size: 1.05rem; font-weight: 600; }
.kv span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.badge { display: inline-block; font-size: .68rem; padding: .1rem .45rem; border-radius: 999px; background: var(--bg-3); color: var(--muted); margin-left: .4rem; vertical-align: middle; text-transform: uppercase; letter-spacing: .05em; }
.badge.overhead { background: rgba(95,211,255,.18); color: var(--accent); }
.badge.mil { background: rgba(248,113,113,.18); color: var(--warn); }
.badge.heli { background: rgba(255,180,84,.18); color: var(--accent-2); }
.badge.emerg { background: var(--warn); color: #fff; }

.hero-side { display: grid; grid-template-rows: auto 1fr; gap: .8rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .8rem; }
.stat b { display: block; font-size: 1.6rem; font-family: var(--mono); font-weight: 600; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .72rem; }
.hours { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem .4rem; display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; align-items: end; min-height: 70px; }
.hours i { display: block; background: var(--accent); opacity: .75; border-radius: 2px 2px 0 0; min-height: 2px; position: relative; }
.hours i.now { background: var(--accent-2); opacity: 1; }
.hours i:after { content: attr(data-h); position: absolute; bottom: -14px; left: 0; right: 0; text-align: center; font-size: .55rem; color: var(--muted); }

/* map */
.mapwrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1rem; margin-bottom: 1.2rem; }
#map { height: 640px; border-radius: var(--radius); border: 1px solid var(--line); background: #0a0f1a; }
.leaflet-container { font: inherit; }
.leaflet-tile-pane { filter: saturate(.85) brightness(.85); }
.leaflet-control-layers, .leaflet-control-attribution { background: rgba(11,18,32,.85) !important; color: var(--text) !important; border: 1px solid var(--line) !important; font-size: .7rem; }
.leaflet-control-layers-toggle { filter: invert(1); }
.leaflet-control-attribution a { color: var(--accent); }
.ac-icon { display: flex; align-items: center; justify-content: center; }
.ac-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 0 3px rgba(0,0,0,.9)); transition: transform .4s linear; }
.ac-icon.selected svg { filter: drop-shadow(0 0 6px var(--accent-2)); }
.ac-label { background: rgba(11,18,32,.85); border: 1px solid var(--line); color: var(--text); font: 600 .7rem var(--mono); padding: 1px 5px; border-radius: 4px; white-space: nowrap; box-shadow: none; }
.ac-label:before { display: none; }
.home-icon { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(255,180,84,.25), 0 0 14px var(--accent-2); }
.ring-label { color: #cfe0ff; text-shadow: 0 0 3px #000; font: .65rem var(--mono); background: none; border: none; box-shadow: none; }

.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; max-height: 640px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.count { font-family: var(--mono); color: var(--muted); font-weight: 400; font-size: .9rem; }
.toggle { font-size: .75rem; color: var(--muted); display: flex; gap: .3rem; align-items: center; cursor: pointer; }
.list { list-style: none; margin: 0; padding: 0; overflow: auto; }
.list li { padding: .5rem .9rem; border-bottom: 1px solid var(--line); cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: .1rem .6rem; font-size: .82rem; }
.list li:hover, .list li.selected { background: var(--bg-3); }
.list li .cs { font-family: var(--mono); font-weight: 600; }
.list li .sub { color: var(--muted); grid-column: 1 / -1; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list li .dst { font-family: var(--mono); color: var(--accent); }
.list li.overhead .dst { color: var(--accent-2); }

/* today */
.today { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.records { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; margin: .8rem 0 1rem; }
.rec { background: var(--bg-3); border-radius: 10px; padding: .6rem .8rem; cursor: pointer; }
.rec:hover { outline: 1px solid var(--line); }
.rec .lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rec .val { font-family: var(--mono); font-size: 1.3rem; font-weight: 600; }
.rec .who { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.bars { list-style: none; padding: 0; margin: 0; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: .5rem; font-size: .82rem; padding: .25rem 0; position: relative; }
.bars li i { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); opacity: .5; }
.bars li b { font-family: var(--mono); font-weight: 500; color: var(--muted); }
.alerts { list-style: none; padding: 0; margin: 0; font-size: .82rem; }
.alerts li { padding: .3rem 0; border-top: 1px solid var(--line); }
.alerts li b { color: var(--accent-2); font-family: var(--mono); margin-right: .5rem; }

/* detail drawer */
.detail { position: fixed; right: 1rem; bottom: 1rem; width: min(420px, calc(100vw - 2rem)); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; z-index: 950; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.detail .close { position: absolute; top: .4rem; right: .5rem; background: none; border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.detail img { width: 100%; border-radius: 8px; display: block; margin: .5rem 0 .2rem; }
.detail .cs { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; }
.detail .hist { font-size: .75rem; color: var(--muted); margin-top: .6rem; }
.detail .hist span { display: inline-block; margin-right: .6rem; }

/* logboek */
.log-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.log-nav { display: flex; gap: .3rem; align-items: center; }
.btn.small, select.small { padding: .15rem .4rem; font-size: .75rem; }
.btn, select { background: var(--bg-3); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: .35rem .6rem; font: inherit; cursor: pointer; }
.records.compact { margin: .4rem 0 .8rem; }
.tablewrap { overflow-x: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.logtable { width: 100%; border-collapse: collapse; font-size: .82rem; }
.logtable th, .logtable td { padding: .45rem .7rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.logtable th { color: var(--muted); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; position: sticky; top: 0; background: var(--bg-2); }
.logtable td.num, .logtable th.num { text-align: right; font-family: var(--mono); }
.logtable tr.overhead td:first-child { box-shadow: inset 3px 0 0 var(--accent-2); }
.logtable tr:hover td { background: var(--bg-3); cursor: pointer; }
.logtable .mono { font-family: var(--mono); }
.alltime { margin-top: 1.5rem; }

/* over */
.prose { max-width: 760px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 2rem; line-height: 1.6; }
.prose h2 { margin-top: 1.4rem; }
.chain { padding-left: 1.2rem; } .chain li { margin: .4rem 0; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .mapwrap { grid-template-columns: 1fr; }
  .panel { max-height: 320px; }
  #map { height: 480px; }
  .cols { grid-template-columns: 1fr; }
  .top { gap: .8rem; flex-wrap: wrap; }
  .brand small { display: none; }
}
@media (max-width: 600px) {
  .hero-card.has-photo { grid-template-columns: 1fr; }
  .hero-photo { max-height: 180px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  #map { height: 380px; }
  .prose { padding: 1rem 1.1rem; }
}

/* 3D-scène */
.page-3d main { max-width: none; padding: 0; }
.page-3d footer { display: none; }
.scene { position: relative; height: calc(100vh - 58px); min-height: 480px; overflow: hidden; }
#cesium { position: absolute; inset: 0; }
.cesium-viewer-bottom { display: none !important; }
.cesium-viewer-fullscreenContainer { bottom: 12px !important; right: 12px !important; }
.hud { position: absolute; z-index: 10; background: rgba(11,18,32,.78); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; backdrop-filter: blur(6px); font-size: .82rem; }
.hud-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; }
.hud-col { position: absolute; top: .8rem; right: .8rem; bottom: 4.6rem; width: 310px; z-index: 10; display: flex; flex-direction: column; gap: .5rem; overflow: auto; pointer-events: none; }
.hud-col .hud { position: static; pointer-events: auto; flex: none; }
.hud-col .hud-title { cursor: pointer; user-select: none; margin: 0; display: flex; align-items: center; gap: .4rem; }
.hud-col .hud-title:before { content: "▾"; font-size: .8rem; color: var(--muted); }
.hud-col .hud.collapsed .hud-title:before { content: "▸"; }
.hud-col .hud.collapsed > :not(.hud-title) { display: none; }
.hud-col .hud:not(.collapsed) .hud-title { margin-bottom: .3rem; }
.hud-col .hud-title .toggle { margin-left: auto; }
#hud-planes .list { overflow: auto; max-height: 34vh; }
.hud-bottom { left: 50%; bottom: 2rem; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 2rem); }
.hud-loading { top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: .95rem; padding: .8rem 1.2rem; }
.hud-credit { left: 50%; transform: translateX(-50%); bottom: .3rem; font-size: .62rem; color: var(--muted); padding: .2rem .5rem; white-space: nowrap; border: none; background: rgba(11,18,32,.6); }
.cams { display: flex; gap: .3rem; }
.timectl { display: flex; align-items: center; gap: .5rem; }
.timectl input[type=range] { width: 200px; accent-color: var(--accent-2); }
.mono { font-family: var(--mono); }
.wx-main { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .3rem; }
.wx-main b { font-family: var(--mono); font-size: 1.7rem; font-weight: 600; }
.kv.small { grid-template-columns: repeat(3, 1fr); gap: .3rem .5rem; font-size: .78rem; }
.kv.small b { font-size: .85rem; }
.wx-regen { margin-top: .4rem; color: var(--accent-2); font-size: .78rem; }
.regenbalk { display: flex; align-items: flex-end; gap: 1px; height: 22px; margin-top: .2rem; }
.regenbalk i { flex: 1; background: var(--accent); opacity: .7; min-height: 1px; }
.sky-row { display: flex; gap: .5rem; align-items: center; padding: .2rem 0; }
.sky-row small { display: block; color: var(--muted); font-size: .7rem; }
.sky-row i { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.sky-row i.sun { background: radial-gradient(circle, #ffe08a 0 40%, #ffb454 41% 60%, transparent 61%); box-shadow: 0 0 8px #ffb454; }
.sky-row i.moon { --illum: .5; background: linear-gradient(90deg, #e6ecf5 calc(var(--illum) * 100%), #2a3650 calc(var(--illum) * 100%)); border: 1px solid #55627a; }
.sky-row i.moon.waning { background: linear-gradient(270deg, #e6ecf5 calc(var(--illum) * 100%), #2a3650 calc(var(--illum) * 100%)); }
.list.mini li { padding: .3rem .2rem; font-size: .76rem; }
@media (max-width: 900px) {
  .hud-col { width: min(300px, calc(100vw - 1.6rem)); bottom: 6.5rem; }
  .hud-credit { display: none; }
  .timectl input[type=range] { width: 120px; }
}
.spot { margin: .3rem 0 .5rem; padding: .4rem .5rem; background: rgba(255,180,84,.12); border: 1px solid rgba(255,180,84,.35); border-radius: 8px; font-size: .8rem; }
.spot b { font-family: var(--mono); color: var(--accent-2); }
.hud-title .toggle { display: inline-flex; text-transform: none; letter-spacing: 0; }
.btn.active { outline: 2px solid var(--accent-2); }

/* ISS */
.iss { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.iss-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.iss-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.2rem; margin-top: .6rem; }
.iss-now { margin-bottom: .8rem; }
.passes { list-style: none; padding: 0; margin: 0 0 .6rem; font-size: .82rem; }
.passes li { padding: .3rem 0; border-top: 1px solid var(--line); }
.passes li.next { border-top: none; color: var(--text); background: rgba(95,211,255,.08); padding: .4rem .5rem; border-radius: 8px; margin-bottom: .3rem; }
.vis { color: var(--ok); font-weight: 600; }
.vis.big { font-size: 1rem; margin-top: .4rem; }
.small { font-size: .78rem; }
.iss-video { background: #000; border-radius: 10px; aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; text-align: center; padding: 1rem; overflow: hidden; }
.iss-video iframe { width: 100%; height: 100%; border: 0; }
#hud-iss .row { font-size: .8rem; padding: .15rem 0; }
@media (max-width: 1000px) { .iss-grid { grid-template-columns: 1fr; } }
.teaser { margin: -.3rem 0 1rem; font-size: .85rem; }
.teaser a { color: var(--muted); }
.teaser a:hover { color: var(--accent); text-decoration: none; }
.page-iss .iss { margin-top: 0; }

/* statistiek */
.stats .card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1rem; }
.stats .cols { margin-bottom: 0; }
.stats .cols .card { margin-bottom: 1rem; }
.cols.two { grid-template-columns: repeat(2, 1fr); }
.stat-row.wide { grid-template-columns: repeat(4, 1fr); margin-bottom: 1rem; }
.chart { width: 100%; }
.barchart { width: 100%; height: 150px; display: block; }
.rosechart { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto; }
@media (max-width: 1000px) { .cols.two { grid-template-columns: 1fr; } .stat-row.wide { grid-template-columns: repeat(2, 1fr); } }

/* overlay met toestelinformatie */
.modal { position: fixed; inset: 0; background: rgba(5,9,18,.7); backdrop-filter: blur(3px); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow: auto; }
.modal-card { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); width: min(860px, 100%); padding: 1.2rem 1.4rem; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.modal-card .close { position: absolute; top: .5rem; right: .7rem; background: none; border: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.modal-top { display: grid; grid-template-columns: 300px 1fr; gap: 1.2rem; margin-bottom: 1rem; }
.modal-top img { width: 100%; border-radius: 8px; display: block; }
.modal-top .nophoto { aspect-ratio: 3/2; background: var(--bg-3); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.modal .cs.big { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; }
.modal .desc { font-size: 1.05rem; margin: .2rem 0 .3rem; }
.modal .btn { display: inline-block; margin-right: .4rem; }
.modal .logtable th, .modal .logtable td { padding: .3rem .5rem; }
@media (max-width: 700px) { .modal-top { grid-template-columns: 1fr; } }

/* zoeken + toestelpagina */
.search input { background: var(--bg-3); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: .35rem .6rem; font: inherit; font-size: .82rem; width: 150px; }
.search input:focus { outline: none; border-color: var(--accent); }
.bigsearch { display: flex; gap: .4rem; margin: .5rem 0 1rem; }
.bigsearch input { flex: 1; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: .6rem .8rem; font: inherit; font-size: 1rem; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.results a { display: grid; grid-template-columns: 110px 1fr; gap: .8rem; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; color: var(--text); }
.results a:hover { background: var(--bg-3); text-decoration: none; }
.results img, .results .nophoto { width: 110px; height: 73px; object-fit: cover; border-radius: 6px; background: var(--bg-3); display: block; }
.results .rtxt { display: grid; gap: .1rem; }
.results .rtxt b { font-size: 1.05rem; }
.toestel .modal-top img { max-width: 420px; }
@media (max-width: 900px) { .search { display: none; } }
.hud-standpunt { left: 50%; bottom: 7.5rem; transform: translateX(-50%); width: min(460px, calc(100vw - 2rem)); }
.hud-standpunt .close { float: right; background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.hud-standpunt pre { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; font-size: .8rem; user-select: all; margin: .4rem 0; }

/* andere plek kiezen */
.locbtn { white-space: nowrap; }
.locpanel { position: fixed; inset: 0; background: rgba(5,9,18,.7); backdrop-filter: blur(3px); z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow: auto; }
.locpanel-card { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); width: min(640px, 100%); padding: 1.2rem 1.4rem; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.locpanel-card .close { position: absolute; top: .5rem; right: .7rem; background: none; border: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.locpanel-card h2 { margin: 0 0 .3rem; }
.locpanel-card hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.locrow { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: .8rem 0 .4rem; }
.locsearch { display: flex; gap: .4rem; flex: 1; min-width: 220px; }
.locsearch input { flex: 1; min-width: 0; }
.loclist { list-style: none; margin: .3rem 0 .6rem; padding: 0; }
.loclist li { padding: .25rem 0; border-bottom: 1px solid var(--line); }
.locmap { height: 260px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-3); }
.locsave { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.locsave input { min-width: 200px; }
.locsave label { display: flex; gap: .5rem; align-items: center; }
.locbanner { margin: .6rem 1.2rem 0; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); font-size: .9rem; }
body.noscroll { overflow: hidden; }
@media (max-width: 700px) { .locpanel { padding: 0; } .locpanel-card { border-radius: 0; min-height: 100vh; } }
.locpanel input[type=search], .locpanel input[type=text] { background: var(--bg-3); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: .4rem .6rem; font: inherit; font-size: .9rem; }
.locpanel input:focus { outline: none; border-color: var(--accent); }
.brand { flex-shrink: 0; }
.status { white-space: nowrap; }
@media (max-width: 1150px) { .brand small { display: none; } }
@media (max-width: 700px) { .locbtn { padding: .15rem .4rem; } .status #status-text { display: none; } }
/* kop: menu niet laten afbreken; op smalle schermen mag de kop over twee regels */
.top { flex-wrap: wrap; row-gap: .4rem; }
nav a { white-space: nowrap; }
nav { flex-wrap: wrap; }
@media (max-width: 1150px) { nav { margin-left: 0; } }
.locbanner.start { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: 1rem; padding: .8rem 1rem; border-color: rgba(95,211,255,.35); }

/* app en meldingen */
.pushform label { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .3rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.pushform .num-in { width: 4.5rem; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: .2rem .4rem; font: inherit; }
.pushform input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }

/* telefoon: compacte kop (één rij, zijwaarts te scrollen) */
@media (max-width: 700px) {
  .top { flex-wrap: nowrap; overflow-x: auto; gap: .5rem; padding: .4rem .6rem; scrollbar-width: none; }
  .top::-webkit-scrollbar { display: none; }
  .brand { gap: .4rem; }
  .brand strong { font-size: .95rem; white-space: nowrap; }
  .brand-mark { width: 24px; height: 24px; }
  nav { flex-wrap: nowrap; margin-left: 0; gap: 0; }
  nav a { padding: .3rem .5rem; font-size: .9rem; }
  .locbtn { flex: none; }
}
/* telefoon: 3D-scène — panelen dicht, knoppenbalk compact, volledig-schermknop */
@media (max-width: 700px) {
  .scene { height: calc(100dvh - 44px); min-height: 0; }
  .hud-col { top: .5rem; left: .5rem; right: .5rem; width: auto; bottom: 5.4rem; gap: .35rem; }
  .hud-col .hud { padding: .4rem .6rem; font-size: .78rem; }
  #hud-planes .list { max-height: 22vh; }
  .hud-bottom { bottom: .4rem; padding: .35rem .5rem; gap: .35rem .6rem; max-width: calc(100vw - .8rem); }
  .hud-bottom .btn { padding: .25rem .5rem; font-size: .8rem; }
  .cams { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; scrollbar-width: none; }
  .cams::-webkit-scrollbar { display: none; }
  .timectl input[type=range] { width: 90px; }
  #btn-standpunt, .hud-bottom .toggle.weather { display: none; }
}
body.immersive .top { display: none; }
body.immersive .scene { height: 100dvh; }
@media (max-width: 700px) {
  .locbtn { order: -1; }                 /* plek- en belknop vooraan, vóór het menu, altijd in beeld */
  .brand { order: -2; }
  .status { order: 5; }
}
@media (max-width: 480px) { .brand strong { display: none; } }

/* stappen in het meldingenpaneel */
.wizard { list-style: none; margin: .6rem 0; padding: 0; }
.wizard li { padding: .55rem .7rem .55rem 2.2rem; border: 1px solid var(--line); border-radius: 8px; margin-bottom: .4rem; position: relative; opacity: .6; }
.wizard li:before { content: "○"; position: absolute; left: .7rem; top: .5rem; color: var(--muted); font-size: 1.1rem; }
.wizard li.done { opacity: .85; } .wizard li.done:before { content: "✓"; color: var(--ok); }
.wizard li.now { opacity: 1; border-color: var(--accent); } .wizard li.now:before { content: "▶"; color: var(--accent); font-size: .8rem; top: .65rem; }
.wizard li .small { margin-top: .25rem; }

.locbanner.slim { font-size: .85rem; padding: .35rem .8rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; border-color: var(--line); }
.locbanner.slim .close { margin-left: auto; background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 0 .2rem; }
