/* Demo demo27 "Radar" — locals at night: near-black, a dark-filtered map, glowing speciality lights, Unbounded + IBM Plex Mono, frequency bars. */
.demo27-page { --map-top: 70px; --night: #0a0b0d; --glass: rgba(14,15,18,.78); --edge: rgba(255,255,255,.09); --dim: #8d93a0; --sig: #9dff6a; background: var(--night); }
.rd { padding: 0; color: #eef0f4; font-family: "IBM Plex Mono", ui-monospace, monospace; }

/* banner: duotone photos, a huge two-line title */
.rd-banner__inner { position: relative; height: clamp(300px, 34vw, 440px); overflow: hidden; background: #000; }
.rd-slide { position: absolute; inset: 0; }
.rd-slide__photos { position: absolute; inset: 0 0 0 38%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.rd-slide__photos img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: grayscale(1) contrast(1.2) brightness(.7); mix-blend-mode: screen; }
.rd-slide__photos::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0,0,0,.4) 30%, rgba(0,0,0,.1) 100%), linear-gradient(140deg, rgba(91,76,240,.55), rgba(214,69,122,.45) 60%, rgba(157,255,106,.25)); mix-blend-mode: multiply; }
.rd-slide__photos { background: #120f2a; }
.rd-slide__text { position: absolute; left: max(24px, calc((100vw - 1280px) / 2 + 24px)); top: 50%; transform: translateY(-50%); max-width: 640px; }
.rd-slide__kicker { margin: 0 0 18px; font: 500 12px/1 "IBM Plex Mono", monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--sig); }
.rd-slide__kicker::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 12px var(--sig); margin-right: 10px; animation: rd-pulse 1.8s infinite; vertical-align: 1px; }
@keyframes rd-pulse { 50% { opacity: .3; } }
.rd-slide__title { margin: 0; font: 800 clamp(40px, 6vw, 92px)/.92 "Unbounded", sans-serif; letter-spacing: -.04em; text-transform: uppercase; }
.rd-slide__lead { margin: 20px 0 0; font: 400 14.5px/1.6 "IBM Plex Mono", monospace; color: #c3c7d0; max-width: 48ch; }
.rd-banner__hide { position: absolute; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 999px; border: 1px solid var(--edge); background: rgba(0,0,0,.55); color: #eef0f4; font: 500 12px/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.rd-banner__hide i { width: 30px; height: 16px; border-radius: 8px; background: var(--sig); position: relative; }
.rd-banner__hide i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #0a0b0d; }
.rd-banner__hide:hover { border-color: var(--sig); }

/* stage */
.lp-stage.rd-stage { --lm-bg: #111216; }
.rd-stage .leaflet-container { background: #111216; }
.rd-readout { position: absolute; z-index: 500; left: 20px; top: 18px; padding: 14px 18px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--edge); backdrop-filter: blur(12px); min-width: 230px; }
.rd-readout__big { margin: 0; font: 800 54px/1 "Unbounded", sans-serif; letter-spacing: -.05em; color: #fff; text-shadow: 0 0 30px rgba(157,255,106,.35); }
.rd-readout__label { margin: 6px 0 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.rd-city select { width: 100%; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--edge); background: #15161b; color: #eef0f4; font: 500 13px/1 "IBM Plex Mono", monospace; color-scheme: dark; }
.rd-city select:focus { outline: none; border-color: var(--sig); }

.rd-freq { position: absolute; z-index: 500; right: 18px; top: 18px; bottom: 18px; width: 320px; display: flex; flex-direction: column; border-radius: 18px; background: var(--glass); border: 1px solid var(--edge); backdrop-filter: blur(14px); overflow: hidden; }
.rd-freq__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; border-bottom: 1px solid var(--edge); }
.rd-freq__head h2 { margin: 0; font: 600 15px/1 "Unbounded", sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.rd-switch { font: 500 11.5px/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--edge); background: transparent; color: var(--dim); cursor: pointer; }
.rd-switch[aria-pressed="true"] { color: #0a0b0d; background: var(--sig); border-color: var(--sig); box-shadow: 0 0 16px -2px rgba(157,255,106,.6); }
.rd-freq__list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: #2a2c33 transparent; }
.rd-band { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; font-size: 12.5px; color: #d7dae2; }
.rd-band .lm-spec__code { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 500 9.5px/1 "IBM Plex Mono", monospace; color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); }
.rd-band .lm-spec__name { overflow: hidden; text-overflow: ellipsis; }
.rd-band .lm-spec__count { font-variant-numeric: tabular-nums; color: var(--dim); }
.rd-band__bar { position: absolute; left: 46px; right: 44px; bottom: 4px; height: 2px; border-radius: 1px; background: rgba(255,255,255,.06); overflow: hidden; }
.rd-band__bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: var(--c); box-shadow: 0 0 8px var(--c); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.rd-band:hover { background: rgba(255,255,255,.04); }
.rd-band.is-on { background: color-mix(in srgb, var(--c) 16%, transparent); color: #fff; }
.rd-band.is-on .lm-spec__code { background: var(--c); color: #0a0b0d; box-shadow: 0 0 14px -2px var(--c); }
.rd-band.is-on .lm-spec__count { color: #fff; }
.rd .lm-spec--all { display: flex; justify-content: space-between; padding: 9px 8px; border-radius: 10px; font: 600 12px/1 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.rd .lm-spec--all.is-on { color: var(--sig); }
.rd .lm-spec:focus-visible, .rd-switch:focus-visible, .lm-provider:focus-visible { outline: 2px solid var(--sig); outline-offset: 2px; }
.rd-freq__foot { padding: 12px 14px 14px; border-top: 1px solid var(--edge); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rd-providers { display: flex; flex-wrap: wrap; gap: 4px; }
.lm-provider { padding: 7px 10px; border-radius: 8px; font: 500 11.5px/1 "IBM Plex Mono", monospace; color: var(--dim); border: 1px solid transparent; }
.lm-provider:hover { color: #fff; }
.lm-provider.is-active { color: #fff; border-color: var(--edge); background: rgba(255,255,255,.06); }

/* lights */
.rd-dot { position: relative; display: block; width: 100%; height: 100%; }
.rd-dot i { position: absolute; left: 50%; top: 50%; width: calc(12px * var(--r)); height: calc(12px * var(--r)); transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--c), 0 0 10px 2px var(--c), 0 0 26px 6px color-mix(in srgb, var(--c) 55%, transparent); transition: transform .2s; }
.lm-marker:hover .rd-dot i, .lm-marker.is-hot .rd-dot i { transform: translate(-50%, -50%) scale(1.6); }
.lm-marker.is-selected .rd-dot i { transform: translate(-50%, -50%) scale(1.9); box-shadow: 0 0 0 2px var(--c), 0 0 0 6px rgba(255,255,255,.2), 0 0 30px 8px var(--c); }
.lm-marker.is-selected .rd-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 1px solid var(--c); animation: rd-ring 1.6s ease-out infinite; }
@keyframes rd-ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.rd-stage .lm-cluster { box-shadow: 0 0 24px -4px rgba(255,255,255,.35); --lm-cluster-bg: #0d0e11; --lm-cluster-ink: #fff; }
.rd-stage .lm-cluster b { font-family: "IBM Plex Mono", monospace; font-weight: 500; width: calc(100% - 6px); height: calc(100% - 6px); }
.rd-stage .leaflet-heat-pane { filter: blur(16px); mix-blend-mode: screen; opacity: .9; }

/* card */
.rd-card { position: absolute; z-index: 600; left: 20px; bottom: 20px; width: 340px; max-height: calc(100% - 40px); overflow-y: auto; border-radius: 18px; background: rgba(12,13,16,.94); border: 1px solid var(--edge); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -20px #000; }
.lm-card { padding: 0 0 18px; }
.lm-card__img { width: 100%; height: 210px; object-position: center 22%; filter: saturate(.85) contrast(1.05); }
.lm-card__close { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; line-height: 1; text-align: center; }
.lm-card__spec { display: flex; align-items: center; gap: 10px; margin: 14px 18px 0; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.lm-card__spec i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); font-size: 0; }
.lm-card__name { margin: 10px 18px 0; font: 800 24px/1.05 "Unbounded", sans-serif; letter-spacing: -.03em; }
.lm-card__place { margin: 6px 18px 0; color: var(--dim); font-size: 12.5px; }
.lm-card__bio { margin: 12px 18px 0; font-size: 13.5px; line-height: 1.55; color: #c9ccd4; }
.lm-card__facts { margin: 14px 18px 0; }
.lm-card__facts div { padding: 8px; border-radius: 10px; background: rgba(255,255,255,.04); }
.lm-card__facts dt { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.lm-card__facts dd { font-size: 12.5px; color: #fff; }
.lm-card__open { margin: 12px 18px 0; font-size: 12px; color: var(--sig); }
.lm-card__open::before { content: "● "; text-shadow: 0 0 8px var(--sig); }
.lm-card__actions { margin: 14px 18px 0; }
.lm-card__btn { flex: 1; height: 42px; border-radius: 12px; border: 1px solid var(--edge); color: #fff; font: 600 12px/1 "Unbounded", sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.lm-card__btn--primary { background: var(--sig); border-color: var(--sig); color: #0a0b0d; }
.lm-card__btn:hover { border-color: #fff; }

.rd-status { position: absolute; z-index: 500; left: 20px; top: 210px; margin: 0; font-size: 12px; color: var(--sig); }
.rd-stage .leaflet-control-zoom { border: 1px solid var(--edge); border-radius: 12px; overflow: hidden; margin: 0 0 20px 20px; }
.rd-stage .leaflet-control-zoom a { background: var(--glass); color: #fff; border-color: var(--edge); width: 38px; height: 38px; line-height: 38px; }
.rd-stage.has-card .leaflet-bottom.leaflet-left { display: none; }
.rd-stage .leaflet-control-attribution { background: rgba(0,0,0,.55); color: #9aa0ab; }
.rd-stage .leaflet-control-attribution a { color: #c9ccd4; }

@media (max-width: 860px) {
  .rd-slide__photos { inset: 0; opacity: .5; }
  .rd-slide__text { left: 20px; right: 20px; }
  .rd-slide__lead { font-size: 13px; }
  .lp-stage.rd-stage { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .rd-stage .lp-map { position: relative; height: 64vh; min-height: 400px; }
  .rd-readout { left: 12px; top: 12px; right: 12px; min-width: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; padding: 10px 12px; }
  .rd-readout__big { font-size: 34px; grid-row: 1 / 3; }
  .rd-readout__label { margin: 0 0 6px; }
  .rd-freq { position: relative; inset: auto; width: auto; border-radius: 0; border-left: 0; border-right: 0; }
  .rd-freq__list { max-height: 360px; }
  .rd-card { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 80vh; border-radius: 18px 18px 0 0; z-index: 1000; }
  .rd-status { top: 96px; left: 12px; }
}
@media (prefers-reduced-motion: reduce) { .rd-slide__kicker::before, .lm-marker.is-selected .rd-dot::before { animation: none; } }
