/* Hero radar: Chicagoland's public records under a sweep, drawn by hero.js. */
.radar { position: relative; height: 560px; border-radius: 22px; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse 75% 65% at 60% 45%, #101a17 0%, #0a0f0e 55%, #070a09 100%); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(61, 219, 176, .03) inset; }
.radar canvas { position: absolute; inset: 0; display: block; }
.radar::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(7, 10, 9, .8), transparent 92px), radial-gradient(ellipse at 55% 50%, transparent 58%, rgba(0, 0, 0, .5) 100%); }

.r-head { position: absolute; z-index: 2; top: 16px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; pointer-events: none; }
.r-name { margin: 0; display: flex; align-items: center; gap: 8px; font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.r-key { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); }
.r-key li { display: flex; align-items: center; gap: 6px; }
.r-key i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px rgba(61, 219, 176, .7); }
.r-key i.open { background: var(--amber); box-shadow: 0 0 8px rgba(245, 165, 36, .7); }

.r-count { position: absolute; z-index: 2; left: 16px; bottom: 16px; min-width: 214px; padding: 14px 18px; border-radius: 14px; background: rgba(17, 24, 22, .8); border: 1px solid rgba(255, 255, 255, .09); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); }
.r-count p { margin: 0; display: flex; align-items: center; gap: 8px; font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.bar-mini { width: 16px; height: 2px; background: var(--amber); display: inline-block; }
.r-count strong { display: block; margin: 8px 0 0; font-family: var(--display); font-weight: 800; font-size: 38px; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.r-count > span { color: var(--text-2); font-size: 13px; }
.progress { display: block; height: 3px; background: rgba(255, 255, 255, .08); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.progress b { display: block; height: 100%; width: 0; background: var(--amber); transition: width 2.2s cubic-bezier(.2, .7, .2, 1); }

/* A job the sweep just passed: its trade, value and neighborhood, never an address. */
.r-tags { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.r-tag-card { position: absolute; padding: 7px 10px 8px; border-radius: 9px; white-space: nowrap; background: rgba(11, 15, 14, .88); border: 1px solid rgba(245, 165, 36, .35); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 18px rgba(245, 165, 36, .08); opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.r-tag-card.on { opacity: 1; transform: translateY(0); }
.r-tag-card b { display: block; font: 600 9.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.r-tag-card span { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .r-tag-card, .progress b { transition: none; }
}
@media (max-width: 960px) {
  .radar { height: 460px; }
}
@media (max-width: 520px) {
  .radar { height: 440px; border-radius: 18px; }
  .r-head { top: 14px; left: 14px; right: 14px; }
  .r-key { gap: 12px; font-size: 11px; }
  .r-count { left: 12px; bottom: 12px; min-width: 0; padding: 12px 14px; }
  .r-count strong { font-size: 30px; }
}

/* The radar is a dark screen in both looks (public/theme.js): in light mode its text and lines keep
   their dark-mode colors, and its shadow is softer on the light page. */
:root[data-theme="light"] .radar { --text: #eef3f1; --text-2: #b5c2be; --muted: #7f8e89; --line: rgba(255, 255, 255, .09); --teal: #3ddbb0; --fg: 255, 255, 255; color: #eef3f1; box-shadow: 0 30px 70px rgba(20, 24, 28, .22); }
