#syca-map {
  width: 80%;
  height: clamp(400px, 60vh, 800px);
  margin: 3rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 215, 0, 0.08);
}

.leaflet-container {
  background: #1B3546 !important;
  font-family: inherit;
}

/* Override Leaflet default popup background */
.leaflet-popup-content-wrapper {
  background-color: #1B3546;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.leaflet-popup-tip {
  background: #1B3546;
}

/* Popup text styling – jetzt zentriert & größer */
.leaflet-popup-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #ffffff;
  font-family: "Helvetica Neue", sans-serif;
  padding: 2px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.leaflet-popup-content strong {
  color: #ffffff;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.popup-count {
  font-size: 1.4rem;
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}

.popup-count.has-yachts {
  color: #f5c542; /* Gold */
}

.popup-count.no-yachts {
  color: #ffffff; /* Weiß */
  font-style: italic;
}

/* optional: etwas Abstand im Popup */
.leaflet-popup-content .map-contactlight-btn {
  margin-top: 10px;
}


.harbor-icon {
  background: none;
  border-radius: 50%;
  cursor: pointer;
}

/* Basiszustand: leicht sanfter Schein & Transition */
.harbor-icon-inner {
  width: 36px;
  height: 36px;
  background-image: url('/media/images/ux/logos/Schaefer_Yacht_Charter_Logo-KreisRundTransparent.svg');
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  filter: brightness(1);
  box-shadow: 0 0 0 rgba(244, 224, 77, 0);
  transition:
    transform 0.18s ease-out,
    filter 0.18s ease-out,
    box-shadow 0.18s ease-out;
}

/* Graue Häfen bleiben dezenter */
.harbor-icon-grey .harbor-icon-inner {
  filter: grayscale(100%) brightness(0.6) contrast(1.1);
  opacity: 0.85;
}

/* Hover: ein Hauch Zoom & Goldschein – nicht aufdringlich */
.harbor-icon:hover .harbor-icon-inner {
  transform: scale(1.08);
  filter: brightness(1.15);
  box-shadow: 0 0 10px rgba(244, 224, 77, 0.65);
}

/* Optional: Graue Marker nur ganz leicht reagieren lassen */
.harbor-icon.harbor-icon-grey:hover .harbor-icon-inner {
  transform: scale(1.04);
  filter: grayscale(90%) brightness(0.8);
  box-shadow: 0 0 6px rgba(244, 224, 77, 0.3);
}

/* ============================================
   Bugfix: Leaflet darf nicht über das Menü ragen
   ============================================ */

.leaflet-pane,
.leaflet-map-pane,
.leaflet-tile-pane,
.leaflet-overlay-pane,
.leaflet-shadow-pane,
.leaflet-marker-pane,
.leaflet-tooltip-pane,
.leaflet-popup-pane {
  z-index: 1 !important;
}

#syca-map,
.syca-map {
  position: relative;
  z-index: 1;
}

#header.sticky-header {
  position: sticky;
  top: 0;
  z-index: 9999 !important;
}

/* Leichte Abend-Tönung nur über den Kacheln */
#syca-map .leaflet-tile-pane {
  position: relative;
}

#syca-map .leaflet-tile-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* 0.35–0.45 nach Geschmack */
  background: rgba(5, 20, 35, 0.38);
  mix-blend-mode: multiply; /* sorgt für ruhiges Abdunkeln */
}

/* Hafen-Contactlight: standardmäßig verborgen */
.contactlight-box.cl-hidden {
  display: none;
}

.map-contactlight-btn {
  margin-top: 10px;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid #f4e04d;
  background: rgba(0,0,0,0.25);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.15s ease,
    box-shadow 0.18s ease;
}

.map-contactlight-btn:hover {
  background: #f4e04d;
  color: #1B3546;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(244, 224, 77, 0.6);
}


/* Buttons im Leaflet-Popup – exakt wie Contactlight-Button */
.leaflet-popup-content .map-contactlight-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 18px;
  border-radius: 4px;
  border: 1px solid #f4e04d;
  background: rgba(0,0,0,0.25) !important;
  color: #ffffff !important;
  font-size: 1.1rem;
  cursor: pointer;
  text-decoration: none !important;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.15s ease,
    box-shadow 0.18s ease;
}

.leaflet-popup-content .map-contactlight-btn:hover {
  background: #f4e04d !important;
  color: #1B3546 !important;
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(244, 224, 77, 0.6);
}
