/* --- Route: kaart + routestappen -------------------------------------------- */
.so-route {
  background: var(--cream);
  overflow: hidden;
}

.so-route__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

/* Kaart: MapLibre met kaartdata van OpenFreeMap (route.js), in de kleuren van de site
   (assets/map/style.json). */
.so-route__map-wrap { position: relative; }
.so-route__map {
  position: relative;
  z-index: 0;
  isolation: isolate; /* de kaartlagen blijven onder de vaste navigatiebalk */
  border-radius: var(--radius);
  overflow: hidden;
  height: 440px;
  border: 1.5px solid rgba(214, 162, 58, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: var(--cream);
  font-family: var(--sans);
}
/* Specifieker dan .maplibregl-map (position: relative) uit de MapLibre-css. */
.so-route__map .so-route__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Plaatsaanduiding tot de kaart geladen is (en in de editor of zonder WebGL) */
.so-route__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background:
    radial-gradient(circle at 50% 46%, rgba(251, 242, 221, 0.95) 0, rgba(251, 242, 221, 0) 55%),
    repeating-linear-gradient(0deg, rgba(214, 162, 58, 0.14) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(214, 162, 58, 0.14) 0 1px, transparent 1px 44px),
    var(--cream);
}
.so-route__placeholder-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.so-route__map.is-ready .so-route__placeholder { display: none; }

/* De H op de landingsplek, met het label erboven */
.so-heli-marker { width: 54px; height: 54px; }
.so-heli-pin {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
}
.so-heli-pin__pad {
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: 3px solid var(--gold-300);
  box-shadow:
    inset 0 0 0 3px var(--red),
    inset 0 0 0 4.5px rgba(255, 255, 255, 0.6),
    0 8px 18px -6px rgba(28, 18, 6, 0.6);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1;
}
.so-heli-pin__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(193, 33, 47, 0.28);
  animation: soHeliPulse 2.4s ease-out infinite;
}
@keyframes soHeliPulse {
  0% { transform: scale(0.65); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .so-heli-pin__pulse { animation: none; opacity: 0.4; }
}
.so-heli-marker__label {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--navy-800);
  color: var(--gold-100);
  border-radius: 999px;
  padding: 6px 13px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: var(--shadow-soft);
}
.so-heli-marker__label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--navy-800);
}

/* Knoppen en bronvermelding van MapLibre in de huisstijl */
.so-route__map .maplibregl-ctrl-group {
  background: var(--cream);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(214, 162, 58, 0.45);
}
.so-route__map .maplibregl-ctrl-group button + button { border-top-color: var(--cream-300); }
.so-route__map .maplibregl-ctrl-group button:hover { background-color: var(--cream-200); }
.so-route__map .maplibregl-ctrl-attrib {
  background: rgba(251, 242, 221, 0.92);
  color: var(--ink-soft);
  font-size: 11px;
}
.so-route__map .maplibregl-ctrl-attrib a { color: var(--ink-soft); }
.so-route__map .maplibregl-cooperative-gesture-screen {
  background: rgba(18, 32, 70, 0.72); /* --navy-800 */
  color: var(--gold-100);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
}

.so-route__directions { margin-top: 16px; }

/* Routestappen */
.so-route__steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.so-route__step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.so-route__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  background: var(--gold);
  color: #4a3408;
}
.so-route__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 4px;
}
.so-route__label { font-size: 1.06rem; font-family: var(--sans); color: var(--ink); }
.so-route__detail { font-size: 0.92rem; color: var(--ink-faint); font-family: var(--sans); }

/* Tip */
.so-route__tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
  padding: 16px 18px;
  background: rgba(193, 33, 47, 0.07);
  border-left: 3px solid var(--red);
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
  font-family: var(--sans);
  color: var(--ink-soft);
}
.so-route__tip-icon { flex-shrink: 0; }

@media (max-width: 900px) {
  .so-route__grid { grid-template-columns: 1fr; }
  .so-route__map { height: 340px; }
}
