/* Base Styling */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #111;
  color: #fff;
  margin: 0;
  padding: 0;
}

.dashboard-container {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

#locationSearch {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  border-radius: 6px;
  border: none;
  font-size: 1em;
}

/* Autocomplete Suggestions */
.autocomplete-items {
  list-style: none;
  padding: 0;
  margin-top: 5px;
  max-width: 400px;
  background: #222;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.autocomplete-items li {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #333;
}

.autocomplete-items li:hover {
  background-color: #333;
}

/* Weather + Radar */
#weather-info {
  margin-top: 30px;
  text-align: center;
}

.weather-and-radar {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.weather-summary {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  text-align: center;
}

.weather-summary img {
  width: 80px;
  height: 80px;
}

/* Location Label */
.location-label {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

/* Radar Map Thumbnails */
.radar-side-map {
  width: 400px;
  height: 350px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  margin-top: 95px;
  position: relative;
}

.radar-timestamp,
.radar-timestamp-text {
  text-align: center;
  margin-top: 5px;
  font-size: 0.9em;
  color: #ccc;
}

/* Forecast Cards */
#forecastDisplay {
  margin-top: 40px;
  text-align: center;
}

.forecast-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.forecast-card {
  background: #222;
  padding: 10px 15px;
  border-radius: 10px;
  width: 120px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: transform 0.2s;
  cursor: pointer;
}

.forecast-card:hover {
  transform: scale(1.05);
}

.forecast-day {
  font-weight: bold;
  margin-bottom: 5px;
}

.forecast-card img {
  width: 48px;
  height: 48px;
}

.forecast-temps {
  margin-top: 5px;
  font-weight: bold;
}

.forecast-desc {
  font-size: 0.85em;
  opacity: 0.8;
  margin-top: 3px;
}

/* Meta Info */
.meta-info {
  font-size: 0.85em;
  color: #888;
  margin-top: 8px;
}

/* Modal Styles */
.radar-modal,
.forecast-modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  overflow: auto;
}

.radar-modal .map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px;
}

.modal-map {
  width: 45vw;
  height: 45vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.modal-content {
  background: #222;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  color: #fff;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* Footer Attribution */
footer {
  margin-top: 40px;
  text-align: center;
  font-size: 1.2em;
  opacity: 0.8;
}

.attribution {
  text-align: center;
  font-size: 0.8em;
  color: #888;
  margin: 40px 0 20px 0;
}

.attribution a {
  color: #ccc;
  text-decoration: underline;
}
