/* ==========================================================================
   Natuurroutes – frontend
   Alles is geprefixed met .nr / nr- zodat het thema er niet mee botst.
   Kleuren en lettertype aanpasbaar via de CSS-variabelen hieronder
   (of via Instellingen → Natuurroutes in WordPress).
   ========================================================================== */

.nr {
  /* Layout: smalle redactionele kolom, filters als rij van vier, kaart als overlay */
  --nr-forest: #24493A;      /* knoppen, pins, clusters */
  --nr-ink: #1F3F24;         /* koppen */
  --nr-text: #24392C;        /* lopende tekst */
  --nr-muted: #5D6B61;
  --nr-lime: #CDE26A;        /* labels, kleine clusters, selectie */
  --nr-sand: #F4F3EE;        /* panelen */
  --nr-paper: #FFFFFF;
  --nr-line: #D5D9D1;
  --nr-chip: #DCDDD8;
  --nr-ok: #2E7D4F;
  --nr-no: #D0342C;
  --nr-focus: #2D6CDF;
  --nr-cluster: #34473B;     /* grote clusters */
  --nr-font: inherit;
  --nr-radius-btn: 999px;
  --nr-max: 1120px;
  --nr-offset: 0px;          /* hoogte van een vaste site-header boven de kaart */

  font-family: var(--nr-font);
  color: var(--nr-text);
  max-width: var(--nr-max);
  margin-inline: auto;
  line-height: 1.55;
  font-size: 1rem;
}
.nr *, .nr *::before, .nr *::after { box-sizing: border-box; }
/* Iconen een vaste maat geven, maar nooit de tekenlagen van de kaart (routelijnen, ondergrond). */
.nr svg:not(.leaflet-container svg):not(.gm-style svg) { width: 1.25em; height: 1.25em; flex: none; }
.nr button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; border-radius: 0; line-height: inherit; }
.nr button:disabled { cursor: not-allowed; }
.nr a { color: inherit; }
.nr :focus-visible { outline: 3px solid var(--nr-focus); outline-offset: 2px; }
.nr ul { list-style: none; margin: 0; padding: 0; }
.nr h1, .nr h2, .nr h3, .nr p { margin: 0; }
.nr img { display: block; max-width: 100%; }
.nr-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nr-error { padding: 1rem; background: #FBECEA; color: #8A1F18; border-radius: 6px; }

/* Koppen: eigen lettertype mogelijk (Instellingen → Uiterlijk) */
.nr-title, .nr-card-title, .nr-panel-title, .nr-panel-sub, .nr-detail-title, .nr-mini-title, .nr-empty strong, .nr-cal-head strong {
  font-family: var(--nr-font-heading, var(--nr-font));
}

/* ---------- Intro ---------- */
.nr-intro { display: grid; gap: .5rem; padding-block: 2.5rem 3rem; max-width: 62rem; }
.nr-eyebrow { font-size: 1.05rem; color: var(--nr-ink); }
.nr-title { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); line-height: 1.08; font-weight: 600; color: var(--nr-ink); letter-spacing: -.01em; text-wrap: balance; }
.nr-lead { font-size: 1.125rem; line-height: 1.75; max-width: 68ch; margin-top: .5rem; }

/* ---------- Knoppen ---------- */
.nr .nr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 2.9rem; padding: .6rem 1.5rem; border-radius: var(--nr-radius-btn);
  background: var(--nr-forest); color: #fff; border: 2px solid var(--nr-forest);
  font-weight: 500; text-decoration: none; transition: background .15s, color .15s;
}
.nr .nr-btn:hover { background: color-mix(in srgb, var(--nr-forest) 80%, #000); border-color: color-mix(in srgb, var(--nr-forest) 80%, #000); }
.nr .nr-btn--outline { background: transparent; color: var(--nr-forest); }
.nr .nr-btn--outline:hover { background: var(--nr-forest); color: #fff; }
.nr .nr-btn--small { min-height: 2.3rem; padding: .3rem 1.1rem; font-size: .95rem; }
.nr .nr-btn--block { width: 100%; }
.nr .nr-btn svg { width: 1.35em; height: 1.35em; }
.nr .nr-link-btn { display: inline-flex; align-items: center; gap: .4rem; color: var(--nr-text); text-decoration: none; }
.nr .nr-link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.nr .nr-icon-btn { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; }
.nr .nr-icon-btn:hover:not(:disabled) { background: var(--nr-sand); }
.nr .nr-icon-btn:disabled { opacity: .3; }

/* ---------- Filterbalk ---------- */
.nr-filterbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: 52rem; }
.nr-dd { position: relative; min-width: 0; }
.nr .nr-dd-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 3.6rem; padding: .5rem 1.1rem; background: var(--nr-paper);
  border: 1px solid color-mix(in srgb, var(--nr-line) 75%, #000); border-radius: 2px; text-align: left; font-size: 1.05rem;
  transition: border-color .15s, box-shadow .15s;
}
.nr .nr-dd-trigger:hover:not(:disabled) { border-color: var(--nr-forest); }
.nr .nr-dd-trigger svg { transition: transform .2s; }
.nr-dd.is-open .nr-dd-trigger { border-color: var(--nr-forest); box-shadow: inset 0 0 0 2px var(--nr-forest); }
.nr-dd.is-open .nr-dd-trigger > svg:last-child:not(:only-child) { transform: rotate(180deg); }
.nr-dd--wanneer.is-open .nr-dd-trigger > svg { transform: none !important; }
.nr-dd.has-value .nr-dd-label { font-weight: 600; color: var(--nr-ink); }
.nr .nr-dd-trigger:disabled { color: #A3A8A2; border-color: #E3E5E0; }
.nr-dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nr-dd-panel {
  position: absolute; z-index: 50; top: calc(100% + 6px); left: 0;
  width: max(100%, 34rem); max-width: calc(100vw - 32px);
  background: var(--nr-paper); border: 1px solid var(--nr-line);
  box-shadow: 0 12px 32px rgba(20, 40, 30, .14); padding: 1.4rem 1.6rem 0;
  animation: nr-drop .14s ease-out;
}
.nr-dd--verfijn .nr-dd-panel, .nr-dd--wanneer .nr-dd-panel { left: auto; right: 0; }
.nr-dd--wanneer .nr-dd-panel { width: 22rem; }
@keyframes nr-drop { from { opacity: 0; transform: translateY(-4px); } }
.nr-sub { font-weight: 600; color: var(--nr-ink); margin: .2rem 0 .7rem !important; }
.nr-sub:not(:first-child) { margin-top: 1.4rem !important; }
.nr-opts { display: flex; flex-wrap: wrap; gap: .5rem .5rem; }
.nr .nr-opt {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid var(--nr-line); background: var(--nr-paper); transition: background .12s, border-color .12s;
}
.nr .nr-opt:hover { border-color: var(--nr-forest); }
.nr .nr-opt.is-on { background: var(--nr-forest); border-color: var(--nr-forest); color: #fff; }
.nr-opt-n { font-size: .8rem; opacity: .7; font-variant-numeric: tabular-nums; }
.nr-dd-foot { display: flex; justify-content: space-between; align-items: center; margin: 1.4rem -1.6rem 0; padding: .9rem 1.6rem; border-top: 1px solid var(--nr-line); }

.nr-place { display: grid; gap: .8rem; }
.nr-input-wrap { position: relative; }
.nr-input-wrap svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--nr-muted); }
.nr .nr-input { width: 100%; min-height: 3.2rem; padding: .6rem 1rem .6rem 2.8rem; font: inherit; font-size: 1.05rem; color: var(--nr-text); border: 2px solid var(--nr-focus); border-radius: 4px; background: #fff; }
.nr .nr-input::placeholder { color: #7A847D; }
.nr-suggest:empty { display: none; }
.nr-suggest { border: 1px solid var(--nr-line); border-radius: 4px; max-height: 15rem; overflow: auto; }
.nr .nr-suggest-item { width: 100%; display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; text-align: left; }
.nr .nr-suggest-item:hover, .nr .nr-suggest-item:focus { background: var(--nr-sand); }
.nr-suggest-item small { color: var(--nr-muted); }
.nr-opts--tight .nr-opt { padding: .35rem .8rem; font-size: .92rem; }

/* Kalender */
.nr-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.nr-cal-head strong { color: var(--nr-ink); font-size: 1.1rem; }
.nr-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.nr-cal-grid > span { font-weight: 600; color: var(--nr-ink); padding: .35rem 0; font-size: .95rem; }
.nr .nr-day { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 3px; font-variant-numeric: tabular-nums; }
.nr .nr-day:hover:not(:disabled) { background: var(--nr-sand); }
.nr .nr-day:disabled, .nr .nr-day.is-other { color: #A9AEA8; }
.nr .nr-day.is-today { box-shadow: inset 0 0 0 1px var(--nr-line); }
.nr .nr-day.is-on { background: var(--nr-lime); font-weight: 600; color: var(--nr-ink); }
.nr .nr-day.has-event::after { content: ""; position: absolute; bottom: 14%; width: 4px; height: 4px; border-radius: 50%; background: var(--nr-forest); }
.nr-cal-legend { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--nr-muted); margin-top: .5rem !important; }
.nr-cal-legend i { width: 5px; height: 5px; border-radius: 50%; background: var(--nr-forest); }

/* ---------- Chips ---------- */
.nr-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.4rem; }
.nr-chips[hidden] { display: none; }
.nr-chips-label { font-weight: 600; color: var(--nr-ink); }
.nr .nr-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px; background: var(--nr-chip); }
.nr .nr-chip:hover { background: color-mix(in srgb, var(--nr-chip) 88%, #000); }
.nr .nr-chip svg, .nr-chips .nr-link-btn svg { width: 1.05em; height: 1.05em; }

/* ---------- Toolbar ---------- */
.nr-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--nr-line); }
.nr-count { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.nr-toolbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.nr-sort { display: inline-flex; align-items: center; gap: .5rem; color: var(--nr-muted); }
.nr-sort select { font: inherit; color: var(--nr-text); padding: .45rem 2rem .45rem .7rem; border: 1px solid var(--nr-line); border-radius: 4px; background: #fff; }
.nr .nr-btn--map { min-height: 3.4rem; padding-inline: 1.7rem; font-size: 1.05rem; }

/* ---------- Kaarten (lijst) ---------- */
.nr-list { display: grid; gap: 1.5rem; margin-top: 1.5rem !important; }
.nr-card { display: grid; grid-template-columns: minmax(0, 15fr) minmax(0, 24fr) minmax(0, 12fr); background: var(--nr-paper); border: 1px solid color-mix(in srgb, var(--nr-line) 50%, var(--nr-paper)); min-height: 15rem; }
.nr-card-media { position: relative; background: var(--nr-sand); }
.nr-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nr-card-body { padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.nr-card-type { color: var(--nr-text); }
.nr-card-title { font-size: 1.5rem; line-height: 1.25; font-weight: 400; color: var(--nr-ink); text-wrap: balance; }
.nr-card-title a, .nr .nr-card-title button { text-decoration: none; text-align: left; }
.nr-card-title a:hover, .nr .nr-card-title button:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.nr-card-text { line-height: 1.65; }
.nr .nr-card-maplink { margin-top: auto; padding-top: .5rem; align-self: flex-start; color: var(--nr-forest); font-weight: 500; }
.nr-card-aside { background: var(--nr-sand); padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }

.nr-facts { display: grid; gap: .8rem; }
.nr-facts li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .6rem; align-items: start; line-height: 1.45; }
.nr-facts li > svg { color: var(--nr-forest); margin-top: .1rem; justify-self: center; }
.nr-facts a, .nr .nr-area-link { text-decoration: underline; text-underline-offset: 3px; text-align: left; color: var(--nr-ink); }
.nr-fact-dist { color: var(--nr-muted); font-size: .95rem; }
.nr-dot { width: 1rem; height: 1rem; border-radius: 50%; background: var(--c); justify-self: center; margin-top: .2rem; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.nr-badges { display: flex; gap: .6rem; align-items: center; }
.nr-badge { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; position: relative; }
.nr-badge svg { width: 1.4rem; height: 1.4rem; color: #1D1D1B; }
.nr-badge--ok { box-shadow: inset 0 0 0 2.5px var(--nr-ok); background: #fff; }
.nr-badge--no { box-shadow: inset 0 0 0 2.5px var(--nr-no); background: #fff; }
.nr-badge--no::after { content: ""; position: absolute; width: 2.5px; height: 80%; background: var(--nr-no); transform: rotate(-45deg); border-radius: 2px; }
.nr-badge--plain svg { width: 1.7rem; height: 1.7rem; }
.nr-badge--plain::after { content: ""; position: absolute; right: 0; bottom: .15rem; width: .55rem; height: .3rem; border-left: 2px solid var(--nr-ok); border-bottom: 2px solid var(--nr-ok); transform: rotate(-45deg); }

.nr-more { display: grid; justify-items: center; gap: .7rem; padding-block: 2rem 1rem; color: var(--nr-muted); }
.nr-more:empty { display: none; }
.nr-fab-wrap { display: none; }
.nr-empty { padding: 3rem 1.5rem; text-align: center; display: grid; gap: .6rem; justify-items: center; background: var(--nr-sand); }
.nr-empty strong { font-size: 1.2rem; color: var(--nr-ink); }
.nr-empty .nr-btn { margin-top: .6rem; }

/* ---------- Kaart-overlay ---------- */
html.nr-lock, html.nr-lock body { overflow: hidden; }
/* Overlay staat direct onder <body>: geen kolombreedte of marges van .nr overnemen */
.nr.nr-portal { max-width: none; margin: 0; padding: 0; line-height: 1.55; }
.nr-mapview { position: fixed; z-index: 999990; inset: var(--nr-offset) 0 0 0; background: #D4D6DA; }
.nr-mapview[hidden] { display: none; }
.nr-map { position: absolute; inset: 0; background: #D4D6DA; font: inherit; }
.nr-map--vector { background: #D3D5D9; }
.nr .leaflet-container { font-family: var(--nr-font); }
.nr .leaflet-control-zoom { border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); margin: 0 1.25rem 1.25rem 0 !important; }
.nr .leaflet-control-zoom a { width: 2.6rem; height: 2.6rem; line-height: 2.5rem; font-size: 1.5rem; color: #111; }
.nr-mapnote { position: absolute; z-index: 500; right: 4.8rem; bottom: 1.25rem; max-width: 22rem; padding: .5rem .8rem; background: rgba(255, 255, 255, .92); border-radius: 6px; font-size: .82rem; color: var(--nr-muted); }

.nr .nr-close {
  position: absolute; z-index: 1001; top: 1.2rem; left: calc(min(27rem, 40vw) + 1.5rem - 1.4rem);
  width: 2.9rem; height: 2.9rem; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
}
.nr .nr-close:hover { background: var(--nr-sand); }

.nr-panel {
  position: absolute; z-index: 1000; top: 1.25rem; left: 1rem; bottom: 1.25rem;
  width: min(27rem, 40vw); background: var(--nr-sand); box-shadow: 0 6px 30px rgba(20, 40, 30, .18);
  display: flex; flex-direction: column; overflow: hidden;
}
.nr-panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.nr .nr-sheet-handle { display: none; }
.nr-panel-pad { padding: 1.6rem 1.75rem; }
.nr-panel-pad--top { padding-bottom: .6rem; }
.nr-panel-pad--sand { background: var(--nr-sand); }
.nr-panel[data-state="filters"] .nr-panel-pad:first-child { background: #fff; }
.nr-panel-title { font-size: 2rem; line-height: 1.15; font-weight: 700; color: var(--nr-ink); text-wrap: balance; }
.nr-panel-title::after { content: ""; display: block; width: 3rem; height: 3px; background: var(--nr-lime); margin-top: 1rem; }
.nr-panel-title--sm { font-size: 1.45rem; display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem !important; }
.nr-panel-title--sm::after { display: none; }
.nr-panel-lead { margin-top: 1rem !important; font-size: 1.1rem; }
.nr-panel-sub { font-size: 1.35rem; color: var(--nr-ink); margin-bottom: 1rem !important; }
.nr-count-pill { font-size: .85rem; font-weight: 600; background: var(--nr-lime); padding: .1rem .55rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.nr-panel-tools { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.nr-chips--panel { margin-top: 0; }
.nr-chips--panel .nr-chips-label { width: auto; }
.nr-stack { display: grid; gap: .9rem; }
.nr-stack .nr-dd-panel { position: static; width: 100%; max-width: none; margin-top: .4rem; box-shadow: none; padding: 1.1rem 1.1rem 0; }
.nr-stack .nr-dd-foot { margin-inline: -1.1rem; padding-inline: 1.1rem; }
.nr-panel-foot { margin-top: 1.5rem; }
.nr-only-mobile { display: none !important; }

.nr-mini-list { display: grid; gap: 1rem; padding: .4rem 1.75rem 1.75rem !important; }
.nr .nr-mini {
  position: relative; width: 100%; text-align: left; background: #fff; padding: 1.4rem 3rem 1.4rem 1.4rem;
  display: grid; gap: .6rem; justify-items: start; transition: box-shadow .15s;
}
.nr .nr-mini:hover { box-shadow: 0 0 0 2px var(--nr-forest); }
.nr-mini-title { font-size: 1.2rem; line-height: 1.3; color: var(--nr-ink); }
.nr-mini-row { display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem; align-items: start; }
.nr-mini-row svg { color: var(--nr-forest); justify-self: center; margin-top: .15rem; }
.nr-mini-arrow { position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); }
.nr-mini-more { text-align: center; color: var(--nr-muted); font-size: .95rem; }
.nr-empty--mini { padding: 2rem 1rem; background: #fff; }

.nr-pill { display: inline-block; background: var(--nr-lime); color: var(--nr-ink); font-weight: 500; font-size: .92rem; padding: .3rem .8rem; border-radius: 999px; }

.nr-detail-media { aspect-ratio: 16 / 9; background: #ddd; }
.nr-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.nr-detail-body { padding: 1.6rem 1.75rem 1.75rem; display: grid; gap: 1rem; justify-items: start; }
.nr-detail-title { font-size: 1.5rem; line-height: 1.25; font-weight: 700; color: var(--nr-ink); text-wrap: balance; }
.nr-detail-text { line-height: 1.65; margin-bottom: .6rem !important; }
.nr-detail-body .nr-facts { width: 100%; }
.nr-actions { display: grid; gap: .75rem; width: 100%; margin-top: .8rem; }

.nr .nr-back-link { font-weight: 500; color: var(--nr-forest); margin-bottom: 1rem; }
.nr .nr-back-link svg { width: 1.1em; height: 1.1em; }

/* Eigen iconen als afbeelding */
.nr .nr-ico-img { display: inline-block; width: 1.25em; height: 1.25em; object-fit: contain; flex: none; }
.nr-facts li > .nr-ico-img, .nr-mini-row > .nr-ico-img { justify-self: center; margin-top: .1rem; }
.nr-badge .nr-ico-img { width: 1.4rem; height: 1.4rem; }
.nr-pin-glyph .nr-ico-img { width: 22px !important; height: 22px !important; }
.nr-pin-glyph svg, .nr-pin-glyph .nr-ico-img { display: block; }

/* Pins & clusters */
.nr-pin-wrap { background: none; border: 0; }
.nr-pin { position: relative; display: block; width: 40px; height: 52px; transition: transform .15s; transform-origin: 50% 100%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.nr-pin-shape { position: absolute; inset: 0; z-index: 0 !important; width: 40px !important; height: 52px !important; }
.nr-pin-shape path { fill: var(--nr-forest); stroke: #fff; stroke-width: 1.5; }
.nr-pin-glyph { position: absolute; z-index: 1; left: 50%; top: 19px; transform: translate(-50%, -50%); color: #fff; display: grid; }
.nr-pin-glyph svg { width: 22px !important; height: 22px !important; }
.nr-pin.is-active { transform: scale(1.2); }
.nr-pin.is-active .nr-pin-shape path { fill: var(--nr-lime); stroke: var(--nr-forest); }
.nr-pin.is-active .nr-pin-glyph { color: var(--nr-forest); }
.is-hover .nr-pin { transform: scale(1.18) translateY(-3px); }

.nr-cluster-wrap { background: none; border: 0; }
.nr-cl {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 6px; border-radius: 50%;
  background: var(--nr-lime); color: var(--nr-ink); font-weight: 600; font-size: .95rem; cursor: pointer;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--nr-lime) 45%, transparent); font-variant-numeric: tabular-nums; transition: transform .15s;
}
.nr-cl:hover { transform: scale(1.08); }
.nr-cl--big { background: var(--nr-cluster); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--nr-cluster) 30%, transparent); }
.nr-gpin { cursor: pointer; }
.nr-gpin.is-hover .nr-pin { transform: scale(1.18) translateY(-3px); }
.nr-gcluster .nr-cl { margin: 0; }

.nr-start { width: 100%; padding: .9rem 1rem; background: #fff; border-left: 3px solid var(--nr-lime); }
.nr-start strong { color: var(--nr-ink); }
.nr-start p { margin-top: .25rem !important; font-size: .95rem; }
.nr-facts small { color: var(--nr-muted); font-size: .9em; }
.nr-loading { color: var(--nr-muted); }
.nr-suggest-wait { padding: .6rem .9rem; color: var(--nr-muted); }
.nr-map-error { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 24rem; z-index: 2; }
.nr-mapview.is-loading .nr-map::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 2.6rem; height: 2.6rem; margin: -1.3rem 0 0 -1.3rem;
  border-radius: 50%; border: 3px solid rgba(36, 73, 58, .2); border-top-color: var(--nr-forest); animation: nr-spin .8s linear infinite; z-index: 3;
}
@keyframes nr-spin { to { transform: rotate(360deg); } }
.nr-mapview[data-provider="google"] .nr-map { background: #f2f2f0; }

/* ---------- Detailpagina van één route ---------- */
.nr-single { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); margin-block: 0 2rem; max-width: none; }
.nr-single-map { min-height: 22rem; background: #D4D6DA; }
.nr-single-aside { background: var(--nr-sand); padding: 1.5rem; display: grid; gap: 1.1rem; align-content: start; justify-items: start; }
.nr-single-aside .nr-facts, .nr-single-aside .nr-actions { width: 100%; }
@media (max-width: 767px) { .nr-single { grid-template-columns: 1fr; } .nr-single-map { min-height: 16rem; } }

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .nr-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .nr-dd--waar .nr-dd-panel, .nr-dd--wanneer .nr-dd-panel { left: auto; right: 0; }
  .nr-dd--verfijn .nr-dd-panel { left: 0; right: auto; }
  .nr-card { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .nr-card-media { grid-row: span 2; }
  .nr-card-aside { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .nr-card-aside .nr-facts { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); flex: 1; }
  .nr-panel { width: min(24rem, 46vw); }
  .nr .nr-close { left: calc(min(24rem, 46vw) + 1rem - 1.4rem); }
}

/* ---------- Mobiel: panelen worden een bottom sheet ---------- */
@media (max-width: 767px) {
  .nr-intro { padding-block: 1.5rem 2rem; }
  .nr-lead { font-size: 1.02rem; line-height: 1.65; }
  .nr-filterbar { gap: .6rem; }
  .nr .nr-dd-trigger { min-height: 3.1rem; padding-inline: .9rem; font-size: 1rem; }
  .nr-filterbar .nr-dd-panel {
    position: fixed; z-index: 99995; left: 0 !important; right: 0 !important; top: auto; bottom: 0;
    width: 100%; max-width: none; max-height: 85vh; overflow-y: auto; border-radius: 16px 16px 0 0;
    padding: 1.4rem 1.25rem 0; padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); animation: nr-up .2s ease-out;
  }
  .nr-filterbar .nr-dd.is-open::before { content: ""; position: fixed; inset: 0; z-index: 99994; background: rgba(15, 30, 20, .4); }
  .nr-filterbar .nr-dd-foot { margin-inline: -1.25rem; padding: 1rem 1.25rem; position: sticky; bottom: 0; background: #fff; }
  .nr .nr-opt { padding: .6rem 1rem; }
  @keyframes nr-up { from { transform: translateY(30%); opacity: 0; } }

  .nr-toolbar { margin-top: 1.6rem; }
  .nr-toolbar-right { width: 100%; justify-content: space-between; }
  .nr .nr-btn--map { display: none; }
  .nr-fab-wrap { display: flex; position: sticky; z-index: 900; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); justify-content: center; margin-top: -3rem; pointer-events: none; }
  .nr .nr-fab { pointer-events: auto; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
  .nr-card { grid-template-columns: 1fr; }
  .nr-card-media { aspect-ratio: 16 / 9; grid-row: auto; }
  .nr-card-body { padding: 1.2rem 1.25rem; }
  .nr-card-title { font-size: 1.3rem; }
  .nr-card-aside { padding: 1.1rem 1.25rem; flex-direction: column; }
  .nr-card-aside .nr-facts { grid-template-columns: 1fr 1fr; }
  .nr-more { padding-bottom: 5rem; }

  .nr .nr-close { left: auto; right: 1rem; top: calc(1rem + env(safe-area-inset-top, 0px)); }
  .nr-mapnote { display: none; }
  .nr .leaflet-control-zoom { display: none; }
  .nr-panel {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%; border-radius: 18px 18px 0 0;
    max-height: 42%; transition: max-height .25s ease; padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .nr-panel[data-sheet="full"] { max-height: 88%; }
  .nr .nr-sheet-handle { display: grid; place-items: center; width: 100%; height: 1.6rem; flex: none; }
  .nr-sheet-handle span { width: 2.6rem; height: 5px; border-radius: 3px; background: #B9BDB6; }
  .nr-only-mobile { display: inline-flex !important; }
  .nr-panel-pad { padding: .4rem 1.25rem 1.25rem; }
  .nr-panel-pad--top { padding-bottom: .4rem; }
  .nr-panel-title { font-size: 1.6rem; }
  .nr-panel-title--sm { font-size: 1.25rem; margin-top: .8rem !important; }
  .nr-mini-list { padding: .4rem 1.25rem 1.5rem !important; }
  .nr .nr-mini { padding: 1.1rem 2.6rem 1.1rem 1.1rem; }
  .nr-detail-media { aspect-ratio: 2 / 1; }
  .nr-detail-body { padding: 1.2rem 1.25rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nr *, .nr *::before, .nr *::after { animation: none !important; transition: none !important; }
}
