/* GroundPlan — Zutphen huisstijl
   Primary palet afgeleid van het Zutphen logo en aanbestedingsstukken */

:root {
  --zutphen-blauw: #003C7B;
  --zutphen-blauw-licht: #0070C0;
  --zutphen-blauw-zacht: #E8F0F8;
  --accent: #E67E22;
  --accent-zacht: #FDEBD0;
  --groen: #1E8449;
  --groen-zacht: #D5F5E3;
  --rood: #C0392B;
  --rood-zacht: #FADBD8;
  --geel-zacht: #FCF3CF;
  --grijs-50: #F7F9FC;
  --grijs-100: #EDF1F6;
  --grijs-200: #DCE3EC;
  --grijs-400: #94A3B8;
  --grijs-600: #475569;
  --grijs-800: #1E293B;
  --tekst: #0F172A;

  --schaduw: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .06);
  --schaduw-md: 0 4px 12px rgba(15, 23, 42, .08), 0 12px 32px rgba(15, 23, 42, .08);
  --radius: 8px;
  --radius-lg: 12px;

  --content-max: 1180px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--tekst);
  background: var(--grijs-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--zutphen-blauw-licht); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--zutphen-blauw); margin: 0 0 .4em; line-height: 1.25; font-weight: 600; }
h1 { font-size: 2.2rem; letter-spacing: -.01em; }
h2 { font-size: 1.55rem; margin-top: 2em; }
h3 { font-size: 1.15rem; margin-top: 1.6em; }
h4 { font-size: 1rem; margin-top: 1.2em; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin: .25em 0; }

code, kbd { font-family: var(--font-mono); font-size: .92em; background: var(--grijs-100); padding: 1px 5px; border-radius: 4px; }

hr { border: 0; border-top: 1px solid var(--grijs-200); margin: 2em 0; }

/* ---------- Layout ---------- */

.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; }

main {
  padding: 40px 0 80px;
}

/* ---------- Topbar ---------- */

.topbar {
  background: var(--zutphen-blauw);
  color: #fff;
  border-bottom: 3px solid var(--zutphen-blauw-licht);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  color: var(--zutphen-blauw);
  border-radius: 8px;
  font-weight: 700;
}
.brand-name { font-size: 1.05rem; }
.brand-sub { font-size: .78rem; color: rgba(255,255,255,.7); margin-left: 4px; }

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  color: rgba(255,255,255,.85);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .92rem;
  text-decoration: none;
  transition: background .15s;
}
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a.active { background: var(--zutphen-blauw-licht); color: #fff; }

.tag {
  display: inline-block;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--zutphen-blauw) 0%, #002E5C 100%);
  color: #fff;
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0,112,192,.35), transparent 70%);
  border-radius: 50%;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.12);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: 2.7rem;
  max-width: 820px;
  margin-bottom: .25em;
}
.hero p.lead {
  color: rgba(255,255,255,.88);
  font-size: 1.15rem;
  max-width: 720px;
}
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all .15s;
  background: #fff;
  color: var(--zutphen-blauw);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--schaduw-md); }
.btn.btn-primary { background: var(--accent); color: #fff; }
.btn.btn-primary:hover { background: #D35400; }
.btn.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn.btn-blue { background: var(--zutphen-blauw-licht); color: #fff; }
.btn.btn-blue:hover { background: #005FA3; }
.btn.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn.btn-icon { width: 32px; height: 32px; padding: 0; justify-content: center; }

/* ---------- Cards & Grid ---------- */

.card {
  background: #fff;
  border: 1px solid var(--grijs-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--schaduw);
}
.card h3 { margin-top: 0; }
.card-accent { border-top: 3px solid var(--zutphen-blauw-licht); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Score-cards op de homepage */
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.score-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 16px 18px;
  color: #fff;
}
.score-card .label { font-size: .8rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; }
.score-card .value { font-size: 1.7rem; font-weight: 700; margin-top: 4px; }
.score-card .sub { font-size: .8rem; color: rgba(255,255,255,.65); }
@media (max-width: 900px) { .score-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tabellen ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  background: #fff;
  border: 1px solid var(--grijs-200);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--grijs-200);
}
th {
  background: var(--grijs-100);
  color: var(--grijs-800);
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--grijs-50); }

/* ---------- Tijdlijn ---------- */

.timeline {
  position: relative;
  padding-left: 28px;
  margin: 24px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px; bottom: 6px;
  width: 2px;
  background: var(--grijs-200);
}
.timeline-item {
  position: relative;
  padding: 8px 0 16px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 12px;
  width: 12px; height: 12px;
  background: var(--zutphen-blauw-licht);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--zutphen-blauw-licht);
  border-radius: 50%;
}
.timeline-item.is-key::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.timeline-date { font-size: .85rem; color: var(--grijs-600); font-weight: 600; letter-spacing: .02em; }
.timeline-title { font-weight: 500; color: var(--tekst); }

/* ---------- Pillen / badges ---------- */

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  background: var(--grijs-100);
  color: var(--grijs-800);
}
.pill-blue { background: var(--zutphen-blauw-zacht); color: var(--zutphen-blauw); }
.pill-green { background: var(--groen-zacht); color: var(--groen); }
.pill-red { background: var(--rood-zacht); color: var(--rood); }
.pill-amber { background: var(--geel-zacht); color: #8B6500; }
.pill-orange { background: var(--accent-zacht); color: #B25A0D; }

/* ---------- Pagina-titel blok ---------- */

.page-head {
  background: #fff;
  border-bottom: 1px solid var(--grijs-200);
  padding: 36px 0 28px;
}
.page-head .eyebrow {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--zutphen-blauw-licht);
  font-weight: 600;
}
.page-head h1 { margin-top: 8px; }
.page-head p.lead { color: var(--grijs-600); font-size: 1.1rem; max-width: 760px; margin: 0; }

/* ---------- Voorstel-blokken ---------- */

.belofte {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.belofte-num {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  background: var(--zutphen-blauw);
  color: #fff;
  border-radius: 10px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: 700;
}
.belofte h3 { margin: 0 0 6px; }

.usp-table td:first-child { width: 30%; font-weight: 500; }
.usp-table td.us { color: var(--groen); font-weight: 500; }
.usp-table td.them { color: var(--grijs-600); }

/* ---------- 5-laags Common Ground diagram ---------- */

.cg-stack {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}
.cg-laag {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--grijs-200);
}
.cg-laag .num {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--zutphen-blauw-zacht); color: var(--zutphen-blauw);
  font-weight: 700; border-radius: 10px;
  font-size: 1.2rem;
}
.cg-laag.is-our {
  background: var(--accent-zacht);
  border-color: var(--accent);
  border-width: 2px;
}
.cg-laag.is-our .num { background: var(--accent); color: #fff; }
.cg-laag .laag-titel { font-weight: 600; color: var(--tekst); }
.cg-laag .laag-omschrijving { font-size: .9rem; color: var(--grijs-600); }

/* ---------- Risk table ---------- */

.risk-impact-laag { color: var(--groen); font-weight: 600; }
.risk-impact-mid { color: #B25A0D; font-weight: 600; }
.risk-impact-hoog { color: var(--rood); font-weight: 600; }

/* ---------- ============ PROTOTYPE STIJLEN ============ ---------- */

.proto-shell {
  background: #fff;
  border: 1px solid var(--grijs-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--schaduw-md);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 720px;
}

.proto-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--grijs-200);
  background: var(--grijs-50);
}
.proto-toolbar .proto-tabs {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.proto-tab {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: .92rem;
  cursor: pointer;
  color: var(--grijs-600);
}
.proto-tab:hover { background: var(--grijs-100); }
.proto-tab.is-active { background: var(--zutphen-blauw); color: #fff; }

.proto-env {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: #fff;
  border: 1px solid var(--grijs-200);
  border-radius: 6px;
  font-size: .82rem;
}
.proto-env .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.proto-env.is-prod .dot { background: var(--groen); }
.proto-env-toggle {
  display: inline-flex;
  border: 1px solid var(--grijs-200);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.proto-env-toggle button {
  border: 0; background: transparent;
  padding: 5px 12px;
  font-family: inherit; font-size: .82rem;
  cursor: pointer; color: var(--grijs-600);
}
.proto-env-toggle button.is-active {
  background: var(--zutphen-blauw);
  color: #fff;
}

.proto-body {
  flex: 1;
  display: grid;
  min-height: 0;
}

/* Werkblad layout: 3-column */
.proto-body.layout-werkblad {
  grid-template-columns: 280px 1fr 380px;
}
.proto-body.layout-vraagboom {
  grid-template-columns: 1fr 460px;
}
.proto-body.layout-beleid {
  grid-template-columns: 280px 1fr;
}

@media (max-width: 1100px) {
  .proto-body.layout-werkblad { grid-template-columns: 240px 1fr 320px; }
}

.proto-pane {
  border-right: 1px solid var(--grijs-200);
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.proto-pane:last-child { border-right: 0; }

.proto-pane-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--grijs-200);
  background: var(--grijs-50);
  display: flex;
  align-items: center;
  gap: 8px;
}
.proto-pane-head h3 {
  margin: 0;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--grijs-600);
  font-weight: 600;
}

/* Boomstructuur */
.tree { padding: 12px 8px; font-size: .9rem; }
.tree-item {
  display: block;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  color: var(--tekst);
  user-select: none;
}
.tree-item:hover { background: var(--grijs-100); }
.tree-item.is-active { background: var(--zutphen-blauw-zacht); color: var(--zutphen-blauw); font-weight: 500; }
.tree-item .caret { display: inline-block; width: 14px; color: var(--grijs-400); }
.tree-children { margin-left: 14px; border-left: 1px dashed var(--grijs-200); padding-left: 4px; }
.tree-meta { font-size: .75rem; color: var(--grijs-400); margin-left: 4px; }

/* Editor (artikel) */
.proto-editor {
  padding: 18px 28px;
  overflow: auto;
}
.editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}
.editor-header h2 { margin: 0 0 4px; font-size: 1.3rem; color: var(--zutphen-blauw); }
.editor-breadcrumb {
  font-size: .82rem;
  color: var(--grijs-600);
}
.editor-actions { display: flex; gap: 6px; }

.editor-content {
  background: #fff;
  border: 1px solid var(--grijs-200);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 12px;
  font-size: .98rem;
  line-height: 1.6;
}
.editor-content p { margin: 0 0 .9em; }
.editor-content ol { padding-left: 1.6em; }
.editor-content [contenteditable] { outline: 0; }
.editor-content [contenteditable]:focus { background: var(--geel-zacht); border-radius: 3px; }

/* Annotatie bubbles */
.annotatie-rij {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  padding: 6px 10px;
  background: var(--zutphen-blauw-zacht);
  border-radius: 6px;
  font-size: .85rem;
}
.annotatie-rij .a-key { color: var(--grijs-600); font-weight: 500; }
.annotatie-rij .a-val { color: var(--zutphen-blauw); font-weight: 500; }

/* Inspector / right panel */
.inspector {
  padding: 16px;
}
.inspector-section + .inspector-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--grijs-200); }
.inspector-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--grijs-600);
  font-weight: 600;
  margin-bottom: 6px;
}
.inspector-row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  font-size: .9rem;
}
.inspector-row .key { color: var(--grijs-600); }
.inspector-row .val { font-weight: 500; }

/* Kaart */
#map, .map {
  width: 100%; height: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--grijs-200);
  background: var(--grijs-100);
}

/* Validatie meldingen */
.validatie-lijst { display: flex; flex-direction: column; gap: 6px; }
.melding {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: .85rem;
  border: 1px solid var(--grijs-200);
  background: #fff;
}
.melding .icon { font-weight: 700; flex: 0 0 18px; }
.melding.ok { background: var(--groen-zacht); border-color: var(--groen); color: #145A32; }
.melding.warn { background: var(--geel-zacht); border-color: #B7950B; color: #6E5800; }
.melding.err { background: var(--rood-zacht); border-color: var(--rood); color: #6E1A12; }

/* Status balk onderin */
.proto-statusbar {
  border-top: 1px solid var(--grijs-200);
  padding: 8px 16px;
  background: var(--grijs-50);
  font-size: .82rem;
  color: var(--grijs-600);
  display: flex;
  align-items: center;
  gap: 16px;
}
.status-item { display: inline-flex; align-items: center; gap: 6px; }
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--groen);
}
.status-dot.warn { background: var(--accent); }
.status-dot.err { background: var(--rood); }

/* ---------- Vraagboom (TR) ---------- */

.qb-builder, .qb-runner { padding: 18px 22px; overflow: auto; }
.qb-runner { background: var(--zutphen-blauw-zacht); }

.qb-vraaggroep {
  background: #fff;
  border: 1px solid var(--grijs-200);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 14px;
}
.qb-vraaggroep h4 { margin: 0 0 8px; color: var(--zutphen-blauw); }

.qb-vraag {
  border-left: 3px solid var(--zutphen-blauw-licht);
  padding: 8px 12px;
  margin: 8px 0;
  background: var(--grijs-50);
  border-radius: 0 6px 6px 0;
  font-size: .9rem;
}
.qb-vraag .q-tekst { font-weight: 500; }
.qb-vraag .q-meta { font-size: .78rem; color: var(--grijs-600); margin-top: 2px; }
.qb-vraag.has-conditie { border-left-color: var(--accent); }

/* Runner (afspeelmodus) */
.run-vraag {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: var(--schaduw);
}
.run-vraag h4 { margin: 0 0 14px; color: var(--zutphen-blauw); font-size: 1.1rem; }
.run-vraag label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.run-vraag label:hover { background: var(--grijs-50); }
.run-vraag input[type=radio], .run-vraag input[type=checkbox] { accent-color: var(--zutphen-blauw); }
.run-vraag select, .run-vraag input[type=text], .run-vraag input[type=number] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--grijs-200);
  border-radius: 6px;
  font-family: inherit; font-size: .95rem;
  margin-top: 4px;
}

.run-conclusie {
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  font-weight: 500;
}
.run-conclusie.vergunning { background: var(--rood-zacht); color: #6E1A12; border: 1px solid var(--rood); }
.run-conclusie.melding { background: var(--geel-zacht); color: #6E5800; border: 1px solid #B7950B; }
.run-conclusie.vrij { background: var(--groen-zacht); color: #145A32; border: 1px solid var(--groen); }

/* ---------- Modal ---------- */

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: var(--schaduw-md);
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--grijs-200);
  background: var(--zutphen-blauw); color: #fff;
}
.modal-head h3 { margin: 0; color: #fff; font-size: 1.1rem; }
.modal-head button {
  border: 0; background: transparent; color: #fff;
  font-size: 1.2rem; cursor: pointer;
}
.modal-body { padding: 20px 22px; overflow: auto; }
.modal-foot { padding: 12px 22px; border-top: 1px solid var(--grijs-200); display: flex; gap: 10px; justify-content: flex-end; }

/* Was/wordt diff */
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.diff-col h5 { margin: 0 0 8px; padding: 6px 10px; border-radius: 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.diff-was h5 { background: var(--rood-zacht); color: var(--rood); }
.diff-wordt h5 { background: var(--groen-zacht); color: var(--groen); }
.diff-was .body, .diff-wordt .body {
  background: var(--grijs-50); padding: 12px 14px; border-radius: 6px;
  font-size: .9rem; line-height: 1.5; min-height: 100px;
}
.diff-was .body { border-left: 3px solid var(--rood); }
.diff-wordt .body { border-left: 3px solid var(--groen); }
.diff-removed { background: var(--rood-zacht); text-decoration: line-through; padding: 0 2px; border-radius: 2px; }
.diff-added { background: var(--groen-zacht); padding: 0 2px; border-radius: 2px; }

/* Tijdreis */
.tijdreis {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--grijs-50);
  border-bottom: 1px solid var(--grijs-200);
}
.tijdreis input[type=range] { flex: 1; accent-color: var(--accent); }
.tijdreis .label { font-size: .85rem; font-weight: 500; min-width: 110px; color: var(--zutphen-blauw); }

/* Toast */
.toast-host {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1100;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--zutphen-blauw); color: #fff;
  padding: 12px 18px; border-radius: 8px;
  font-size: .9rem;
  box-shadow: var(--schaduw-md);
  pointer-events: auto;
  animation: toast-in .25s ease-out;
}
.toast.success { background: var(--groen); }
.toast.warn { background: #B7950B; }
.toast.err { background: var(--rood); }
@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---------- Footer ---------- */

footer {
  background: #fff;
  border-top: 1px solid var(--grijs-200);
  padding: 28px 0;
  color: var(--grijs-600);
  font-size: .9rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
footer a { color: var(--zutphen-blauw); }

/* ---------- Helpers ---------- */

.muted { color: var(--grijs-600); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-gap { gap: 12px; }
.flex-center { align-items: center; }
.flex-between { justify-content: space-between; }
.full-w { width: 100%; }

/* Leaflet override — pas zoom-controls aan stijl aan */
.leaflet-control-zoom a {
  color: var(--zutphen-blauw) !important;
  font-weight: 600;
}

/* Print */
@media print {
  .topbar, .nav, footer, .hero-actions { display: none !important; }
  .hero { background: #fff; color: #000; padding: 20px 0; }
  .hero h1, .hero p, .hero-eyebrow { color: #000 !important; }
}
