/* De bollen van oma – bollenveld-look: bladgroen, tulpenroze, narcisgeel, hyacintlila */
:root {
  --leaf-900: #123521;
  --leaf-800: #173f26;
  --leaf-700: #245c36;
  --leaf-100: #e3efe2;
  --leaf-50: #f1f7ef;
  --tulip: #b0124f;
  --tulip-dark: #8c0d3f;
  --tulip-50: #fbe8ef;
  --daffodil: #f4c430;
  --daffodil-50: #fff6d6;
  --hyacinth: #6f4fa3;
  --cream: #fcf7ee;
  --paper: #ffffff;
  --ink: #1d2620;
  --muted: #526057;
  --line: #ddd5c5;
  --field-line: #6c7a70;
  --ok: #17612b;
  --ok-bg: #edf7ee;
  --bad: #a60f0f;
  --bad-bg: #fdeeee;
  --focus: #0b57d0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 53, 33, .08), 0 2px 8px rgba(18, 53, 33, .06);
  --shadow: 0 2px 4px rgba(18, 53, 33, .08), 0 10px 28px rgba(18, 53, 33, .12);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

[x-cloak] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 1.125rem/1.55 var(--font-body);
}

body.no-scroll { overflow: hidden; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--tulip-dark); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  padding: .75rem 1rem;
  z-index: 3000;
}
.skip:focus { left: 0; }

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
}
.narrow { max-width: 40rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Bollenveld-strepen: rijen tulpen in rood, geel, roze en wit */
.fields {
  height: .75rem;
  background: repeating-linear-gradient(
    90deg,
    var(--tulip) 0 3.5rem,
    var(--daffodil) 3.5rem 7rem,
    #e98fb0 7rem 10.5rem,
    #fff 10.5rem 14rem,
    var(--hyacinth) 14rem 17.5rem,
    var(--daffodil) 17.5rem 21rem
  );
}
.fields-foot { margin-bottom: 1.75rem; }

/* Kop */
.topbar {
  background:
    radial-gradient(60rem 24rem at 90% -20%, rgba(244, 196, 48, .22), transparent 60%),
    radial-gradient(40rem 20rem at 0% 120%, rgba(176, 18, 79, .28), transparent 60%),
    linear-gradient(160deg, var(--leaf-700), var(--leaf-900));
  color: #fff;
  padding: calc(1.25rem + env(safe-area-inset-top)) 0 0;
}
.topbar-in { display: flex; flex-direction: column; gap: 1.25rem; padding-bottom: 1.75rem; }
.eyebrow {
  margin: 0 0 .35rem;
  color: var(--daffodil);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.topbar h1 { font-size: 2.1rem; margin: 0 0 .25rem; }
.tagline { margin: 0; color: #e1efdd; font-size: 1.05rem; max-width: 32rem; }
.topbar .btn-big { background: var(--daffodil); color: var(--leaf-900); border-color: var(--daffodil); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.topbar .btn-big:hover { background: #ffd54f; border-color: #ffd54f; color: var(--leaf-900); }
.topbar .btn-big:focus-visible { outline-color: #fff; }
@media (min-width: 640px) {
  .topbar { padding-top: calc(2rem + env(safe-area-inset-top)); }
  .topbar-in { flex-direction: row; align-items: center; justify-content: space-between; padding-bottom: 2.5rem; }
  .topbar h1 { font-size: 3rem; }
  .tagline { font-size: 1.2rem; }
}

/* Knoppen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.5rem;
  padding: .75rem 1.5rem;
  border: 2px solid var(--tulip);
  border-radius: 999px;
  background: var(--tulip);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--tulip-dark); border-color: var(--tulip-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.btn-light { background: #fff; color: var(--tulip-dark); }
.btn-light:hover { background: var(--tulip-50); color: var(--tulip-dark); }
.btn-big { width: 100%; min-height: 4rem; font-size: 1.25rem; }
.btn-small { min-height: 3rem; padding: .5rem 1.15rem; }
.btn-icon { flex: none; }

@media (min-width: 560px) {
  .btn-big { width: auto; min-width: 20rem; }
  .topbar .btn-share { min-width: 16rem; }
}

/* Secties */
.section { padding: 2.5rem 0 2rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; font-size: 2rem; }
.section-head p { margin: 0; }

/* Kaart bovenaan */
.section-map { background: var(--leaf-100); padding: 1.25rem 0 2rem; border-bottom: 1px solid #c9dcc8; }
.map-hint {
  display: inline-block;
  margin: 0 0 .75rem;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: #fff;
  color: var(--leaf-800);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Formulier-popup */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(18, 53, 33, .7);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-dialog {
  width: 100%;
  min-height: 100%;
  background: var(--cream);
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: calc(.5rem + env(safe-area-inset-top)) max(.5rem, env(safe-area-inset-right)) .5rem max(1rem, env(safe-area-inset-left));
  background: linear-gradient(160deg, var(--leaf-700), var(--leaf-900));
  color: #fff;
  border-bottom: 4px solid var(--daffodil);
}
.modal-head h2 { margin: 0; font-size: 1.4rem; }
.modal-head h2:focus { outline: none; }
.modal-close {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: rgba(255, 255, 255, .2); }
.modal-close:focus-visible { outline-color: #fff; }
.modal-body {
  padding: 1.5rem max(1rem, env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
.btn-cancel { width: 100%; margin-top: 1rem; }
@media (min-width: 640px) {
  .modal { padding: 2rem 1rem; }
  .modal-dialog {
    max-width: 40rem;
    min-height: 0;
    border-radius: 20px;
    overflow: clip;
    box-shadow: var(--shadow);
  }
  .modal-body { padding: 1.75rem; }
  .btn-cancel { width: auto; min-width: 12rem; }
}

.field { margin: 0 0 1.75rem; padding: 0; border: 0; min-width: 0; }
.field label, .field .label, .field legend {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: .6rem;
  padding: 0;
}
.field label .muted { font-weight: 400; }
.step {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--leaf-700);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

input[type="text"], textarea {
  width: 100%;
  min-height: 3.5rem;
  padding: .75rem 1rem;
  border: 2px solid var(--field-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
input[type="text"]:focus-visible, textarea:focus-visible { border-color: var(--focus); }
textarea { resize: vertical; }
input[aria-invalid="true"] { border-color: var(--bad); background: var(--bad-bg); }

.counter { text-align: right; margin: .25rem 0 0; font-size: 1rem; }

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.file-input:focus-visible + .preview,
.field:focus-within .file-btn { outline: 3px solid var(--focus); outline-offset: 2px; }
.file-btn { width: 100%; border-style: dashed; }

.preview { margin-top: 1rem; }
.preview img {
  display: block;
  width: 100%;
  max-height: 22rem;
  object-fit: contain;
  background: #efe8d9;
  border-radius: var(--radius-sm);
}

.or { margin: 1rem 0 .5rem; }
.chosen {
  margin: .75rem 0 .25rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 2px dashed var(--field-line);
  font-weight: 600;
}
.chosen-ok { border: 2px solid var(--ok); color: var(--ok); background: var(--ok-bg); }

.notice { margin: 1rem 0 0; padding: .75rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.notice.is-ok { background: var(--ok-bg); color: var(--ok); border: 2px solid var(--ok); }
.notice.is-error, .error-box { background: var(--bad-bg); color: var(--bad); border: 2px solid var(--bad); }
.error-box .btn { margin-top: .75rem; }

.error { color: var(--bad); font-weight: 700; margin: .5rem 0 0; }
.error-big { font-size: 1.15rem; margin-top: 1rem; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.progress-wrap { margin-top: 1rem; }
progress { width: 100%; height: 1.25rem; accent-color: var(--tulip); }

.thanks {
  background: var(--ok-bg);
  border: 2px solid var(--ok);
  border-left-width: 8px;
  border-radius: var(--radius);
  padding: 1.25rem;
}
.thanks strong { color: var(--ok); font-size: 1.2rem; margin-right: .35rem; }
.thanks-text { margin: 0; }
.section-map .thanks { margin-bottom: .75rem; padding: .75rem 1rem; }
.actions { display: flex; flex-direction: column; gap: .75rem; margin: .75rem 0 0; }
@media (min-width: 560px) { .actions { flex-direction: row; } }

/* Kaarten */
.map {
  width: 100%;
  height: 22rem;
  border: 3px solid #fff;
  border-radius: var(--radius);
  background: #dfe8dc;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 0;
}
.map-main { height: 70vh; height: 70svh; min-height: 22rem; max-height: 46rem; }
.map-pick { height: 17rem; box-shadow: none; border-color: var(--field-line); border-width: 2px; }
@media (min-width: 640px) {
  .map-pick { height: 22rem; }
}

.leaflet-tile-pane { filter: saturate(.8) contrast(.96); }
.leaflet-touch .leaflet-bar a,
.leaflet-bar a {
  width: 2.75rem;
  height: 2.75rem;
  line-height: 2.75rem;
  font-size: 1.5rem;
  color: var(--leaf-800);
}
.leaflet-bar, .leaflet-touch .leaflet-bar { border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.leaflet-touch .leaflet-bar a:first-child,
.leaflet-bar a:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.leaflet-touch .leaflet-bar a:last-child,
.leaflet-bar a:last-child { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.leaflet-touch .leaflet-bar a:only-child,
.leaflet-bar a:only-child { border-radius: var(--radius-sm); }
.leaflet-container { font: inherit; font-size: .9rem; }
.leaflet-container a { color: var(--tulip-dark); }
.leaflet-control-attribution { font-size: .8rem; }

.pin svg { display: block; margin: 0 auto; filter: drop-shadow(0 3px 3px rgba(18, 53, 33, .5)); }
.pin path, .pin circle { stroke: #fff; stroke-width: 2; }
.pin-post path { fill: var(--tulip); }
.pin-post circle { fill: var(--daffodil); }
.pin-pick path { fill: var(--leaf-700); }
.pin-pick circle { fill: #fff; }

.cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--tulip);
  border: 4px solid var(--daffodil);
  box-shadow: 0 3px 10px rgba(18, 53, 33, .5);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.leaflet-popup-content-wrapper { border-radius: var(--radius); box-shadow: var(--shadow); }
.bol-popup .leaflet-popup-content { margin: 1rem; font-size: 1.05rem; line-height: 1.4; }
.leaflet-container .bol-popup .leaflet-popup-close-button { width: 2.75rem; height: 2.75rem; font-size: 1.75rem; padding: .25rem 0 0; }
.popup-card h3 { margin: .6rem 0 .1rem; }
.popup-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #efe8d9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
}
.popup-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.popup-date { color: var(--muted); margin: 0 0 .5rem; font-size: .95rem; }
.popup-text { margin: 0; overflow-wrap: anywhere; white-space: pre-line; max-height: 6rem; overflow-y: auto; }
@media (min-width: 640px) { .popup-text { max-height: 9rem; } }
.popup-status { margin: 0; padding: .5rem 0; }

/* Galerij */
.empty {
  padding: 2.5rem 1rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  background: #fff;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}

.grid {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
  .card-photo img { transition: transform .35s; }
  .card:hover .card-photo img { transform: scale(1.04); }
}
.card-photo {
  display: block;
  padding: 0;
  border: 0;
  background: #efe8d9;
  cursor: zoom-in;
  overflow: hidden;
}
.card-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: 1rem 1.15rem 1.15rem; }
.card-body h3 { margin-bottom: .1rem; overflow-wrap: anywhere; }
.date { margin-bottom: .6rem; font-size: 1rem; }
.card-text {
  overflow-wrap: anywhere;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body .btn { margin-top: auto; }

/* Grote weergave */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 28, 17, .92);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(.75rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));
}
.lightbox-inner {
  max-width: 54rem;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 20px;
  padding: .75rem;
  box-shadow: var(--shadow);
}
.lightbox-bar {
  position: sticky;
  bottom: 0;
  margin: .75rem -.75rem -.75rem;
  padding: .75rem .75rem max(.75rem, env(safe-area-inset-bottom));
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-radius: 0 0 20px 20px;
}
.lightbox-close { width: 100%; }
.lightbox-inner img {
  display: block;
  width: 100%;
  max-height: 60vh;
  max-height: 60svh;
  object-fit: contain;
  background: #101a14;
  border-radius: var(--radius-sm);
}
.lightbox-text { padding: 1rem .5rem .5rem; }
.lightbox-text h3 { font-size: 1.5rem; margin-bottom: .1rem; }
.lightbox-text p { overflow-wrap: anywhere; white-space: pre-line; }

.footer { padding: 0 0 calc(2.5rem + env(safe-area-inset-bottom)); color: var(--muted); text-align: center; }
