:root {
  --navy: #182444;
  --navy-deep: #0F1730;
  --paper: #E8F5FA;
  --paper-2: #D3E8F1;
  --ink: #182444;
  --ink-soft: #52627A;
  --brass: #3AA7D6;
  --brass-deep: #2487B4;
  --accent: #3AA7D6;
  --accent-deep: #2487B4;
  --line: rgba(24, 36, 68, 0.12);
  --max: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(24,36,68,0.05), 0 10px 30px rgba(24,36,68,0.10);
  --shadow-lg: 0 20px 50px rgba(24,36,68,0.20);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; min-height: 92px; flex-wrap: wrap; }
/* Team wordmark, set live in Outfit so "Residential" stays legible at header size.
   "Jimenez" 30px/500 → cap height ≈ 21px. */
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.brand-name { font-size: 30px; font-weight: 500; letter-spacing: -0.035em; }
.brand-sub { font-size: 12px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; margin-top: 5px; padding-left: 2px; color: var(--brass-deep); }
/* Sponsoring broker: Becovic's own logo. At 58px tall the "Becovic" letters are ≈32px —
   larger than the 21px "Jimenez" caps, as 225 ILCS 454/10-30(f) requires. */
.broker { display: flex; align-items: center; gap: 10px; text-decoration: none; cursor: default; padding-left: 28px; border-left: 1px solid var(--line); }
.broker img { height: 46px; width: auto; display: block; }
.broker-sub { font-size: 20px; font-weight: 400; letter-spacing: 0.02em; opacity: 0.9; padding-top: 4px; }
.footer-broker { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.footer-broker img { height: 26px; width: auto; }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; font-size: 16px; }
.nav a { text-decoration: none; opacity: 0.9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.nav-cta { background: var(--brass); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 500; opacity: 1 !important; }
.nav-cta:hover { background: var(--brass-deep); text-decoration: none !important; }

/* ---------- hero + search ---------- */
.hero { position: relative; background: var(--navy); color: #fff; padding: 72px 0 48px; border-radius: 0 0 32px 32px; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #0F1730, #2B4A7A); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1200ms ease; }
.hero-video.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,48,0.5) 0%, rgba(15,23,48,0.35) 50%, rgba(15,23,48,0.85) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero-map { display: flex; justify-content: center; }
.hero-map svg { width: min(100%, 400px); height: auto; overflow: hidden; border-radius: 24px; }
.hcity-fill { fill: rgba(232,245,250,0.07); }
.hcity { fill: none; stroke: rgba(232,245,250,0.9); stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hdraw 2.2s ease-out forwards; filter: url(#hglow); }
@keyframes hdraw { to { stroke-dashoffset: 0; } }
.hpin { transform: translate(var(--x), var(--y)); }
.hpin-dot { fill: var(--brass); opacity: 0; transform: translateY(-6px) scale(0.3); animation: hdrop 320ms cubic-bezier(.2,.9,.3,1.4) forwards; animation-delay: var(--d); }
.hpin-ring { fill: none; stroke: var(--brass); opacity: 0; transform: scale(0.3); animation: hring 2.2s ease-out infinite; animation-delay: calc(var(--d) + 160ms); }
.hlake { opacity: 0; animation: hfade 900ms ease-out forwards; animation-delay: 3.2s; }
.hwave { fill: none; stroke: rgba(191,227,242,0.85); stroke-width: 1.7; stroke-linecap: round; animation: hbob 3.2s ease-in-out infinite; animation-delay: var(--d); }
.hcoast { fill: none; stroke: #7CD0F0; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: url(#hglow); animation: hdraw 1.6s ease-out forwards; animation-delay: 3.1s; }
.hcity-name { fill: rgba(255,255,255,0.9); font-family: var(--font); font-weight: 600; letter-spacing: 0.28em; opacity: 0; animation: hfade 900ms ease-out forwards; animation-delay: 3.2s; }
.htown { fill: rgba(191,227,242,0.7); font-family: var(--font); font-weight: 400; letter-spacing: 0.2em; opacity: 0; animation: hfade 900ms ease-out forwards; animation-delay: 3.4s; }
.hlake-label { fill: rgba(191,227,242,0.8); font-family: var(--font); font-weight: 400; letter-spacing: 0.28em; }
@keyframes hbob { 0%, 100% { transform: translate(0, 0); opacity: 0.45; } 50% { transform: translate(var(--w), 0); opacity: 1; } }
@keyframes hfade { to { opacity: 1; } }
.hlabel { fill: #fff; font-family: var(--font); font-weight: 500; letter-spacing: 0.01em; paint-order: stroke; stroke: rgba(15,23,48,0.85); stroke-linejoin: round; opacity: 0; transform: translateX(var(--lx, 0)) scale(0.6); animation: hpop 360ms cubic-bezier(.2,.9,.3,1.3) forwards; animation-delay: calc(var(--d) + 220ms); }
@keyframes hdrop { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes hring { 0% { opacity: 0.9; transform: scale(0.3); } 100% { opacity: 0; transform: scale(2); } }
@keyframes hpop { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hcity { stroke-dashoffset: 0; animation: none; } .hpin-dot, .hlabel, .hlake, .hcity-name, .htown { opacity: 1; } .hcoast { stroke-dashoffset: 0; animation: none; transform: none; animation: none; } .hpin-ring, .hwave { animation: none; } .hpin-ring { display: none; } }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #BFE3F2; margin-bottom: 14px; }
.hero-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7CD0F0; box-shadow: 0 0 0 4px rgba(124,208,240,0.3); }
.hero h1 { text-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.hero-still .hero-media { background: linear-gradient(135deg, #0F1730, #3AA7D6); }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); max-width: 17ch; }
.lede { max-width: 60ch; margin-top: 16px; font-size: 18px; opacity: 0.95; text-shadow: 0 1px 8px rgba(0,0,0,0.25); }

.search {
  margin-top: 32px;
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}
.search label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-soft); padding-left: 6px; }
.search select {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 11px 36px 11px 14px; border: 1px solid transparent; border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2314213D' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none; -webkit-appearance: none; min-height: 46px; background-color: #fff; border-color: var(--line);
}
.search select:hover { border-color: var(--ink-soft); }
.btn-quiet { font: inherit; font-size: 15px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 11px 14px; min-height: 46px; cursor: pointer; color: var(--ink-soft); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }

.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick button { font: inherit; font-size: 14px; color: #fff; background: rgba(242,239,228,0.08); border: 1px solid rgba(242,239,228,0.3); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.quick button:hover { border-color: var(--paper); }
.quick button.on { background: #fff; color: var(--navy); border-color: #fff; font-weight: 500; }
.quick .q-saved::before { content: "\2665  "; }
.quick .q-share { border-style: dashed; }
.quick .q-area { background: #fff; color: var(--navy); border-color: #fff; font-weight: 500; }
.hpin { cursor: pointer; }
.hpin-hit { fill: transparent; }
.hpin:hover .hpin-dot, .hpin:focus-visible .hpin-dot { fill: #fff; }
.hpin:hover .hlabel { fill: #BFE3F2; }
.quick .q-clear { margin-left: auto; border-color: transparent; color: rgba(255,255,255,0.65); font-size: 13px; }
.quick .q-clear:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.quick .q-clear.armed { background: #B8463A; border-color: #B8463A; color: #fff; }
.q-note { align-self: center; font-size: 13px; color: #BFE3F2; }
.picks { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff; border-left: 4px solid var(--brass); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .picks button { width: 100%; } }
.picks p { font-size: 15px; }
.picks .btn { white-space: nowrap; }
.picks[hidden] { display: none; }

.view-toggle { display: inline-flex; border-radius: 999px; overflow: hidden; background: var(--paper-2); padding: 4px; gap: 2px; }
.view-toggle-big { display: flex; width: min(440px, 100%); margin: -32px auto 28px; background: #fff; box-shadow: var(--shadow-lg); padding: 6px; position: relative; z-index: 2; }
.view-toggle-big button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; font-weight: 500; padding: 14px 20px; }
.view-toggle.view-toggle-big button[aria-pressed="true"] { background: var(--brass); color: #fff; }
.view-float { display: none; }
.view-toggle button { font: inherit; font-size: 15px; padding: 8px 18px; border: 0; border-radius: 999px; background: none; cursor: pointer; color: var(--ink-soft); }
.view-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--paper); }
.map-wrap { position: relative; }
.hover-card { position: absolute; z-index: 900; transform: translate(-50%, -100%); display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 8px 14px 8px 8px; box-shadow: var(--shadow-lg); pointer-events: none; white-space: nowrap; }
.hover-card[hidden] { display: none; }
.hover-card::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.hover-card img { width: 76px; height: 58px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.hover-card b { display: block; font-size: 18px; font-weight: 500; line-height: 1.1; }
.hover-card b small { font-size: 12px; font-weight: 400; color: var(--ink-soft); margin-left: 2px; }
.hover-card span { display: block; font-size: 13.5px; margin-top: 3px; }
.hover-card em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.map { height: 940px; min-height: 420px; border-radius: 20px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.map .leaflet-tile-pane { filter: saturate(0.35) brightness(1.06) contrast(0.92); }
.map.is-mapbox .leaflet-tile-pane { filter: saturate(0.9) brightness(1.03); }
.map .leaflet-control-zoom { border: 0; box-shadow: var(--shadow); border-radius: 999px; overflow: hidden; }
.map .leaflet-control-zoom a { border: 0; color: var(--navy); font-family: var(--font); }
.map-note { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.map-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.map-col { position: sticky; top: 16px; }
.map-side { max-height: 940px; overflow-y: auto; padding: 4px 6px 12px 4px; scrollbar-width: thin; }
.map-side-head { font-size: 15px; color: var(--ink-soft); margin: 2px 0 12px; }
.map-side-empty { font-size: 15px; color: var(--ink-soft); padding: 24px 0; max-width: 32ch; }
.grid.grid-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.grid-side .unit-rent { font-size: 24px; }
.grid-side .unit-body { padding: 12px 14px 14px; }
.grid-side .unit-tags { display: none; }
.pin.is-hot span { transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 0 2px #fff, 0 0 0 7px rgba(58,167,214,0.3), 0 8px 20px rgba(58,167,214,0.5); z-index: 3; }
.pin { background: none; border: 0; }
.pin span { display: inline-block; transform: translate(-50%, -50%); background: var(--accent); color: #fff; font: 500 13px/1 var(--font); padding: 8px 12px; border-radius: 999px; white-space: nowrap; box-shadow: 0 0 0 2px #fff, 0 4px 14px rgba(58,167,214,0.45); position: relative; transition: transform 120ms ease, box-shadow 120ms ease; }
.pin:hover span { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgba(58,167,214,0.25), 0 8px 20px rgba(58,167,214,0.5); z-index: 2; }
.pin span small { font-size: 11px; opacity: 0.85; margin-left: 4px; }
.pin-cluster span { background: var(--accent); color: #fff; width: 60px; height: 60px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0; font-size: 13px; box-shadow: 0 0 0 3px #fff, 0 0 0 12px rgba(58,167,214,0.22), 0 8px 22px rgba(58,167,214,0.45); }
.pin-cluster span small { margin: 0; font-size: 11.5px; opacity: 0.9; }
.pin-cluster:hover span { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 3px #fff, 0 0 0 16px rgba(58,167,214,0.3), 0 10px 26px rgba(58,167,214,0.5); }
.leaflet-marker-icon.pin { margin-left: 0 !important; margin-top: 0 !important; }
.leaflet-popup-content-wrapper { border-radius: 16px; font-family: var(--font); box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 12px 12px 8px; }
.pop-title { font-weight: 500; font-size: 15px; margin-bottom: 8px; color: var(--ink); }
.pop-unit { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; border-top: 1px solid var(--line); padding: 8px 0; cursor: pointer; }
.pop-unit:hover b { color: var(--accent-deep); }
.pop-unit img, .pop-unit i { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; background: var(--paper-2); flex: 0 0 auto; }
.pop-unit span { font-size: 14px; line-height: 1.3; }
.pop-unit small { color: var(--ink-soft); }

/* ---------- results ---------- */
.results { padding: 0 0 64px; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.count { font-size: 22px; font-weight: 500; }
.updated { font-size: 14px; color: var(--ink-soft); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; padding: 4px; }
.unit { position: relative; background: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform 180ms ease, box-shadow 180ms ease; }
.unit-open { display: flex; flex-direction: column; flex: 1; width: 100%; text-align: left; padding: 0; font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
.unit:hover .unit-photo img { transform: scale(1.03); }
.unit:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.unit-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.badge-now { position: absolute; left: 12px; bottom: 12px; background: #2E6B3F; color: #fff; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 999px; }
.save { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(242,239,228,0.92); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: transform 150ms ease; }
.save:hover { transform: scale(1.08); }
.save[aria-pressed="true"] svg { fill: #B8463A; stroke: #B8463A; }
.unit-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.unit-tags span { font-size: 12.5px; color: var(--ink); background: var(--paper-2); border-radius: 999px; padding: 3px 10px; }
.unit-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.unit-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.unit-rent { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.unit-rent small { font-size: 14px; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; margin-left: 4px; }
.unit-facts { font-size: 15px; color: var(--ink); }
.unit-address { font-size: 15px; color: var(--ink-soft); }
.unit-avail { margin-top: auto; padding-top: 10px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.unit-avail b { font-weight: 500; color: var(--brass-deep); }
.unit-avail span.now { color: #2E6B3F; font-weight: 500; }
.empty { max-width: 56ch; font-size: 18px; padding: 40px 0; }

/* ---------- how it works ---------- */
.how { background: #fff; padding: 72px 0 64px; }
.how h2 { font-size: clamp(26px, 3.2vw, 38px); }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { background: var(--paper); border-radius: 20px; padding: 26px 24px 28px; position: relative; box-shadow: var(--shadow); }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brass); color: #fff; font-weight: 500; margin-bottom: 14px; }
.steps h3 { font-size: 20px; }
.steps p { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }
.how-fine { margin-top: 20px; font-size: 14px; color: var(--ink-soft); }

/* ---------- about ---------- */
.about { background: var(--navy); color: var(--paper); padding: 72px 0; }
.about-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about h2 { font-size: clamp(26px, 3.2vw, 38px); max-width: 20ch; }
.about-text p { margin-top: 18px; max-width: 58ch; opacity: 0.92; }
.about-contact { font-size: 20px; line-height: 1.6; }
.about-contact a { text-decoration: none; border-bottom: 1px solid #7CD0F0; }
.about-mark { display: flex; justify-content: center; opacity: 0.9; }
.about-mark img { width: 300px; height: auto; }

/* ---------- contact / forms ---------- */
.contact { padding: 64px 0 80px; }
.contact h2 { font-size: clamp(24px, 3vw, 34px); }
.contact > .wrap > p { margin-top: 10px; color: var(--ink-soft); max-width: 56ch; }
.lead-form { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--ink-soft); }
.field input, .field textarea { font: inherit; font-size: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); min-height: 46px; }
.field textarea { resize: vertical; }
.field-wide { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 15px; color: var(--ink-soft); }
.form-note.ok { color: #2E6B3F; }
.form-note.err { color: #9A2B2B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn { font: inherit; font-size: 16px; font-weight: 500; background: var(--brass); color: var(--paper); border: 0; border-radius: 999px; padding: 13px 24px; cursor: pointer; min-height: 48px; }
.btn:hover { background: var(--brass-deep); }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* ---------- footer ---------- */
.site-footer { background: #fff; padding: 40px 0 48px; font-size: 15px; }
.site-footer { border-radius: 32px 32px 0 0; }
.footer-row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-team, .footer-broker { font-size: 19px; font-weight: 500; line-height: 1.3; }
.footer-fine { margin-top: 12px; max-width: 64ch; color: var(--ink-soft); font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(14, 24, 48, 0.55); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(600px, 100%); background: var(--paper); overflow-y: auto; box-shadow: -12px 0 40px rgba(0,0,0,0.25); border-radius: 24px 0 0 24px; }
.drawer-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--navy); color: var(--paper); font-size: 26px; line-height: 1; cursor: pointer; z-index: 2; }
.gallery { background: var(--navy-deep); }
.drawer-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); display: block; }
.drawer-photo[hidden] { display: none; }
.gallery-count { position: absolute; top: 14px; left: 16px; background: rgba(14,24,48,0.75); color: var(--paper); font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: thin; }
.thumbs:empty { display: none; }
.thumb { flex: 0 0 auto; width: 72px; height: 54px; border: 0; padding: 0; border-radius: 4px; overflow: hidden; cursor: pointer; opacity: 0.6; background: var(--paper-2); outline-offset: 2px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--brass); }
.drawer-body { padding: 22px 24px 32px; }
.d-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.d-rent { font-size: 36px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.d-rent small { font-size: 15px; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }
.d-avail { font-size: 15px; font-weight: 500; color: var(--brass-deep); background: rgba(58,167,214,0.16); padding: 6px 12px; border-radius: 999px; }
.d-avail.now { color: #2E6B3F; background: rgba(46,107,63,0.12); }
.drawer-body h2 { font-size: 22px; margin-top: 12px; }
.d-address { color: var(--ink-soft); margin-top: 4px; }
.d-facts { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 15px; }
.d-facts li b { font-weight: 500; }
.d-video { margin-top: 12px; font-size: 15px; }
.d-desc { margin-top: 18px; font-size: 16px; line-height: 1.55; }
.d-desc p { margin: 0 0 12px; }
.d-sections { margin-top: 8px; display: grid; gap: 18px; }
.d-section h3 { font-size: 15px; font-weight: 500; color: var(--ink-soft); margin-bottom: 8px; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.d-chips li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; background: #fff; border-radius: 999px; padding: 7px 13px 7px 10px; box-shadow: 0 1px 2px rgba(20,33,61,0.06); }
.d-chips svg { color: var(--brass-deep); flex: 0 0 auto; }
.d-list { list-style: none; padding: 0; margin: 0; font-size: 15px; display: grid; gap: 6px; }
.d-list li { display: flex; align-items: flex-start; gap: 9px; }
.d-list svg { color: var(--ink-soft); flex: 0 0 auto; margin-top: 2px; }
.gallery-stage { position: relative; aspect-ratio: 4 / 3; background: var(--navy-deep); }
.gallery-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.thumb-video { position: relative; }
.thumb-video .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(14,24,48,0.35); }
.thumb-video .play svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(242,239,228,0.9); color: var(--navy); font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; }
.g-nav[hidden] { display: none; }
.g-prev { left: 12px; } .g-next { right: 12px; }
.g-expand { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(14,24,48,0.75); color: var(--paper); cursor: pointer; display: grid; place-items: center; }
.g-expand[hidden] { display: none; }
.d-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.d-act { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 11px; cursor: pointer; text-decoration: none; }
.d-act:hover { border-color: var(--navy); }
.d-act[aria-pressed="true"] svg { fill: #B8463A; stroke: #B8463A; }
.d-share-note { font-size: 13px; color: var(--ink-soft); word-break: break-all; }
.d-group { margin-top: 10px; }
.d-group h4 { font-size: 13px; font-weight: 500; color: var(--ink-soft); margin: 0 0 6px; letter-spacing: 0.02em; }
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.day { flex: 0 0 auto; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 1px; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 4px; cursor: pointer; color: var(--ink); line-height: 1.1; }
.day small { font-size: 11.5px; color: var(--ink-soft); }
.day b { font-size: 20px; font-weight: 500; }
.day:hover { border-color: var(--navy); }
.day[aria-pressed="true"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.day[aria-pressed="true"] small { color: #BFE3F2; }
.d-sticky { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 24px; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(14,24,48,0.08); }
.d-sticky .btn { flex: 1; }
.d-sticky.is-hidden { display: none; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 16px; font-weight: 500; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 999px; padding: 13px 20px; text-decoration: none; min-height: 48px; }
.drawer-panel { display: flex; flex-direction: column; }
.drawer-body { flex: 1; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(8, 13, 28, 0.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lb-btn { position: absolute; border: 0; background: rgba(242,239,228,0.12); color: var(--paper); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(242,239,228,0.25); }
.lb-close { top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 72px; border-radius: 8px; font-size: 44px; line-height: 1; padding-bottom: 6px; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--paper); font-size: 14px; opacity: 0.8; }

.d-loading { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.d-source { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.unit-form { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.unit-form h3 { grid-column: 1 / -1; font-size: 19px; }
.d-apply { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.d-apply span { flex: 1; min-width: 200px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-row { grid-template-columns: 1fr; }
  .about-mark { justify-content: flex-start; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-map { display: none; }
  .map-split { grid-template-columns: 1fr; }
  .map-col { position: static; }
  .map { height: 52vh; min-height: 340px; }
  .map-side { max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-row { gap: 14px; padding-top: 14px; padding-bottom: 14px; }
  .brand-name { font-size: 26px; }
  .broker { padding-left: 0; border-left: 0; width: 100%; order: 3; }
  .broker img { height: 32px; }
  .broker-sub { font-size: 16px; }
  .nav { margin-left: 0; width: 100%; order: 4; gap: 14px; flex-wrap: wrap; }
  .hero { padding: 32px 0 28px; border-radius: 0 0 20px 20px; }
  .drawer-panel { border-radius: 0; }
  .site-footer { border-radius: 20px 20px 0 0; }
  .search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-quiet { grid-column: 1 / -1; }
  .grid { grid-template-columns: 1fr; }
  .grid.grid-side { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .results-head { flex-direction: column; gap: 10px; align-items: flex-start; }
  .view-toggle-big { margin: -26px auto 20px; }
  .view-toggle-big button { font-size: 16px; padding: 12px 14px; }
  .view-float { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; display: inline-flex; background: var(--ink); border-radius: 999px; padding: 5px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
  .view-float button { font: inherit; font-size: 15px; font-weight: 500; color: #fff; background: none; border: 0; border-radius: 999px; padding: 10px 22px; }
  .view-float button[aria-pressed="true"] { background: var(--brass); }
  body:has(.drawer:not([hidden])) .view-float { display: none; }
  .nav-phone span { display: none; }
  .d-sticky { padding: 10px 16px; }
  .drawer-body { padding: 18px 16px 24px; }
  .lb-prev, .lb-next { width: 40px; height: 60px; font-size: 34px; }
}

/* ---------- client picks on a shared list ---------- */
.like { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; font: inherit; font-size: 14px; font-weight: 500; background: rgba(255,255,255,0.94); color: var(--ink); border: 0; border-radius: 999px; padding: 9px 14px; cursor: pointer; box-shadow: 0 2px 10px rgba(24,36,68,0.18); }
.like.on { background: #2E6B3F; color: #fff; }
.likes-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(24,36,68,0.12); padding: 12px 0; }
.likes-bar[hidden] { display: none; }
.likes-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.likes-count { font-weight: 500; }
.likes-form { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.likes-form input { font: inherit; font-size: 15px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; min-width: 150px; flex: 1; }
body:has(.likes-bar:not([hidden])) .view-float { bottom: 92px; }

/* ---------- tour builder ---------- */
.modal { position: fixed; inset: 0; z-index: 55; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,48,0.55); }
.modal-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow-y: auto; background: var(--paper); border-radius: 22px; padding: 26px 26px 28px; box-shadow: var(--shadow-lg); }
.modal-panel h2 { font-size: 24px; }
.modal-sub { margin-top: 6px; color: var(--ink-soft); font-size: 15px; }
.tb-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.tb-stops { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.tb-stops li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
.tb-letter, .tour-letter { flex: 0 0 auto; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brass); color: #fff; font-weight: 600; font-size: 14px; }
.tb-stops img, .tb-stops i { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--paper-2); flex: 0 0 auto; }
.tb-body { flex: 1; min-width: 0; }
.tb-body b { font-weight: 500; } .tb-body small { color: var(--ink-soft); margin-left: 6px; }
.tb-fields { display: grid; grid-template-columns: 150px 1fr; gap: 8px; margin-top: 8px; }
.tb-fields input { font: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.tb-move { display: flex; flex-direction: column; gap: 4px; }
.tb-move button { font: inherit; width: 30px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--ink); }
.tb-move button[disabled] { opacity: 0.3; cursor: default; }
.tb-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- tour page ---------- */
body.mode-tour .hero, body.mode-tour .results, body.mode-tour .how, body.mode-tour .about, body.mode-tour .contact, body.mode-tour .view-float { display: none; }
.tour { padding: 40px 0 72px; }
.tour-kicker { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.tour-title { font-size: clamp(28px, 4vw, 44px); margin-top: 8px; max-width: 22ch; }
.tour-sub { margin-top: 10px; color: var(--ink-soft); font-size: 17px; }
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; margin-top: 28px; align-items: start; }
.tour-map-wrap { position: sticky; top: 16px; }
.tour-map { height: 480px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--paper-2); }
.pin-letter span { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 50%; font-size: 15px; font-weight: 600; }
.tour-stops { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.tour-stop { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.tour-stop-body { flex: 1; min-width: 0; }
.tour-stop-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tour-stop-head b { font-size: 20px; font-weight: 500; } .tour-stop-head span { color: var(--ink-soft); font-size: 14px; }
.tour-addr { display: block; margin-top: 4px; font-size: 15px; }
.tour-why { margin-top: 10px; font-size: 15px; background: var(--paper); border-left: 3px solid var(--brass); border-radius: 8px; padding: 8px 12px; }
.tour-why small { display: block; font-size: 12px; color: var(--brass-deep); font-weight: 500; letter-spacing: 0.04em; margin-bottom: 2px; }
.tour-open { margin-top: 10px; font: inherit; font-size: 14px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; color: var(--ink); }
.tour-photo { width: 110px; height: 82px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.tour-contact { margin-top: 28px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: 18px; padding: 18px 22px; }
.tour-contact p { flex: 1; } .tour-contact a { color: inherit; }
.tour-rate { margin-top: 36px; background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.tour-rate h2 { font-size: 24px; } .tour-rate > p { margin-top: 6px; color: var(--ink-soft); }
.rate-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.rate-list li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rate-addr { flex: 1; min-width: 160px; }
.stars button { font-size: 26px; line-height: 1; background: none; border: 0; color: var(--paper-2); cursor: pointer; padding: 2px; }
.stars button.on { color: #F2B01E; }
.rate-form { margin-top: 18px; display: grid; gap: 10px; }
.rate-form input, .rate-form textarea { font: inherit; font-size: 15px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 1000px) { .tour-grid { grid-template-columns: 1fr; } .tour-map-wrap { position: static; } .tour-map { height: 320px; } }
@media (max-width: 640px) { .tb-meta, .tb-fields { grid-template-columns: 1fr; } .tour-photo { display: none; } .likes-form input { min-width: 0; } }
