/* CASA NOVA — concept site by Gabriel Cerezo */

:root {
  --bg: #f4eee3;
  --bg-2: #ece4d5;
  --paper: #fbf8f2;
  --white: #fffdf9;
  --ink: #1d2731;
  --ink-2: #47515c;
  --muted: #655f53;
  --line: #e0d6c4;
  --line-2: #cdbfa7;
  --azul: #24548f;
  --azul-d: #1a4072;
  --azul-tint: #e4ebf4;
  --terra: #a34d2c;
  --gold: #d6a21e;
  --navy: #172e48;

  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --radius: 14px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(29, 39, 49, .05), 0 12px 32px -12px rgba(29, 39, 49, .18);

  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Crect width='28' height='28' fill='%23f4eee3'/%3E%3Cg fill='%2324548f'%3E%3Ccircle cx='14' cy='14' r='2.6'/%3E%3Cellipse cx='14' cy='7.5' rx='1.9' ry='3.6'/%3E%3Cellipse cx='14' cy='20.5' rx='1.9' ry='3.6'/%3E%3Cellipse cx='7.5' cy='14' rx='3.6' ry='1.9'/%3E%3Cellipse cx='20.5' cy='14' rx='3.6' ry='1.9'/%3E%3Cpath d='M0 4.5A4.5 4.5 0 0 0 4.5 0H0ZM28 4.5A4.5 4.5 0 0 1 23.5 0H28ZM0 23.5A4.5 4.5 0 0 1 4.5 28H0ZM28 23.5A4.5 4.5 0 0 0 23.5 28H28Z'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: #cfdbea; }

:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--azul);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 14px; height: 14px; background: var(--tile) center / 14px 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(36, 84, 143, .25); }
h2 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.01em; }
h2 em, h1 em { font-style: italic; color: var(--azul); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2c3a48; }
.btn-azul { background: var(--azul); color: #fff; }
.btn-azul:hover { background: var(--azul-d); }
.btn-line { border-color: var(--line-2); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn:active { transform: translateY(1px); }
.link-btn { background: none; border: 0; padding: 4px 2px; font-size: 14px; font-weight: 600; color: var(--azul); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-btn:hover { color: var(--azul-d); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 238, 227, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark { width: 30px; height: 30px; }
.logo-word { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .01em; line-height: 1; }
.nav ul { display: flex; gap: 2px; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: rgba(29, 39, 49, .05); }
.nav a.is-current { color: var(--ink); background: rgba(36, 84, 143, .09); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--paper); position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.6px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); padding: 12px 0 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-menu ul { margin-bottom: 18px; }
.mobile-menu li a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 28px; text-decoration: none; }
.mobile-menu li a span { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.mobile-menu .btn { width: 100%; }

/* Hero */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-bottom: clamp(40px, 6vw, 80px); }
.hero h1 { font-family: var(--serif); font-size: clamp(46px, 6.4vw, 88px); line-height: .98; letter-spacing: -.02em; max-width: 11ch; margin-bottom: 22px; }
.lede { font-size: clamp(16px, 1.25vw, 18px); color: var(--ink-2); max-width: 54ch; margin-bottom: 30px; }

.hero-search {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 8px; max-width: 680px; position: relative;
}
.seg-hero { grid-column: 1 / -1; justify-self: start; margin: 4px 4px 8px; }
.hs-field { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-right: 1px solid var(--line); min-width: 0; }
.hs-field:nth-of-type(3) { border-right: 0; }
.hs-field label { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hs-field select { border: 0; background: transparent; padding: 2px 18px 2px 0; font-size: 15.5px; font-weight: 500; appearance: none; -webkit-appearance: none; min-width: 0; width: 100%; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231d2731' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; }
.hs-submit { min-height: 52px; margin: 4px; border-radius: 12px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 34px 0 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: 13px; color: var(--muted); max-width: 16ch; line-height: 1.35; }
.hero-stats dd { margin: 0 0 4px; font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; }
.hero-stats small { font-size: 20px; color: var(--muted); }

.hero-art { position: relative; justify-self: end; width: 100%; max-width: 520px; }
.arch {
  position: relative; aspect-ratio: 560 / 640; border-radius: 999px 999px 18px 18px; overflow: hidden;
  border: 1px solid var(--line-2); background: #f1e6d3;
  box-shadow: 0 30px 60px -30px rgba(29, 39, 49, .35);
}
.arch svg { width: 100%; height: 100%; }
.arch::after { content: ""; position: absolute; inset: 10px; border-radius: 999px 999px 12px 12px; border: 1px solid rgba(255, 253, 249, .7); pointer-events: none; }
.hero-art::before {
  content: ""; position: absolute; right: -18px; top: 18%; width: 64px; height: 64%;
  background: var(--tile) 0 0 / 28px 28px; border-radius: 4px; opacity: .55; z-index: -1;
}
.hero-note {
  position: absolute; left: -28px; bottom: 34px; display: flex; flex-direction: column; gap: 2px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 14px 18px 14px 16px; text-decoration: none; max-width: 270px; border-left: 3px solid var(--azul);
  transition: transform .25s var(--ease);
}
.hero-note:hover { transform: translateY(-3px); }
.hero-note-k { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); }
.hero-note-t { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.2; }
.hero-note-p { font-size: 13.5px; color: var(--ink-2); }

.tile-band { height: 14px; background: var(--tile) 0 0 / 14px 14px; opacity: .9; border-top: 1px solid rgba(36, 84, 143, .2); border-bottom: 1px solid rgba(36, 84, 143, .2); }

/* Segmented control */
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; white-space: nowrap; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--azul); outline-offset: 2px; }
.seg label:hover input:not(:checked) + span { color: var(--ink); background: rgba(29, 39, 49, .06); }

/* Sections */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 16px 48px; align-items: end; margin-bottom: clamp(26px, 3.5vw, 44px); }
.section-intro { color: var(--ink-2); font-size: 15.5px; }

/* Search */
.search { padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 7vw, 96px); background: var(--paper); border-bottom: 1px solid var(--line); }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 1px 2px rgba(29, 39, 49, .04); }
.js .filters { display: block; }
html:not(.js) .filters, html:not(.js) .results-actions, html:not(.js) .hero-search { display: none; }
.f-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 28px; }
.f-row-2 { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); align-items: center; justify-content: space-between; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.f-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.f-label { display: flex; align-items: baseline; gap: 8px; padding: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.f-out { font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.f-price { flex: 1 1 240px; max-width: 360px; }

/* Dual range */
.dual { position: relative; height: 36px; }
.dual-track { position: absolute; left: 10px; right: 10px; top: 16px; height: 4px; border-radius: 2px; background: var(--line); }
.dual-fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 2px; background: var(--azul); }
.dual input[type="range"] { position: absolute; left: 0; top: 6px; width: 100%; height: 24px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.dual input[type="range"]::-webkit-slider-runnable-track { background: none; height: 24px; }
.dual input[type="range"]::-moz-range-track { background: none; height: 24px; }
.dual input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--white); border: 2px solid var(--azul); box-shadow: 0 1px 4px rgba(29, 39, 49, .25); cursor: grab; }
.dual input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--azul); box-shadow: 0 1px 4px rgba(29, 39, 49, .25); cursor: grab; }
.dual input[type="range"]:focus-visible { outline: none; }
.dual input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(36, 84, 143, .3); }
.dual input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(36, 84, 143, .3); }

/* Dropdown */
.f-hoods { position: relative; }
.dd-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 220px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 600; }
.dd-btn svg { width: 12px; height: 8px; transition: transform .2s; }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-btn:hover { border-color: var(--ink); }
.dd-panel { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: 290px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(29, 39, 49, .3); padding: 8px; }
.dd-list label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14.5px; cursor: pointer; }
.dd-list label:hover { background: var(--bg); }
.dd-list input { width: 17px; height: 17px; accent-color: var(--azul); margin: 0; }
.dd-list .dd-n { margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dd-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 6px 2px; margin-top: 4px; border-top: 1px solid var(--line); }

/* Chips */
.f-chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip > span { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--paper); transition: background .2s, border-color .2s, color .2s; }
.chip > span::before { content: ""; width: 0; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); opacity: 0; transition: width .2s, opacity .2s; margin-right: -7px; }
.chip input:checked + span { background: var(--azul-tint); border-color: var(--azul); color: var(--azul-d); }
.chip input:checked + span::before { width: 5px; opacity: 1; margin-right: 0; }
.chip input:focus-visible + span { outline: 2px solid var(--azul); outline-offset: 2px; }
.chip:hover input:not(:checked) + span { border-color: var(--ink); color: var(--ink); }
.chip-fav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.chip-fav > span::before { display: none; }
.chip-fav input:checked + span svg { fill: var(--terra); stroke: var(--terra); }
.fav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bg-2); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.f-sort { display: flex; align-items: center; gap: 10px; }
.f-sort select, .field select { appearance: none; -webkit-appearance: none; height: 40px; padding: 0 36px 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231d2731' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 14px center; font-size: 14px; font-weight: 600; cursor: pointer; }

/* Results bar */
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 26px 0 18px; }
.count { font-size: 15px; color: var(--ink-2); }
.count strong { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); margin-right: 4px; font-variant-numeric: lining-nums; }
.results-actions { display: flex; align-items: center; gap: 16px; }
.view-toggle { display: none; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); }
.vt-btn { border: 0; background: none; padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.vt-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Split view */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.map-col { position: sticky; top: calc(var(--header-h) + 16px); }
.map-card { background: #efe8da; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-svg { width: 100%; height: auto; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 12px 16px; background: var(--white); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.lg-item { display: inline-flex; align-items: center; gap: 10px; }
.lg-pin { flex: none; width: 22px; height: 12px; border-radius: 4px; background: var(--ink); }
.lg-tram { flex: none; width: 22px; height: 0; border-top: 2.4px dashed var(--gold); }
.lg-pan { display: none; }
.map-scroll { overflow: hidden; }

/* Map SVG */
.hood { fill: #e7decb; stroke: #c8b897; stroke-width: 1.4; stroke-dasharray: 5 4; transition: fill .3s, stroke .3s; }
.hood.on { fill: #dce5ef; stroke: var(--azul); stroke-dasharray: none; }
.map-hood-label { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: .14em; fill: #6d6455; }
.map-place { font-family: var(--serif); font-style: italic; font-size: 20px; fill: #7d7363; }
.map-river { font-family: var(--serif); font-style: italic; font-size: 34px; letter-spacing: .3em; fill: #557590; }
.map-tram { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: #2b2100; }
.map-stage { position: relative; }
.pins { position: absolute; inset: 0; }
.pin {
  position: absolute; z-index: 1; transform: translate(-50%, calc(-100% - 7px));
  padding: 3px 8px; border: 1.5px solid var(--paper); border-radius: 6px; background: var(--ink); color: var(--paper);
  font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(29, 39, 49, .25); transition: background .2s, transform .2s var(--ease);
}
.pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 8px; height: 8px; background: inherit; border: solid var(--paper); border-width: 0 1.5px 1.5px 0; transform: translate(-50%, -4px) rotate(45deg); }
.pin.is-fav { background: var(--terra); }
.pin:hover, .pin.is-hot, .pin:focus-visible { background: var(--azul); z-index: 5; transform: translate(-50%, calc(-100% - 7px)) scale(1.1); }
.pin:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.pin[hidden] { display: none; }

/* Cards */
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card:hover, .card.is-hot { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card.is-hot { border-color: var(--azul); box-shadow: 0 0 0 1px var(--azul), var(--shadow); }
.card.is-flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 1px var(--azul), var(--shadow); } 30% { box-shadow: 0 0 0 6px rgba(36, 84, 143, .35), var(--shadow); } }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg); }
.card-media svg { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.card:hover .card-media svg { transform: scale(1.03); }
.card-tag, .card-new { position: absolute; top: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.card-tag { left: 12px; background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.card-tag.is-rent { background: var(--navy); color: #fff; }
.card-new { left: 12px; top: 44px; background: var(--azul); color: #fff; }
.fav {
  position: absolute; z-index: 3; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 0; background: rgba(255, 253, 249, .94); box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
  transition: transform .2s var(--ease);
}
.fav svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; transition: fill .2s, stroke .2s; }
.fav:hover { transform: scale(1.08); }
.fav[aria-pressed="true"] svg { fill: var(--terra); stroke: var(--terra); }
.fav.pop svg { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-hood { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--azul); }
.card-hood span { color: var(--line-2); }
.card-title { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; }
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--azul); outline-offset: -2px; }
.card-price { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.card-price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.card-specs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: auto; padding-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.card-specs li:not(:last-child):not(:nth-last-child(2))::after { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); margin: 0 9px; vertical-align: middle; }
.energy { display: inline-grid; place-items: center; width: 24px; height: 20px; margin-left: auto; border-radius: 4px; font-size: 12px; font-weight: 700; }
.e-A { background: #2f7d4f; color: #fff; }
.e-B { background: #a5c46e; color: var(--ink); }
.e-C { background: #ecd06a; color: var(--ink); }
.e-D { background: #eba465; color: var(--ink); }

/* Empty */
.empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--white); }
.empty svg { width: 120px; margin: 0 auto 18px; }
.empty h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 8px; }
.empty p { color: var(--ink-2); max-width: 44ch; margin: 0 auto 20px; }

/* Detail dialog */
.detail {
  width: min(1080px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 18px; background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(15, 25, 35, .45); overflow: auto; overscroll-behavior: contain;
}
.detail::backdrop { background: rgba(23, 34, 46, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.detail[open] { animation: dlg .35s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(18px); } }
.d-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 16px 24px; background: rgba(251, 248, 242, .95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.d-head-t { min-width: 0; margin-right: auto; }
.d-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--azul); }
.d-head h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.d-price { font-size: 20px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.d-price span { font-size: 14px; color: var(--muted); font-weight: 500; }
.d-fav, .d-close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--white); display: grid; place-items: center; }
.d-fav { position: static; box-shadow: none; }
.d-close svg { width: 16px; height: 16px; }
.d-close:hover, .d-fav:hover { border-color: var(--ink); }
.d-body { padding: 24px; display: grid; gap: 28px; }
.d-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: start; }
.d-figure { margin: 0; }
.d-figure .d-art { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.d-figure svg { width: 100%; height: 100%; }
.d-figure figcaption { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.d-figure figcaption i { width: 12px; height: 12px; border-radius: 2px; background: #f1cd86; box-shadow: 0 0 0 1px #d8b36a; }
.d-summary { font-size: 16px; color: var(--ink-2); margin-bottom: 18px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.specs th, .specs td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--muted); width: 44%; }
.specs td { font-weight: 600; }
.d-feats { display: flex; flex-wrap: wrap; gap: 6px; }
.d-feats span { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--azul-tint); color: var(--azul-d); }
.d-section h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 12px; }
.d-plan { background: #fbf8f1; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.d-plan svg { width: 100%; height: auto; max-height: 460px; margin: 0 auto; }
.d-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.calc { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.calc .form-grid { margin-bottom: 18px; }
.calc-out { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.calc-monthly { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.calc-monthly strong { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.calc-monthly span { color: var(--muted); font-size: 15px; }
.calc-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); }
.calc-bar .b-p { background: var(--azul); transition: width .3s var(--ease); }
.calc-bar .b-i { background: #e2b565; flex: 1; }
.calc-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.calc-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.calc-note { font-size: 12.5px; color: var(--muted); }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--azul); min-width: 0; }
.range-row output { min-width: 46px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.movein { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 10px; }
.movein td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.movein td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.movein tr:last-child td { border-bottom: 0; font-size: 16px; padding-top: 12px; }

/* Forms */
.panel-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.panel-form h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 20px; }
.span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { width: 100%; min-width: 0; padding: 10px 13px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field select { width: 100%; border-radius: 10px; height: 44px; font-weight: 500; font-size: 15px; }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(36, 84, 143, .18); }
.field input::placeholder, .field textarea::placeholder { color: #8a8274; }
.concept-msg { font-size: 14px; color: var(--azul-d); line-height: 1.5; }
.concept-msg:not(:empty) { margin-top: 14px; padding: 12px 14px 12px 42px; border-radius: 10px; background: var(--azul-tint) var(--tile) 12px 12px / 18px 18px no-repeat; border: 1px solid rgba(36, 84, 143, .25); animation: dlg .35s var(--ease); }

/* Neighbourhoods */
.hoods { padding: clamp(64px, 8vw, 120px) 0; }
.hood-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hood-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.hood-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hood-tile { height: 92px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hood-tile svg { width: 100%; height: 100%; }
.hood-tile svg { transform: scale(1); }
.hood-tile { background: #f7f2e8; }
.hood-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hood-body h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.hood-body > p { font-size: 14.5px; color: var(--ink-2); }
.hood-facts { margin: 0; display: grid; gap: 6px; font-size: 13.5px; }
.hood-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.hood-facts dt { color: var(--muted); }
.hood-facts dd { margin: 0; font-weight: 600; }
.hood-link { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--azul); text-decoration: none; }
.hood-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Sell */
.sell { padding: clamp(64px, 8vw, 120px) 0; background: var(--bg-2); position: relative; }
.sell-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.sell-copy > p { color: var(--ink-2); margin-top: 18px; max-width: 52ch; }
.steps { margin: 32px 0 26px; display: grid; gap: 4px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.step-n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--azul); color: var(--azul); font-family: var(--serif); font-size: 21px; font-weight: 600; background: var(--paper); }
.steps h3 { font-size: 16.5px; font-weight: 600; font-family: var(--sans); margin-bottom: 2px; line-height: 1.4; }
.steps p { font-size: 14.5px; color: var(--ink-2); }
.fee-note { font-size: 14px; color: var(--ink-2); padding: 12px 16px; border-left: 3px solid var(--terra); background: rgba(255, 253, 249, .6); border-radius: 0 8px 8px 0; }
.estimate { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-2); }
.est-k { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.est-v { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.15; font-variant-numeric: lining-nums; }
.est-n { font-size: 12.5px; color: var(--muted); }

/* Agents */
.agents { padding: clamp(64px, 8vw, 120px) 0 clamp(40px, 5vw, 64px); }
.agent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.agent { padding: 24px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 6px; }
.agent > p:not(.agent-role):not(.agent-meta) { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }
.mono { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: .02em; margin-bottom: 12px; box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line-2); position: relative; }
.mono::after { content: ""; position: absolute; right: -4px; bottom: -2px; width: 22px; height: 22px; border-radius: 4px; background: var(--tile) center / 22px 22px; box-shadow: 0 0 0 2px var(--paper); }
.m-azul { background: var(--azul); color: #fff; }
.m-ochre { background: #e2b565; color: #3b280b; }
.m-verde { background: #2f5b4c; color: #fff; }
.m-rose { background: #e7ab9b; color: #4a2219; }
.agent h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.agent-role { font-size: 13.5px; font-weight: 600; color: var(--azul); }
.agent-meta { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* Stories */
.stories { padding: clamp(40px, 5vw, 64px) 0 clamp(72px, 9vw, 128px); }
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: 8px; }
.quote { margin: 0; padding-top: 26px; border-top: 1px solid var(--ink); position: relative; display: flex; flex-direction: column; }
.quote::before { content: "\201C"; position: absolute; top: 8px; left: -2px; font-family: var(--serif); font-size: 72px; line-height: 1; color: var(--azul); }
.quote blockquote { margin: 34px 0 20px; font-family: var(--serif); font-size: clamp(21px, 1.9vw, 25px); line-height: 1.35; font-weight: 500; }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: 14px; }
.quote figcaption span { color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #e9e2d4; }
.site-footer .tile-band { opacity: 1; border: 0; filter: saturate(1.1); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .6fr); gap: clamp(28px, 4vw, 64px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: 40px; }
.logo-lg { font-size: 40px; color: #fff; margin-bottom: 10px; }
.footer-h { font-family: var(--sans); font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.site-footer address { font-style: normal; color: #d3cbbd; margin-bottom: 14px; }
.hours { color: #b9b2a5; font-size: 14px; }
.contact-form { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.contact-form .field label { color: #d3cbbd; }
.contact-form .field input, .contact-form .field textarea { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; }
.contact-form .field input::placeholder, .contact-form .field textarea::placeholder { color: #a7a094; }
.contact-form .field input:focus, .contact-form .field textarea:focus { border-color: #9dbbe0; box-shadow: 0 0 0 3px rgba(157, 187, 224, .25); }
.contact-form .btn-ink { background: #f4eee3; color: var(--navy); }
.contact-form .btn-ink:hover { background: #fff; }
.contact-form .concept-msg { color: #fff; }
.contact-form .concept-msg:not(:empty) { background-color: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.site-footer :focus-visible { outline-color: #9dbbe0; }
.footer-nav ul { display: grid; gap: 10px; }
.footer-nav a { color: #e9e2d4; text-decoration: none; font-size: 15px; }
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-base { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 32px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: #b9b2a5; }
.footer-base p { max-width: 80ch; }
.footer-base a { color: #e9e2d4; white-space: nowrap; }

/* Badge */
.concept-badge {
  position: fixed; left: 14px; bottom: 14px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink); text-decoration: none;
  background: rgba(251, 248, 242, .92); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px 6px 7px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 4px 14px -6px rgba(29, 39, 49, .25);
  transition: border-color .2s, opacity .3s, transform .3s var(--ease);
}
.concept-badge span { width: 16px; height: 16px; border-radius: 50%; background: var(--tile) center / 16px 16px; box-shadow: 0 0 0 1px rgba(36, 84, 143, .3); }
.concept-badge:hover { border-color: var(--azul); }
body.menu-open .concept-badge { display: none; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1180px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
  .hood-grid, .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .results { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1020px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { justify-self: center; max-width: 460px; }
  .hero-art::before { display: none; }
  .hero-note { left: -12px; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view-toggle { display: inline-flex; }
  .split[data-view="list"] .map-col { display: none; }
  .split[data-view="map"] .results-col { display: none; }
  .map-col { position: static; }
  .d-top, .d-bottom { grid-template-columns: minmax(0, 1fr); }
  .sell-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-nav { grid-column: 1 / -1; }
  .footer-nav ul { display: flex; flex-wrap: wrap; gap: 10px 24px; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .hero-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hs-field { border-right: 0; border-bottom: 1px solid var(--line); }
  .hs-field:nth-of-type(1) { grid-column: 1 / -1; }
  .hs-field:nth-of-type(2) { border-right: 1px solid var(--line); }
  .hs-submit { grid-column: 1 / -1; }
  .results { grid-template-columns: minmax(0, 1fr); }
  .quote-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .f-row { gap: 16px; }
  .f-group, .f-price, .f-hoods { flex: 1 1 100%; max-width: none; }
  .dd-btn { width: 100%; }
  .dd-panel { width: 100%; }
  .f-sort { width: 100%; justify-content: space-between; }
  .f-row-2 { gap: 14px; }
  .d-head { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .d-head-t { flex: 1 1 calc(100% - 120px); }
  .d-price { order: 3; flex-basis: 100%; font-size: 18px; }
  .d-body { padding: 16px; gap: 24px; }
  .detail { width: 100%; max-height: 100vh; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .footer-base { flex-direction: column; padding-bottom: 64px; }
  .map-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .map-stage { width: 760px; }
  .lg-pan { display: inline; }
  .concept-badge { left: 8px; bottom: 8px; font-size: 11px; padding: 5px 10px 5px 6px; }
  .concept-badge.is-tucked { opacity: 0; transform: translateY(12px); pointer-events: none; }
}
@media (max-width: 560px) {
  .hood-grid, .agent-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { gap: 14px 24px; }
  .hero-stats dd { font-size: 34px; }
  .hero-note { position: relative; left: auto; bottom: auto; margin: -36px 12px 0; max-width: none; }
  .seg-beds span { padding: 6px 12px; }
  .seg-beds { width: 100%; justify-content: space-between; }
}
@media (max-width: 380px) {
  .hs-field:nth-of-type(2) { border-right: 0; grid-column: 1 / -1; }
  .hs-field:nth-of-type(3) { grid-column: 1 / -1; }
  .seg-beds span { padding: 6px 9px; }
  .hero-stats div:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
