/* Grow Admin · shared/ap-users-map.css: the Users map (Leaflet world map, clustered pins). Tokens from ds/tokens.css; no
   color-mix() (WebKit). The OpenStreetMap tiles are light; dark mode dims them with a filter so the page stays dark. */
.ap-umap-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ap-umap-asof { color: var(--ink-3); font-size: var(--fs-meta, 13px); }
.ap-umap-kpis { margin-top: 0; }
.ap-umap-card { padding: 0; overflow: hidden; }
.ap-umap { position: relative; height: 560px; min-height: 360px; background: var(--bg); z-index: 0; }
@media (max-width: 720px) { .ap-umap { height: 62vh; } }
.ap-umap.is-msg { display: grid; place-items: center; padding: 24px; height: auto; min-height: 320px; }
.ap-umap .leaflet-container, .ap-umap.leaflet-container { font: inherit; background: var(--bg); }
.ap-umap .leaflet-control-attribution { font-size: 11px; }
.ap-umap .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 34px; font-size: 20px; }
html[data-mode="dark"] .ap-umap .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.88); }
html[data-mode="dark"] .ap-umap .leaflet-control-attribution { background: rgba(31, 35, 40, 0.85); color: var(--ink-2); }
html[data-mode="dark"] .ap-umap .leaflet-control-attribution a { color: var(--ink); }

/* clusters: a round count bubble; bigger and darker with more people */
.ap-umap-cl { display: grid; place-items: center; border-radius: 50%; background: var(--acc); color: var(--acc-on); font-weight: 700; font-size: 12px;
  box-shadow: 0 0 0 4px rgba(191, 228, 120, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25); cursor: pointer; }
.ap-umap-cl.is-mid { background: #8FC43A; box-shadow: 0 0 0 5px rgba(143, 196, 58, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25); }
.ap-umap-cl.is-big { background: #2F6B2A; color: #FFFFFF; font-size: 13px; box-shadow: 0 0 0 6px rgba(47, 107, 42, 0.35), 0 2px 8px rgba(0, 0, 0, 0.3); }
.ap-umap-cl span { pointer-events: none; }
.ap-umap-cl:focus-visible, .ap-umap-pin:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* a single place: a dropped pin */
.ap-umap-pin { cursor: pointer; }
.ap-umap-pin span { position: absolute; left: 3px; top: 0; width: 20px; height: 20px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: #E5484D; border: 2px solid #FFFFFF; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35); }
.ap-umap-pin span::after { content: ""; position: absolute; left: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: #FFFFFF; }

.ap-umap-pop .leaflet-popup-content { margin: 10px 14px; font: inherit; line-height: 1.45; }
.ap-umap-sel { padding: 10px 16px 12px; border-top: 1px solid var(--line); min-height: 44px; }
.ap-umap-sel p { margin: 0; }
.ap-umap-selh { font-size: var(--fs-body, 15px); }
.ap-umap-selp { margin-top: 2px !important; font-size: var(--fs-meta, 13px); }

.ap-umap-cols { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
@container main (min-width: 980px) { .ap-umap-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ap-umap-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: umap; }
.ap-umap-top li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; align-items: baseline; gap: 8px; counter-increment: umap; min-width: 0; }
.ap-umap-top li::before { content: counter(umap); color: var(--ink-3); font-size: 12px; text-align: right; }
.ap-umap-top li button { display: block; width: 100%; min-width: 0; max-width: 100%; padding: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-umap-top li b { font-variant-numeric: tabular-nums; }
.ap-umap-cols > .ap-card { min-width: 0; }
.ap-umap-note { margin-top: 12px; }
