/**
 * space.css — OUP Rotterdam
 *
 * Design system: clean modern urban.
 * Geometric sans (Inter) throughout.
 * Deep slate + warm terracotta accent.
 */

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

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

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

:root {
  /* palette */
  --clr-bg:        #f8f9fa;
  --clr-surface:   #ffffff;
  --clr-elevated:  #ffffff;
  --clr-border:    #e2e8f0;
  --clr-border-lt: #eef2f6;
  --clr-accent:    #c2410c;
  --clr-accent-lt: #ea580c;
  --clr-accent-bg: #fff7ed;
  --clr-warm:      #c2410c;
  --clr-text:      #0f172a;
  --clr-body:      #334155;
  --clr-muted:     #64748b;
  --clr-dim:       #94a3b8;

  /* type */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-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: .5rem;
  --r-lg: .75rem;
  --r-xl: 1rem;

  /* shadows */
  --shadow-sm:  0 1px 2px rgba(15,23,42,.04);
  --shadow-md:  0 2px 8px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.03);
  --shadow-lg:  0 4px 20px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.03);
  --shadow-xl:  0 8px 36px rgba(15,23,42,.1), 0 2px 8px rgba(15,23,42,.03);

  /* 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: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.85rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); }

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

.menu-main {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  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-size: .9rem;
  font-weight: 700;
  color: var(--clr-text);
  letter-spacing: -.01em;
  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: .8rem;
  font-weight: 500;
  color: var(--clr-muted);
  letter-spacing: .02em;
  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: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-2xl) var(--sp-lg);
  background:
    linear-gradient(160deg, #0f172a 0%, #1e293b 40%, #334155 75%, #475569 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 85%, rgba(194,65,12,.2) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(30,41,59,.5) 0%, transparent 55%);
  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='.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

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

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

.hero-subtitle {
  color: rgba(255,255,255,.7);
  font-size: clamp(.95rem, 2vw, 1.1rem);
  line-height: 1.65;
  max-width: 480px;
  font-weight: 400;
}

.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,.12);
}

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

.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}

.hero-stat span {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* decorative accent line */
.hero-deco {
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(194,65,12,.08) 100%);
  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::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 1px;
  margin-top: var(--sp-xs);
}

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

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

/* ─── 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;
  border: 1px solid var(--clr-border-lt);
}

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

.place-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--clr-accent-bg) 0%, #fed7aa 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.04);
}

.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.05rem; }

.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: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.place-card-body > p {
  font-size: .84rem;
  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;
  border: 1px solid var(--clr-border-lt);
  border-left: 3px solid transparent;
}

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

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

.route-card p {
  font-size: .84rem;
  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: .7rem;
  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));
    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: 1rem;
  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: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3em .75em;
  border-radius: var(--r-sm);
  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.05rem;
  margin-bottom: var(--sp-md);
}

.stops-section h2::after {
  content: '';
  display: block;
  width: 1.5rem;
  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;
}

/* 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;
}

.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-size: .95rem;
  font-weight: 600;
  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, #f1f5f9 0%, #e2e8f0 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-muted);
  letter-spacing: .03em;
}

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

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

.place-description {
  font-size: 1rem;
  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%; }

/* ─── 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);
  border: 1px solid var(--clr-border-lt);
}

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

.place-item-img {
  height: 160px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 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.04);
}

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

.place-item-body h2 { font-size: 1rem; }
.place-item-body .place-region { font-size: .68rem; }

.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: 2rem;
  height: 2px;
  background: var(--clr-accent);
  border-radius: 1px;
  margin-top: var(--sp-sm);
}

.page-header p {
  font-size: 1rem;
  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: .03em;
  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: 1rem;
}

.page-404 a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .03em;
  color: var(--clr-accent);
  padding: .55em 1.4em;
  border: 1.5px solid var(--clr-accent);
  border-radius: var(--r-md);
  transition: background var(--t-fast), color var(--t-fast);
}

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

/* ─── Explore page ──────────────────────────────────────────────────────── */

.page-explore {
  overflow: hidden;
}

.explore-hero {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 52px);   /* full viewport minus menu */
  min-height: 500px;
}

.explore-header {
  padding: var(--sp-lg) var(--sp-lg) var(--sp-md);
  flex-shrink: 0;
}

.explore-header h1 {
  margin-bottom: var(--sp-xs);
}

.explore-subtitle {
  color: var(--clr-muted);
  font-size: .95rem;
}

/* ─── Explore map block ─────────────────────────────────────────────────── */

.explore-map-block {
  flex: 1;
  position: relative;
  min-height: 0;
}

.explore-map-container {
  width: 100%;
  height: 100%;
  min-height: 350px;
}

.explore-map-count {
  position: absolute;
  bottom: var(--sp-md);
  left: var(--sp-md);
  z-index: 500;
  background: var(--clr-surface);
  padding: var(--sp-xs) var(--sp-sm);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  font-size: .78rem;
  color: var(--clr-muted);
}

.explore-map-count strong {
  color: var(--clr-text);
  font-weight: 700;
}

/* Custom Leaflet marker */
.explore-marker {
  background: none !important;
  border: none !important;
}

.explore-marker-dot {
  display: block;
  width: 14px;
  height: 14px;
  background: var(--clr-accent);
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(194,65,12,.35);
  margin: 5px;
  transition: transform var(--t-fast);
}

.explore-marker:hover .explore-marker-dot {
  transform: scale(1.3);
}

/* Popup styling */
.explore-popup-wrapper .leaflet-popup-content-wrapper {
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
}

.explore-popup-wrapper .leaflet-popup-content {
  margin: 0;
  min-width: 180px;
}

.explore-popup-wrapper .leaflet-popup-tip {
  box-shadow: none;
}

.explore-popup {
  padding: var(--sp-sm) var(--sp-md);
  font-family: var(--font-body);
}

.explore-popup strong {
  display: block;
  font-size: .92rem;
  color: var(--clr-text);
  margin-bottom: 2px;
}

.explore-popup strong a {
  color: inherit;
  transition: color var(--t-fast);
}

.explore-popup strong a:hover {
  color: var(--clr-accent);
}

.explore-popup-region {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-xs);
}

.explore-popup p {
  font-size: .8rem;
  color: var(--clr-muted);
  line-height: 1.5;
  margin: 0;
}

.explore-popup-oup {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.explore-popup-oup-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  font-weight: 600;
  color: #4f8ef7;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 3px;
  padding: 1px 6px;
  line-height: 1.4;
}

/* ─── Explore map controls ──────────────────────────────────────────────── */

.explore-map-controls {
  position: absolute;
  top: var(--sp-sm);
  right: var(--sp-sm);
  z-index: 500;
  display: flex;
  gap: var(--sp-xs);
}

.explore-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--clr-muted);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.explore-toggle:hover {
  border-color: var(--clr-dim);
  color: var(--clr-text);
}

.explore-toggle--active {
  color: var(--clr-text);
  border-color: var(--clr-text);
  background: var(--clr-surface);
}

.explore-toggle--loading {
  opacity: .6;
  pointer-events: none;
}

.explore-toggle--loading::after {
  content: '';
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--clr-dim);
  border-top-color: transparent;
  border-radius: 50%;
  animation: explore-spin .6s linear infinite;
}

@keyframes explore-spin {
  to { transform: rotate(360deg); }
}

.explore-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.explore-toggle-dot--ctxr {
  background: var(--clr-accent);
  box-shadow: 0 0 0 2px rgba(194,65,12,.2);
}

.explore-toggle-dot--oup {
  background: #4f8ef7;
  box-shadow: 0 0 0 2px rgba(79,142,247,.2);
}

.explore-toggle-count {
  font-weight: 400;
  color: var(--clr-dim);
}

.explore-toggle-count:empty {
  display: none;
}

/* ─── OUP WFS markers ──────────────────────────────────────────────────── */

.oup-marker {
  background: none !important;
  border: none !important;
}

.oup-dot {
  display: block;
  width: 8px;
  height: 8px;
  background: #4f8ef7;
  border: 1.5px solid rgba(255,255,255,.8);
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(79,142,247,.3);
  margin: 1px;
  transition: transform var(--t-fast);
}

.oup-dot--monument {
  background: #f7a24f;
  box-shadow: 0 0 4px rgba(247,162,79,.3);
}

.oup-dot--top {
  background: #4fcf70;
  box-shadow: 0 0 4px rgba(79,207,112,.3);
}

.oup-marker:hover .oup-dot {
  transform: scale(1.5);
}

/* OUP popup */
.oup-popup-wrapper .leaflet-popup-content-wrapper {
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
}

.oup-popup-wrapper .leaflet-popup-content {
  margin: 0;
  min-width: 160px;
}

.oup-popup {
  padding: var(--sp-sm);
  font-family: var(--font-body);
  font-size: .82rem;
  line-height: 1.5;
}

.oup-popup strong {
  font-size: .88rem;
  color: var(--clr-text);
}

.oup-popup small {
  color: var(--clr-muted);
}

.oup-popup-wijk {
  font-size: .72rem;
  color: var(--clr-dim);
  font-style: normal;
}

.oup-popup-belang {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #4f8ef7;
}

.oup-popup-id {
  font-size: .66rem;
  color: var(--clr-dim);
  background: var(--clr-bg);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
}

/* OUP popup editor actions */
.oup-create-btn {
  display: block;
  width: 100%;
  margin-top: var(--sp-xs);
  padding: 4px 0;
  font-size: .75rem;
  font-weight: 600;
  color: var(--clr-accent);
  background: none;
  border: 1px solid var(--clr-accent);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.oup-create-btn:hover:not(:disabled) {
  background: var(--clr-accent);
  color: #fff;
}
.oup-create-btn:disabled {
  opacity: .6;
  cursor: default;
}
.oup-create-btn.is-success {
  border-color: var(--clr-success, #22c55e);
  color: var(--clr-success, #22c55e);
}
.oup-linked-info {
  margin-top: var(--sp-xs);
  padding-top: var(--sp-xs);
  border-top: 1px solid var(--clr-border, #e5e5e5);
}
.oup-linked-link {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--clr-success, #22c55e);
  text-decoration: none;
}
.oup-linked-link:hover {
  text-decoration: underline;
}
.oup-linked-ids {
  display: block;
  font-size: .64rem;
  color: var(--clr-dim);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 1px;
}

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

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

  .hero h1 { font-size: 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); }

  .explore-hero { height: calc(100vh - 44px); }
  .explore-header { padding: var(--sp-md) var(--sp-md) var(--sp-sm); }
}
