/* Based on inundation_backend/webapp/static/style.css (map/results page subset). */
body {
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  margin: 0;
  color: #1a1a1a;
  background: #f7f7f7;
}

header {
  padding: 1rem 1.5rem;
  background: #2B4B53;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

header h1 {
  margin: 0;
  font-size: 1.25rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  height: 32px;
  width: auto;
  display: block;
}

.container {
  padding: 1.5rem;
}

#map {
  height: calc(100vh - 140px);
  min-height: 400px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.legend-panel {
  background: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  font-size: 0.8rem;
  max-width: 280px;
}

.legend-entry + .legend-entry {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #eee;
}

.legend-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.legend-date {
  font-size: 1rem;
  font-weight: 600;
  color: #2B4B53;
}

.legend-boundary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-line {
  display: inline-block;
  width: 22px;
  height: 0;
  border-top: 3px solid #ffd400;
}

.year-slider {
  width: 220px;
}

.year-slider input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: #2B4B53;
}

.year-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: #444;
}
