:root { --inkt:#14213a; --zacht:#55617a; --lijn:#d5dbe5; --vlak:#f3f5f9; --wit:#fff; --blauw:#12305e; --rood:#b80f1c; --roodlicht:#fdecee; --oranje:#8a5200; --oranjelicht:#fff3de; color-scheme:light }
* { box-sizing:border-box } [hidden] { display:none!important }
html,body { margin:0; height:100% }
body { font:16px/1.45 "Segoe UI",system-ui,-apple-system,sans-serif; color:var(--inkt); background:var(--wit) }
h1,h2,h3,p,ul,dl,dd { margin:0 } ul { padding:0; list-style:none }
h1 { font-size:1.3rem; display:flex; gap:.6rem; align-items:center; letter-spacing:-.01em } h2 { font-size:1.05rem }
input,textarea,select,button { font:inherit; color:inherit }
input:not([type=checkbox],[type=radio]),textarea,select { width:100%; padding:.6rem .7rem; border:1px solid #8b96aa; border-radius:6px; background:var(--wit); min-height:44px }
textarea { resize:vertical } label { font-weight:600; font-size:.9rem; display:block }
label input,label textarea,label select { margin-top:.25rem; font-weight:400 } small { color:var(--zacht); font-weight:400 }
button { min-height:44px; padding:.45rem .9rem; border:1px solid #8b96aa; border-radius:6px; background:var(--wit); cursor:pointer } button:hover { background:var(--vlak) }
button:disabled { opacity:.6; cursor:wait }
.hoofd { background:var(--blauw); color:#fff; border-color:var(--blauw); font-weight:600 } .hoofd:hover { background:#1c478a }
:focus-visible { outline:3px solid #2f7de1; outline-offset:1px } h2:focus { outline:none }
a { color:#1b4f9c } .fout { color:var(--rood); font-weight:600 }
.status { display:inline-block; font-weight:700; font-size:.85rem; padding:.2rem .55rem; border-radius:4px; background:var(--vlak); color:var(--zacht) }
.status.actief { background:var(--rood); color:#fff } .status.gepland { background:var(--oranjelicht); color:var(--oranje) }

/* Kaart */
.kaartpagina { display:grid; grid-template-columns:360px 1fr; height:100dvh; overflow:hidden }
.kaartpagina .paneel { display:flex; flex-direction:column; min-height:0; border-right:1px solid var(--lijn); z-index:1000; background:var(--wit) }
.kaartpagina header { background:var(--blauw); color:#fff; padding:1rem 1.25rem }
.zoek { position:relative; padding:1rem 1.25rem .5rem } .zoek input { margin-top:.3rem } #zoekmelding { font-size:.9rem; color:var(--rood) }
#resultaten { position:absolute; left:1.25rem; right:1.25rem; background:#fff; border:1px solid #8b96aa; border-radius:6px; box-shadow:0 4px 12px rgb(0 0 0 / .15); z-index:5; max-height:50vh; overflow:auto }
#resultaten li { padding:.6rem .7rem; cursor:pointer; display:flex; justify-content:space-between; gap:.75rem } #resultaten li:hover,#resultaten li[aria-selected=true] { background:#e6eefb }
.peil { display:flex; gap:.5rem; align-items:center; padding:.25rem 1.25rem 1rem; border-bottom:1px solid var(--lijn) } .peil label { white-space:nowrap } .peil input,.peil select { flex:1; min-width:0 } .peil:not(.datum) { border:0; padding-bottom:.6rem }
.overzicht { flex:1; overflow:auto; padding:1rem 1.25rem; min-height:0 }
#lijst { margin-top:.6rem; display:grid; gap:.4rem }
#lijst button,#gemeenten button { width:100%; text-align:left; display:flex; flex-direction:column; border-color:var(--lijn) }
#lijst span { font-size:.88rem; color:var(--zacht) }
#lijst .actief { background:var(--roodlicht); border-color:#e7a5ab } #lijst .gepland { background:var(--oranjelicht); border-color:#e6c48c }
footer { border-top:1px solid var(--lijn); padding:.8rem 1.25rem; font-size:.82rem; color:var(--zacht) }
.legenda { display:grid; gap:.2rem; margin-bottom:.5rem; color:var(--inkt) } .legenda li::before { content:""; display:inline-block; width:14px; height:14px; margin-right:.5rem; vertical-align:-2px; border:1px solid #5d6b82; background:#f3f5f9 }
.legenda .provincielijn::before { height:0; border:0; border-top:3px solid var(--blauw); background:none; vertical-align:4px }
.legenda .actief::before { background:#e67078; border-color:#8f0d17 } .legenda .gepland::before { background:#f8c576; border-color:#9a5b00 }
#kaart { min-height:0; background:#e7ebf1 } .leaflet-container { font:inherit; font-size:.9rem } .leaflet-interactive:focus { outline:none }
.info h3 { font-size:1.2rem; line-height:1.2 } .info p { margin:.1rem 0 .5rem } .info .provincie,.bijgewerkt { color:var(--zacht) } .info .bijgewerkt { font-size:.8rem; margin:.5rem 0 0 } .info .status { padding:.25rem .6rem }
.info section + section { border-top:1px solid var(--lijn); margin-top:.8rem; padding-top:.8rem }
.info dt { font-weight:700; font-size:.8rem; color:var(--zacht) } .info dd { margin-bottom:.45rem; white-space:pre-line; overflow-wrap:anywhere }

/* Melden */
#meld { position:fixed; right:12px; bottom:64px; z-index:900; padding:.6rem 1.1rem; border-radius:24px; box-shadow:0 2px 8px rgb(0 0 0 / .3) }
#melddialoog { width:min(100vw - 24px,480px); max-height:calc(100dvh - 24px); padding:0; border:1px solid #8b96aa; border-radius:10px; color:inherit } #melddialoog::backdrop { background:rgb(0 0 0 / .45) }
#melddialoog header { display:flex; justify-content:space-between; align-items:center; padding:.6rem .6rem .6rem 1.25rem; background:var(--blauw); color:#fff; position:sticky; top:0 }
#melddialoog header button { background:none; color:#fff; border-color:transparent; font-size:1.5rem; line-height:1; width:44px; padding:0 }
#melddialoog form,.klaar { display:grid; gap:.9rem; padding:1.25rem } #melddialoog fieldset .vink { border:0; padding:.1rem 0; align-items:center } #melddialoog fieldset .vink input { margin:0 }
.leegveld { position:absolute; left:-9999px }

/* Inloggen */
.loginpagina { display:grid; place-items:center; background:var(--vlak); padding:1rem }
#login { background:#fff; padding:2rem; border:1px solid var(--lijn); border-radius:10px; width:min(100%,380px); display:grid; gap:1rem }

/* Beheer */
.beheerpagina { display:grid; grid-template:auto minmax(0,1fr) / 320px 1fr; height:100dvh }
.balk { grid-column:1/-1; background:var(--blauw); color:#fff; padding:.7rem 1.25rem; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.5rem 1rem }
.balk nav { display:flex; gap:1rem; align-items:center; flex-wrap:wrap } .balk a { color:#fff } .balk button { background:none; border-color:#9fb2d2 } .balk button:hover { background:#1c478a }
.beheerpagina .paneel { padding:1rem; border-right:1px solid var(--lijn); display:flex; flex-direction:column; gap:.5rem; min-height:0 }
.vink { font-weight:400; display:flex; gap:.5rem; align-items:center; min-height:36px } .vink input { margin:0; width:18px; height:18px }
#gemeenten { overflow:auto; flex:1; min-height:0 } #gemeenten button { flex-direction:row; justify-content:space-between; align-items:center; border-color:transparent; border-radius:4px } #gemeenten strong { font-weight:500 } #gemeenten span { font-size:.8rem; font-weight:700 }
#gemeenten .actief span { color:var(--rood) } #gemeenten .gepland span { color:var(--oranje) } #gemeenten [aria-current] { background:#e6eefb }
.beheerpagina main { overflow:auto; padding:1.5rem 2rem 3rem } #detail { max-width:720px } #detail h2 { font-size:1.6rem } #leeg { color:var(--zacht) } #melding { color:#17663a; font-weight:600; min-height:1.5em }
#verboden { display:grid; gap:.5rem; margin-bottom:1.5rem } #verboden li { border:1px solid var(--lijn); border-radius:8px; padding:.75rem 1rem; display:flex; justify-content:space-between; gap:.75rem; align-items:center; flex-wrap:wrap } #verboden li > div { display:flex; gap:.6rem; align-items:center; flex-wrap:wrap } .niets { color:var(--zacht) }
#form { display:grid; gap:1rem; border-top:1px solid var(--lijn); padding-top:1.25rem } .rij { display:grid; grid-template-columns:1fr 1fr; gap:1rem; align-items:start } .knoppen { display:flex; gap:.5rem }

@media (max-width:760px) {
  .kaartpagina { display:flex; flex-direction:column; height:auto; overflow:auto }
  .kaartpagina .paneel { display:contents } .kaartpagina .zoek { z-index:1000; background:#fff }
  #kaart { order:1; height:58dvh; flex:none; z-index:0 } .overzicht { order:2; overflow:visible; flex:none } footer { order:3 }
  .beheerpagina { display:block; height:auto } .beheerpagina .paneel { border:0; border-bottom:1px solid var(--lijn) } #gemeenten { max-height:35dvh; flex:none } .beheerpagina main { padding:1.25rem 1rem 3rem }
}
@media (max-width:420px) { .rij { grid-template-columns:1fr } }

/* Meldingen */
#meldingen { max-width:760px; display:grid; gap:1rem } #meldingen h2 { font-size:1.6rem } #meldlijst { display:grid; gap:.75rem }
#meldlijst li { border:1px solid var(--lijn); border-radius:8px; padding:.9rem 1rem; display:grid; gap:.5rem } #meldlijst .oud { background:var(--vlak); color:var(--zacht) } #meldlijst p { white-space:pre-line; overflow-wrap:anywhere } .knoppen { flex-wrap:wrap }

/* Import */
#import { max-width:760px; display:grid; gap:1rem } #import h2 { font-size:1.6rem } #importmelding { color:#17663a; font-weight:600 } #import[hidden] { display:none }
#controle { display:grid; gap:1rem } fieldset { border:1px solid var(--lijn); border-radius:8px; padding:.75rem 1rem; min-width:0 } legend { font-weight:700; padding:0 .4rem }
fieldset .vink { align-items:flex-start; padding:.5rem 0; border-top:1px solid var(--lijn) } fieldset .alles { font-weight:600 } fieldset .vink input { flex:none; margin-top:3px } fieldset .vink span { min-width:0 }
fieldset em { display:block; color:var(--oranje); font-style:normal; font-weight:600 } fieldset small { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; overflow-wrap:anywhere }
