/* Roze huisstijl uit het prototype (startscherm.dc.html). Lettertypes lokaal gehost: zie fonts.css. */
:root {
  --bg: #fff9fb; --panel: #ffffff; --ink: #2b2026; --muted: #6a5560; --line: #ebdde4;
  --accent: #c2185b; --accent-ink: #ffffff; --accent-text: #8a1747; --soft: #fce4ee; --tint: #fff0f6;
  --land: #f6d5e3; --werkgebied: #e9a3c0; --pin-off: #9c8591;
  --warn-bg: #fff0d6; --warn-ink: #7a4b00; --ok-bg: #e4f3ea; --ok-ink: #1d6b3a; --bad-bg: #fce4ee; --bad-ink: #8a1747;
  --radius: 14px;
  --display: 'Fraunces', Georgia, serif; --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1418; --panel: #261c21; --ink: #f4e9ee; --muted: #b9a3ad; --line: #43323a;
    --accent: #e0568c; --accent-ink: #1b1418; --accent-text: #f3a6c4; --soft: #4a2335; --tint: #2f1f27;
    --land: #4a2c3a; --werkgebied: #a8446f; --pin-off: #b9a3ad;
    --warn-bg: #3a2e12; --warn-ink: #f2c879; --ok-bg: #16322a; --ok-ink: #8fd9bb; --bad-bg: #4a2335; --bad-ink: #f3a6c4;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--body); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }

.topbar { background: var(--panel); border-top: 4px solid var(--accent); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 10px 24px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { font-size: 1.4rem; margin: 0; }
.topbar .spacer { flex: 1; }
.who { color: var(--muted); font-size: .9rem; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 28px 24px 64px; }
.hero { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.hero-main { flex: 1 1 480px; min-width: 0; }
.hero h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 8px; letter-spacing: -.02em; }
.lead { margin: 0 0 18px; font-size: 1.1rem; color: var(--muted); max-width: 640px; }

.searchbox { position: relative; max-width: 820px; }
.searchbox svg { position: absolute; left: 18px; top: 17px; }
.searchbox input[type=search] { width: 100%; height: 58px; padding: 0 20px 0 52px; font-size: 1.1rem; background: var(--panel);
  border: 2px solid #f3b8d0; border-radius: 16px; }
.searchbox input::placeholder { color: #7a6570; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; font-size: .9rem; color: var(--muted); }
.linkbtn { min-height: 40px; padding: 0 6px; border: none; background: none; color: var(--accent-text);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.area { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-top: 14px; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; max-width: 680px; }
.area .field { flex: 1 1 200px; min-width: 0; margin: 0; }
.area .note { flex: 2 1 220px; font-size: .88rem; color: var(--muted); padding-bottom: 10px; }
.area .note:empty { display: none; }
select, input[type=text], input[type=email], input[type=search], textarea { padding: 8px 12px; border: 1px solid var(--pin-off);
  border-radius: 12px; background: var(--panel); width: 100%; }
.area select { height: 48px; }

.mapcard { flex: 0 1 460px; min-width: 300px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px 16px 12px; }
.maphead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.maphead b { font-weight: 500; }
.maphead span { font-size: .8rem; color: var(--muted); }
.map { position: relative; width: 100%; aspect-ratio: 1000 / 386.3; overflow: hidden; border-radius: 10px; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.halo { position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1; border-radius: 50%; background: var(--werkgebied);
  opacity: .75; pointer-events: none; }
.radius { position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1; border: 2px dashed var(--accent);
  border-radius: 50%; background: rgba(194, 24, 91, .08); pointer-events: none; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; padding: 0; border: none;
  background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dot { display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 11px; font-weight: 700;
  line-height: 1; border: 2px solid #fff; background: var(--accent); color: #fff; box-sizing: border-box; }
.dot.out { background: #fff; color: var(--muted); border-color: var(--pin-off); }
.dot.wg { background: #7d0f3b; }
.pin[aria-pressed=true] .dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); cursor: pointer; }
.chip[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 500; }
.sep { width: 1px; height: 28px; background: var(--line); margin: 0 4px; }

.count { color: var(--muted); font-size: .9rem; margin: 22px 2px 10px; }
.layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.listcol { flex: 1 1 340px; max-width: 480px; display: flex; flex-direction: column; gap: 10px; }
.detailcol { flex: 999 1 420px; min-width: 0; }

.btn { min-height: 44px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 0 16px; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 500; }
.btn.outline { border-color: var(--accent); color: var(--accent-text); }
.btn.danger { color: var(--bad-ink); }

.card { text-align: left; width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; cursor: pointer; display: block; }
.card.wg { background: var(--tint); }
.card:hover { border-color: var(--accent); }
.card.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card .name { display: block; font-weight: 500; font-size: 1.05rem; }
.card .sub { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge { font-size: .78rem; padding: 2px 9px; border-radius: 999px; background: #f8f1f4; border: 1px solid var(--line); color: var(--muted); }
.badge.code { background: var(--soft); border-color: transparent; color: var(--accent-text); font-weight: 500; }
.badge.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; font-weight: 500; }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; font-weight: 500; }
.badge.bad { background: var(--bad-bg); color: var(--bad-ink); border-color: transparent; font-weight: 500; }
@media (prefers-color-scheme: dark) { .badge { background: #33252c; } }

.detail { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.detail h2 { margin: 8px 0 8px; font-size: 1.7rem; line-height: 1.2; }
.pill { display: inline-block; font-size: .8rem; font-weight: 500; color: var(--accent-text); background: var(--soft); padding: 3px 12px; border-radius: 999px; }
.cols { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 20px; }
.cols > div { flex: 1 1 260px; min-width: 0; }
.detail h3 { margin: 0 0 2px; font-size: .8rem; font-weight: 700; color: var(--accent-text); }
.hint { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.row { display: flex; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.row .k { flex: 0 0 104px; color: var(--muted); }
.row .v { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.row .v.none { color: #7a6570; font-style: italic; }
.row a { color: var(--accent-text); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } .row { flex-direction: column; gap: 0; } }
.field { margin-bottom: 10px; }
.field > label, .field > .lbl { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 3px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; font-size: .92rem; color: var(--ink); margin: 0; }
textarea { min-height: 110px; resize: vertical; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.notice { background: var(--warn-bg); color: var(--warn-ink); padding: 10px 14px; border-radius: 12px; font-size: .92rem; margin: 10px 0; }
.err { background: var(--bad-bg); color: var(--bad-ink); padding: 8px 12px; border-radius: 10px; margin: 8px 0; }
.msg { color: var(--ok-ink); font-size: .9rem; }
.changes { font-size: .88rem; color: var(--muted); padding-left: 18px; }

.empty { background: var(--panel); border: 1px dashed #f3b8d0; border-radius: 16px; padding: 24px; }
.empty h3 { font-family: var(--display); font-size: 1.25rem; margin: 0 0 4px; color: var(--ink); font-weight: 600; letter-spacing: 0; text-transform: none; }
.empty p { margin: 0; color: var(--muted); }
.empty .btn { margin-top: 14px; }
.empty.center { text-align: center; padding: 40px 28px; }

.login { max-width: 360px; margin: 12vh auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.login h1 { margin-top: 0; font-size: 1.5rem; }
.flaglist .card { cursor: default; }

.settings { max-width: 760px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.settings h2 { margin: 0 0 6px; font-size: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chips .chip { min-height: 36px; padding: 0 12px; }
.chips .chip::after { content: '  ×'; opacity: .7; }
.foot { margin: 36px 2px 0; font-size: .8rem; color: var(--muted); max-width: 900px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
