/**
 * space.css — Wandelroutes Nederland (demo)
 *
 * Design system: natuur-magazine aesthetic.
 * Serif headings (DM Serif Display) + clean body (Inter).
 * Deep forest palette met warm accent.
 */

/* ─── Reset ──────────────────────────────────────────────────────────────── */

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

/* ─── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  /* palette */
  --clr-bg:        #f5f2ed;
  --clr-surface:   #ffffff;
  --clr-elevated:  #ffffff;
  --clr-border:    #e4dfd7;
  --clr-border-lt: #ece8e1;
  --clr-accent:    #2d6a4f;
  --clr-accent-lt: #40916c;
  --clr-accent-bg: #d8f3dc;
  --clr-warm:      #c97b3a;
  --clr-text:      #1b1b18;
  --clr-body:      #3d3d37;
  --clr-muted:     #8a8478;
  --clr-dim:       #b5ada2;

  /* type */
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --font-display:  'DM Serif Display', 'Georgia', serif;

  /* spacing scale */
  --sp-xs: .375rem;
  --sp-sm: .75rem;
  --sp-md: 1.25rem;
  --sp-lg: 2rem;
  --sp-xl: 3.5rem;
  --sp-2xl: 5rem;

  /* radii */
  --r-sm: .375rem;
  --r-md: .625rem;
  --r-lg: 1rem;
  --r-xl: 1.25rem;

  /* shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 2px 8px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg:  0 4px 24px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-xl:  0 8px 40px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.04);

  /* transitions */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --t-fast: .15s var(--ease-out);
  --t-med:  .25s var(--ease-out);
  --t-slow: .4s  var(--ease-out);
}

/* ─── Base ───────────────────────────────────────────────────────────────── */

html {
  background: var(--clr-bg);
  color: var(--clr-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body { min-height: 100vh; }

a { color: var(--clr-accent); text-decoration: none; }
a:hover { color: var(--clr-accent-lt); }

img { display: block; max-width: 100%; }

/* ─── Typography ─────────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--clr-text);
  font-weight: 400;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

/* ─── Menu ───────────────────────────────────────────────────────────────── */

.menu-main {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 237, .85);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border-bottom: 1px solid var(--clr-border-lt);
  padding: var(--sp-sm) var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.mm-site-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--clr-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.mm-site-name a { color: inherit; }

.mm-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.mm-item a {
  font-size: .82rem;
  font-weight: 500;
  color: var(--clr-muted);
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: color var(--t-fast);
  padding: var(--sp-xs) 0;
  position: relative;
}

.mm-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 1px;
  transition: width var(--t-med);
}

.mm-item a:hover { color: var(--clr-text); }
.mm-item a:hover::after { width: 100%; }

.mm-item.is-active a {
  color: var(--clr-accent);
}
.mm-item.is-active a::after {
  width: 100%;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-2xl) var(--sp-lg);
  background:
    linear-gradient(168deg, #1b3a2d 0%, #2d6a4f 35%, #40916c 70%, #8ab17d 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(201,123,58,.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(45,106,79,.3) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: var(--sp-md);
}

.hero-subtitle {
  color: rgba(255,255,255,.8);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: var(--sp-lg);
  margin-top: var(--sp-xl);
  padding-top: var(--sp-md);
  border-top: 1px solid rgba(255,255,255,.2);
}

.hero-stat {
  color: rgba(255,255,255,.9);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: #fff;
}

.hero-stat span {
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

/* decorative shapes */
.hero-deco {
  position: absolute;
  right: -5%;
  top: 10%;
  width: 45%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── Sections ───────────────────────────────────────────────────────────── */

.page-section {
  padding: var(--sp-xl) var(--sp-lg);
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--sp-lg);
}

.section-header h2 {
  position: relative;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--clr-accent);
  border-radius: 2px;
  margin-top: var(--sp-xs);
}

.section-link {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--clr-accent);
  transition: color var(--t-fast);
}

.section-link:hover { color: var(--clr-accent-lt); }
.section-link::after { content: ' →'; }

/* ─── Place cards ────────────────────────────────────────────────────────── */

.places-slider {
  display: flex;
  gap: var(--sp-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--sp-sm);
  margin: 0 calc(var(--sp-lg) * -1);
  padding-left: var(--sp-lg);
  padding-right: var(--sp-lg);
}

.places-slider::-webkit-scrollbar { height: 3px; }
.places-slider::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 2px; }

.place-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.place-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--clr-accent-bg) 0%, #b7e4c7 100%);
  overflow: hidden;
  position: relative;
}

.place-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.place-card:hover .place-card-img img {
  transform: scale(1.05);
}

/* decorative pattern when no image */
.place-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 30 L30 55 L5 30Z' fill='none' stroke='%232d6a4f' stroke-width='.5' opacity='.12'/%3E%3C/svg%3E");
  background-size: 30px 30px;
  pointer-events: none;
  opacity: .5;
}

.place-card-img img ~ .place-card-img::after { display: none; }

.place-card-body {
  padding: var(--sp-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.place-card-body h3 {
  font-size: 1.1rem;
}

.place-card-body h3 a {
  color: var(--clr-text);
  transition: color var(--t-fast);
}

.place-card-body h3 a:hover { color: var(--clr-accent); }

.place-card .place-region {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.place-card-body > p {
  font-size: .85rem;
  color: var(--clr-muted);
  line-height: 1.5;
}

/* ─── Route cards ────────────────────────────────────────────────────────── */

.route-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.route-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: var(--sp-xs) var(--sp-md);
  align-items: baseline;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--clr-surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-fast), box-shadow var(--t-med);
  border-left: 3px solid transparent;
}

.route-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--clr-accent);
}

.route-card h2 {
  font-size: 1.25rem;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.route-card p {
  font-size: .85rem;
  color: var(--clr-muted);
  line-height: 1.5;
  grid-column: 1;
  grid-row: 2;
}

.rc-meta {
  grid-column: 2;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-xs);
  white-space: nowrap;
}

.rc-meta span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--clr-dim);
  padding: .2em .6em;
  border-radius: var(--r-sm);
  background: var(--clr-bg);
}

.rc-meta span:first-child {
  color: var(--clr-accent);
  background: var(--clr-accent-bg);
}

/* ─── Route detail — split layout ────────────────────────────────────────── */

.route-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-lg);
}

@media (min-width: 860px) {
  .route-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }

  .route-layout .route-map-panel {
    position: sticky;
    top: calc(52px + var(--sp-lg)); /* menu height + spacing */
    height: calc(100vh - 52px - var(--sp-xl));
  }
}

.route-map-panel {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--clr-surface);
  box-shadow: var(--shadow-md);
}

.route-map-panel #routemap {
  width: 100%;
  height: 100%;
  min-height: 350px;
}

.route-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.route-header h1 {
  margin-bottom: var(--sp-sm);
}

.route-header p {
  font-size: 1.05rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

.route-meta {
  display: flex;
  gap: var(--sp-sm);
  margin-top: var(--sp-sm);
  flex-wrap: wrap;
}

.route-meta .tag {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .35em .8em;
  border-radius: 2rem;
  background: var(--clr-accent-bg);
  color: var(--clr-accent);
}

.route-meta .tag--muted {
  background: var(--clr-bg);
  color: var(--clr-muted);
}

/* ─── Stops ──────────────────────────────────────────────────────────────── */

.stops-section h2 {
  font-size: 1.1rem;
  margin-bottom: var(--sp-md);
}

.stops-section h2::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 1px;
  margin-top: var(--sp-xs);
}

.stops-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  /* <ol> i.p.v. <div> sinds de stops een bewerkbare referenced-lijst zijn —
     lijst-defaults resetten zodat de timeline-layout identiek blijft. */
  list-style: none;
  margin: 0;
  padding: 0;
}

.stops-list > li {
  position: relative;
}

/* timeline line */
.stops-list::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: var(--clr-border);
  border-radius: 1px;
}

.block-stop {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  padding: var(--sp-sm) 0;
  position: relative;
}

.block-stop--inline { /* compat alias */ }

.bs-position {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--clr-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--clr-bg);
}

.bs-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 3px;
}

.bs-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--clr-text);
}

.bs-desc {
  font-size: .82rem;
  color: var(--clr-muted);
  line-height: 1.55;
}

.bs-link {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--clr-accent);
  align-self: center;
  flex-shrink: 0;
  transition: color var(--t-fast);
}

.bs-link:hover { color: var(--clr-accent-lt); }

.stops-empty {
  color: var(--clr-muted);
  font-size: .9rem;
  font-style: italic;
}

/* ─── Place detail ───────────────────────────────────────────────────────── */

.place-hero {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--clr-accent-bg) 0%, #b7e4c7 100%);
}

.place-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.place-hero .image-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  color: var(--clr-accent);
  letter-spacing: .03em;
}

.place-header {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.place-region {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.place-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--clr-muted);
}

.place-map {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--clr-surface);
  box-shadow: var(--shadow-md);
}

.place-map #map { width: 100%; height: 100%; }

/* ─── Forms smoke (editor-only on place page) ────────────────────────────── */

.place-forms-smoke {
  margin-top: var(--sp-xl, 3rem);
  padding: var(--sp-lg, 1.5rem);
  border: 1px dashed var(--clr-border, #d4d4d4);
  border-radius: var(--r-lg, 8px);
  background: var(--clr-surface-muted, rgba(0,0,0,.02));
}

.place-forms-smoke h2 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.place-forms-smoke-note {
  margin: 0 0 var(--sp-md, 1rem);
  font-size: .85rem;
  color: var(--clr-muted);
}

.place-forms-smoke h3 {
  margin: var(--sp-md, 1rem) 0 .5rem;
  font-size: .9rem;
  font-weight: 600;
}

.place-forms-smoke h3 code {
  font-size: .85em;
  padding: .1em .3em;
  background: rgba(0,0,0,.06);
  border-radius: 3px;
}

.place-forms-smoke .ctxr-node-form,
.place-forms-smoke form {
  display: grid;
  gap: .6rem;
  max-width: 420px;
}

.place-forms-smoke .ctxr-node-form-field,
.place-forms-smoke .ctxr-node-form-label {
  display: block;
  font-size: .85rem;
}

.place-forms-smoke input[type="text"],
.place-forms-smoke input[type="url"],
.place-forms-smoke input[type="email"],
.place-forms-smoke input[type="tel"],
.place-forms-smoke input[type="number"],
.place-forms-smoke textarea {
  display: block;
  width: 100%;
  padding: .4rem .6rem;
  border: 1px solid var(--clr-border, #d4d4d4);
  border-radius: var(--r-sm, 4px);
  font: inherit;
}

/* ─── Places grid (overview) ─────────────────────────────────────────────── */

.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-md);
}

.place-item {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med);
}

.place-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.place-item-img {
  height: 160px;
  background: linear-gradient(135deg, var(--clr-accent-bg) 0%, #b7e4c7 100%);
  overflow: hidden;
  position: relative;
}

.place-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}

.place-item:hover .place-item-img img {
  transform: scale(1.05);
}

.place-item-body {
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.place-item-body h2 {
  font-size: 1.05rem;
}

.place-item-body .place-region {
  font-size: .7rem;
}

.place-item-body p {
  font-size: .82rem;
  color: var(--clr-muted);
  line-height: 1.5;
}

/* places overview map */
.places-map {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 21/9;
  background: var(--clr-surface);
  box-shadow: var(--shadow-md);
}

.places-map #placesmap { width: 100%; height: 100%; }

/* ─── Page chrome ────────────────────────────────────────────────────────── */

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.page-wide {
  max-width: 1120px;
}

.page-header h1 {
  margin-bottom: var(--sp-sm);
}

.page-header h1::after {
  content: '';
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--clr-accent);
  border-radius: 2px;
  margin-top: var(--sp-sm);
}

.page-header p {
  font-size: 1.05rem;
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ─── Shared elements ────────────────────────────────────────────────────── */

.divider {
  width: 100%;
  height: 1px;
  background: var(--clr-border);
}

footer {
  font-size: .72rem;
  color: var(--clr-dim);
  letter-spacing: .04em;
  padding-top: var(--sp-md);
}

footer .draft-badge {
  color: var(--clr-warm);
  font-weight: 600;
}

/* ─── Page text (webpage template) ───────────────────────────────────────── */

.page-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--clr-body);
}

.page-text:empty::after { content: '\00a0'; }
.page-text p { margin-bottom: 1em; }
.page-text p:last-child { margin-bottom: 0; }
.page-text a { color: var(--clr-accent); text-decoration: underline; text-underline-offset: .15em; }
.page-text strong { font-weight: 600; }

/* ─── 404 ────────────────────────────────────────────────────────────────── */

.page-404 {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-md);
}

.page-404 h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--clr-border);
  line-height: 1;
}

.page-404 p {
  color: var(--clr-muted);
  font-size: 1.05rem;
}

.page-404 a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--clr-accent);
  padding: .6em 1.5em;
  border: 2px solid var(--clr-accent);
  border-radius: 2rem;
  transition: background var(--t-fast), color var(--t-fast);
}

.page-404 a:hover {
  background: var(--clr-accent);
  color: #fff;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .hero {
    min-height: 65vh;
    padding: var(--sp-xl) var(--sp-md);
  }

  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-wrap: wrap; gap: var(--sp-md); }

  .page-section { padding: var(--sp-lg) var(--sp-md); }

  .place-card { flex: 0 0 240px; }
  .place-card-img { height: 140px; }

  .route-card {
    grid-template-columns: 1fr;
    padding: var(--sp-md);
  }

  .rc-meta {
    grid-column: 1;
    flex-direction: row;
    align-items: center;
  }

  .menu-main {
    padding: var(--sp-sm) var(--sp-md);
    gap: var(--sp-md);
  }

  .mm-list { gap: var(--sp-sm); }
}

/* =============================================================================
   Home — TrailVerse-geïnspireerde secties
   ============================================================================= */

.home-hero {
  position: relative;
  min-height: clamp(480px, 72vh, 720px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.home-hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;                 /* gradient-fallback wanneer er geen node-media is */
  background:
    radial-gradient(ellipse at 30% 20%, #3a6b4a 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, #1f4d36 0%, transparent 65%),
    linear-gradient(135deg, #0f3024 0%, #2d6a4f 50%, #40916c 100%);
}

/* Node-media (image/video) full-bleed over de gradient, onder de overlay. */
.home-hero-media { position: absolute; inset: 0; z-index: -2; }
.home-hero-mediael { width: 100%; height: 100%; object-fit: cover; display: block; }

.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(10,25,18,.25) 0%, rgba(10,25,18,.55) 75%, rgba(10,25,18,.75) 100%);
}

.home-hero-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: var(--sp-2xl) var(--sp-lg);
  display: grid;
  gap: var(--sp-md);
}

.home-hero-kicker {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255,255,255,.85);
  font-weight: 600;
}

.home-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  max-width: 18ch;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.home-hero-subtitle {
  color: rgba(255,255,255,.9);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 52ch;
  line-height: 1.6;
}

.home-hero-stats {
  display: flex;
  gap: var(--sp-xl);
  margin-top: var(--sp-sm);
  flex-wrap: wrap;
}

.home-hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  color: #fff;
}

.home-hero-stat span {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.75);
}

.home-hero-ctas {
  display: flex;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform var(--t-fast), background-color var(--t-fast), color var(--t-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: #fff;
  color: var(--clr-text);
}

.btn-primary:hover {
  color: var(--clr-accent);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* ─── Home sections ────────────────────────────────────────────────────────── */

.home-section {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: var(--sp-2xl) var(--sp-lg);
}

.home-section--tinted {
  background: linear-gradient(to bottom, var(--clr-accent-bg), transparent 50%);
  width: 100%;
  max-width: none;
}

.home-section--tinted > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
}

.home-section-kicker {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--clr-warm);
  font-weight: 600;
  margin-bottom: var(--sp-xs);
}

.home-section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* ─── Destination card — grote foto-card ───────────────────────────────────── */

.dest-grid {
  display: grid;
  gap: var(--sp-md);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dest-card {
  display: block;
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med);
  color: inherit;
}

.dest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.dest-card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--clr-border-lt);
}

.dest-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}

.dest-card:hover .dest-card-img img {
  transform: scale(1.06);
}

.dest-card-placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, #6ea688 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, #2d6a4f 0%, transparent 60%),
    linear-gradient(135deg, #40916c 0%, #1b4332 100%);
}

.dest-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 45%, transparent 70%);
  pointer-events: none;
}

.dest-card-region {
  position: absolute;
  top: var(--sp-sm);
  left: var(--sp-sm);
  padding: .3rem .7rem;
  background: rgba(255,255,255,.92);
  color: var(--clr-text);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.dest-card-body {
  padding: var(--sp-md);
}

.dest-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: var(--sp-xs);
}

.dest-card-tags {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
}

.dest-tag {
  display: inline-flex;
  padding: .25rem .6rem;
  background: var(--clr-accent-bg);
  color: var(--clr-accent);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 500;
}

/* ─── Route spotlight — split layout ───────────────────────────────────────── */

.route-spotlight {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--clr-surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 420px;
}

.rs-media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--clr-border-lt);
}

.rs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 30%, #f0c79b 0%, transparent 55%),
    radial-gradient(ellipse at 75% 80%, #a45e2a 0%, transparent 60%),
    linear-gradient(135deg, #c97b3a 0%, #6b3814 100%);
}

.rs-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.4) 0%, rgba(0,0,0,.1) 50%, transparent 100%);
  pointer-events: none;
}

.rs-badge {
  position: absolute;
  top: var(--sp-md);
  left: var(--sp-md);
  padding: .35rem .8rem;
  background: rgba(255,255,255,.95);
  color: var(--clr-warm);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rs-body {
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-md);
}

.rs-body h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.rs-body p {
  color: var(--clr-body);
  font-size: 1.05rem;
  line-height: 1.65;
}

.rs-meta {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  padding: var(--sp-sm) 0;
  border-top: 1px solid var(--clr-border-lt);
  border-bottom: 1px solid var(--clr-border-lt);
}

.rs-meta-item {
  color: var(--clr-muted);
  font-size: .9rem;
}

.rs-meta-item strong {
  color: var(--clr-text);
  margin-right: .25em;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.rs-cta {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  align-self: flex-start;
  padding: .75rem 1.4rem;
  background: var(--clr-accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  transition: transform var(--t-fast), background-color var(--t-fast);
}

.rs-cta:hover {
  background: var(--clr-accent-lt);
  color: #fff;
  transform: translateX(2px);
}

/* ─── Review card ──────────────────────────────────────────────────────────── */

.reviews-grid {
  display: grid;
  gap: var(--sp-md);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.review-card {
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border-lt);
  display: grid;
  gap: var(--sp-sm);
  transition: box-shadow var(--t-med), transform var(--t-med);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.rv-stars {
  display: inline-flex;
  gap: 2px;
  font-size: 1.1rem;
}

.rv-star {
  color: var(--clr-border);
}

.rv-star.is-filled {
  color: var(--clr-warm);
}

.review-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.review-card p {
  color: var(--clr-body);
  font-size: .95rem;
  line-height: 1.6;
  font-style: italic;
}

.rv-meta {
  display: flex;
  gap: var(--sp-sm);
  align-items: baseline;
  font-size: .82rem;
  color: var(--clr-muted);
  padding-top: var(--sp-sm);
  border-top: 1px solid var(--clr-border-lt);
  flex-wrap: wrap;
}

.rv-author {
  color: var(--clr-text);
  font-weight: 600;
}

.rv-area::before {
  content: '·';
  margin-right: .5em;
  color: var(--clr-dim);
}

/* ─── Home footer — 3-kolommen ────────────────────────────────────────────── */

.home-footer {
  background: #1b2a22;
  color: rgba(255,255,255,.75);
  padding: var(--sp-2xl) var(--sp-lg) var(--sp-lg);
}

.home-footer-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  gap: var(--sp-xl);
  grid-template-columns: 2fr 1fr 1fr;
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.home-footer-col h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: var(--sp-sm);
}

.home-footer-col p {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: var(--sp-xs);
}

.home-footer-col ul {
  list-style: none;
  display: grid;
  gap: var(--sp-xs);
}

.home-footer-col a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
}

.home-footer-col a:hover {
  color: #fff;
}

.home-footer-small {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.home-footer-base {
  width: min(1200px, 100%);
  margin: var(--sp-md) auto 0;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

/* =============================================================================
   Gebied detail (TouristDestination)
   ============================================================================= */

.dest-hero {
  position: relative;
  min-height: clamp(380px, 55vh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.dest-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dest-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dest-hero-image .dest-card-placeholder {
  position: absolute;
  inset: 0;
}

.dest-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,18,.75) 0%, rgba(10,25,18,.2) 50%, transparent 100%);
}

.dest-hero-content {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-lg);
  display: grid;
  gap: var(--sp-sm);
}

.dest-hero-region {
  display: inline-block;
  padding: .3rem .8rem;
  background: rgba(255,255,255,.92);
  color: var(--clr-text);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  justify-self: start;
}

.dest-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.75rem);
}

.dest-hero-tags {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
}

.dest-hero-tags .dest-tag {
  background: rgba(255,255,255,.15);
  color: #fff;
  backdrop-filter: blur(6px);
}

.dest-layout {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: var(--sp-lg);
}

.dest-intro {
  display: grid;
  gap: var(--sp-lg);
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid var(--clr-border-lt);
}

.dest-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--clr-body);
  max-width: 68ch;
}

.dest-stats {
  display: flex;
  gap: var(--sp-xl);
  flex-wrap: wrap;
}

.dest-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--clr-text);
  line-height: 1;
}

.dest-stat span {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-muted);
}

/* =============================================================================
   Kaart-pagina
   ============================================================================= */

.kaart-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  height: calc(100vh - 64px);
  min-height: 500px;
}

.kaart-sidebar {
  padding: var(--sp-lg);
  overflow-y: auto;
  background: var(--clr-surface);
  border-right: 1px solid var(--clr-border-lt);
}

.kaart-sidebar h1 {
  font-size: 1.6rem;
  margin-bottom: var(--sp-xs);
}

.kaart-sidebar > p {
  color: var(--clr-body);
  font-size: .95rem;
  margin-bottom: var(--sp-md);
}

.kaart-legend {
  display: grid;
  gap: var(--sp-xs);
  padding: var(--sp-sm) 0;
  border-top: 1px solid var(--clr-border-lt);
  border-bottom: 1px solid var(--clr-border-lt);
  margin-bottom: var(--sp-md);
}

.kaart-legend-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: .85rem;
  color: var(--clr-body);
}

.kaart-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.kaart-dot--area { background: var(--clr-accent); }
.kaart-dot--trip { background: var(--clr-warm); }

.kaart-sidebar-links h3 {
  font-size: 1rem;
  margin-bottom: var(--sp-xs);
}

.kaart-sidebar-links ul {
  list-style: none;
  display: grid;
  gap: 2px;
}

.kaart-sidebar-links a {
  display: block;
  padding: .4rem .5rem;
  border-radius: var(--r-sm);
  color: var(--clr-body);
  font-size: .9rem;
  transition: background-color var(--t-fast);
}

.kaart-sidebar-links a:hover {
  background: var(--clr-accent-bg);
  color: var(--clr-accent);
}

.kaart-map-wrap {
  position: relative;
}

#kaartmap {
  width: 100%;
  height: 100%;
  background: var(--clr-border-lt);
}

/* =============================================================================
   Page header (voor ontdek)
   ============================================================================= */

.page-header {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: var(--sp-xl) var(--sp-lg) var(--sp-lg);
}

.page-header h1 {
  margin-bottom: var(--sp-sm);
}

.page-header p {
  color: var(--clr-body);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 860px) {
  .route-spotlight {
    grid-template-columns: 1fr;
  }

  .rs-media {
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }

  .rs-body {
    padding: var(--sp-lg);
  }

  .home-footer-grid {
    grid-template-columns: 1fr;
  }

  .kaart-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .kaart-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--clr-border-lt);
  }

  .kaart-map-wrap {
    height: 60vh;
    min-height: 400px;
  }

  .home-hero-content,
  .home-section,
  .dest-layout,
  .page-header {
    padding-left: var(--sp-md);
    padding-right: var(--sp-md);
  }

  .home-hero-stats {
    gap: var(--sp-md);
  }
}

/* PWA — "plekken in de buurt" (geo.js progressive enhancement) */
.nearby-btn {
  margin-top: var(--sp-sm, 12px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #2d6a4f;
  border-radius: 999px;
  background: #fff;
  color: #2d6a4f;
  font: 600 13px/1 inherit;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.nearby-btn:hover:not(:disabled) { background: #2d6a4f; color: #fff; }
.nearby-btn:disabled { opacity: .6; cursor: default; }

.place-distance:not(:empty) {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #2d6a4f;
}
