html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; }

a { color: inherit; }

/* --- index page --- */
.map-list { list-style: none; padding: 0; }
.map-list li { padding: 0.6em 0; border-bottom: 1px solid rgba(128,128,128,0.3); }
.map-list a { text-decoration: none; font-size: 1.05em; }
.map-list a:hover { text-decoration: underline; }
.empty, .error { opacity: 0.75; }

/* --- map page --- */
/* The map needs the full viewport width, so we opt this page out of the
   35em body constraint while keeping the same typography/colors. */
body.map-page {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.map-page header {
  padding: 0.5em 1em;
  border-bottom: 1px solid rgba(128,128,128,0.3);
  flex: 0 0 auto;
}

.map-page header a { font-size: 0.9em; }
.map-page h1 { margin: 0.2em 0 0; font-size: 1.2em; }

#map { flex: 1 1 auto; width: 100%; }

.recenter-control a {
  display: block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 16px;
  text-decoration: none;
  background: var(--leaflet-bg, #fff);
  color: #333;
}

.legend {
  background: rgba(255,255,255,0.9);
  color: #222;
  padding: 0.5em 0.7em;
  border-radius: 4px;
  font-size: 0.85em;
  line-height: 1.5em;
  max-height: 40vh;
  overflow-y: auto;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.legend .swatch {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  margin-right: 0.4em;
  vertical-align: middle;
}

.status { padding: 1em; }
