/* Styles for templates/map.html (served at /map) — moved out of an inline <style> block so the
   page (loaded in an iframe on the ride calendar) needs no style-src 'unsafe-inline'.
   Pins only, linked to the calendar's list (#50): the area buttons, the map, and a line
   saying what tapping does. */
html, body { height: 100%; margin: 0; background: var(--color-bg); }
#wrap { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto; height: 100%; }
.bar { padding: 12px 14px 10px; }
.lgh { padding-bottom: 10px; font: 600 10px/1 var(--font-body); letter-spacing: .12em;
  text-transform: uppercase; color: var(--color-neutral-600); }
.scope { display: flex; gap: 6px; }
.scope button { flex: 1 1 auto; font: 600 11.5px/1 var(--font-heading); padding: 7px 4px; cursor: pointer;
  background: transparent; color: var(--color-text); border: 1px solid var(--color-divider); }
.scope button:disabled { opacity: .4; cursor: default; }
.scope button[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }

#map { position: relative; min-height: 0; background: var(--color-neutral-200); }
.leaflet-tile-pane { filter: grayscale(1) contrast(1.06) brightness(1.05); }
#map::after { content: ""; position: absolute; inset: 0; z-index: 400; pointer-events: none;
  background: var(--color-accent); mix-blend-mode: color; opacity: .5; }

/* A pin: one meeting point, with its number of rides when there is more than one. A
   merged pin (several meeting points too close to tell apart) has a ring. The pin a
   row of the list points at, and the chosen one, are dark; once one is chosen the
   others dim. */
.pin { display: grid; place-items: center; width: 22px; height: 22px; box-sizing: border-box;
  background: var(--color-accent); border: 1px solid var(--color-bg);
  box-shadow: var(--shadow-sm); color: var(--color-bg); cursor: pointer;
  font: 600 12px/1 var(--font-heading); letter-spacing: .02em; font-variant-numeric: tabular-nums;
  transition: transform .12s, opacity .12s; }
.pin.far { background: var(--color-accent-900); }
.pin--group { box-shadow: 0 0 0 2px var(--color-accent-300); }
.pin.is-dim { opacity: .35; }
.pin.is-hot, .pin.is-chosen { background: var(--color-text); opacity: 1; transform: scale(1.2); }
.leaflet-marker-icon:focus { outline: none; }
.leaflet-marker-icon:focus-visible .pin { outline: 2px solid var(--color-text); outline-offset: 2px; }

/* The note over a pin: its rides, and what tapping does. Not a popup: it has no links. */
.leaflet-tooltip.pin-note { border-radius: 0; border: 1px solid var(--color-divider); background: var(--color-bg);
  box-shadow: var(--shadow-md); padding: 8px 10px; color: var(--color-text);
  font: 12px/1.35 var(--font-body); white-space: normal; width: max-content; max-width: 230px; }
.note-t { font: 600 14px/1.15 var(--font-heading); margin-bottom: 4px; }
.note-l { color: var(--color-neutral-700); font-variant-numeric: tabular-nums; }
.note-h { margin-top: 5px; font-size: 11px; color: var(--color-accent-700); }
/* The date beside the pin of the ride a row points at. */
.leaflet-tooltip.pin-date { border: 0; border-radius: 0; box-shadow: none; padding: 2px 6px;
  background: var(--color-text); color: var(--color-bg);
  font: 600 11px/1.3 var(--font-heading); letter-spacing: .06em; text-transform: uppercase; }
.leaflet-tooltip.pin-date::before { display: none; }

.outside { margin: 10px 14px 0; padding: 8px 10px; text-align: left; cursor: pointer;
  font: 12px/1.35 var(--font-body); color: var(--color-accent-700);
  background: transparent; border: 1px dashed var(--color-neutral-500); }
.outside[hidden], .note[hidden] { display: none; }
.note { margin: 10px 14px 0; font-size: 12px; color: var(--color-neutral-700); }
.attrib { margin: 0; padding: 10px 14px 12px; font-size: 10px; line-height: 1.4; color: var(--color-neutral-600); }
.attrib a { color: var(--color-accent-700); }
