/* ============================================================
   css/site-marker.css -- THE site mark (js/site-marker.js), one look
   for every map: the Project Selector (Map v4) and the Dashboard's
   fleet map. Lifted from css/map-viewer.css (where it was scoped to
   .mv) on 29 Sep, so the two maps can no longer drift apart.

   A white solar-panel core in a 4px status ring, the status glyph
   in a small badge at the bottom right (the non-colour signal), a
   48px ring for a cluster whose arcs keep each status's share, and
   the round legend swatch. Status colours ride in as --pin / --dot
   from js/site-marker.js STATUS: fixed hex, since marks sit on
   satellite imagery, not on the page theme.
   ============================================================ */
:root {
  --sm-core: #FFFFFF;
  --sm-core-ink: #25343F;
  --sm-glyph-ink: #FFFFFF;
  --sm-select: #FFC247;
}
html[data-theme="dark"] {
  --sm-core: #18272C;
  --sm-core-ink: #E7EFF0;
  --sm-glyph-ink: #FFFFFF;
  --sm-select: #FFC247;
}

.mv-pinwrap { background: none; border: 0; }
.mv-pin { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.mv-pin-core {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-chip);
  background: var(--sm-core); color: var(--sm-core-ink); font-size: var(--type-label-size);
  box-shadow: 0 0 0 4px var(--pin, #7C8B8D), 0 2px 8px rgba(0, 0, 0, .45);
}
.mv-pin.is-offline .mv-pin-core, .mv-pin.is-nodev .mv-pin-core { opacity: .9; }
.mv-pin.is-nodev .mv-pin-core { background: transparent; border: 2px dashed var(--pin, #7C8B8D); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.mv-pin.is-selected .mv-pin-core { box-shadow: 0 0 0 4px var(--pin, #7C8B8D), 0 0 0 7px var(--sm-select), 0 2px 10px rgba(0, 0, 0, .5); }
.mv-pin-glyph {
  position: absolute; right: 0; bottom: 2px; width: 17px; height: 17px; display: grid; place-items: center;
  border-radius: var(--r-chip); background: var(--pin, #7C8B8D); color: var(--sm-glyph-ink); border: 1.5px solid var(--sm-glyph-ink);
  font-size: var(--type-label-size); font-weight: var(--type-kpi-number-weight); line-height: 1;
}
.mv-cluster { position: relative; width: 48px; height: 48px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); cursor: pointer; }
.mv-cluster svg { display: block; }
.mv-cluster-bg { fill: var(--sm-core); }
.mv-cluster span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sm-core-ink); font-size: var(--type-body-size); font-weight: var(--type-kpi-number-weight); }
/* the legend swatch: the pin's glyph badge, a size up */
.mv-dot {
  display: inline-grid; place-items: center; justify-content: center; align-items: center; flex: none;
  width: 18px; height: 18px; border-radius: var(--r-chip); background: var(--dot, #7C8B8D); color: var(--sm-glyph-ink);
  font-size: var(--type-label-size); font-weight: var(--type-kpi-number-weight); line-height: 1;
}
