[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--brand); color: var(--brand-ink); padding: 10px 14px; border-radius: var(--r); z-index: 100; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* shell */
#app { min-height: 100%; display: flex; flex-direction: column; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.rij { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rij.between { justify-content: space-between; }

/* knoppen en velden (aanraakdoelen >= 44px) */
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.error { color: var(--bad); background: var(--bad-bg); border: 1px solid var(--bad); padding: 10px 12px; border-radius: var(--r); }
.notice { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn); padding: 10px 12px; border-radius: var(--r); }
.okmsg { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok); padding: 10px 12px; border-radius: var(--r); }
.card.pad0 { padding: 0; overflow: hidden; }

/* voertuigstrook: altijd bovenaan */
.vstrip { background: var(--tape); color: var(--tape-ink); }
.vstrip-in { max-width: 1400px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.vstrip .vname { font-family: var(--f-head); font-weight: 700; font-size: 18px; }
.vstrip .vdims { font-family: var(--f-mono); font-size: 14px; }
.vstrip .btn { min-height: 44px; background: transparent; color: var(--tape-ink); border-color: var(--tape-ink); }
.vstrip .btn[aria-pressed="true"] { background: var(--tape-ink); color: var(--tape); border-color: var(--tape-ink); }

/* statuslabels: tekst + icoon, nooit alleen kleur */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1.5px solid currentColor; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.unknown { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.demo { background: var(--tape); color: var(--tape-ink); border-color: var(--tape-ink); }
.badge svg { width: 16px; height: 16px; flex: none; }

/* zoeken */
.searchbar { display: flex; gap: 8px; flex-wrap: wrap; }
.searchbar .grow { flex: 1 1 220px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.seg button { min-height: 44px; padding: 0 16px; border: 0; background: transparent; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; }
.split { display: grid; gap: 14px; grid-template-columns: 1fr; }
.results { display: flex; flex-direction: column; gap: 10px; }
.group-h { font-family: var(--f-head); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 8px 0 0; }
.loc { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; text-decoration: none; color: var(--ink); }
.loc[aria-current="true"] { border: 2px solid var(--brand); }
.loc .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.loc .miss { margin-top: 6px; font-size: 14px; color: var(--warn); }
.map { position: relative; height: min(58vh, 520px); min-height: 300px; background: #C9D3DA; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; touch-action: none; user-select: none; }
.map:focus-visible { outline-offset: -3px; }
.map .tiles, .map .markers { position: absolute; inset: 0; }
.map .tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.map .mk { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.4); padding: 0; }
.map .mk.ok { background: #0F5A2B; color: #fff; }
.map .mk.unknown { background: #F4C430; color: #1B1600; border-radius: 8px; }
.map .mk.bad { background: #8C1A14; color: #fff; border-radius: 4px; }
.map .mk.me { background: #0E4B5A; width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 0; }
.map .mk[aria-pressed="true"] { outline: 4px solid #0E4B5A; z-index: 5; }
.map .zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 6; }
.map .zoom button { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 22px; font-weight: 700; }
.map .attr { position: absolute; left: 0; bottom: 0; background: rgba(255,255,255,.85); color: #222; font-size: 11px; padding: 2px 6px; z-index: 6; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }

/* detail */
.kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 14px; }
.crit { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.crit li { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photos img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* navigatie onderaan */
nav.hoofdnav { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
nav.hoofdnav a { min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
nav.hoofdnav a svg { width: 24px; height: 24px; }
nav.hoofdnav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }

/* tabellen en beheer */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; }
.formgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.formgrid .full { grid-column: 1 / -1; }
dialog { border: 0; border-radius: 14px; padding: 0; max-width: min(720px, 96vw); width: 100%; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: var(--overlay); }
dialog .dlg { padding: 18px; display: flex; flex-direction: column; gap: 14px; max-height: 90vh; overflow-y: auto; }
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); max-width: min(92vw, 520px); padding: 12px 16px; border-radius: var(--r); background: var(--ink); color: var(--bg); font-weight: 500; z-index: 60; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.qr { background: #fff; padding: 10px; border-radius: 8px; display: inline-block; }
.qr img { width: 200px; height: 200px; display: block; }
.secret { word-break: break-all; font-family: var(--f-mono); background: var(--surface-2); padding: 8px 10px; border-radius: 8px; }
.loading { padding: 30px 0; text-align: center; color: var(--ink-2); }

/* tablet en groter */
@media (min-width: 768px) {
  .page { padding-bottom: 90px; }
  .kv { grid-template-columns: 220px minmax(0, 1fr); }
  .map { height: min(62vh, 620px); }
}
@media (min-width: 1024px) {
  .split.two { grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); align-items: start; }
  .split.two .results { max-height: calc(100vh - 330px); overflow-y: auto; padding-right: 4px; }
  .split.two .map { position: sticky; top: 8px; height: calc(100vh - 330px); min-height: 420px; }
  .only-narrow { display: none !important; }
}
@media (max-width: 1023px) { .only-wide { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* POT-huisstijl: knoppen in hoofdletters, invoer met duidelijke rand, goud accent */
/* tikdoelen minimaal 44 px (WCAG 2.2 doelgrootte) */

/* inlogkaart zoals in de verhuisapp */

/* uitlijning: vaste ritme tussen blokken, nette criteria-lijst, compacte uitklapvakken */
.crit { gap: 0; }
.crit li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 4px 12px; align-items: start; flex-wrap: nowrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.crit li:last-child { border-bottom: 0; }
.crit li > span:last-child { padding-top: 3px; }
.crit .badge { justify-self: start; }
details.card { padding: 0; }
details.card > summary { padding: 0 14px; cursor: pointer; }
details.card > :not(summary) { margin: 0 14px 14px; }
details.card[open] > summary { margin-bottom: 10px; }
@media (max-width: 600px) { .searchbar > .btn:last-child { flex: 1 1 100%; } }
.tablewrap table { min-width: 100%; }
td .btn.sm, td .rij { white-space: nowrap; }

/* profielfoto en uitsnijden */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.modal-back { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: flex-start; justify-content: center; padding: 16px; overflow-y: auto; z-index: 200; }
.modal { width: 100%; max-width: 420px; margin-top: 4vh; box-sizing: border-box; }
.crop-cv { cursor: grab; }
input[type=range] { min-height: 44px; padding: 0; accent-color: var(--brand); }

.aerial { position: relative; background: var(--surface-2); min-height: 120px; border: 1px solid var(--line); }
.aerial img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.aerial-dot { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.5); }
.sv-frame { width: 100%; height: 280px; border: 1px solid var(--line); }

/* dichter bij de verhuisapp: rechte hoeken, naam met functie eronder */

/* typografie en velden zoals de verhuisapp */

/* ===== koppeling met de verhuisapp-stylesheet (verhuis.css wordt ongewijzigd geladen) ===== */
:root {
  --bg: var(--cream); --surface: var(--white); --surface-2: var(--gold-l); --ink-2: var(--mute); --line-strong: var(--line);
  --brand: var(--orange); --brand-ink: #fff; --tape: var(--gold); --tape-ink: var(--ink); --tape-soft: var(--gold-l);
  --ok-bg: #E3F0E5; --warn: #5E4A00; --warn-bg: var(--gold-l); --bad: #8C1A14; --bad-bg: #FBE0DE; --danger: var(--err);
  --overlay: rgba(30, 28, 20, .55); --r: 0px; --f-head: Karla, system-ui, sans-serif; --f-body: Karla, system-ui, sans-serif; --f-mono: ui-monospace, Menlo, Consolas, monospace;
  /* oranje iets donkerder dan de verhuisapp zodat witte tekst op knoppen het AA-contrast haalt */
  --orange: #C4520F; --orange-d: #A9450C;
}
:focus-visible { outline: 3px solid var(--orange-d); outline-offset: 2px; }
a { color: var(--gold-d); }
.skip:focus { top: 8px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
#app { min-height: 100vh; }
/* de verhuisapp zet voor .wrap geen flex; wij willen vaste tussenruimte tussen blokken */
.wrap { max-width: 900px; display: flex; flex-direction: column; gap: 12px; padding-bottom: 90px; }
.wrap.wide { max-width: 1200px; }
.wrap.narrow { max-width: 520px; }
.wrap > * { margin-top: 0; margin-bottom: 0; }
.wrap > .card { margin-bottom: 0; }
.wrap > h1 { margin-bottom: 0; }
/* knoppen: varianten bovenop .btn / .btn.ghost uit de verhuisapp */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-width: 44px; }
.btn.ghost { color: var(--ink); }
.btn.danger, .btn.ghost.danger { color: var(--err); border-color: var(--err); }
.btn.big { min-height: 54px; font-size: 17px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.sm { min-height: 40px; }
.inlog-knop { width: 100%; margin-top: 22px; }
/* formulieren */
.field { display: flex; flex-direction: column; gap: 4px; }
.rij > .field { flex: 1 1 150px; min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; color: var(--ink); font-size: 16px; margin: 0; }
input[type=checkbox] { width: 24px; height: 24px; min-height: 0; accent-color: var(--orange); flex: none; }
input[type=file] { padding: 9px 8px; }
input[type=range] { padding: 0; accent-color: var(--orange); }
.rij > * { flex: initial; min-width: 0; }
.error { color: var(--bad); background: var(--bad-bg); border: 1px solid var(--bad); padding: 10px 12px; margin: 0; }
.notice { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--gold); padding: 10px 12px; margin: 0; }
.okmsg { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok); padding: 10px 12px; margin: 0; }
.card.pad0 { padding: 0; overflow: hidden; }
.card > h2 { margin-bottom: 8px; }
/* kop: logo + titel + profiel, zoals de verhuisapp (.top) */
.top .logo-t { font-size: 18px; }
.top .who { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.top .who b { font-size: 13px; color: var(--ink); }
.top .who small { font-size: 12px; color: var(--mute); }
.top .whoa { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; min-height: 44px; }
.top .btn { min-height: 40px; }
@media (max-width: 640px) { .top .who { display: none; } .top > b { display: inline !important; } }
/* actief voertuig */
.vstrip .vname { font-weight: 700; font-size: 18px; }
.vstrip .vdims { font-family: var(--f-mono); font-size: 13px; }
.vstrip .btn { background: transparent; color: var(--ink); border: 1px solid var(--ink); min-height: 40px; }
.vstrip .btn[aria-pressed="true"] { background: var(--ink); color: var(--gold); }
/* statuslabels: pill uit de verhuisapp, kleur plus tekst plus icoon */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; font-size: 13px; font-weight: 700; border: 1px solid currentColor; border-radius: 0; }
th { white-space: nowrap; }
td { vertical-align: middle; }
.tabs { gap: 0; flex-wrap: nowrap; }
.tabs a { flex: 1; text-align: center; padding: 12px; border-bottom: 3px solid transparent; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.tabs a[aria-current="page"] { border-color: var(--orange); color: var(--orange-d); }
/* onderbalk met de vier hoofdonderdelen */
nav.hoofdnav a[aria-current="page"] { color: var(--orange-d); box-shadow: inset 0 3px 0 var(--orange); }
/* profielfoto en uitsnijden */
.avatar { background: var(--gold); color: #fff; }
.loc .t { font-weight: 700; font-size: 18px; }
.vstrip-in { max-width: 1200px; padding: 8px 14px; }
.group-h { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin: 8px 0 0; }
/* aanraakdoelen minimaal 44 px (WCAG 2.2), ook in de kop */
.btn.sm, .top .btn.sm, .top .btn.sm.icoon, .vstrip .btn { min-height: 44px; }
.btn.icoon { width: 44px; min-width: 44px; }
.top > a:first-child { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.top .whoa { min-width: 44px; justify-content: center; }
.skip { min-height: 44px; display: inline-flex; align-items: center; }
.wrap { width: 100%; min-width: 0; }
.field input, .field select, .field textarea { font-weight: 400; color: var(--ink); font-size: 16px; }
