/* Home Scoring heat map (heatmap.js). Uses the portal's calm.css tokens. */
.hm { margin-top: 4px; --hm-h: 640px; }
.hm-bar { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: flex-end; }
.hm-grp { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hm-lab { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: flex; align-items: baseline; gap: 6px; }
.hm-lab output { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-chips button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--ground); font-size: 13.5px; color: var(--ink-3); }
.hm-chips button i { width: 10px; height: 10px; border-radius: 50%; opacity: .35; }
.hm-chips button small { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hm-chips button[aria-pressed="true"] { border-color: var(--ink-2); color: var(--ink); font-weight: 600; }
.hm-chips button[aria-pressed="true"] i { opacity: 1; }
.hm-sys button { white-space: nowrap; }
.hm-slide { width: 230px; }
.hm-slide input { width: 100%; accent-color: var(--crimson); margin: 2px 0 0; }
.hm-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: -2px; }
.hm-rule { font-size: 13.5px; color: var(--ink-2); margin: 12px 0 0; }
.hm-rule a { color: var(--crimson-deep); font-weight: 600; margin-left: 4px; }
.hm-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 0; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--ground); }
.hm-mapw { position: relative; min-width: 0; }
.hm-map { height: var(--hm-h); background: #EEF1F2; }
.hm-load { padding: 24px; color: var(--ink-3); font-size: 14px; }
.hm .leaflet-container { font: inherit; background: #EEF1F2; }
.hm .hm-tiles { filter: grayscale(1) brightness(1.04) contrast(.86); }
.hm-dots { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; }
.hm .leaflet-heatmap-layer { z-index: 2; opacity: .9; }
.hm-picking, .hm-picking .leaflet-interactive { cursor: crosshair !important; }
.hm-ctl { display: flex; flex-direction: column; gap: 6px; }
.hm-ctl button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); text-align: left; }
.hm-ctl button:hover { border-color: var(--ink-3); }
.hm-ctl button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.hm-hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 500; background: rgba(20,36,41,.88); color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 99px; pointer-events: none; white-space: nowrap; }
.hm-legend { position: absolute; right: 10px; bottom: 26px; z-index: 500; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px 6px; width: 190px; pointer-events: none; }
.hm-grad { display: block; height: 8px; border-radius: 4px; }
.hm-dkey { display: none; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--ink-2); }
.hm-dkey span { display: flex; align-items: center; gap: 6px; }
.hm-dkey i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.hm-dkey i.hm-faint { width: 6px; height: 6px; margin: 0 1.5px; background: rgba(86,101,107,.45); }
.hm-street .hm-dkey { display: flex; }
.hm-street .hm-grad, .hm-street .hm-gl { display: none; }
.hm-street .hm-legend { width: auto; }
.hm .nw { white-space: nowrap; }
.hm-gl { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.hm-side { border-left: 1px solid var(--line); padding: 16px 18px; height: var(--hm-h); overflow-y: auto; box-sizing: border-box; }
.hm-k { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.hm-big { font-size: 30px; font-weight: 700; margin: 2px 0 8px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hm-big span { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.hm-segs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hm-segs li { display: grid; grid-template-columns: 12px 1fr auto 70px; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.hm-segs i, .hm-top i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.hm-segs b { font-variant-numeric: tabular-nums; }
.hm-segs small { text-align: right; color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hm-rev { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.hm-rev b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.hm-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hm-acts .btn[disabled] { opacity: .5; cursor: default; }
.hm-h4 { font-size: 13px; font-weight: 700; margin: 18px 0 6px; color: var(--ink); }
.hm-top { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hm-top button { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 2px; border-bottom: 1px solid var(--line); text-align: left; background: none; }
.hm-top button:hover { background: var(--panel); }
.hm-tl, .hm-tr { display: flex; flex-direction: column; min-width: 0; }
.hm-tl b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-tl small { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.hm-tl small i { width: 8px; height: 8px; }
.hm-tr { align-items: flex-end; flex: none; }
.hm-tr b { font-size: 14px; font-variant-numeric: tabular-nums; }
.hm-tr small { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hm-none { font-size: 13.5px; color: var(--ink-2); margin-top: 16px; }
.hm-foot { font-size: 12px; color: var(--ink-3); margin: 12px 0 0; }
.hm-back { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--crimson-deep); cursor: pointer; }
.hm-addr { font-size: 20px; font-weight: 700; margin: 10px 0 0; }
.hm-city { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.hm-chip { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--c); color: var(--ink); }
.hm-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.hm-facts { margin: 12px 0 0; border-top: 1px solid var(--line); }
.hm-facts div { display: grid; grid-template-columns: 112px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.hm-facts dt { color: var(--ink-2); }
.hm-facts dd { margin: 0; color: var(--ink); }
.hm-scores { display: flex; flex-direction: column; gap: 6px; }
.hm-sr { display: grid; grid-template-columns: 128px 1fr 26px; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.hm-sr span:first-child { display: flex; flex-direction: column; line-height: 1.2; }
.hm-sr small { font-size: 11px; color: var(--ink-3); }
.hm-sr b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.hm-sr.on { color: var(--ink); font-weight: 600; }
.hm-bar2 { height: 8px; background: #E6EBEC; border-radius: 4px; overflow: hidden; }
.hm-bar2 i { display: block; height: 100%; background: var(--ink-3); border-radius: 4px; }
.hm-sr.on .hm-bar2 i { background: var(--crimson); }
.hm-cap { max-width: 110ch; }
@media (max-width: 1100px) { .hm-main { grid-template-columns: minmax(0, 1fr); } .hm-side { border-left: 0; border-top: 1px solid var(--line); height: auto; max-height: none; } }
@media (max-width: 700px) {
  .hm { --hm-h: 440px; }
  .hm-bar { gap: 12px; }
  .hm-grp, .hm-slide { width: 100%; }
  .hm-sys { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hm-sys button { text-align: center; }
  .hm-legend { bottom: 22px; }
  .hm-hint { font-size: 12px; top: auto; bottom: 62px; left: 10px; transform: none; }
  .hm-wide { display: none; }
  .hm-legend { width: 120px; }
  .hm-side { padding: 14px; }
}
@media print { .hm-bar, .hm-acts, .hm-ctl { display: none !important; } }
