html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: #222;
}

#map {
  position: absolute;
  top: 0;
  left: 320px;
  right: 0;
  bottom: 0;
}

/* Desaturate OSM tiles so dots pop. Replace when self-hosted vector tiles land. */
.leaflet-tile-pane {
  filter: grayscale(0.7) brightness(1.05) contrast(0.9);
}

#panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 100%;
  overflow-y: auto;
  padding: 16px 18px;
  box-sizing: border-box;
  background: #f6f6f4;
  border-right: 1px solid #ddd;
}

#panel h1 {
  font-size: 18px;
  margin: 0 0 14px 0;
}
#panel h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin: 18px 0 8px;
}
#panel section {
  margin-bottom: 18px;
}
#panel label {
  display: block;
  margin: 6px 0;
}
#panel input[type=number],
#panel select {
  width: 100%;
  padding: 5px 6px;
  box-sizing: border-box;
}
#panel table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
#panel td { padding: 3px 4px; }
#panel td:first-child { width: 32px; text-align: right; }
#panel td.swatch { width: 16px; }
#panel td.swatch div { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #0003; }
#panel input.th { width: 80px; }

#panel button {
  padding: 6px 10px;
  margin-right: 6px;
  cursor: pointer;
}
#panel button.secondary { background: #eee; }

.muted { color: #888; font-size: 12px; }
footer { margin-top: 20px; }

.dot-popup { line-height: 1.5; }
.dot-popup code { background: #eee; padding: 1px 4px; border-radius: 3px; }
.dot-popup a { display: inline-block; margin-top: 6px; }
.dot-popup .muted { color: #777; font-size: 11px; margin: 4px 0; }
.dot-popup table.way-tags { margin: 4px 0; border-collapse: collapse; font-size: 12px; }
.dot-popup table.way-tags td { padding: 1px 6px 1px 0; vertical-align: top; }
.dot-popup table.way-tags td:first-child { color: #777; }

/* Dot markers rendered via Leaflet divIcon. Size is set inline; typography
 * stays here. White numeric label with a soft dark halo for contrast
 * across the full dot-color palette. */
.dot {
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.35);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 2px rgba(0,0,0,0.75);
  line-height: 1;
  letter-spacing: -0.3px;
}

/* Nature Reserve dots: thicker green ring to distinguish at a glance. */
.dot.reserve {
  border: 2px solid #2e7d4f;
}

.dot-popup .badge.reserve {
  display: inline-block;
  margin: 4px 0;
  padding: 2px 8px;
  background: #e7f2ea;
  color: #2e7d4f;
  border: 1px solid #2e7d4f;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}
