/* ══════════════════════════════════════════════
   ROUTEKAART — gedeelde opmaak (homepage + dienstpagina's)
   Basisthema van de kaart (donkere tiles, zoomknoppen) staat in
   booking.css; hier alleen de route-elementen en de hero-kaart.
══════════════════════════════════════════════ */

/* Homepage: kaart verschijnt pas nadat een route is berekend */
.hero-map-wrap {
  width: calc(100% - 32px);
  max-width: 1112px;
  margin: 18px auto 0;
  border: 1px solid rgba(184, 150, 62, 0.3);
  border-radius: 10px;
  overflow: hidden;
  background: #12151c;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-map-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-map-wrap[hidden] {
  display: none;
}

.hero-map-wrap #calc-map {
  width: 100%;
  height: clamp(280px, 42vw, 420px);
  min-height: 0;
}

/* Vertrek (A) / bestemming (B) — gouden pins */
.cb-map-pin {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(160deg, #d4af6a, #b8963e);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(184, 150, 62, 0.22), 0 4px 14px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  font-family: var(--font-body, sans-serif);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}

.cb-map-pin--pulse::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(184, 150, 62, 0.55);
  animation: cbPinPulse 2.2s ease-out infinite;
}

@keyframes cbPinPulse {
  0% {
    transform: scale(0.55);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Adres-tooltips bij de pins */
#calc-map .leaflet-tooltip.cb-map-tip {
  background: rgba(10, 10, 10, 0.92);
  color: #eee;
  border: 1px solid rgba(184, 150, 62, 0.4);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  max-width: 240px;
  white-space: normal;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

#calc-map .leaflet-tooltip.cb-map-tip::before {
  display: none;
}

/* Afstand + reistijd badge op de kaart */
.cb-map-badge {
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(184, 150, 62, 0.45);
  border-radius: 4px;
  color: #d4af6a;
  padding: 8px 12px;
  font-size: 0.7rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cb-map-badge strong {
  color: #fff;
  font-weight: 600;
}

/* Attributie — verplicht, maar klein en donker */
#calc-map .leaflet-control-attribution {
  background: rgba(10, 10, 10, 0.55);
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  padding: 2px 6px;
}

#calc-map .leaflet-control-attribution a {
  color: rgba(212, 175, 106, 0.65);
}

@media (max-width: 768px) {
  .hero-map-wrap {
    width: calc(100% - 24px);
    margin-top: 14px;
    border-radius: 8px;
  }

  .hero-map-wrap #calc-map {
    height: clamp(240px, 60vw, 340px);
  }

  .cb-map-badge {
    font-size: 0.62rem;
    padding: 6px 9px;
    letter-spacing: 1.2px;
  }
}
