/* Leaflet theme (dark and light) shared by every page that shows a map (public map and signup form). */
.leaflet-container { font-family: var(--font-ui); background: var(--bg); }

/* Dark: Toner is black sea / white land with dark borders and labels, so we only darken it.
   Light: Toner Lite (light grey sea), slightly warmed to sit on the paper background. */
.tiles-invert { filter: brightness(0.33) contrast(1.05); }
.tiles-light { filter: sepia(0.08) brightness(0.97); }

/* Leaflet controls */
.leaflet-bar a, .leaflet-bar a:hover {
  background: var(--surface);
  color: var(--text);
  border-bottom-color: var(--border);
}
.leaflet-bar a:hover { color: var(--accent); }
/* Leaflet paints a disabled button (zoom-out at the minimum zoom) light grey: keep it in the theme. */
.leaflet-bar a.leaflet-disabled, .leaflet-bar a.leaflet-disabled:hover { background: var(--surface-2); color: var(--muted); }
.leaflet-bar { border: 1px solid var(--border); box-shadow: none; }
.leaflet-control-attribution {
  background: var(--overlay-strong) !important;
  color: var(--muted) !important;
  font-size: 11px;
}
.leaflet-control-attribution a { color: var(--text); }

/* Pin: 12px SVG circle inside a 24px transparent box (larger touch target). */
.pin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
}
.pin-icon svg {
  display: block;
  filter: drop-shadow(0 1px 2px var(--pin-shadow));
}
.pin-icon circle { fill: var(--gold); transition: fill 0.15s; }
.pin-icon:hover circle,
.pin-icon:focus-visible circle { fill: var(--gold-hover); }

/* Curator HQ: same size and fill; the edge is brighter and slightly shiny. The radius is 0.75px smaller
   so that the outer size stays 12px. */
.pin-icon--curator circle { stroke: var(--gold-edge); stroke-width: 1.5; }
.pin-icon--curator svg { filter: drop-shadow(0 0 2px var(--gold-glow)); }

/* Public venue pin (signup form): hollow ring, to tell it apart from the city pin. */
.pin-icon--venue circle { fill: var(--chip-fill); stroke: var(--gold); stroke-width: 2; }
.pin-icon--venue:hover circle,
.pin-icon--venue:focus-visible circle { fill: var(--venue-focus); }

/* 1 km area around the city pin in the signup form. */
.pin-area { stroke: var(--gold); fill: var(--gold); }

/* Touch screens: larger zoom buttons. */
@media (pointer: coarse) {
  .leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
}
