/* ============================================================
   RHike public site — styling per the imported RHike Design System
   (design/website-route-page.html + design/colors_and_type.css)
   ============================================================ */

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-var.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-var-latin-ext.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Manrope', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

/* ══ LIGHT MODE — Premium outdoor ══ */
body {
  --page-bg:         #edeae3;
  --page-nav:        #243d2e;
  --page-nav-border: transparent;
  --page-surface:    #f7f4ef;
  --page-surface2:   #e8e3d8;

  --page-fg1:        #161814;
  --page-fg2:        #44524a;
  --page-fg3:        #8a9890;

  --page-border:     #cdc8be;

  --page-accent:     #2b5544;
  --page-accent-h:   #1e3f32;
  --page-accent-t:   rgba(43,85,68,0.08);

  --page-cta-bg:     #1a2f22;
  --page-pill-bg:    #dde8e0;
  --page-pill-fg:    #2b5544;

  --page-map-bg:     #d8d2c4;

  --page-nav-fg:     rgba(255,255,255,0.95);
  --page-nav-fg-dim: rgba(255,255,255,0.62);

  --page-shadow-sm:  0 1px 3px rgba(0,0,0,0.07), 0 1px 8px rgba(0,0,0,0.04);
  --page-shadow-md:  0 2px 10px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
}

/* ══ DARK MODE — calm night ══ */
body.dark {
  --page-bg:         #0c110e;
  --page-nav:        #0c110e;
  --page-nav-border: rgba(255,255,255,0.10);
  --page-surface:    #141c16;
  --page-surface2:   #1b2620;

  --page-fg1:        #edeae4;
  --page-fg2:        #a8bab0;
  --page-fg3:        #5c6e62;

  --page-border:     rgba(255,255,255,0.11);

  --page-accent:     #4e9464;
  --page-accent-h:   #3d7a50;
  --page-accent-t:   rgba(78,148,100,0.15);

  --page-cta-bg:     #07100a;
  --page-pill-bg:    rgba(255,255,255,0.08);
  --page-pill-fg:    #a8bab0;

  --page-map-bg:     #131a14;

  --page-nav-fg:     rgba(255,255,255,0.95);
  --page-nav-fg-dim: rgba(255,255,255,0.55);

  --page-shadow-sm:  0 1px 3px rgba(0,0,0,0.35), 0 1px 8px rgba(0,0,0,0.25);
  --page-shadow-md:  0 2px 14px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
}

body { background: var(--page-bg); color: var(--page-fg1); }

a { color: var(--page-accent); }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--page-nav);
  border-bottom: 1px solid var(--page-nav-border);
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 32px; height: 32px; display: block; }
.nav-logo-text { font-size: 20px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.nav-logo-text .rh { color: rgba(255,255,255,0.95); }
.nav-logo-text .ike { color: rgba(255,255,255,0.8); }
.nav-cta {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.18); color: #fff;
  padding: 9px 18px; border-radius: 9999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  letter-spacing: -0.01em; transition: background 180ms;
  white-space: nowrap; border: 1px solid rgba(255,255,255,0.25);
}
.nav-cta:hover { background: rgba(255,255,255,0.28); }
body.dark .nav-cta { background: var(--page-accent); border-color: transparent; }
body.dark .nav-cta:hover { background: var(--page-accent-h); }
.nav-toggle {
  width: 36px; height: 36px; border-radius: 9999px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; transition: background 180ms; flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,0.25); }
body.dark .nav-toggle { background: var(--page-surface2); border-color: var(--page-border); }
.nav-links { display: flex; align-items: center; gap: 12px; }
.nav-link { font-size: 14px; color: var(--page-nav-fg-dim); text-decoration: none; font-weight: 400; transition: color 180ms; }
.nav-link:hover { color: var(--page-nav-fg); }
@media (max-width: 520px) {
  .nav-cta span, .nav-link { display: none; }
}

/* ── Language switcher ── */
.nav-lang-switch { position: relative; flex-shrink: 0; }
.nav-lang-btn { width: auto; padding: 0 12px; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.nav-lang-code { line-height: 1; }
.nav-flag-icon { width: 18px; height: 12px; border-radius: 2px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); }
.nav-lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1001;
  min-width: 180px; padding: 6px;
  background: var(--page-surface); border: 1px solid var(--page-border);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
body.dark .nav-lang-menu { background: var(--page-surface2); border-color: var(--page-border); }
.nav-lang-menu[hidden] { display: none; }
.nav-lang-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; font-size: 14px;
  color: var(--page-fg1); text-decoration: none; white-space: nowrap;
}
.nav-lang-item:hover { background: var(--page-surface2); }
.nav-lang-item.active { font-weight: 600; }

/* ── Overview map (homepage) ── */
.overview-map-canvas {
  width: 100%; height: 440px; border-radius: 16px; overflow: hidden;
  background: var(--page-map-bg); border: 1px solid var(--page-border);
}
body.dark .overview-map-canvas .leaflet-tile-pane { filter: brightness(0.65) saturate(0.75); }
.overview-map-canvas .leaflet-tooltip {
  font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 999px;
  background: var(--page-surface); color: var(--page-fg1); border: 1px solid var(--page-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* ── Hero map (route detail) ── */
.hero-map {
  position: relative;
  width: 100%;
  height: min(72vh, 580px);
  min-height: 460px;
  overflow: hidden;
  background: var(--page-map-bg);
}
.hero-map .map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
body.dark .hero-map .leaflet-tile-pane { filter: brightness(0.65) saturate(0.75); }
.hero-map-overlay {
  position: absolute; inset: 0; z-index: 400; pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(12,24,16,0.86) 0%,
    rgba(12,24,16,0.52) 32%,
    rgba(12,24,16,0.12) 58%,
    transparent 100%
  );
}
body.dark .hero-map-overlay {
  background: linear-gradient(
    to top,
    rgba(4,10,6,0.92) 0%,
    rgba(4,10,6,0.60) 35%,
    rgba(4,10,6,0.18) 60%,
    transparent 100%
  );
}
.hero-map-overlay-top {
  position: absolute; top: 0; left: 0; right: 0; height: 120px; z-index: 400;
  background: linear-gradient(to bottom, rgba(12,24,16,0.38) 0%, transparent 100%);
  pointer-events: none;
}
body.dark .hero-map-overlay-top {
  background: linear-gradient(to bottom, rgba(4,10,6,0.45) 0%, transparent 100%);
}
.hero-map-content {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 500;
  padding: 0 40px 60px;
  display: flex; flex-direction: column; gap: 0;
  pointer-events: none;
}
.hero-map-content a { pointer-events: auto; }
@media (max-width: 700px) { .hero-map-content { padding: 0 20px 40px; } }
.hero-map-breadcrumb {
  font-size: 12px; color: rgba(255,255,255,0.55);
  margin-bottom: 10px; display: flex; gap: 5px; align-items: center; flex-wrap: wrap;
}
.hero-map-breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.hero-map-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.05;
  color: #ffffff; margin-bottom: 8px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.2);
}
.hero-map-subtitle {
  font-size: 15px; color: rgba(255,255,255,0.7);
  line-height: 1.5; max-width: 480px; margin-bottom: 20px;
}
.hero-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-stat {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 9999px; padding: 8px 16px; color: #fff;
}
body.dark .hero-stat { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.22); }
.hero-stat-val { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.7); margin-left: 1px; }
.hero-map-badge {
  position: absolute; top: 20px; right: 20px; z-index: 500;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 13px; border-radius: 9999px; letter-spacing: 0.02em;
}
.hero-map-attr {
  position: absolute; bottom: 8px; right: 12px; z-index: 500;
  font-size: 9px; color: rgba(255,255,255,0.45);
}
.hero-map-attr a { color: rgba(255,255,255,0.55); }

/* ── Content grid ── */
.content {
  max-width: 900px; margin: 0 auto; padding: 48px 24px;
  display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start;
}
@media (max-width: 700px) { .content { grid-template-columns: 1fr; } }
.content-single { max-width: 900px; margin: 0 auto; padding: 48px 24px; }

.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--page-fg3); margin-bottom: 14px;
}
.description { font-size: 16px; line-height: 1.75; color: var(--page-fg2); margin-bottom: 32px; }
.description p + p { margin-top: 14px; }
body.dark .description, body.dark .description p { color: #a8bab0; line-height: 1.8; }

/* ── Photos ── */
.image-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 8px; }
@media (max-width: 700px) { .image-grid { grid-template-columns: 1fr 1fr; } }
.image-ph {
  aspect-ratio: 4/3; border-radius: 12px;
  background: var(--page-surface2);
  display: block; overflow: hidden; position: relative;
}
.image-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-ph { cursor: zoom-in; }
.image-attr { font-size: 11px; color: var(--page-fg3); line-height: 1.5; margin-bottom: 32px; }
.image-attr a { color: var(--page-fg3); }

/* ── Photo modal (lightbox) ── */
.photo-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.photo-modal[hidden] { display: none; }
.photo-modal-backdrop {
  position: absolute; inset: 0; background: rgba(10, 16, 13, 0.88);
}
.photo-modal-figure {
  position: relative; z-index: 1; max-width: min(92vw, 1100px); max-height: 90vh;
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.photo-modal-figure img {
  max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #111;
}
.photo-modal-figure figcaption {
  color: #eef2ef; font-size: 13px; line-height: 1.5; text-align: center; max-width: 100%;
}
.photo-modal-figure figcaption a { color: #eef2ef; text-decoration: underline; }
.photo-modal-close, .photo-modal-nav {
  position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 9999px; border: none; cursor: pointer;
  background: rgba(255,255,255,0.12); color: #fff;
}
.photo-modal-close:hover, .photo-modal-nav:hover { background: rgba(255,255,255,0.22); }
.photo-modal-close { top: 18px; right: 18px; }
.photo-modal-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.photo-modal-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .photo-modal-close { top: 10px; right: 10px; }
  .photo-modal-prev { left: 6px; }
  .photo-modal-next { right: 6px; }
}

/* ── Tags ── */
.tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 32px; }
.tag {
  padding: 5px 12px; border-radius: 9999px; font-size: 13px; font-weight: 500;
  background: var(--page-pill-bg); color: var(--page-pill-fg);
  border: 1px solid rgba(43,85,68,0.18);
}
body.dark .tag { background: rgba(255,255,255,0.07); color: #a8bab0; border-color: rgba(255,255,255,0.10); }

/* ── Elevation profile ── */
.elevation-card {
  background: var(--page-surface); border: 1px solid var(--page-border);
  border-radius: 16px; padding: 16px 20px; margin-bottom: 32px;
  box-shadow: var(--page-shadow-sm);
}
.elevation-card svg { width: 100%; height: 120px; display: block; }
.elevation-line { stroke: var(--page-accent); }
.elevation-fill { fill: var(--page-accent-t); }

/* ── GPX card ── */
.gpx-card {
  background: var(--page-surface);
  border: 1px solid var(--page-border);
  border-radius: 16px; padding: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: var(--page-shadow-sm);
}
.gpx-info { display: flex; flex-direction: column; gap: 3px; }
.gpx-title { font-size: 15px; font-weight: 600; color: var(--page-fg1); }
.gpx-meta { font-size: 13px; color: var(--page-fg2); }
.gpx-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--page-surface2); color: var(--page-fg1);
  border: 1px solid var(--page-border);
  padding: 9px 16px; border-radius: 9999px;
  font-size: 13px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background 180ms; cursor: pointer;
}
.gpx-btn:hover { background: var(--page-border); }
body.dark .gpx-btn { background: var(--page-surface2); border-color: rgba(255,255,255,0.12); }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.app-card {
  background: var(--page-accent-t);
  border: 1.5px solid var(--page-accent);
  border-radius: 16px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--page-shadow-md);
}
body:not(.dark) .app-card { border-color: rgba(43,85,68,0.35); background: rgba(43,85,68,0.06); }
body.dark .app-card { background: rgba(78,148,100,0.12); border-color: rgba(78,148,100,0.32); }
.app-card-title { font-size: 18px; font-weight: 700; letter-spacing: -0.025em; color: var(--page-fg1); line-height: 1.3; }
.app-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--page-accent); color: #fff;
  padding: 14px 20px; border-radius: 9999px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  letter-spacing: -0.01em; transition: background 180ms;
  box-shadow: 0 2px 8px rgba(47,93,80,0.25);
  border: none; cursor: pointer; width: 100%;
}
.app-cta-btn:hover { background: var(--page-accent-h); }
.trust-pills { display: flex; flex-direction: column; gap: 6px; }
.trust-pill { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--page-fg2); }
.trust-pill-dot { width: 6px; height: 6px; border-radius: 3px; background: var(--page-accent); flex-shrink: 0; }

.store-badges { display: flex; flex-direction: column; gap: 8px; }
.store-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--page-surface); border: 1px solid var(--page-border);
  padding: 10px 14px; border-radius: 10px; text-decoration: none;
  transition: border-color 180ms; cursor: pointer;
  box-shadow: var(--page-shadow-sm);
}
.store-badge:hover { border-color: var(--page-accent); }
.store-badge-icon { width: 28px; height: 28px; flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; }
.store-badge-sub { font-size: 10px; color: var(--page-fg3); }
.store-badge-name { font-size: 14px; font-weight: 600; color: var(--page-fg1); letter-spacing: -0.01em; }

.detail-card {
  background: var(--page-surface); border: 1px solid var(--page-border);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--page-shadow-sm);
}
.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--page-border);
  font-size: 14px; gap: 12px;
}
.detail-row:last-child { border-bottom: none; }
body.dark .detail-row { border-color: rgba(255,255,255,0.08); }
.detail-key { color: var(--page-fg2); }
.detail-val { font-weight: 600; color: var(--page-fg1); text-align: right; }

/* ── CTA banner ── */
.cta-banner {
  background: var(--page-cta-bg);
  border-top: 1px solid var(--page-border);
  padding: 64px 24px;
  text-align: center;
}
.cta-banner-inner { max-width: 600px; margin: 0 auto; }
.cta-banner h2 { font-size: clamp(22px, 4vw, 36px); font-weight: 600; letter-spacing: -0.03em; color: #e8f0ea; margin-bottom: 12px; }
.cta-banner p { font-size: 16px; color: rgba(255,255,255,0.68); line-height: 1.6; margin-bottom: 28px; }
body.dark .cta-banner { background: #07100a; }
body.dark .cta-banner h2 { color: #edeae4; }
body.dark .cta-banner p { color: #7a9080; }
.cta-banner-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-primary {
  display: flex; align-items: center; gap: 8px;
  background: var(--page-accent); color: #fff;
  padding: 14px 28px; border-radius: 9999px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  letter-spacing: -0.01em; transition: background 180ms;
}
.cta-primary:hover { background: var(--page-accent-h); }
.cta-secondary {
  display: flex; align-items: center; gap: 8px;
  background: transparent; color: rgba(255,255,255,0.82);
  padding: 14px 28px; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.28);
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: border-color 180ms, color 180ms;
}
.cta-secondary:hover { color: #fff; border-color: rgba(255,255,255,0.65); }
body.dark .cta-secondary { color: #a8bab0; border-color: rgba(255,255,255,0.18); }
body.dark .cta-secondary:hover { color: #edeae4; border-color: rgba(255,255,255,0.4); }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--page-border);
  padding: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo img { width: 22px; height: 22px; opacity: 0.6; }
.footer-logo-text { font-size: 15px; font-weight: 600; letter-spacing: -0.03em; color: var(--page-fg3); }
body.dark .footer-logo-text { color: #5c6e62; }
.footer-links { display: flex; gap: 16px; }
.footer-link { font-size: 13px; color: var(--page-fg3); text-decoration: none; }
.footer-link:hover { color: var(--page-fg2); }
body.dark .footer-link { color: #3e5044; }
body.dark .footer-link:hover { color: #7a9080; }

/* ── Home hero + search ── */
.home-hero {
  background: var(--page-nav);
  padding: 72px 24px 88px;
  text-align: center;
}
.home-hero h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.1;
  color: #fff; margin-bottom: 10px;
}
.home-hero p { font-size: 16px; color: rgba(255,255,255,0.65); }
body.dark .home-hero { border-bottom: 1px solid var(--page-border); }

.search-panel {
  max-width: 760px; margin: -48px auto 0; position: relative; z-index: 10;
  background: var(--page-surface);
  border: 1px solid var(--page-border);
  border-radius: 20px; padding: 24px;
  box-shadow: var(--page-shadow-md);
}
.search-wrap { padding: 0 24px 24px; }
.search-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .search-grid { grid-template-columns: 1fr; } }
.search-field { display: flex; flex-direction: column; gap: 6px; }
.search-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--page-fg2); }
.search-help { font-size: 12px; color: var(--page-fg3); }
.search-input, .search-select {
  font-family: inherit; font-size: 15px; color: var(--page-fg1);
  background: var(--page-surface2); border: 1px solid var(--page-border);
  border-radius: 10px; padding: 11px 14px; width: 100%;
}
.search-input:focus, .search-select:focus { outline: 2px solid var(--page-accent); outline-offset: 1px; }
.search-row { display: flex; gap: 8px; align-items: center; }
.search-geo-btn {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--page-accent);
  background: var(--page-accent-t); border: 1px solid rgba(43,85,68,0.25);
  border-radius: 10px; padding: 11px 14px; cursor: pointer; white-space: nowrap;
}
body.dark .search-geo-btn { border-color: rgba(78,148,100,0.35); }
.search-actions { margin-top: 20px; display: flex; justify-content: flex-end; }
.search-status { font-size: 13px; color: var(--page-fg3); margin-top: 12px; min-height: 18px; }

.range-value { font-size: 13px; font-weight: 700; color: var(--page-fg1); }
input[type="range"] { width: 100%; accent-color: var(--page-accent); }

/* ── Results header + sort (homepage results section, direction A) ── */
.results-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--page-border);
  margin: 28px 0 24px;
}
.results-count { display: flex; flex-direction: column; gap: 4px; }
.results-count .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--page-fg3);
}
.results-count .n { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--page-fg1); }
.results-count .n b { color: var(--page-accent); }
.sort {
  display: flex; align-items: center; gap: 8px;
  background: var(--page-surface); border: 1px solid var(--page-border);
  border-radius: 9999px; padding: 9px 8px 9px 16px;
  font-size: 14px; color: var(--page-fg2); white-space: nowrap;
}
.sort svg { color: var(--page-fg3); }
.sort select {
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--page-fg1);
  background: transparent; border: none; outline: none; cursor: pointer;
  padding-right: 4px;
}
.sort select option { background: var(--page-surface); color: var(--page-fg1); }
@media (max-width: 700px) {
  .results-head { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
  .sort { width: 100%; }
  .sort select { flex: 1; min-width: 0; }
}

/* ── Route list, direction A: compact text-first cards ── */
.list-a { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 8px; }

.card-a {
  display: flex; align-items: center; gap: 18px;
  background: var(--page-surface); border: 1px solid var(--page-border);
  border-radius: 16px; padding: 14px;
  text-decoration: none; color: inherit;
  transition: border-color 160ms, background 160ms; box-shadow: var(--page-shadow-sm);
}
.card-a:hover { border-color: var(--page-accent); background: var(--page-surface2); }
.card-a:hover .card-a-go { opacity: 1; transform: translateX(0); }

.thumb-a {
  width: 84px; height: 84px; border-radius: 12px;
  flex-shrink: 0; overflow: hidden; position: relative;
}
.thumb-a img { width: 100%; height: 100%; object-fit: cover; display: block; }

.thumb-ph {
  width: 100%; height: 100%; background: var(--page-pill-bg); border: 1px solid var(--page-border);
  display: flex; align-items: center; justify-content: center; color: var(--page-fg3);
}

.card-a-body { flex: 1; min-width: 0; }
.card-a-title {
  font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: var(--page-fg1);
  line-height: 1.35; margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-a-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--page-fg2); font-weight: 500; }
.meta-item svg { color: var(--page-accent); flex-shrink: 0; }
.meta-item.dist-user { color: var(--page-fg3); }
.meta-item.dist-user svg { color: var(--page-fg3); }

.card-a-go {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--page-accent);
  opacity: 0; transform: translateX(-4px); transition: opacity 160ms, transform 160ms;
}
@media (max-width: 700px) { .card-a-go { display: none; } }

/* ── Empty state ── */
.empty {
  border: 1px dashed var(--page-border); border-radius: 20px;
  padding: 56px 32px; text-align: center; margin: 20px 0 8px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.empty-mark {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--page-pill-bg); border: 1px solid var(--page-border);
  display: flex; align-items: center; justify-content: center; color: var(--page-accent);
}
.empty h3 { font-size: 19px; font-weight: 700; color: var(--page-fg1); letter-spacing: -0.02em; }
.empty p { font-size: 15px; color: var(--page-fg2); max-width: 380px; line-height: 1.6; }

/* ── Loading skeleton (route list) ── */
.skel { background: var(--page-surface2); border-radius: 6px; position: relative; overflow: hidden; }
.skel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
  transform: translateX(-100%); animation: skel-shimmer 1.4s infinite;
}
@keyframes skel-shimmer { to { transform: translateX(100%); } }
.skel-card-a {
  display: flex; align-items: center; gap: 18px;
  background: var(--page-surface); border: 1px solid var(--page-border);
  border-radius: 16px; padding: 14px; margin-bottom: 10px;
}
.skel-thumb-a { width: 84px; height: 84px; border-radius: 12px; flex-shrink: 0; }

/* ── Load more ── */
.load-more { display: flex; justify-content: center; margin-top: 12px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--page-fg1);
  border: 1px solid var(--page-border); border-radius: 9999px; padding: 12px 22px;
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  cursor: pointer;
}
.btn-ghost:hover { background: var(--page-surface2); }

/* ── Location pages ── */
.loc-header { margin-bottom: 8px; }
.loc-header h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 600; letter-spacing: -0.03em; color: var(--page-fg1); }
.breadcrumb { font-size: 13px; color: var(--page-fg3); margin-bottom: 12px; display: flex; gap: 5px; flex-wrap: wrap; }
.breadcrumb a { color: var(--page-fg2); text-decoration: none; }
.breadcrumb a:hover { color: var(--page-accent); }
.loc-grid { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 28px; }
.loc-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--page-surface); border: 1px solid var(--page-border);
  padding: 9px 16px; border-radius: 9999px; text-decoration: none;
  font-size: 14px; font-weight: 600; color: var(--page-fg1);
  transition: border-color 180ms; box-shadow: var(--page-shadow-sm);
}
.loc-pill:hover { border-color: var(--page-accent); }
.loc-pill-count { font-size: 12px; font-weight: 500; color: var(--page-fg3); }

/* ── Footer contact reveal (button styled as a footer link) ── */
.footer-contact {
  background: none; border: none; font-family: inherit; cursor: pointer;
  padding: 0; text-align: left;
}

/* ── Coming-soon landing ── */
.cs-hero {
  position: relative;
  background-color: var(--page-nav); /* fallback / tint base until the photo loads */
  background-image:
    linear-gradient(180deg, rgba(12,20,14,0.52) 0%, rgba(12,20,14,0.60) 52%, rgba(12,20,14,0.80) 100%),
    url('/img/hero.jpg');
  background-size: cover;
  background-position: center 42%;
  padding: 120px 24px 128px;
  text-align: center;
}
body.dark .cs-hero { border-bottom: 1px solid var(--page-border); }
.cs-hero h1, .cs-hero-sub { text-shadow: 0 1px 20px rgba(0,0,0,0.35); }
.cs-hero-brand {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 44px;
}
.cs-hero-brand img { width: 52px; height: 52px; display: block; }
.cs-hero-wordmark { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.cs-hero-wordmark .rh { color: rgba(255,255,255,0.95); }
.cs-hero-wordmark .ike { color: rgba(255,255,255,0.75); }
.cs-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: #7fbf98; margin-bottom: 18px;
}
.cs-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1.08;
  color: #fff; max-width: 760px; margin: 0 auto 18px;
}
.cs-hero-sub { font-size: clamp(16px, 2.2vw, 19px); color: rgba(255,255,255,0.68); letter-spacing: -0.01em; }

.cs-page { max-width: 860px; margin: 0 auto; padding: 0 24px 96px; }

.cs-intro { max-width: 620px; margin: 80px auto 0; text-align: center; }
.cs-intro p { font-size: 16.5px; line-height: 1.8; color: var(--page-fg2); }
.cs-intro p + p { margin-top: 16px; }

.cs-values {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 72px;
}
@media (max-width: 640px) { .cs-values { grid-template-columns: 1fr; } }
.cs-value {
  display: flex; align-items: center; gap: 16px;
  background: var(--page-surface); border: 1px solid var(--page-border);
  border-radius: 16px; padding: 18px 20px;
  box-shadow: var(--page-shadow-sm);
}
.cs-value-icon {
  width: 40px; height: 40px; border-radius: 9999px; flex-shrink: 0;
  background: var(--page-accent-t); color: var(--page-accent);
  display: flex; align-items: center; justify-content: center;
}
.cs-value p { font-size: 14.5px; line-height: 1.55; color: var(--page-fg2); }
.cs-value strong { color: var(--page-fg1); font-weight: 700; }

.cs-tiers-wrap { margin-top: 88px; }
.cs-tiers {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--page-surface); border: 1px solid var(--page-border);
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--page-shadow-md);
}
@media (max-width: 640px) { .cs-tiers { grid-template-columns: 1fr; } }
.cs-tier { padding: 30px 30px 34px; }
.cs-tier-pro { background: var(--page-accent-t); border-left: 1px solid var(--page-border); }
@media (max-width: 640px) { .cs-tier-pro { border-left: none; border-top: 1px solid var(--page-border); } }
body.dark .cs-tier-pro { background: rgba(78,148,100,0.10); }
.cs-tier h2 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.025em;
  color: var(--page-fg1); margin-bottom: 18px;
}
.cs-tier-pro h2 { color: var(--page-accent); }
.cs-tier-note { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--page-fg2); }
.cs-tier ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.cs-tier li {
  position: relative; padding-left: 26px;
  font-size: 14.5px; line-height: 1.5; color: var(--page-fg2);
}
.cs-tier li::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 15px; height: 15px;
  background: currentColor;
  color: var(--page-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cs-block { margin-top: 88px; text-align: center; }
.cs-eyebrow-body { color: var(--page-fg3); margin-bottom: 14px; }
.cs-block h2 {
  font-size: clamp(22px, 3.4vw, 30px); font-weight: 600; letter-spacing: -0.03em;
  color: var(--page-fg1); margin-bottom: 12px;
}
.cs-block p {
  font-size: 15.5px; line-height: 1.7; color: var(--page-fg2);
  max-width: 520px; margin: 0 auto;
}
.cs-btn { display: inline-flex; width: auto; margin-top: 24px; text-decoration: none; }

.cs-trial {
  background: var(--page-surface); border: 1px solid var(--page-border);
  border-radius: 20px; padding: 30px 28px;
  box-shadow: var(--page-shadow-sm);
}
.cs-trial p strong { color: var(--page-fg1); }

.cs-support p { color: var(--page-fg3); font-size: 14.5px; }

/* ── Coming-soon: app-screenshots gallery ── */
.cs-shots { margin-top: 88px; text-align: center; }
.cs-shots h2 {
  font-size: clamp(22px, 3.4vw, 30px); font-weight: 600; letter-spacing: -0.03em;
  color: var(--page-fg1); margin-bottom: 12px;
}
.cs-shots-lead {
  font-size: 15.5px; line-height: 1.7; color: var(--page-fg2);
  max-width: 520px; margin: 0 auto 40px;
}
.cs-shots-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 720px; margin: 0 auto;
}
@media (max-width: 640px) { .cs-shots-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.cs-shot {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: none; border: none; padding: 0; cursor: pointer; font: inherit;
}
.cs-shot-frame {
  display: block; width: 100%; aspect-ratio: 1080 / 2121; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--page-border);
  background: var(--page-surface2); box-shadow: var(--page-shadow-md);
  transition: transform 180ms, box-shadow 180ms;
}
.cs-shot:hover .cs-shot-frame, .cs-shot:focus-visible .cs-shot-frame {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.16), 0 2px 6px rgba(0,0,0,0.08);
}
.cs-shot-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-shot-dark { display: none; }
body.dark .cs-shot-light { display: none; }
body.dark .cs-shot-dark { display: block; }
.cs-shot-label { font-size: 14px; font-weight: 600; color: var(--page-fg2); letter-spacing: -0.01em; }

/* Light/dark switch inside the screenshot lightbox. */
.cs-shot-modes {
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 9999px;
  background: rgba(255,255,255,0.14);
}
.cs-shot-mode {
  border: none; background: transparent; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 600; padding: 6px 18px; border-radius: 9999px;
  color: rgba(255,255,255,0.72); transition: background 150ms, color 150ms;
}
.cs-shot-mode:hover { color: #fff; }
.cs-shot-mode.active { background: #fff; color: #161814; }

/* ── Simple prose pages ── */
.prose { max-width: 680px; margin: 0 auto; padding: 48px 24px; }
.prose h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 18px; color: var(--page-fg1); }
.prose h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 28px 0 10px; color: var(--page-fg1); }
.prose p, .prose li { font-size: 15px; line-height: 1.75; color: var(--page-fg2); margin-bottom: 12px; }
.prose ul { padding-left: 20px; }

/* ── Prijsonderzoek (Van Westendorp) ── */
.ps-page { max-width: 640px; margin: 0 auto; padding: 48px 24px 96px; }
.ps-head { text-align: center; margin-bottom: 32px; }
.ps-head h1 {
  font-size: clamp(28px, 4.5vw, 40px); font-weight: 600; letter-spacing: -0.03em;
  color: var(--page-fg1); margin-bottom: 14px;
}
.ps-intro { font-size: 15.5px; line-height: 1.7; color: var(--page-fg2); }
.ps-recap {
  font-size: 14px; line-height: 1.65; color: var(--page-fg3); text-align: left;
  background: var(--page-surface); border: 1px solid var(--page-border);
  border-radius: 12px; padding: 12px 16px; margin-top: 12px;
}
.ps-recap strong { color: var(--page-accent); font-weight: 700; }
.ps-form, .ps-again, .ps-thanks {
  background: var(--page-surface); border: 1px solid var(--page-border);
  border-radius: 20px; padding: 28px; box-shadow: var(--page-shadow-md);
}
.ps-q + .ps-q { margin-top: 22px; }
.ps-q label {
  display: block; font-size: 14.5px; font-weight: 600; line-height: 1.5;
  color: var(--page-fg1); margin-bottom: 8px;
}
.ps-amount { position: relative; max-width: 180px; }
.ps-euro {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--page-fg3); font-size: 15px; pointer-events: none;
}
.ps-input {
  font-family: inherit; font-size: 15px; color: var(--page-fg1);
  background: var(--page-surface2); border: 1px solid var(--page-border);
  border-radius: 10px; padding: 11px 14px; width: 100%;
}
.ps-amount .ps-input { padding-left: 30px; }
.ps-input:focus { outline: 2px solid var(--page-accent); outline-offset: 1px; }
.ps-input-invalid { border-color: #c4534a; }
.ps-field-error { font-size: 13px; line-height: 1.5; color: #b0453d; margin-top: 6px; }
body.dark .ps-field-error { color: #e08078; }
.ps-field-error:empty { display: none; }
.ps-form-error {
  font-size: 14px; line-height: 1.6; color: #b0453d;
  background: rgba(196,83,74,0.08); border: 1px solid rgba(196,83,74,0.35);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 22px;
}
body.dark .ps-form-error { color: #e08078; }
/* Honeypot: buiten beeld, niet display:none (te doorzichtig voor simpele bots). */
.ps-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ps-privacy { font-size: 13px; color: var(--page-fg3); line-height: 1.6; margin-top: 22px; }
.ps-submit { margin-top: 18px; width: auto; padding-left: 28px; padding-right: 28px; }
.ps-thanks { text-align: center; }
.ps-thanks h1 {
  font-size: clamp(26px, 4vw, 36px); font-weight: 600; letter-spacing: -0.03em;
  color: var(--page-fg1); margin: 16px 0 10px;
}
.ps-thanks p { font-size: 15.5px; line-height: 1.7; color: var(--page-fg2); }
.ps-redirect { font-size: 13px; color: var(--page-fg3); margin-top: 10px; }
.ps-check {
  width: 52px; height: 52px; margin: 0 auto; border-radius: 9999px;
  background: var(--page-accent-t); color: var(--page-accent);
  display: flex; align-items: center; justify-content: center;
}
.ps-again { text-align: center; margin-bottom: 28px; }
.ps-again h2 {
  font-size: 20px; font-weight: 700; letter-spacing: -0.025em;
  color: var(--page-fg1); margin-bottom: 10px;
}
.ps-again p { font-size: 14.5px; line-height: 1.65; color: var(--page-fg2); }
.ps-again-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.ps-again-btns .cs-btn { margin-top: 0; }

/* ── Admin: prijsonderzoek-resultaten ── */
.pr-page { max-width: 960px; margin: 0 auto; padding: 48px 24px 96px; }
.pr-page h1 {
  font-size: clamp(26px, 4vw, 36px); font-weight: 600; letter-spacing: -0.03em;
  color: var(--page-fg1); margin-bottom: 6px;
}
.pr-sub { font-size: 14px; color: var(--page-fg3); margin-bottom: 24px; }
.pr-note {
  font-size: 14px; line-height: 1.6; color: #7a5a1c;
  background: rgba(217,150,43,0.10); border: 1px solid rgba(217,150,43,0.4);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 24px;
}
body.dark .pr-note { color: #e0b568; }
.pr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 24px; }
.pr-stat {
  background: var(--page-surface); border: 1px solid var(--page-border);
  border-radius: 14px; padding: 16px 18px; box-shadow: var(--page-shadow-sm);
}
.pr-stat-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--page-fg3); margin-bottom: 6px; }
.pr-stat-value { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--page-fg1); }
.pr-stat-value.accent { color: var(--page-accent); }
.pr-stat-sub { font-size: 12px; color: var(--page-fg3); margin-top: 4px; line-height: 1.5; }
.pr-chart {
  background: var(--page-surface); border: 1px solid var(--page-border);
  border-radius: 20px; padding: 24px; box-shadow: var(--page-shadow-sm); margin-bottom: 24px;
}
.pr-chart h2, .pr-table-head h2 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--page-fg1); margin-bottom: 14px;
}
.pr-chart svg { width: 100%; height: auto; display: block; }
.pr-chart-axis { font-size: 11px; fill: var(--page-fg3); }
.pr-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--page-fg2); margin-top: 14px; }
.pr-legend span { display: inline-flex; align-items: center; gap: 7px; }
.pr-legend i { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.pr-table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pr-table-head h2 { margin-bottom: 0; }
.pr-csv {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--page-fg1);
  border: 1px solid var(--page-border); border-radius: 9999px; padding: 9px 18px;
  font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.pr-csv:hover { background: var(--page-surface2); }
.pr-table-wrap {
  overflow-x: auto; background: var(--page-surface);
  border: 1px solid var(--page-border); border-radius: 14px; box-shadow: var(--page-shadow-sm);
}
.pr-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pr-table th {
  text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--page-fg3);
  padding: 12px 14px; border-bottom: 1px solid var(--page-border); white-space: nowrap;
}
.pr-table td { padding: 10px 14px; border-bottom: 1px solid var(--page-border); color: var(--page-fg2); vertical-align: top; }
.pr-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-table th.num { text-align: right; }
.pr-table tr:last-child td { border-bottom: none; }
.pr-table td.wish { max-width: 320px; }
.pr-empty { padding: 28px; text-align: center; color: var(--page-fg3); font-size: 14px; }
