/* Let <main> grow past the 60rem cap when it holds the map */
main:has(#map-canvas) {
  width: 80%;  
  max-width: none;
}

/* Map box */
.map-page #map-canvas,
#map-canvas {
  width: 100%;
  height: 70vh;
  min-height: 320px;
  max-height: 800px;
  isolation: isolate;
}

/* List under the map */
.map-page .places-list {
  margin-top: 1rem;
  list-style: none;
  padding: 0;
}

.map-page .places-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.map-page .places-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

/* Pins (used by map.js) */
.pin span {
  display: block;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.map-page .place-note {
  display: block;
  white-space: pre-line;
}

.map-page .leaflet-popup-content {
  white-space: pre-line;
}
