/* =============================================================================
   Standorte-Karte (Leaflet + OpenStreetMap, self-hosted, DSGVO-freundlich)
   Interaktive Karte mit Pins aller Schweizer Seen, farbcodiert nach Preiszone.
   ============================================================================= */

.standorte-map-section {
  position: relative;
}

.standorte-map-wrap {
  position: relative;
  margin-top: 32px;
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  border: 1px solid var(--color-orange-border, rgba(246, 164, 30, 0.40));
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

#standorte-map {
  width: 100%;
  height: 520px;
  background: #0c1c2b;
  z-index: 1;
}

@media (max-width: 640px) {
  #standorte-map { height: 420px; }
}

/* Custom Pins (DivIcon, keine externen Bild-Dateien) */
.fb-pin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.4);
}
.fb-pin--z1 { background: #7fb9c6; }   /* Zone 1 – CHF 800 */
.fb-pin--z2 { background: #6cacd1; }   /* Zone 2 – CHF 1.000 */
.fb-pin--z3 { background: #f6a41e; }   /* Zone 3 – CHF 1.200 */
.fb-pin--hq {
  width: 22px;
  height: 22px;
  background: #2c5b70;
  border-color: #f2cd5c;
}

/* Popup im Dark-Theme */
.leaflet-popup-content-wrapper {
  background: #0e2233;
  color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(246, 164, 30, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.leaflet-popup-tip { background: #0e2233; }
.leaflet-popup-content { margin: 14px 16px; font-family: inherit; }
.fb-popup__name { font-weight: 700; font-size: 1.02rem; margin: 0 0 4px; color: #fff; }
.fb-popup__zone { font-size: 0.85rem; color: #cfe0e6; margin: 0 0 10px; }
.fb-popup__zone strong { color: #f6a41e; }
.fb-popup__route {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #081520;
  background: #f6a41e;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.fb-popup__route:hover { background: #f8b440; }
.leaflet-popup-close-button { color: #cfe0e6 !important; }

/* Legende */
.standorte-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  justify-content: center;
}
.standorte-map-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted, #9fb4bd);
}
.standorte-map-legend__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
}
.standorte-map-legend__dot--z1 { background: #7fb9c6; }
.standorte-map-legend__dot--z2 { background: #6cacd1; }
.standorte-map-legend__dot--z3 { background: #f6a41e; }
.standorte-map-legend__dot--hq { background: #2c5b70; border-color: #f2cd5c; }

/* Leaflet-Attribution dezent */
.leaflet-control-attribution {
  background: rgba(8, 21, 32, 0.7) !important;
  color: #9fb4bd !important;
}
.leaflet-control-attribution a { color: #6cacd1 !important; }
