html, body {
  margin: 0;
  height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

#map {
  position: absolute;
  inset: 0;
}

#chart-disclaimer {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(120, 0, 0, 0.82);
  color: #fff;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 13px;
  z-index: 10;
  pointer-events: none;
}

#hud {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}

.panel {
  background: rgba(16, 24, 32, 0.85);
  color: #e8eef4;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
}

.panel .row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.panel .small {
  font-size: 11px;
  opacity: 0.75;
}

button {
  background: #1f6feb;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
}

button.on {
  background: #2ea043;
}

button.danger {
  background: #b42318;
}

button:hover {
  filter: brightness(1.15);
}

#stale-banner {
  color: #ffb020;
  font-weight: 600;
}

#time-slider {
  width: 100%;
  margin-top: 6px;
}

.hidden {
  display: none !important;
}

#destinations-list {
  margin: 6px 0 0;
  padding-left: 18px;
  max-height: 140px;
  overflow-y: auto;
}

#destinations-list li {
  cursor: pointer;
}

#destinations-list li:hover {
  text-decoration: underline;
}

#route-status {
  margin-top: 4px;
}

#route-safety.warn {
  color: #ffb020;
}

.maplibregl-popup-content {
  font-size: 13px;
  line-height: 1.5;
}

.maplibregl-popup-content button {
  margin-top: 8px;
  width: 100%;
  padding: 8px 10px;
}
