/* Location: attendance chips, property pin + map, issue heat tables, Hotspots report, privacy switch. Logic: js/geo.js, js/views-geo.js */
.geo-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font: 600 12px/1.5 var(--body); white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.geo-chip i { font-style: normal; font-size: 12px; }
.geo-chip small { font-weight: 500; opacity: .8; }
.geo-chip.good { background: var(--good-bg); color: var(--good); }
.geo-chip.warn { background: var(--warn-bg); color: var(--warn); }
.geo-chip.bad { background: var(--bad-bg); color: var(--bad); }
.geo-head { margin-left: 6px; display: inline-block; }
.vr-facts .geo-head { margin-left: 0; }

.geo-sec .geo-pinline { margin: 0 0 8px; font-size: 13px; }
.geo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.geo-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.geo-list .k { font-weight: 600; min-width: 84px; }
.geo-list .t { font: 500 12px var(--mono); color: var(--muted); }

.geo-pin { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.geo-pin.set { color: var(--good); }

.geo-map { position: relative; z-index: 0; isolation: isolate; width: 100%; height: 320px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #e9e6dc; }
.geo-map.geo-hot { height: 440px; }
.geo-mapfail { padding: 20px; margin: 0; text-align: center; }
.geo-hint, .geo-addr, .geo-note { font-size: 12.5px; margin: 8px 0; }
.geo-linkmsg { display: block; min-height: 1.2em; }
.geo-pinicon span { display: block; width: 26px; height: 26px; background: var(--red); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translate(2px, -2px); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.geo-miniinfo { font: 500 13px var(--mono); padding: 8px 10px; background: var(--hover); border: 1px solid var(--line); border-radius: 6px; }
.geo-names { display: flex; flex-wrap: wrap; gap: 6px; }

.geo-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.geo-legend i { display: inline-block; width: 22px; height: 10px; border-radius: 3px; }
.geo-legend .geo-lg-dot { margin-left: 12px; display: inline-flex; align-items: center; gap: 6px; }
.geo-legend .geo-lg-dot i { width: 10px; border-radius: 50%; }

.geo-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.geo-filters .f { min-width: 0; }
.geo-mappanel { margin-bottom: 16px; }
.geo-wide { min-width: 0; }
@media (min-width: 1100px) { .grid.g2 > .geo-wide { grid-column: 1 / -1; } }

.geo-bar { margin-bottom: 10px; }
.geo-bar select { max-width: 100%; }
.geo-seg { margin: 0 0 12px; max-width: 100%; overflow-x: auto; }
.geo-lead { margin: 0 0 12px; font-size: 14px; }
.geo-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-2); border-radius: 6px; }
table.geo-heat { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 640px; }
.geo-heat th { padding: 8px 4px; text-align: center; }
.geo-heat th small { display: block; font: 500 9px var(--mono); color: var(--muted); letter-spacing: 0; }
.geo-heat th:first-child, .geo-heat td:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 140px; max-width: 190px; padding-left: 10px; box-shadow: 1px 0 0 var(--line-2); }
.geo-heat td { padding: 5px 4px; }
.geo-heat td.geo-hc { text-align: center; min-width: 30px; font: 600 12px var(--mono); background: rgba(208, 32, 42, var(--h)); border-bottom: 1px solid #fff; border-right: 1px solid #fff; color: var(--ink); }
.geo-heat td.geo-hc[data-hot="1"] { color: #fff; }
.geo-heat td.geo-hc.z { background: transparent; color: var(--line); font-weight: 400; }
.geo-heat td.r:not(.geo-hc), .geo-heat th.r { text-align: center; padding-left: 6px; padding-right: 6px; }
.geo-heat td.c, .geo-heat th.c { text-align: center; width: 28px; }
.geo-area b { display: block; }
.geo-tr { font-weight: 700; font-size: 13px; }
.geo-tr.up { color: var(--bad); }
.geo-tr.down { color: var(--good); }
.geo-tr.flat { color: var(--muted); }

.geo-priv p { margin: 0 0 10px; font-size: 13px; }
.geo-switch { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.geo-switch small { display: block; color: var(--muted); }
.geo-switch button { flex: none; width: 44px; height: 26px; border-radius: 999px; border: 0; background: #b9bfca; padding: 3px; cursor: pointer; transition: background .15s; }
.geo-switch button span { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.geo-switch button.on { background: var(--good); }
.geo-switch button.on span { transform: translateX(18px); }

@media (max-width: 900px) {
  .geo-filters { grid-template-columns: 1fr 1fr; }
  .geo-map { height: 260px; }
  .geo-map.geo-hot { height: 340px; }
}
@media (max-width: 520px) {
  .geo-heat th:first-child, .geo-heat td:first-child { min-width: 112px; max-width: 128px; }
}

/* grid children may shrink, so the heat table scrolls inside its panel instead of widening the page */
.geo-issues, .grid > .stack, .grid.g-main > * { min-width: 0; }
.geo-issues .pad { min-width: 0; }
#modal .geo-addr, #modal .geo-hint { overflow-wrap: anywhere; }
#modal .geo-map { max-width: 100%; }
