/* ZE-zonetool: aanvulling op assets/css/site.css. Zelfde toon: dunne lijnen, één kolom. */
:root {
  --ok: #17663a; --nee: #b3261e; --let: #8a5300; --zone: #b3261e; --later: #6b6b6b; --loc: #1b4fd8; --park: #17663a;
  --veld: #ffffff;
}
:root[data-theme="dark"] {
  --ok: #6fcf97; --nee: #ff8a80; --let: #f2c46d; --zone: #ff6b5e; --later: #a0a0a0; --loc: #8fb0ff; --park: #6fcf97;
  --veld: #1c1c1c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ok: #6fcf97; --nee: #ff8a80; --let: #f2c46d; --zone: #ff6b5e; --later: #a0a0a0; --loc: #8fb0ff; --park: #6fcf97;
    --veld: #1c1c1c;
  }
}

/* formulieren */
.veld { margin: 0 0 18px; }
.veld label, .veld legend { display: block; font-weight: 500; margin-bottom: 6px; font-size: 15px; }
.rij { display: flex; flex-wrap: wrap; gap: 8px; }
.rij > input { flex: 1 1 200px; }
input[type="text"], input[type="search"], input[type="date"] {
  font: inherit; color: var(--ink); background: var(--veld); border: 1px solid var(--muted); border-radius: 6px;
  min-height: 44px; padding: 8px 12px; width: 100%; max-width: 100%;
}
input[type="date"] { width: auto; }
#kenteken { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; max-width: 14ch; flex: 0 1 14ch; }
input[aria-invalid="true"] { border-color: var(--nee); }
.knop {
  font: inherit; font-weight: 500; min-height: 44px; padding: 8px 16px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
}
.knop.tweede { background: transparent; color: var(--ink); border-color: var(--line); }
.knop.tweede:hover { border-color: var(--muted); }
.knop.klein { min-height: 36px; padding: 4px 10px; font-size: 14px; background: transparent; color: var(--ink); border-color: var(--line); }
.knop:disabled { opacity: 0.5; cursor: not-allowed; }
.fout { color: var(--nee); font-size: 15px; margin: 6px 0 0; min-height: 0; }
.fout:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.keuzes { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 15px; }
.keuzes label { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-weight: 400; margin: 0; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

/* uitkomst */
.kenteken-label { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.plaat { display: inline-block; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; }
.kop-uitkomst { font-size: 20px; font-weight: 600; line-height: 1.35; padding-left: 14px; border-left: 4px solid var(--muted); margin-bottom: 14px; }
[data-uitkomst="mag"].kop-uitkomst, [data-uitkomst="nvt"].kop-uitkomst { border-left-color: var(--ok); }
[data-uitkomst="magTot"].kop-uitkomst { border-left-color: var(--let); }
[data-uitkomst="magNiet"].kop-uitkomst { border-left-color: var(--nee); }
.redenen, .kanttekeningen, .doen { margin: 0 0 16px; padding-left: 20px; max-width: 64ch; }
.redenen li, .kanttekeningen li, .doen li { margin-bottom: 6px; }
.kanttekeningen { color: var(--muted); font-size: 15px; }
#uitkomst h3 { margin: 26px 0 10px; }
.gegevens { margin: 6px 0 10px; font-size: 15px; }
.gegevens summary { cursor: pointer; color: var(--muted); min-height: 36px; display: flex; align-items: center; }
.gegevens .feiten { margin-top: 8px; }
.rdw { margin-top: 20px; font-weight: 500; }

/* tabel per zone */
.tabel-wrap { overflow-x: auto; }
.tabel { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabel th, .tabel td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-top: 1px solid var(--line); }
.tabel thead th { color: var(--muted); font-weight: 500; border-top: 0; }
.tabel td:last-child { color: var(--muted); font-size: 14px; }
.stat::before, .loc-voertuig::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--muted); }
[data-uitkomst="mag"] .stat::before, [data-uitkomst="nvt"] .stat::before, .loc-voertuig[data-uitkomst="mag"]::before, .loc-voertuig[data-uitkomst="nvt"]::before { background: var(--ok); }
[data-uitkomst="magTot"] .stat::before, .loc-voertuig[data-uitkomst="magTot"]::before { background: var(--let); }
[data-uitkomst="magNiet"] .stat::before, .loc-voertuig[data-uitkomst="magNiet"]::before { background: var(--nee); border-radius: 1px; }
[data-uitkomst="nietActief"] .stat { color: var(--muted); }

/* locaties */
.zoekvak { position: relative; }
#loc-suggesties { list-style: none; margin: 4px 0 0; padding: 4px 0; position: absolute; z-index: 1100; left: 0; right: 0; background: var(--bg); border: 1px solid var(--muted); border-radius: 6px; max-height: 300px; overflow-y: auto; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
#loc-suggesties li { padding: 10px 12px; cursor: pointer; font-size: 15px; }
#loc-suggesties li[aria-selected="true"], #loc-suggesties li:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
#loc-status { min-height: 1.6em; }
.locaties { list-style: none; margin: 12px 0 0; padding: 0; }
.locaties > li { border-top: 1px solid var(--line); padding: 14px 0; }
.locaties p { margin: 4px 0 0 34px; }
.loc-kop { display: flex; align-items: flex-start; gap: 10px; }
.loc-kop strong { flex: 1; font-weight: 600; line-height: 1.4; padding-top: 2px; }
.nr { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--loc); color: var(--bg); font-size: 13px; font-weight: 600; }
.sub { font-weight: 500; font-size: 15px; margin-top: 10px !important; }
.parkeren { margin: 4px 0 0 34px; padding-left: 18px; font-size: 15px; }
.parkeren li { margin-bottom: 4px; }
.opslag { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 18px; font-size: 15px; }
.opslag label { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }

/* kaart */
.kaart { height: min(60vh, 520px); min-height: 320px; border: 1px solid var(--line); border-radius: 4px; margin-top: 8px; background: var(--bg); }
.leaflet-container { font: 13px/1.4 "Inter", system-ui, sans-serif; background: var(--bg); }
.leaflet-container a { color: inherit; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip, .leaflet-tooltip { background: var(--bg); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.leaflet-tooltip { border-color: var(--line); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--bg) 85%, transparent) !important; color: var(--muted); }
.leaflet-bar a { background: var(--bg); color: var(--ink); border-color: var(--line); }
.leaflet-bar a:hover { background: color-mix(in srgb, var(--ink) 8%, var(--bg)); }
path.zone { stroke-width: 2.5; fill-opacity: 0.16; }
path.zone-actief { stroke: var(--zone); fill: var(--zone); }
path.zone-later { stroke: var(--later); fill: var(--later); stroke-dasharray: 6 5; fill-opacity: 0.08; }
path.park-punt { stroke: var(--bg); stroke-width: 2; fill: var(--park); fill-opacity: 1; }
.loc-icoon span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--loc); color: var(--bg); font: 600 13px/1 "Inter", sans-serif; border: 2px solid var(--bg); box-shadow: 0 1px 4px rgba(0,0,0,.35); }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9); }
}
.legenda { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); margin: 10px 0 0; padding: 0; list-style: none; }
.legenda li { display: inline-flex; align-items: center; gap: 8px; }
.legenda i { display: inline-block; width: 18px; height: 12px; border-radius: 2px; }
.legenda .l-actief { border: 2px solid var(--zone); background: color-mix(in srgb, var(--zone) 16%, transparent); }
.legenda .l-later { border: 2px dashed var(--later); }
.legenda .l-loc { width: 12px; border-radius: 50%; background: var(--loc); }
.legenda .l-park { width: 12px; border-radius: 50%; background: var(--park); }

/* privacy en netwerklog */
.hosts td:first-child, .hosts th:first-child { white-space: nowrap; }
#netlog { font-size: 14px; padding-left: 20px; margin: 8px 0 0; }
#netlog li { margin-bottom: 4px; overflow-wrap: anywhere; }
#netlog .tijd { color: var(--muted); font-variant-numeric: tabular-nums; }
#netlog .leeg { list-style: none; margin-left: -20px; color: var(--muted); }
code { font-size: 0.92em; }
.afzender { color: var(--muted); }

/* stadspagina's */
.stad-kaart { height: 360px; }

@media (max-width: 640px) {
  .tabel th, .tabel td { padding-right: 8px; }
  .locaties p, .parkeren { margin-left: 0; }
  #kenteken { flex-basis: 12ch; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* samenvatting per zone */
.daarna { font-weight: 500; margin: -6px 0 14px; padding-left: 18px; }
.zonelijst { padding-left: 20px; margin: 0 0 12px; font-size: 15px; }
.zonelijst li { margin-bottom: 6px; }
.steden { list-style: none; padding: 0; margin: 0; columns: 2 220px; column-gap: 28px; font-size: 15px; }
.steden li { break-inside: avoid; padding: 5px 0; }
.kop nav.terug { display: block; margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.kop nav.terug a { color: var(--ink); }
