/* properties.do: search for verified homes in the Dominican Republic (buyers and renters only).
   Palm green, a single gold accent, Manrope; IBM Plex Mono for figures; Newsreader italic for one
   quiet line per section. The map is the centre of the page. */
:root {
  --ink: #12261C;
  --muted: #4A5C52;
  --soft: #66776D;
  --palm: #1F4A36;
  --palm-deep: #163626;
  --palm-line: #2C6349;
  --gold: #B08D3C;
  --gold-text: #8A6A1F;
  --gold-light: #C9A55A;
  --mist: #EDF3EF;
  --line: #DDE3DF;
  --line-strong: #C9D3CD;
  --paper: #FAFBFA;
  --white: #FFFFFF;
  --heart: #C2413B;
  --sea: #CFE3E6;
  --land: #F1F0E8;
  --on-dark: #C7D6CD;
  --radius: 14px;
  --font: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.55; }
img, svg { max-width: 100%; }
a { color: var(--palm); }
a:hover { color: var(--palm-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(16px, 3vw); padding-right: max(16px, 3vw); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.quiet { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--palm); }
.mono { font-family: var(--mono); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(28px, 3vw, 36px); }
p { margin: 0; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 70px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand b { font-weight: 800; font-size: 24px; letter-spacing: -0.04em; }
.brand b span { color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--palm); text-decoration: underline; text-underline-offset: 4px; }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Language menu (no script: a disclosure) */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--white); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { border-color: var(--palm); }
.lang-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: min(320px, 86vw); background: var(--white); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 18px 40px rgba(18,38,28,.16); padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.lang-panel p { grid-column: 1 / -1; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin: 0 0 6px; }
.lang-panel a, .lang-panel span { display: flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; font-size: 14.5px; text-decoration: none; color: var(--ink); }
.lang-panel a:hover { background: var(--mist); }
.lang-panel a[aria-current="true"] { background: var(--mist); font-weight: 700; color: var(--palm); }
.lang-panel span { color: var(--soft); }
.lang-panel .note { grid-column: 1 / -1; font-size: 12.5px; color: var(--soft); margin-top: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 700; font-size: 15.5px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--palm); color: var(--white); }
.btn-primary:hover { background: var(--palm-deep); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--palm); border-color: var(--palm); }
.btn-ghost:hover { background: var(--mist); color: var(--palm-deep); }
.btn-light { background: var(--white); color: var(--palm-deep); }
.btn-light:hover { background: var(--mist); color: var(--palm-deep); }


/* Search: the dark green filter band, then the full-width map with its floating card and tools */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.head-icon { position: relative; width: 46px; height: 46px; border-radius: 12px; border: 0; background: none; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.head-icon:hover, .head-icon[aria-pressed="true"] { background: var(--mist); color: var(--palm); }
.head-icon[aria-pressed="true"] svg path { fill: var(--heart); stroke: var(--heart); }
.saved-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--heart); color: var(--white); font: 600 11px var(--mono); display: grid; place-items: center; }
.saved-count[hidden] { display: none; }

.search { background: var(--white); }
.band-wrap { max-width: none; padding: 12px max(16px, 2.4vw); }
.band { background: var(--palm-deep); color: var(--white); border-radius: 22px; padding: 12px 12px 12px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; box-shadow: 0 10px 30px rgba(18,38,28,.18); }
.band-title { display: flex; align-items: center; gap: 14px; flex: 1 1 300px; min-width: 0; padding-right: 20px; border-right: 1px solid rgba(255,255,255,.18); }
.band-icon { flex: none; color: var(--white); }
.band-title h1 { font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -0.02em; line-height: 1.2; }
.band-title .quiet { display: block; color: #E7EFE9; font-size: 16px; margin-top: 2px; }
.band-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 0 1 auto; justify-content: flex-end; }
@media (min-width: 1180px) { .band-controls { flex-wrap: nowrap; } }
.band .mode { display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.12); }
.band .mode label { position: relative; }
.band .mode input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.band .mode span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 10px; font-weight: 700; font-size: 15px; color: #DDE8E1; }
.band .mode input:checked + span { background: var(--white); color: var(--palm-deep); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.band .mode input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.pill { position: relative; display: flex; align-items: center; height: 48px; border-radius: 12px; background: var(--white); color: var(--ink); flex: 1 1 170px; max-width: 220px; min-width: 120px; }
.pill > svg { position: absolute; left: 12px; color: var(--palm); pointer-events: none; }
.pill select { appearance: none; -webkit-appearance: none; width: 100%; height: 100%; border: 0; border-radius: 12px; padding: 0 34px 0 38px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2312261C' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; font: 600 15px var(--font); color: var(--ink); cursor: pointer; text-overflow: ellipsis; }
.pill select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.icon-btn { position: relative; width: 48px; height: 48px; flex: none; border-radius: 12px; border: 0; background: var(--white); color: var(--palm-deep); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--mist); }
.more-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--white); font: 600 11px var(--mono); display: grid; place-items: center; }
.more-count[hidden] { display: none; }
.go-btn { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 0; background: var(--gold); color: var(--white); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.go-btn:hover { background: #9C7A2F; }
.band .more { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: flex-end; margin: 4px 10px 6px 0; padding: 16px 18px; border-radius: 16px; background: var(--white); color: var(--ink); }
.band .more[hidden] { display: none; }
.more fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 20px; max-width: 620px; }
.more legend { padding: 0; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.more label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 15px; cursor: pointer; }
.more input { width: 18px; height: 18px; accent-color: var(--palm); }
.more .sort { display: flex; flex-direction: column; gap: 3px; width: 210px; }
.more .sort > span { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.more .sort select { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 34px 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231F4A36' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; font: 600 14px var(--font); color: var(--ink); }
.link-btn { border: 0; background: none; padding: 8px 0; font: 700 14.5px var(--font); color: var(--palm); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.map-stage { position: relative; height: max(540px, calc(100vh - 182px)); background: var(--sea); overflow: hidden; }
.map-stage:fullscreen { height: 100vh; }
.search-map { position: absolute; inset: 0; container-type: size; }
.stage-wrap { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; background: var(--sea); }
.stage { position: relative; width: min(100cqw, 140.29cqh); aspect-ratio: 640 / 456.2; }
.stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; transform: translate(-50%, -50%); border: 0; background: none; padding: 4px; cursor: pointer; }
.pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--palm); color: var(--white); font: 600 13px var(--mono); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--gold-light), 0 2px 8px rgba(18,38,28,.3); }
.osm { position: absolute; right: 90px; bottom: 10px; z-index: 2; font-size: 11px; color: #33474C; background: rgba(255,255,255,.88); padding: 2px 6px; border-radius: 3px; }

/* Live map pins: a white price pill with a green house, the chosen one large and dark green; groups
   of homes as green rounded counts */
.price-pin { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 6px; border: 0; border-radius: 22px; background: var(--white); color: var(--ink); box-shadow: 0 4px 14px rgba(18,38,28,.22); font: 800 16px var(--font); letter-spacing: -0.01em; cursor: pointer; margin-bottom: 10px; }
.price-pin::after { content: ""; position: absolute; left: 50%; bottom: -9px; margin-left: -9px; border: 9px solid transparent; border-bottom: 0; border-top: 10px solid var(--white); filter: drop-shadow(0 3px 2px rgba(18,38,28,.12)); }
.pin-house { width: 32px; height: 32px; border-radius: 50%; background: var(--palm-deep); color: var(--white); display: grid; place-items: center; }
.price-pin:hover, .price-pin.is-active { background: var(--palm-deep); color: var(--white); }
.price-pin:hover::after, .price-pin.is-active::after { border-top-color: var(--palm-deep); }
.price-pin:hover .pin-house, .price-pin.is-active .pin-house { background: var(--white); color: var(--palm-deep); }
.price-pin.is-active { height: 54px; font-size: 20px; padding-right: 20px; border-radius: 27px; }
.price-pin.is-active .pin-house { width: 40px; height: 40px; }
.cluster-pin { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 13px; border: 3px solid var(--white); border-radius: 22px; background: var(--palm); color: var(--white); box-shadow: 0 4px 14px rgba(18,38,28,.3); font: 800 17px var(--font); cursor: pointer; }
.cluster-pin:hover { background: var(--palm-deep); }

/* The floating card: a chosen home, or a short note (no homes yet, no matches) */
.map-card { position: absolute; z-index: 4; left: max(16px, 3vw); top: 22px; width: min(400px, calc(100% - 32px)); }
.map-card:empty { display: none; }
.home-card { position: relative; border-radius: 18px; overflow: hidden; background: var(--white); box-shadow: 0 18px 50px rgba(18,38,28,.25); }
.home-card .photo { position: relative; aspect-ratio: 16 / 10; background: var(--mist); border: 6px solid var(--white); border-bottom: 0; border-radius: 18px 18px 0 0; overflow: hidden; }
.home-card .photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.verified-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px; border-radius: 10px; background: var(--palm-deep); color: var(--white); font-weight: 700; font-size: 14px; }
.verified-badge svg { background: #3DAA6A; border-radius: 50%; padding: 2px; stroke-width: 3; }
.home-card .save { position: absolute; right: 12px; top: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.home-card .save[aria-pressed="true"] svg path { fill: var(--heart); stroke: var(--heart); }
.home-card .nav { position: absolute; top: 50%; margin-top: -21px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.home-card .nav.prev { left: 10px; } .home-card .nav.next { right: 10px; }
.home-card .dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.home-card .dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); }
.home-card .dots span.on { background: var(--white); }
.home-card .body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.home-card .price { font: 800 26px var(--font); letter-spacing: -0.03em; margin-right: auto; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.chip-mode { background: #E3F2E8; color: var(--palm); }
.chip-place { border: 1px solid var(--line-strong); color: var(--ink); }
.home-card .title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.home-card .area { color: var(--muted); font-size: 14.5px; }
.specs { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.specs li { display: inline-flex; align-items: center; gap: 7px; }
.actions { display: flex; gap: 10px; margin-top: 6px; }
.actions .btn { flex: 1; justify-content: center; border-radius: 14px; }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--mist); color: var(--palm-deep); }
.card-close { position: absolute; right: 12px; top: 62px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--ink); display: none; place-items: center; cursor: pointer; }
.note-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 24px; border-radius: 18px; background: var(--white); box-shadow: 0 18px 50px rgba(18,38,28,.22); }
.note-card b { font-size: 19px; letter-spacing: -0.015em; line-height: 1.3; }
.note-card p { color: var(--muted); font-size: 15px; }
.note-card .link { font-weight: 700; }

/* Map tools (right) and the List/Map switch (bottom left) */
.map-tools { position: absolute; z-index: 4; right: max(16px, 3vw); top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 12px; }
.is-live .map-tools { display: flex; }
.map-tools button { width: 52px; height: 52px; border: 0; background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; border-radius: 14px; box-shadow: 0 6px 18px rgba(18,38,28,.18); }
.map-tools button:hover { background: var(--mist); color: var(--palm-deep); }
.tool-stack { display: flex; flex-direction: column; border-radius: 14px; box-shadow: 0 6px 18px rgba(18,38,28,.18); overflow: hidden; }
.tool-stack button { border-radius: 0; box-shadow: none; }
.tool-stack button + button { border-top: 1px solid var(--line); }
.view-switch { position: absolute; z-index: 4; left: max(16px, 3vw); bottom: 20px; display: inline-flex; gap: 4px; padding: 5px; border-radius: 22px; background: var(--white); box-shadow: 0 6px 18px rgba(18,38,28,.2); }
.view-switch button { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; height: 44px; padding: 0 18px; border: 0; border-radius: 17px; background: none; font: 600 16px var(--font); color: var(--ink); cursor: pointer; }
.view-switch button svg { flex: none; }
.view-switch button[aria-pressed="true"] { background: var(--palm-deep); color: var(--white); }
.list-view { position: absolute; inset: 0; z-index: 3; overflow-y: auto; background: var(--paper); padding: 22px 0 90px; }
.list-view[hidden] { display: none; }
.show-list .map-card, .show-list .map-tools { display: none; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.home-card.in-list { box-shadow: 0 2px 10px rgba(18,38,28,.08); border: 1px solid var(--line); cursor: pointer; }
.home-card.in-list .price { font-size: 22px; }
.list-empty { grid-column: 1 / -1; max-width: 520px; }
.list-empty .note-card { box-shadow: none; border: 1px solid var(--line-strong); }
.noscript-note { padding: 12px 0; color: var(--muted); }

/* Cities */
.cities .wrap { padding-top: 48px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.section-head .quiet { font-size: 20px; }
.city-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.city-grid button { width: 100%; height: 100%; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--white); font: inherit; color: var(--ink); cursor: pointer; }
.city-grid button:hover { border-color: var(--palm); background: var(--mist); }
.city-grid b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.city-grid span { font-size: 13.5px; color: var(--muted); }

/* Verified 3/3 */
.verified { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.verified .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.verified-top { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: flex-start; }
.verified-head { flex: 1 1 320px; min-width: 0; display: flex; gap: 18px; align-items: flex-start; }
.verified-head .quiet { display: block; font-size: 21px; margin-top: 10px; }
.checks { flex: 2.4 1 600px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 24px; }
.checks li { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--gold); }
.checks .n { font: 500 13px var(--mono); color: var(--gold-text); }
.checks b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.checks span:last-child { font-size: 15px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line-strong); display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; font-size: 15px; color: var(--muted); }
.steps .label { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.steps .num { font-family: var(--mono); color: var(--gold-text); }
.steps b { color: var(--ink); }

/* Co-brokering explained (in "Every home verified 3/3") */
.cobroke { display: flex; flex-wrap: wrap; gap: 20px 48px; padding: 24px clamp(18px, 3vw, 32px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line-strong); }
.cobroke > div:first-child { flex: 1.6 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cobroke h3 { font-size: 21px; }
.cobroke p { color: var(--muted); font-size: 15.5px; max-width: 70ch; }
.cobroke-check { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding-left: 24px; border-left: 2px solid var(--gold); }
.cobroke-check b { color: var(--ink); }

/* FAQ */
.faq .wrap { padding-top: 8px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 24px 56px; }
.faq-head { flex: 1 1 280px; min-width: 0; }
.faq-list { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line-strong); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 22px var(--mono); color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px; color: var(--muted); max-width: 70ch; }

/* Footer */
.site-footer { background: var(--palm-deep); color: var(--white); }
.site-footer .rule { border-top: 1px solid var(--gold); padding-top: 3px; }
.site-footer .rule div { border-top: 1px solid var(--palm-line); }
.foot { display: flex; flex-wrap: wrap; gap: 24px 56px; padding: 28px 0 22px; font-size: 14px; }
.foot > div { flex: 1 1 170px; display: flex; flex-direction: column; gap: 7px; }
.foot > div:first-child { flex: 1.5 1 260px; }
.foot h3 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); font-weight: 700; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { text-decoration: underline; color: var(--white); }
.foot span { color: var(--on-dark); }
.brand-foot b { font-weight: 800; font-size: 21px; letter-spacing: -0.04em; color: var(--white); }
.brand-foot b span { color: var(--gold-light); }
.legal { border-top: 1px solid var(--palm-line); padding: 14px 0 22px; font-size: 13px; color: var(--on-dark); display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 16px; }
.notfound div { display: flex; flex-direction: column; gap: 14px; align-items: center; max-width: 520px; }

@media (max-width: 900px) {
  .band { border-radius: 18px; padding: 14px; }
  .band-title { border-right: 0; padding-right: 0; flex-basis: 100%; }
  .band-controls { flex-basis: 100%; justify-content: flex-start; }
  .band .mode { flex: 1 1 100%; }
  .band .mode label { flex: 1; display: flex; }
  .band .mode span { flex: 1; justify-content: center; }
  .pill { flex: 1 1 calc(50% - 4px); max-width: none; }
  .icon-btn { flex: 1 1 auto; width: auto; }
  .go-btn { width: 48px; height: 48px; border-radius: 12px; flex: 1 1 auto; }
  .map-stage { height: max(520px, 78vh); }
  .map-card { left: 12px; right: 12px; top: auto; bottom: 78px; width: auto; max-height: calc(100% - 100px); overflow-y: auto; border-radius: 18px; }
  .home-card .price { font-size: 22px; }
  .home-card .title { font-size: 17px; }
  .card-close { display: grid; }
  .map-card.has-home ~ .map-tools { display: none; }
  .home-card .photo { aspect-ratio: 16 / 7; }
  .view-switch button { height: 40px; padding: 0 14px; font-size: 15px; }
  .map-tools { top: 16px; transform: none; right: 12px; gap: 8px; }
  .map-tools button { width: 44px; height: 44px; border-radius: 12px; }
  .view-switch { left: 50%; transform: translateX(-50%); bottom: 14px; }
  .osm { right: 8px; bottom: 74px; }
}
@media (max-width: 720px) {
  .nav { order: 3; width: 100%; gap: 4px 20px; }
  .band-title h1 { font-size: 17px; }
  .band-title .quiet { font-size: 14.5px; }
  .band-icon { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .city-grid button, .price-pin, .cluster-pin, .map-tools button { transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }
}

/* Live map (assets/map.js): drawn under the illustration, which hides once real tiles arrive. */
div.live-map, div.live-map.maplibregl-map { position: absolute; inset: 0; z-index: 0; }
.is-live .fallback { display: none !important; }
.maplibregl-ctrl-attrib, .maplibregl-ctrl-attrib a { font-family: var(--font); }

/* Brand: the properties.do logo (design/properties-do-logo-kit) */
.brand-logo { display: block; height: 44px; width: auto; }
.brand-foot { display: inline-flex; padding: 10px 14px; border-radius: 12px; background: var(--white); }
.brand-foot .brand-logo { height: 36px; }
@media (max-width: 720px) { .site-header .brand-logo { height: 38px; } }

/* Wide screens: the band is one row (title beside the controls), as in the design */
@media (min-width: 1180px) {
  .band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; }
  .band .more { grid-column: 1 / -1; }
  .band-controls { flex-wrap: nowrap; }
  .pill { flex: 0 0 clamp(150px, 10.5vw, 215px); max-width: none; }
  .band-title h1 { font-size: clamp(17px, 1.35vw, 23px); }
}

/* The header spans the same width as the search band */
.site-header .wrap { max-width: none; padding-left: max(16px, 2.4vw); padding-right: max(16px, 2.4vw); }
