/* Ensure marker icons are properly displayed */
.custom-weather-marker {
  background: none !important;
  border: none !important;
}

.weather-map-shell {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(48, 72, 94, 0.18);
  background:
    radial-gradient(circle at 5% 10%, rgba(153, 205, 255, 0.18), transparent 36%),
    radial-gradient(circle at 95% 90%, rgba(255, 191, 133, 0.16), transparent 42%),
    linear-gradient(160deg, #f8fbff 0%, #f4f8ff 48%, #fdf7ef 100%);
  box-shadow: 0 16px 34px rgba(15, 37, 58, 0.14);
}

.weather-map-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(48, 72, 94, 0.16);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
}

.weather-map-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2f45;
  letter-spacing: 0.01em;
}

.weather-map-meta {
  font-size: 0.76rem;
  font-weight: 600;
  color: #38516d;
  opacity: 0.9;
}

.weather-map-container {
  height: min(58vh, 560px);
  min-height: 360px;
  width: 100%;
}
/* Remove default leaflet icon shadows */
.leaflet-shadow-pane {
  display: none;
}

/* Style popup better */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 8px 18px rgba(16, 29, 43, 0.22);
  border: 1px solid rgba(35, 63, 91, 0.18);
}

.leaflet-popup-content {
  margin: 10px 12px;
  line-height: 1.5;
}

/* Fix marker icon positions */
.leaflet-marker-icon {
  background: none !important;
}

/* Fix map container z-index issues */
.leaflet-container {
  z-index: 1;
}

.weather-marker {
  border-radius: 12px;
  padding: 6px 8px;
  min-width: 64px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(45, 89, 132, 0.34);
  box-shadow: 0 7px 15px rgba(16, 36, 58, 0.22);
  transform: translate(-50%, -100%);
}

.weather-marker--temp {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 255, 0.94));
}

.weather-marker--forecast {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 237, 0.95));
}

.weather-marker__icon {
  font-size: 16px;
  line-height: 1;
  margin-bottom: 4px;
}

.weather-marker__temp {
  color: #be2d2d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
}

.weather-marker__wind {
  color: #2b445d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.weather-marker__area {
  color: #253c53;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 92px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .weather-map-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .weather-map-container {
    height: 54vh;
    min-height: 320px;
  }

  .weather-marker {
    min-width: 58px;
    padding: 5px 7px;
  }

  .weather-marker__icon {
    font-size: 14px;
  }
}
