html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--ui-font, monospace), monospace;
  background: var(--map-background, #1a1a1a);
  color: #eee;
  overflow: hidden;
}

#map {
  position: absolute;
  inset: 0;
  background: var(--map-background, #1a1a1a);
}

.hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.hud-panel {
  position: absolute;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid #444;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 12px;
  color: #ddd;
  max-height: 40vh;
  overflow-y: auto;
}

#dim-switcher  { top: 8px;   right: 8px; }
#layer-switcher { top: 8px;  left: 8px; }
#train-list    { bottom: 8px; left: 8px;  min-width: 180px; }
#station-list  { bottom: 8px; right: 8px; min-width: 180px; }

.hud-coords {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  color: #ccc;
}

.hud-panel h4 {
  margin: 0 0 4px 0;
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hud-panel ul { list-style: none; padding: 0; margin: 0; }
.hud-panel li {
  padding: 2px 0;
  cursor: pointer;
  border-bottom: 1px solid #333;
}
.hud-panel li:hover { color: #fff; }

.hud-panel label {
  display: block;
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
}

.hud-panel input[type="radio"],
.hud-panel input[type="checkbox"] {
  margin-right: 6px;
  vertical-align: middle;
}

/* Hide OpenLayers default attribution / controls we don't want */
.ol-control { background: rgba(0,0,0,0.5); }
.ol-control button { background: rgba(255,255,255,0.1); color: #fff; }
.ol-control button:hover, .ol-control button:focus { background: rgba(255,255,255,0.2); }
