html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

/* Floating control bar across the top. */
#topbar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 60px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.94);
  padding: 8px 14px;
  border-radius: 8px;
  font: 14px/1.2 -apple-system, Helvetica, Arial, sans-serif;
  color: #333;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

#brand {
  font-weight: 600;
  font-size: 18px;
  color: #1b5e20;
}
#brand .v {
  font-weight: 400;
  color: #777;
  font-size: 14px;
}

#topbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #555;
}
#topbar input,
#topbar select {
  font: 14px -apple-system, Helvetica, Arial, sans-serif;
  padding: 3px 6px;
}

/* Legend, bottom-left. */
#legend {
  position: absolute;
  bottom: 30px;
  left: 10px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  padding: 8px 12px;
  border-radius: 8px;
  font: 13px/1.5 -apple-system, Helvetica, Arial, sans-serif;
  color: #333;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
#legend span {
  display: flex;
  align-items: center;
}
#legend i {
  display: inline-block;
  width: 16px;
  height: 4px;
  border-radius: 2px;
  margin-right: 8px;
}

/* Reach popup. */
.maplibregl-popup-content {
  font: 13px/1.45 -apple-system, Helvetica, Arial, sans-serif;
  max-width: 300px;
}
.maplibregl-popup-content h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #1b5e20;
}
.maplibregl-popup-content .desc {
  margin: 0 0 6px;
  color: #666;
  font-style: italic;
}
.maplibregl-popup-content .reg {
  margin: 0;
}
.maplibregl-popup-content .status {
  margin: 6px 0 0;
  font-weight: 600;
}
