/* /map: the map and its controls. Colours and type are the site's tokens; the dots match the tracker's marks. */
.mapbar { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; margin-bottom: 0.8rem; }
.mapbar .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mapbar .chips[hidden], .mapbar .chip[hidden] { display: none; }
.map { position: relative; height: min(72vh, 680px); min-height: 360px; border: 1px solid var(--line-soft); background: var(--bg-2); }
.mlegend .d { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.5em; vertical-align: -1px; background: var(--bg); box-sizing: border-box; }
.mlegend .d.op { background: var(--good); }
.mlegend .d.dev { background: var(--accent); }
.mlegend .d.unk { border: 1.5px solid var(--fg-3); }
.mlegend .d.gone { border: 1px solid var(--line-soft); }
.mlegend .d.grp { width: auto; height: auto; min-width: 1.6em; padding: 0.15em 0.35em; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: 0.62rem; text-align: center; font-style: normal; }
.mp-fail { position: absolute; inset: auto 1rem 1rem 1rem; background: var(--bg); padding: 0.6rem 0.8rem; margin: 0; }
/* popups */
.mp .maplibregl-popup-content { font-family: var(--body); font-size: 0.82rem; color: var(--fg); border-radius: 0; padding: 0.7rem 0.9rem; border: 1px solid var(--line-soft); box-shadow: none; max-height: 50vh; overflow: auto; }
.mp-head { font-family: var(--mono); font-size: 0.72rem; color: var(--fg-2); margin: 0 0 0.4rem; }
.mp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.mp-list a { font-family: var(--display); font-weight: 700; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--accent); }
.mp-list span { display: block; color: var(--fg-2); font-size: 0.76rem; margin-top: 0.1rem; }
.mp-at { font-family: var(--mono); font-size: 0.68rem; color: var(--fg-3); margin: 0.5rem 0 0; }
.mp .maplibregl-popup-close-button { font-size: 1rem; padding: 0 0.4rem; color: var(--fg-3); }
.maplibregl-ctrl-attrib { font-family: var(--body); font-size: 0.68rem; }
@media (max-width: 760px) {   /* each group of chips is one line that scrolls sideways, so the map starts higher */
  .map { height: 62vh; }
  .mapbar { gap: 0.45rem; }
  .mapbar .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; padding-bottom: 2px; }
  .mapbar .chips::-webkit-scrollbar { display: none; }
  .mapbar .chip { white-space: nowrap; flex: none; }
}
