/* css_styles/forecast.css */

/* Ensure Bootstrap dropdown sits above Leaflet map panes */
.dropdown-menu {
  z-index: 2000 !important;
}

/* Leaflet panes are high z-index; keep them below UI overlays */
.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
  z-index: 400 !important;
}

.forecast-controls {
  position: relative;
  z-index: 2100;
}

/* Keep the overall aesthetic aligned with your lighter theme */
.forecast-controls .btn.active {
  background-color: #6c757d !important;
  color: #ffffff !important;
  border-color: #6c757d !important;
}

/* Map containers */
#forecastMapWrapper, #forecastMapWrapperLg {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

/* Mobile (collapsed) map */
#forecastMap {
  width: 100%;
  height: 360px;
}

/* Large-screen map always visible */
#forecastMapLg {
  width: 100%;
  height: 620px;
}

/* Map hint overlay */
.map-hint {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  font-size: 12px;
  color: #555;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
}

/* Leaflet circle marker styling (default) */
.leaflet-interactive {
  cursor: pointer;
}

/* Selected marker styling:
   Leaflet circle markers are SVG paths; easiest is a CSS class on the SVG path.
   We add the class via JS by using marker.getElement(). */
.forecast-marker-selected {
  stroke: #000000 !important;
  stroke-width: 3 !important;
  fill-opacity: 1 !important;
}

/* Meteogram image */
.forecast-img {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
}

/* Make the dropdowns/toggles not look cramped on small screens */
@media (max-width: 767px) {
  #forecastMap {
    height: 320px;
  }
}

/* --- Search suggestions dropdown --- */
#locationSuggestions {
  top: 100%;
  left: 0;
  z-index: 3000;            /* above Leaflet */
  max-height: 320px;
  overflow-y: auto;
  border-radius: 0.5rem;
}

#locationSuggestions .list-group-item {
  cursor: pointer;
}

/* Remove blue focus ring (inputs + buttons) */
#locationSearch:focus,
#runDropdown:focus,
#runDropdown:active,
#btnModelHarm:focus,
#btnModelIfs:focus,
.btn:focus,
.btn:active:focus,
.form-control:focus {
  box-shadow: none !important;
  outline: none !important;
  border-color: rgba(108,117,125,0.6) !important; /* subtle grey */
}

/* Dropdown item highlight grey */
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background-color: #6c757d !important;
  color: #ffffff !important;
}

.dropdown-menu .dropdown-item:hover {
  background-color: rgba(108, 117, 125, 0.15) !important;
}

/* Keep controls row above map panes */
.forecast-controls {
  position: relative;
  z-index: 2500;
}