/* Rent screener additions on top of ../assets/app.css */
.gate { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 6000; padding: 16px; }
.gate form { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; width: min(360px, 100%); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.gate h1 { font-size: 17px; margin: 0 0 2px; }
.gate p { margin: 0 0 14px; }
.gate input { width: 100%; border: 1px solid #cfd4dc; border-radius: 6px; padding: 7px 9px; margin-bottom: 10px; }
.gate .btn { width: 100%; padding: 7px 10px; }
.gate .err { color: var(--warn); min-height: 18px; font-size: 12px; margin-top: 8px; }

@media (min-width: 901px) {
  .layout { grid-template-columns: min(340px, 42vw) minmax(0, 1fr); }
  .main { grid-template-rows: minmax(0, 48%) minmax(0, 1fr); }
}
.side { border-right: 1px solid var(--line); }
.block-head.sub { margin: 16px 0 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.ratio-row { display: flex; align-items: center; gap: 10px; }
.ratio-row input[type=range] { flex: 1; accent-color: var(--accent); }
.ratio-val { font-weight: 650; font-size: 16px; min-width: 48px; text-align: right; font-variant-numeric: tabular-nums; }
input[type=number].w60 { width: 64px; }
#filtersBlock select { max-width: 100%; }
#rcsMode { width: 100%; }

.mini, .dt { width: auto; font-size: 11.5px; margin-top: 6px; }
.mini th, .mini td, .dt th, .dt td { padding: 2px 7px; }
.mini th, .dt th { position: static; cursor: default; }
.mini tbody tr, .dt tbody tr { cursor: default; }
.mini tbody tr:hover, .dt tbody tr:hover { background: none; }
.dt tr.off td { color: var(--muted); }
.dt td.wrap { white-space: normal; min-width: 0; }

#ctbl tbody tr { background: #fff; }
#ctbl th:first-child, #ctbl td:first-child { position: sticky; left: 0; z-index: 2; background: inherit; max-width: 250px; overflow: hidden; text-overflow: ellipsis; box-shadow: inset -1px 0 0 var(--line); }
#ctbl th:first-child { z-index: 3; background: #f8f9fb; }
#ctbl th .arr { color: var(--accent); }
#ctbl tbody tr.sel { background: #fff1bf; }
.pos { color: var(--verified); }
.neg { color: var(--warn); }
.b.rcs { background: #14213d; }
.b.pre { background: var(--estimate); }
.subnote { color: var(--muted); font-size: 11px; }
.more .btn { margin-left: 8px; }
.detail h3 .muted { font-weight: 400; font-size: 12px; }
.callout { background: #f4f7fc; border: 1px solid #dbe4f3; border-radius: 8px; padding: 8px 10px; margin-top: 10px; font-size: 12.5px; }
.callout b { font-size: 15px; }
dialog ul { padding-left: 18px; }
.dt tr.tot td { border-top: 1px solid var(--line); background: #f8f9fb; }
.reftip { font-size: 11px; padding: 2px 6px; border-color: #1f4e99; }
.leaflet-tooltip.reftip::before { border-right-color: #1f4e99; }
.dt .link { text-align: left; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top .stateSel { font-size: 13px; padding: 3px 6px; border: 1px solid #cfd4dc; border-radius: 6px; background: #fff; color: #14213d; max-width: 170px; }
.gate select.stateSel { width: 100%; border: 1px solid #cfd4dc; border-radius: 6px; padding: 7px 9px; margin-bottom: 10px; background: #fff; }

/* the hidden attribute wins over display rules (e.g. .row) */
[hidden] { display: none !important; }

/* map layer toggles (top right) */
.mapopts { max-width: 250px; }
.mapopts .chk { align-items: center; padding: 1px 0; }
.mapopts .chk input { margin-top: 0; }
.mapopts .chk i { margin: 0 0 0 2px; }
.mapopts .hint { margin-top: 2px; line-height: 1.35; }
@media (max-width: 900px) { .mapopts { max-width: 190px; font-size: 11px; } .mapopts > b { display: none; } }
@media (max-width: 600px) { .mapopts { max-width: 165px; padding: 3px 6px; line-height: 1.3; } .mapopts .hint { display: none !important; } .mapopts .chk { padding: 0; } .leaflet-control.legend:not(.mapopts) { font-size: 10px; line-height: 1.35; padding: 4px 6px; } .legend i { width: 8px; height: 8px; } }
.legend i.sq { border-radius: 2px; opacity: .55; }

/* Area search (center + radius), shared look with the national map */
.b.hud { background: #475569; }
.b.lih { background: #db2777; }
.b + .b { margin-left: 3px; }
.center-info { margin-top: 6px; font-size: 12px; }
.center-info b { color: var(--ink, #111); }
.pinmode .leaflet-container { cursor: crosshair; }
.callout .btn { margin-top: 6px; }
