/* Built with the Secure Platform Developer Agent (SPDA v1.2.2) - Practices by: A2C (2026)
   The small map of map.js: used by the administration console and by the phone app (a punch's recorded location). */
.map { position: relative; height: clamp(440px, 62vh, 760px); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; touch-action: none; cursor: grab;
  background-color: var(--card-2); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; }
.map:active { cursor: grabbing; }
.map:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.map-tiles { position: absolute; inset: 0; }
.map-tiles img { position: absolute; max-width: none; user-select: none; }
.map-overlay { position: absolute; inset: 0; }
.map-controls { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 4px; }
.map-controls button { width: 36px; height: 36px; padding: 0; min-height: 36px; font-size: 1.2rem; line-height: 1; }
.map-scale { position: absolute; left: 10px; bottom: 26px; padding: 0 4px 2px; border: 2px solid var(--ink-3); border-top: 0; font-size: .72rem; color: var(--ink-3); background: color-mix(in srgb, var(--card) 80%, transparent); }
.map-credit { position: absolute; right: 0; bottom: 0; padding: 1px 6px; font-size: .7rem; background: color-mix(in srgb, var(--card) 85%, transparent); color: var(--ink-3); }
.geofence { fill: color-mix(in srgb, var(--accent) 12%, transparent); stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 4; }
.site-dot { fill: var(--accent-strong); stroke: var(--card); stroke-width: 2; cursor: zoom-in; }
.site-dot:focus-visible { stroke: var(--focus); stroke-width: 3; outline: none; }
.site-name { font-size: 12px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 3px; }
.kiosk-mark { cursor: pointer; }
.kiosk-mark .k-body { fill: var(--purple); stroke: var(--card); stroke-width: 2; }
.kiosk-mark .k-glyph path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kiosk-mark .k-count rect { fill: var(--ink); stroke: var(--card); stroke-width: 2; }
.kiosk-mark .k-count text { fill: var(--card); font-size: 11px; font-weight: 700; dominant-baseline: central; }
.kiosk-mark .halo { fill: none; stroke: none; }
.kiosk-mark.on .halo, .kiosk-mark:focus-visible .halo { fill: color-mix(in srgb, var(--ink) 18%, transparent); stroke: var(--ink); stroke-width: 2; }
.kiosk-mark:focus-visible { outline: none; }
.kiosk-name { font-size: 12px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 4px; stroke-linejoin: round; }
.pin { cursor: pointer; }
.pin .body { stroke: var(--card); stroke-width: 2; }
.pin .glyph { fill: #fff; }
.pin.out .body { fill: var(--card) !important; stroke-width: 3; }
.pin.out .glyph { fill: currentColor; }
.pin .badge-dot { stroke: var(--card); stroke-width: 1.5; }
.pin.out .badge-dot { fill: var(--blue); }
.pin.in .badge-dot { fill: var(--ok); }
.pin.flag .ring { fill: none; stroke: var(--red); stroke-width: 3; }
.pin.low .ring { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 3 3; }
.pin.on .halo { fill: color-mix(in srgb, var(--ink) 22%, transparent); stroke: var(--ink); stroke-width: 2; }
.pin .halo, .pin .ring { fill: none; stroke: none; }
.pin:focus-visible { outline: none; }
.pin:focus-visible .halo { stroke: var(--focus); stroke-width: 3; fill: color-mix(in srgb, var(--focus) 20%, transparent); }
.cluster { cursor: zoom-in; }
.cluster circle { fill: var(--accent); stroke: var(--card); stroke-width: 3; }
.cluster text { fill: var(--on-accent); font-weight: 700; font-size: 13px; text-anchor: middle; dominant-baseline: central; }
.cluster.flag circle { stroke: var(--red); }
.map-pop { position: absolute; z-index: 5; min-width: 220px; max-width: 280px; padding: 10px 12px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-ctl); box-shadow: var(--shadow-lift); font-size: .85rem; pointer-events: none; }
.map-pop strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.map-pop .line { display: block; color: var(--ink-2); overflow-wrap: anywhere; }
.map-pop strong { overflow-wrap: anywhere; }
.recorded .map-small { height: 200px; }
.recorded .map { touch-action: pan-y; }
.recorded h4 { margin: 12px 0 6px; }
