/* BFP Schwarzwald-Wetter (Header-Icon, Wetterkarte, Ortsliste) */

.bfp-weather-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

/* Header-Link: Icon + Temperatur */
.bfp-weather-header {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 1rem;
  color: inherit;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.bfp-weather-header:hover {
  color: inherit;
  opacity: 0.75;
}
.bfp-weather-header .bfp-weather-icon {
  width: 22px;
  height: 22px;
}
.bfp-weather-header__temp {
  font-weight: 600;
  font-size: 0.875rem;
}
/* Mobile Variante (ohne Tagline): rechts außen im Header, mit Luft zum Rand */
.bfp-weather-header--mobile {
  margin-left: auto;
  margin-right: 0.5rem;
}

/* Karte */
.bfp-weather-map {
  width: 100%;
  min-height: 360px;
  border-radius: 4px;
  overflow: hidden;
}
.bfp-weather-map .mapboxgl-canvas {
  filter: grayscale(1);
}

/* Wetter-Marker: weisse Pille mit Icon + Temperatur */
.bfp-weather-marker {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px 3px 5px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  color: #1b2e18;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.bfp-weather-marker:hover {
  transform: scale(1.1);
}
.bfp-weather-marker .bfp-weather-icon {
  width: 20px;
  height: 20px;
}
.bfp-weather-marker__temp {
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
}

/* Popup */
.bfp-weather-popup {
  display: block;
  min-width: 150px;
  padding: 9px 11px;
  color: #1b2e18;
}
.bfp-weather-popup__title {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}
.bfp-weather-popup__line {
  display: block;
  font-size: 0.6875rem;
  line-height: 1.5;
}

/* Ortsliste unter der Karte */
.bfp-weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.bfp-weather-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: #ffffff;
  border: 1px solid rgba(27, 46, 24, 0.15);
  border-radius: 4px;
  color: #1b2e18;
}
.bfp-weather-card .bfp-weather-icon {
  width: 26px;
  height: 26px;
}
.bfp-weather-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.bfp-weather-card__name {
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bfp-weather-card__meta {
  font-size: 0.6875rem;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bfp-weather-card__temp {
  margin-left: auto;
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Attribution */
.bfp-weather-source {
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.7;
}
.bfp-weather-source a {
  color: inherit;
}
