/* BFP Startseiten-Karte (Mapbox GL) */

.bfp-home-map {
  width: 100%;
  min-height: 360px;
  border-radius: 4px;
  overflow: hidden;
}

/* Basiskarte in Graustufen (Marker/Popups bleiben farbig, da eigene DOM-Ebenen) */
.bfp-home-map .mapboxgl-canvas {
  filter: grayscale(1);
}

/* Marker */
.bfp-marker {
  cursor: pointer;
  line-height: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
  transition: transform 0.15s ease;
  transform-origin: bottom center;
}
.bfp-marker:hover {
  transform: scale(1.12);
}

/* Cluster-Blase: nummerierter Kreis, wenn Marker zu nah beieinander liegen */
.bfp-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 50%;
  background: #1b2e18;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}
.bfp-cluster:hover {
  transform: scale(1.12);
}
.bfp-cluster--sm {
  width: 30px;
  height: 30px;
  font-size: 0.8125rem;
}
.bfp-cluster--md {
  width: 38px;
  height: 38px;
  font-size: 0.9375rem;
}
.bfp-cluster--lg {
  width: 46px;
  height: 46px;
  font-size: 1.0625rem;
}

/* Popup */
.bfp-map-popup-wrap .mapboxgl-popup-content {
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.bfp-map-popup {
  display: block;
  width: 170px;
  text-decoration: none;
  color: inherit;
}
.bfp-map-popup__thumb {
  display: block;
  width: 100%;
  height: 95px;
  object-fit: cover;
}
.bfp-map-popup__title {
  display: block;
  padding: 7px 9px;
  font-weight: 600;
  font-size: 0.625rem;
  line-height: 1.25;
  color: #1b2e18;
}
.bfp-map-popup:hover .bfp-map-popup__title {
  text-decoration: underline;
}

/* Schliessen-X oben rechts (quadratisch, X exakt zentriert via SVG) */
.bfp-map-popup-wrap .mapboxgl-popup-close-button {
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  /* Standard-Zeichen ausblenden (Glyphen-Metrik verschiebt es optisch) */
  color: transparent;
  font-size: 0;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 1.5 L10.5 10.5 M10.5 1.5 L1.5 10.5' stroke='%231b2e18' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 10px 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  z-index: 2;
}
.bfp-map-popup-wrap .mapboxgl-popup-close-button:hover {
  background-color: #ffffff;
}
