/* Nataliia Dehtiarova, REALTOR® — design B, "the budget board".
   The page opens on her sun yellow with one live sentence: "What does $450K buy in Tampa Bay?"
   The map answers it at dusk: areas in budget light up on the dark bay like porch lights.
   Yellow opens the page and closes it (the planner); everything between stays quiet. */

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/gilroy-black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --sun: #FFD23F;
  --sun-deep: #F2BE12;
  --ink: #10242A;
  --bay: #0B4249;
  --bay-deep: #072D32;
  --night-land: #0E4950;
  --night-water: #062429;
  --salt: #F3F6F2;
  --sand: #E9E0CB;
  --paper: #FBF8F0;
  --white: #FFFFFF;
  --mist: #5A7075;
  --line: rgba(16, 36, 42, .14);
  --line-light: rgba(255, 255, 255, .16);

  --display: "Gilroy", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 10vw, 136px);
  --r: 20px;
  --r-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--salt); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { flex: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 4.8vw, 60px); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--sun); padding: 8px 14px; z-index: 99; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; color: var(--bay); }
.fine { font-size: 13px; color: var(--mist); margin-top: 18px; max-width: 62ch; }
.fine--light { color: rgba(255,255,255,.6); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 999px; border: 0; font-weight: 700; font-size: 17px; text-decoration: none; transition: transform .15s, background .15s, color .15s; }
.btn svg { width: 20px; height: 20px; }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink svg { color: var(--sun); transition: transform .15s; }
.btn--ink:hover { background: var(--bay-deep); transform: translateY(-1px); }
.btn--ink:hover svg { transform: translateX(3px); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: var(--sun-deep); transform: translateY(-1px); }
.btn--big { width: 100%; padding: 18px 28px; font-size: 18px; }

/* ---------- Header: white over the photo ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 20; color: var(--white); }
.top::before { content: ""; position: absolute; inset: 0 0 -48px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(7,45,50,.6), rgba(7,45,50,0)); }
.top__row { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; margin-right: auto; white-space: nowrap; }
.brand__name { font-family: var(--display); font-size: 21px; }
.brand__sub { font-size: 12px; opacity: .8; }
.top__nav { display: flex; gap: 26px; font-size: 15px; font-weight: 600; }
.top__nav a { text-decoration: none; white-space: nowrap; }
.top__nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--sun); }
.lang { display: flex; border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.82); }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
.top__phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 999px; }
.top__phone svg { width: 18px; height: 18px; }
:focus-visible { outline-color: var(--sun); }
main :focus-visible { outline-color: var(--ink); }

/* ---------- Hero: the house on the water ---------- */
/* One screen tall regardless of language: nothing in it sizes the section. */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 680px; max-height: 1000px; display: flex; align-items: flex-end; padding: 96px 0 clamp(32px, 5.5vh, 60px); color: var(--white); background: var(--bay-deep); overflow: hidden; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(7,45,50,0) 34%, rgba(7,45,50,.42) 60%, rgba(7,45,50,.9) 100%),
  linear-gradient(90deg, rgba(7,45,50,.38) 0, rgba(7,45,50,0) 58%); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 64px); align-items: end; }
.hero .eyebrow { color: var(--sun); margin-bottom: 14px; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.hero__title { font-size: clamp(42px, 4.5vw, 74px); line-height: .98; text-shadow: 0 2px 26px rgba(0,0,0,.28); }
.hero__title em { font-style: normal; color: var(--sun); display: block; margin-top: 4px; }

.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; max-width: 880px; }
.doors .door { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--r); text-decoration: none; background: var(--white); color: var(--ink); box-shadow: 0 16px 36px -12px rgba(0,0,0,.4); transition: background .18s, transform .18s; }
.door__icon { width: 42px; height: 42px; color: var(--ink); }
.door__label { font-family: var(--display); font-size: 22px; line-height: 1.05; }
.door__go { width: 22px; height: 22px; margin-left: auto; transition: transform .18s; }
.doors .door:hover, .doors .door:focus-visible { background: var(--sun); transform: translateY(-4px); }
.doors .door:hover .door__go { transform: translateX(4px); }
.hero__browse { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.88); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.4); }
.hero__browse:hover { color: var(--white); text-decoration-color: var(--sun); }
.hero__browse svg { width: 16px; height: 16px; }

/* Her card: a portrait you can put a name to, standing on the dock at the right, clear of the house. */
.agent { margin: 0; width: 232px; background: var(--white); color: var(--ink); border-radius: 24px; padding: 8px 8px 16px; box-shadow: 0 26px 54px -10px rgba(0,0,0,.45); }
.agent img { width: 100%; aspect-ratio: 1 / 1.04; object-fit: cover; object-position: 50% 26%; border-radius: 18px; }
.agent figcaption { padding: 12px 10px 0; display: flex; flex-direction: column; align-items: flex-start; font-size: 13px; line-height: 1.3; color: var(--mist); }
.agent strong { font-family: var(--display); font-size: 19px; color: var(--ink); }
.agent__langs { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; background: var(--sun); color: var(--ink); padding: 3px 9px; border-radius: 99px; }

/* ---------- The instrument: what does your budget buy ---------- */
.areas { background: var(--sun); padding: var(--sec) 0 0; }
.areas__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.areas .eyebrow { color: var(--ink); opacity: .72; margin-bottom: 14px; }

.ask { font-family: var(--display); }
.ask__line { display: block; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.05; white-space: nowrap; }
/* The number is the headline. Fixed line box so its width changes never shift what is below. */
.ask__num { display: block; font-size: clamp(84px, 9.6vw, 156px); line-height: .9; letter-spacing: -0.035em; margin: 6px 0 8px -0.04em; height: .92em; }

.budget { margin-top: 22px; max-width: 520px; }
.budget input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.budget input[type=range]::-webkit-slider-runnable-track { height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--ink) var(--p, 16%), rgba(16,36,42,.16) var(--p, 16%)); }
.budget input[type=range]::-moz-range-track { height: 12px; border-radius: 99px; background: rgba(16,36,42,.16); }
.budget input[type=range]::-moz-range-progress { height: 12px; border-radius: 99px; background: var(--ink); }
.budget input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 38px; height: 38px; margin-top: -13px; border-radius: 50%; background: var(--white); border: 5px solid var(--ink); box-shadow: 0 6px 16px rgba(16,36,42,.3); cursor: grab; transition: transform .15s; }
.budget input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }
.budget input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 5px solid var(--ink); cursor: grab; }
.budget input[type=range]:focus-visible { outline: none; }
.budget input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(16,36,42,.25); }
.budget__scale { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; opacity: .6; }

.budget__count { margin: 14px 0 24px; display: flex; align-items: baseline; gap: 10px; font-size: 17px; font-weight: 500; }
.budget__count b { font-family: var(--display); font-size: 34px; line-height: 1; }

.areas__links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 20px; font-size: 15px; font-weight: 600; }
.areas__links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: rgba(16,36,42,.35); }
.areas__links a:hover { text-decoration-color: var(--ink); }
.areas__links svg { width: 16px; height: 16px; }
.areas__fine { font-size: 12px; color: rgba(16,36,42,.62); margin-top: 22px; padding-bottom: 28px; }

/* ---------- The board: the bay at dusk ---------- */
.board { background: var(--night-water); color: var(--white); border-radius: 30px; overflow: hidden; box-shadow: 0 34px 70px -20px rgba(7,45,50,.55); }
.map { position: relative; }
.map__svg { display: block; width: 100%; height: auto; }
.map__land { fill: var(--night-land); }
.map__roads { fill: none; stroke: rgba(255,255,255,.045); stroke-width: 6; stroke-linecap: round; }
.map__water { fill: var(--night-water); }
.map__bridge { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 3; stroke-dasharray: 2 6; stroke-linecap: round; }
.map__water-labels text { font-family: var(--body); font-size: 15px; font-style: italic; fill: rgba(168,210,204,.42); letter-spacing: .1em; }

.pin { cursor: pointer; }
.pin circle { transition: fill .25s, stroke .25s, opacity .25s; }
.pin .pin__halo { fill: var(--sun); opacity: 0; }
.pin .pin__dot { fill: #2F6268; stroke: var(--night-land); stroke-width: 3; }
.pin text { font-family: var(--body); font-size: 15px; font-weight: 600; fill: rgba(255,255,255,.34); paint-order: stroke; stroke: var(--night-land); stroke-width: 4px; stroke-linejoin: round; transition: fill .25s; }
.pin text.pin__price { font-size: 13px; font-weight: 500; }
.pin.is-on .pin__dot { fill: var(--sun); filter: drop-shadow(0 0 6px rgba(255,210,63,.95)); }
.pin.is-on .pin__halo { opacity: .16; }
.pin.is-on text { fill: var(--white); }
.pin.is-on text.pin__price { fill: var(--sun); }
.pin.is-picked .pin__dot { fill: var(--white); stroke: var(--sun); stroke-width: 4; }
.pin.is-picked .pin__halo { opacity: .4; }
.pin:hover text { fill: var(--white); }
.pin:focus { outline: none; }
.pin:focus-visible .pin__dot { stroke: var(--white); stroke-width: 5; }

.map__legend { position: absolute; left: 16px; top: 14px; display: flex; gap: 14px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); background: rgba(6,36,41,.8); padding: 6px 12px; border-radius: 99px; }
.map__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2F6268; display: inline-block; }
.dot--on { background: var(--sun); box-shadow: 0 0 8px rgba(255,210,63,.9); }

/* Her card sits out in the Gulf, the one empty corner of the map. */
.guide { position: absolute; left: 14px; bottom: 14px; margin: 0; display: flex; align-items: center; gap: 12px; background: var(--white); color: var(--ink); padding: 6px 16px 6px 6px; border-radius: 999px; box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.guide img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; }
.guide figcaption { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; font-size: 11.5px; color: var(--mist); }
.guide strong { font-family: var(--display); font-size: 15px; color: var(--ink); }
.guide__langs { margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .06em; background: var(--sun); color: var(--ink); padding: 2px 8px; border-radius: 99px; }

.board__foot { min-height: 122px; display: flex; align-items: center; padding: 16px 22px; border-top: 1px solid rgba(255,255,255,.07); }
.area-hint { color: rgba(255,255,255,.6); font-size: 15px; display: flex; align-items: center; gap: 12px; }
.area-hint::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 6px rgba(255,210,63,.18); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 11px rgba(255,210,63,0); } }
.area-card { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.area-card__head { min-width: 0; }
.area-card__name { font-family: var(--display); font-size: 24px; line-height: 1.05; }
.area-card__price { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 2px; }
.area-card__price b { color: var(--sun); font-size: 16px; }
.area-card__tags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.area-card__tags li { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; background: rgba(255,255,255,.08); padding: 4px 10px 4px 7px; border-radius: 99px; }
.area-card__tags svg { width: 15px; height: 15px; color: var(--sun); }
.area-card .btn { flex: none; padding: 13px 18px; font-size: 15px; }

/* ---------- Deal sheet ---------- */
.money { padding: var(--sec) 0; }
.money__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.money__head { position: sticky; top: 40px; }
.money__head h2 { max-width: 11ch; }
.money__lede { margin-top: 22px; font-size: 19px; color: var(--mist); max-width: 34ch; }

.sheet { position: relative; background: var(--paper); border-radius: 6px; padding: 36px clamp(22px, 3.4vw, 44px) 32px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(16,36,42,.35); }
/* Perforated top edge, like a statement torn off the printer. */
.sheet::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px; background: radial-gradient(circle at 9px 0, transparent 6px, var(--paper) 6.5px) 0 0 / 18px 10px repeat-x; }
.sheet__title { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.sheet__lic { font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.sheet__rows { list-style: none; margin: 0; padding: 0; }
.sheet__rows li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1.5px dashed var(--line); }
.sheet__rows svg { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--ink); color: var(--sun); }
.sheet__what { display: flex; flex-direction: column; gap: 3px; }
.sheet__what b { font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1.1; }
.sheet__what small { font-size: 15px; color: var(--mist); line-height: 1.45; }
/* The amount column, highlighted like she marked it with a pen. */
.sheet__amt { font-family: var(--display); font-size: 21px; line-height: 1.1; text-align: right; white-space: nowrap; padding: 3px 8px; margin-top: 2px; background: linear-gradient(104deg, transparent 2%, var(--sun) 4%, var(--sun) 95%, transparent 97%); border-radius: 3px; }
.sheet__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 20px 0 0; margin-top: 2px; border-top: 2px solid var(--ink); font-weight: 600; }
.sheet__total b { font-family: var(--display); font-weight: 900; font-size: 22px; }

/* ---------- The road to the keys ---------- */
.steps { padding: var(--sec) 0; background: var(--sand); }
.steps__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.tabs { display: inline-flex; background: rgba(255,255,255,.6); border-radius: 999px; padding: 4px; }
.tabs button { border: 0; background: none; padding: 10px 22px; border-radius: 999px; font-weight: 700; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--sun); }
.road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
/* Asphalt with a dashed yellow centre line. */
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 18px; border-radius: 99px; background: var(--ink); }
.road::after { content: ""; position: absolute; left: 20px; right: 20px; top: 34px; height: 2px; background: repeating-linear-gradient(90deg, var(--sun) 0 16px, transparent 16px 30px); }
.road li { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.road__n { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); border: 6px solid var(--ink); font-family: var(--display); font-size: 28px; margin-bottom: 16px; }
.road__n--end { background: var(--white); }
.road__n svg { width: 34px; height: 34px; }
.road b { font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1.1; }
.road li > span:not(.road__n) { color: var(--mist); font-size: 16px; max-width: 26ch; }

/* ---------- About ---------- */
.about { padding: var(--sec) 0; background: var(--white); }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; background: var(--sand); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.about__quote { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; margin-bottom: 24px; }
.about__copy > p:not(.eyebrow) { color: var(--mist); font-size: 18px; max-width: 52ch; }
.facts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, auto); border-top: 2px solid var(--ink); }
.facts li { padding: 18px 20px 0 0; display: flex; flex-direction: column; gap: 2px; }
.facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.facts b { font-family: var(--display); font-size: 22px; }
.facts span { font-size: 14px; color: var(--mist); }
.about__social { margin-top: 28px; display: flex; gap: 18px; font-weight: 700; }
.about__social a { text-underline-offset: 5px; text-decoration-color: var(--sun); text-decoration-thickness: 3px; }

/* ---------- Planner: the yellow bookend ---------- */
.plan { padding: var(--sec) 0; background: var(--sun); }
.plan__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
.plan .eyebrow { color: var(--ink); opacity: .72; }
.plan__intro h2 { margin-bottom: 20px; }
.plan__intro > p { font-size: 19px; max-width: 36ch; }
.plan__direct { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.plan__direct > span { width: 100%; opacity: .75; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 11px 17px; border-radius: 999px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 700; }
.pill svg { width: 18px; height: 18px; }
.pill:hover { background: var(--ink); color: var(--sun); }

.quiz { position: relative; background: var(--ink); color: var(--white); border-radius: 30px; padding: 34px clamp(20px, 4vw, 42px) 30px; min-height: 500px; box-shadow: 0 34px 70px -24px rgba(16,36,42,.55); }
.quiz__bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.quiz__bar i { display: block; height: 100%; width: 16.6%; background: var(--sun); border-radius: 99px; transition: width .3s; }
.quiz__step-label { margin: 14px 0 18px; font-size: 13px; color: rgba(255,255,255,.55); letter-spacing: .06em; text-transform: uppercase; }
.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q legend { font-family: var(--display); font-size: clamp(28px, 3vw, 38px); line-height: 1.05; margin-bottom: 22px; padding: 0; }
.q__hint { color: rgba(255,255,255,.6); font-size: 15px; margin: -10px 0 16px; }
.opts { display: grid; gap: 10px; }
.opts--big { grid-template-columns: repeat(2, 1fr); }
.opts--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; border: 1.5px solid var(--line-light); border-radius: var(--r-sm); padding: 16px 18px; font-weight: 600; transition: border-color .15s, background .15s, color .15s; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opts--big .opt { flex-direction: column; align-items: flex-start; padding: 20px 18px; font-family: var(--display); font-weight: 900; font-size: 20px; }
.opts--big .opt svg { width: 38px; height: 38px; color: var(--sun); }
.opt:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.04); }
.opt:has(input:checked) { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.opt:has(input:checked) svg { color: var(--ink); }
.opt:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.opt--chip { padding: 10px 16px; border-radius: 999px; font-size: 15px; }
.q__next { margin-top: 24px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: rgba(255,255,255,.7); }
.field--wide { grid-column: 1 / -1; }
.field input { font: inherit; font-size: 17px; color: var(--ink); background: var(--white); border: 2px solid transparent; border-radius: var(--r-sm); padding: 14px; }
.field input:focus { outline: none; border-color: var(--sun); }
.field input[aria-invalid="true"] { border-color: #FF8A7A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.q #qSend { margin-top: 22px; }
.q__error { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255,138,122,.14); color: #FFD6CF; font-size: 15px; }
.q__error a { color: var(--white); font-weight: 700; }
.q--done { padding-top: 20px; }
.q--done h3 { font-size: 38px; margin: 18px 0 12px; }
.q--done p { color: rgba(255,255,255,.75); margin-bottom: 24px; }
.q__ok { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--sun); color: var(--ink); }
.quiz__back { margin-top: 20px; background: none; border: 0; color: rgba(255,255,255,.65); font-size: 15px; padding: 6px 0; }
.quiz__back:hover { color: var(--white); }
.quiz :focus-visible { outline-color: var(--sun); }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,.7); font-size: 15px; padding: 56px 0 120px; }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; }
.foot p + p { margin-top: 8px; }
.foot a { text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.foot__name { font-family: var(--display); color: var(--white); font-size: 19px; }
.foot__legal { font-size: 13px; }
.eho { display: flex; align-items: center; gap: 8px; color: var(--white); font-size: 14px; font-weight: 600; }
.eho svg { width: 26px; height: 26px; }

.dock { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .top__nav { display: none; }
  .areas__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
}

@media (max-width: 960px) {
  body { font-size: 16px; }
  .top__row { height: 64px; gap: 12px; }
  .brand__name { font-size: 18px; }
  .brand__sub { display: none; }
  .top__phone span { display: none; }
  .top__phone { padding: 10px; }

  .hero { height: auto; min-height: 100svh; max-height: none; padding: 92px 0 calc(92px + env(safe-area-inset-bottom)); }
  .hero__bg img { object-position: 40% 50%; }
  .hero::after { background: linear-gradient(180deg, rgba(7,45,50,.05) 22%, rgba(7,45,50,.55) 48%, rgba(7,45,50,.96) 78%); }
  .hero__grid { grid-template-columns: 1fr; gap: 22px; }
  .hero__title { font-size: clamp(34px, 9vw, 52px); }
  .agent { order: -1; width: auto; justify-self: start; display: flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: 999px; }
  .agent img { width: 64px; height: 64px; aspect-ratio: 1; border-radius: 50%; }
  .agent figcaption { padding: 0; font-size: 12px; }
  .agent strong { font-size: 16px; }
  .agent__langs { margin-top: 4px; font-size: 10px; }
  .doors { gap: 8px; margin-top: 22px; }
  .doors .door { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 12px; }
  .door__icon { width: 30px; height: 30px; }
  .door__label { font-size: 16px; }
  .door__go { display: none; }

  .areas__grid { grid-template-columns: 1fr; gap: 36px; }
  .ask__line { font-size: clamp(26px, 7.4vw, 40px); white-space: normal; }
  .ask__num { font-size: clamp(76px, 23vw, 132px); }
  .budget { max-width: none; margin-top: 16px; }
  .areas .btn--ink { width: 100%; }
  .board { margin: 0 calc(var(--gutter) * -1); border-radius: 0; box-shadow: none; }
  .guide { display: none; }
  .pin text { font-size: 22px; stroke-width: 5px; }
  .pin text.pin__price { font-size: 19px; }
  .pin .pin__dot { r: 11; }
  .pin .pin__halo { r: 22; }
  .map__water-labels text { font-size: 22px; }
  .map__legend { left: 12px; top: auto; bottom: 12px; flex-direction: column; gap: 4px; border-radius: 12px; padding: 8px 12px; }
  .board__foot { min-height: 0; padding: 18px var(--gutter) 22px; }
  .area-card { flex-direction: column; align-items: stretch; }
  .area-card .btn { width: 100%; }
  .areas__fine { margin-top: 0; padding: 16px var(--gutter) 28px; background: var(--night-water); color: rgba(255,255,255,.75); max-width: none; }

  .money__grid, .about__grid, .plan__grid { grid-template-columns: 1fr; }
  .money__head { position: static; }

  .road { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .road::before { left: 26px; right: auto; top: 0; bottom: 0; width: 18px; height: auto; }
  .road::after { left: 34px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--sun) 0 16px, transparent 16px 30px); }
  .road li { display: grid; grid-template-columns: 70px 1fr; column-gap: 18px; align-items: start; }
  .road__n { grid-row: span 2; margin-bottom: 0; }
  .road b { padding-top: 10px; }

  .about__photo { max-width: 440px; }
  .foot__grid { grid-template-columns: 1fr; gap: 28px; }

  .dock { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(16,36,42,.95); backdrop-filter: blur(10px); transition: transform .25s; }
  .dock a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 14px; white-space: nowrap; border-radius: 999px; text-decoration: none; color: var(--white); border: 1px solid var(--line-light); font-weight: 600; font-size: 15px; }
  .dock svg { width: 20px; height: 20px; color: var(--sun); }
  .dock .dock__main { background: var(--sun); color: var(--ink); border-color: var(--sun); font-weight: 700; }
  .dock.is-hidden { transform: translateY(110%); }
}

@media (max-width: 560px) {
  .lang button { padding: 6px 8px; }
  .budget__count { font-size: 15px; margin-bottom: 20px; }
  .budget__count b { font-size: 28px; }
  .sheet { padding: 28px 18px 24px; }
  .sheet__rows li { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
  .sheet__rows svg { width: 38px; height: 38px; padding: 7px; }
  .sheet__amt { grid-column: 2; justify-self: start; text-align: left; font-size: 18px; }
  .sheet__what b { font-size: 20px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .08em; }
  .facts { grid-template-columns: 1fr; }
  .facts li + li { border-left: 0; padding-left: 0; }
  .opts--big .opt { font-size: 18px; }
  .fields { grid-template-columns: 1fr; }
  .dock { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .dock a { padding: 0 12px; font-size: 14px; }
}

/* ---------- Keller Williams marks (brokerage shown with the agent everywhere she is named) ---------- */
.brand { flex-direction: row; align-items: center; gap: 14px; }
.brand__text { display: flex; flex-direction: column; }
.brand__kw { flex: none; display: flex; align-items: center; background: var(--white); border-radius: 10px; padding: 7px 10px; }
.brand__kw img { height: 30px; width: auto; max-width: none; }
.agent img.agent__kw { width: 170px; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; margin-top: 10px; }
.facts__kw { height: 26px; width: auto; }
.foot__kw { display: inline-block; background: var(--white); padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; }
.foot__kw img { width: 210px; height: auto; }
@media (max-width: 960px) {
  .brand { gap: 10px; }
  .agent img.agent__kw { width: 112px; height: auto; margin-top: 5px; }
}
@media (max-width: 700px) {
  .brand__kw { padding: 6px 7px; border-radius: 9px; }
  .brand__kw img { height: 24px; }
}
@media (max-width: 420px) {
  .brand__name { font-size: 16px; }
}

/* ---------- Planner: Back / Next on every step ---------- */
.quiz__nav { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-light); }
.quiz__nav #qNext { margin-left: auto; }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.32); }
.btn--ghost:hover { border-color: var(--white); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.quiz__home { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 10px 10px 14px; background: rgba(255,210,63,.12); border: 1px solid rgba(255,210,63,.35); border-radius: 12px; font-size: 14px; color: rgba(255,255,255,.75); }
.quiz__home b { flex: 1; min-width: 0; color: var(--white); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiz__home button { background: none; border: 0; color: rgba(255,255,255,.7); font-size: 22px; line-height: 1; padding: 0 6px; }

/* ---------- Homes strip ---------- */
.homes { --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); background: var(--white); padding: var(--sec) 0 calc(var(--sec) * .7); }
.homes__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.homes__head h2 { max-width: 15ch; }
.homes__meta { font-size: 15px; color: var(--mist); }
.homes__meta b { font-family: var(--display); font-size: 36px; color: var(--ink); margin-right: 2px; }
.homes__filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin-top: 30px; }
.homes__chips, .homes__price { display: flex; flex-wrap: wrap; gap: 8px; }
.hchip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; }
.hchip:hover { border-color: var(--ink); }
.hchip__n { font-size: 12px; color: var(--mist); }
.hchip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.hchip[aria-pressed="true"] .hchip__n { color: var(--sun); }
.hchip--price[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--ink); }

.homes__rail { position: relative; margin-top: 26px; }
.homes__strip { list-style: none; margin: 0; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: 6px var(--edge) 24px; scrollbar-width: thin; scrollbar-color: var(--sand) transparent; }
.homes__strip > li { flex: 0 0 300px; scroll-snap-align: start; display: flex; }
.hcard { display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.hcard:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(16,36,42,.4); }
.hcard__img { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--sand); }
.hcard__img img { width: 100%; height: 100%; object-fit: cover; }
.hcard__badge { position: absolute; left: 12px; top: 12px; background: var(--white); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.hcard__badge--cut { background: var(--sun); }
.hcard__photos { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; background: rgba(16,36,42,.72); color: var(--white); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.hcard__photos::before { content: ""; width: 12px; height: 9px; border: 1.6px solid currentColor; border-radius: 2px; }
.hcard__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.hcard__price { font-family: var(--display); font-weight: 900; font-size: 27px; line-height: 1.05; }
.hcard__facts { font-size: 15px; font-weight: 600; }
.hcard__where { font-size: 14px; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.homes__empty { flex: 0 0 auto; max-width: 520px; padding: 36px 0; color: var(--mist); }
.homes__arrow { position: absolute; z-index: 2; top: calc(50% - 50px); right: max(10px, calc((100vw - var(--wrap)) / 2 - 22px)); width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ink); color: var(--sun); box-shadow: 0 10px 24px rgba(16,36,42,.3); transition: opacity .2s; }
.homes__arrow--prev { right: auto; left: max(10px, calc((100vw - var(--wrap)) / 2 - 22px)); }
.homes__arrow--prev svg { transform: rotate(180deg); }
.homes__arrow svg { width: 22px; height: 22px; }
.homes__arrow:disabled { opacity: 0; pointer-events: none; }
.homes__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.homes__foot .fine { margin-top: 0; }
.homes__kw { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.homes__kw svg { width: 16px; height: 16px; }

/* Home detail: photos on the left, the facts and the two ways to act on the right. */
html.is-locked { overflow: hidden; }
.hdlg { padding: 0; border: 0; border-radius: 28px; width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); overflow: auto; background: var(--white); color: var(--ink); grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto 1fr; }
.hdlg[open] { display: grid; }
.hdlg::backdrop { background: rgba(7,45,50,.74); backdrop-filter: blur(4px); }
.hdlg__gallery { grid-column: 1; grid-row: 1; position: relative; aspect-ratio: 3 / 2; background: var(--ink); }
.hdlg__gallery img { width: 100%; height: 100%; object-fit: cover; }
.hdlg__nav { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink); }
.hdlg__nav--prev { right: auto; left: 14px; }
.hdlg__nav--prev svg { transform: rotate(180deg); }
.hdlg__nav svg { width: 20px; height: 20px; }
.hdlg__count { position: absolute; left: 14px; bottom: 12px; background: rgba(16,36,42,.72); color: var(--white); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.hdlg__thumbs { grid-column: 1; grid-row: 2; align-self: start; display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.hdlg__thumbs button { flex: 0 0 88px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--sand); opacity: .65; transition: opacity .15s; }
.hdlg__thumbs button[aria-current="true"] { border-color: var(--sun); opacity: 1; }
.hdlg__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.hdlg__body { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; padding: 36px 30px 26px; }
.hdlg__where { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bay); padding-right: 40px; }
.hdlg h3 { font-size: 28px; line-height: 1.1; margin-top: 8px; }
.hdlg__price { margin-top: 10px; }
.hdlg__price b { font-family: var(--display); font-size: 42px; line-height: 1; }
.hdlg__price s { margin-left: 8px; font-size: 18px; color: var(--mist); }
.hdlg__facts { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hdlg__facts li { display: flex; flex-direction: column; padding: 12px 14px; background: var(--white); }
.hdlg__facts b { font-family: var(--display); font-size: 20px; line-height: 1.1; overflow-wrap: anywhere; }
.hdlg__facts span { font-size: 12px; color: var(--mist); }
.hdlg__cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.btn--line { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.hdlg__body .fine { font-size: 12px; margin-top: 14px; }
.hdlg__body .fine a { color: var(--mist); }
.hdlg__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--salt); color: var(--ink); font-size: 26px; line-height: 1; }
.hdlg__close:hover { background: var(--sun); }

@media (max-width: 960px) {
  .homes__arrow { display: none; }
  .homes__strip > li { flex-basis: min(300px, 80vw); }
  .homes__filters { flex-direction: column; flex-wrap: nowrap; margin-top: 22px; }
  .homes__chips, .homes__price { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; }
  .homes__chips::-webkit-scrollbar, .homes__price::-webkit-scrollbar { display: none; }
}
@media (max-width: 760px) {
  .hdlg { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .hdlg__body { grid-column: 1; grid-row: 3; padding: 18px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
  .hdlg__thumbs { padding: 10px var(--gutter); }
  .hdlg__thumbs button { flex-basis: 72px; height: 50px; }
  .hdlg__nav { width: 40px; height: 40px; }
  .hdlg h3 { font-size: 24px; }
  .hdlg__price b { font-size: 36px; }
  .hdlg__close { background: var(--white); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
  .quiz__nav .btn { padding: 14px 20px; }
}
