html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: #0b0f14;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
}

#map {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  background: #0b0f14;
}

/* Hide Leaflet zoom + attribution clutter for a clean sign display */
.leaflet-control-zoom,
.leaflet-control-attribution {
  display: none !important;
}

#hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 24px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

#location {
  font-size: clamp(20px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.1;
}

#meta {
  margin-top: 4px;
  font-size: clamp(13px, 1.6vw, 22px);
  font-weight: 500;
  opacity: 0.92;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

#legend {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  gap: 2px;
  font-size: clamp(10px, 1.1vw, 14px);
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  border-radius: 6px;
  overflow: hidden;
}

#legend span {
  padding: 4px 14px;
}

#legend .light   { background: rgba(0, 180, 80, 0.85); }
#legend .mod     { background: rgba(230, 200, 0, 0.85); color: #1a1a1a; }
#legend .heavy   { background: rgba(235, 120, 0, 0.88); }
#legend .vheavy  { background: rgba(210, 30, 40, 0.88); }

#error {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  display: none;
  padding: 10px 24px;
  background: rgba(180, 30, 30, 0.92);
  color: #fff;
  font-size: 15px;
}
#error.show { display: block; }
