/* =========================
   Wind Map Chart
   ========================= */

.wind-map-chart .chart-body {
  padding: 0;
  overflow: hidden;
}

.wind-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.wind-map-mini {
  width: 100%;
  height: 100%;
}

.wind-map-overlay {
  position: absolute;
  inset: 0;
  display: none;
  /* Hidden - die Marker werden stattdessen verwendet */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  pointer-events: none;
  z-index: 10;
}

.wind-map-arrow {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  position: relative;
  background: transparent;
  backdrop-filter: none;
  z-index: 20;
  pointer-events: auto;
}

.wind-map-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 18px solid #22c55e;
  transform: translateX(-50%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.wind-map-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1b1f23;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
  position: absolute;
  bottom: 20px;
  z-index: 20;
  display: none;
}

.wind-map-dir {
  font-size: 1.3rem;
}

.wind-map-speed {
  font-size: 1rem;
  opacity: 0.85;
}

.wind-heatmap-ring {
  /* Schatten entfernt - Heatmap im Hintergrund */
}

.wind-map-attribution {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.75);
  padding: 2px 6px;
  border-radius: 6px;
}


.wind-map-chart .legend {
  display: none !important;
}

.wind-map-attribution a {
  color: inherit;
  text-decoration: none;
}

html[data-bs-theme="dark"] .wind-map-label {
  color: #e9ecef;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

html[data-bs-theme="dark"] .wind-map-arrow {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(86, 156, 255, 0.55);
}

html[data-bs-theme="dark"] .wind-map-attribution {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.45);
}


/* Wind Heatmap Marker (fixed-size, nicht zoom-abhängig) */
.wind-heatmap-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.wind-heatmap-marker svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.wind-heatmap-marker path {
  pointer-events: visiblePainted;
}

/* Wind Arrow Marker (grüner Pfeil, fixed-size) */
.wind-arrow-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.wind-arrow-marker .wind-map-arrow {
  pointer-events: auto;
}

/* Fullscreen-Modus */
.wind-map-chart:fullscreen {
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.wind-map-chart:fullscreen .chart-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wind-map-chart:fullscreen .chart-body {
  width: 100vw;
  height: 100vh;
  padding: 0;
}

.wind-map-chart:fullscreen .wind-map {
  inset: 0;
}

.btn-fullscreen-map {
  margin-left: auto;
}