/* Native hidden attribute must always win over component display rules. */
[hidden] {
  display: none !important;
}

/* Hourly forecast: one continuous horizontal strip on every screen */
.hourly-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 4px 2px 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.hourly-list::-webkit-scrollbar {
  height: 4px;
}
.hourly-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
}
.hourly-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
}
.hour {
  flex: 0 0 86px !important;
  width: 86px !important;
  min-width: 86px !important;
  padding: 5px 7px;
  text-align: center;
  scroll-snap-align: start;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.hour:last-child {
  border-right: 0;
}
.hour div {
  font-size: 23px;
  margin: 9px 0 6px;
}
.hour b {
  font-size: 15px;
}
.hour small {
  font-size: 10px;
  white-space: nowrap;
}

/* Leaflet map: Leaflet needs an explicit height or the map collapses to zero pixels. */
.map-card #leafletWeatherMap {
  width: 100%;
  height: 320px;
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: #d9e7ef;
  position: relative;
  z-index: 1;
}
.map-card .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: Inter, system-ui, sans-serif;
  background: #d9e7ef;
}
.map-card .leaflet-control-zoom {
  border: 0 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) !important;
}
.map-card .leaflet-control-zoom a {
  color: #173451 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 0 !important;
}
.weather-map-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 11px;
  align-items: center;
}
.weather-map-actions button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-radius: 13px;
  padding: 8px 11px;
  font-size: 11px;
  cursor: pointer;
}
.weather-map-actions button.active {
  background: rgba(105, 216, 255, 0.24);
  border-color: rgba(155, 231, 255, 0.42);
}
.leaflet-map-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
}
.radar-note {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
}
.meghdoot-map-timeline {
  margin-top: 10px !important;
}
@media (max-width: 600px) {
  .hourly-list {
    margin-right: -2px;
    padding-right: 12px;
  }
  .hour {
    flex-basis: 78px !important;
    width: 78px !important;
    min-width: 78px !important;
  }
  .hour div {
    font-size: 22px;
  }
  .map-card #leafletWeatherMap {
    height: 285px;
    min-height: 250px;
    border-radius: 18px;
  }
  .weather-map-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .weather-map-actions::-webkit-scrollbar {
    display: none;
  }
  .weather-map-actions button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .leaflet-map-status {
    font-size: 9px;
  }
}
@media (max-width: 360px) {
  .hour {
    flex-basis: 74px !important;
    width: 74px !important;
    min-width: 74px !important;
  }
  .map-card #leafletWeatherMap {
    height: 260px;
  }
}
