/* Ashlar Realty: concept demo by Prime Studio.
   Direction: dressed stone. Calm ground, near-black ink, one deep green accent,
   square corners, large serif display over a quiet grotesk. */

:root {
  --ground: #F2F1EE;
  --surface: #E8E6E1;
  --surface-2: #DDDAD3;
  --ink: #15191C;
  --ink-2: #474D51;
  --line: #BDB8AE;
  --accent: #1E5A48;
  --accent-hover: #164536;
  --on-accent: #FFFFFF;
  --field: #1B2225;
  --field-2: #252E32;
  --on-field: #EEECE7;
  --on-field-2: #B8BEBC;
  --accent-on-field: #9ED0BB;
  --danger: #9E2A1C;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3.2vw, 44px);
  --max: 1400px;
  --section: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --step-display: clamp(2.75rem, 1.2rem + 5.6vw, 6.4rem);
  --step-h2: clamp(2.1rem, 1.3rem + 2.8vw, 3.9rem);
  --step-h3: clamp(1.45rem, 1.15rem + 1vw, 2rem);
  --step-price: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.sr-only {
  position: absolute; 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: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-field); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.display { font-family: var(--serif); font-size: var(--step-display); line-height: .98; letter-spacing: -0.02em; }
.h2 { font-family: var(--serif); font-size: var(--step-h2); line-height: 1.02; letter-spacing: -0.015em; }
.h3 { font-family: var(--serif); font-size: var(--step-h3); line-height: 1.1; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.125rem, 1rem + .4vw, 1.35rem); line-height: 1.5; max-width: 34em; }
.muted { color: var(--ink-2); }
.small { font-size: .9375rem; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Icons ---------- */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-lg { width: 24px; height: 24px; }

/* ---------- Ribbon (concept-demo notice) ---------- */
.ribbon {
  background: var(--ink); color: var(--on-field);
  font-size: .875rem; line-height: 1.35;
}
.ribbon .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 .5em; min-height: 44px; padding-block: 0; text-align: center; }
.ribbon a { color: var(--accent-on-field); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }
.ribbon a:hover { color: #fff; }
@media (max-width: 600px) { .ribbon .sep { display: none; } .ribbon .wrap { gap: 0; padding-top: 6px; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--ground); transition: box-shadow .2s var(--ease); }
.site-header.is-stuck { box-shadow: 0 1px 0 var(--surface-2); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand svg { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  background: var(--surface-2); font-size: .8125rem; font-variant-numeric: tabular-nums;
}
.count.has { background: var(--accent); color: var(--on-accent); }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px;
    background: transparent; border: 0; cursor: pointer;
  }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); padding: 8px var(--gutter) 24px;
    box-shadow: 0 12px 24px rgba(21, 25, 28, .12);
  }
  .nav:not(.is-open) { display: none; }
  .nav a { padding: 14px 0; font-size: 1.125rem; }
  .nav .btn { margin-top: 12px; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 500;
  transition: background-color .18s var(--ease), transform .12s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn .i { transition: transform .2s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn-ink { background: var(--ink); }
.btn-ink:hover { background: #000; }
.btn-quiet { background: var(--surface); color: var(--ink); }
.btn-quiet:hover { background: var(--surface-2); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-underline-offset: 5px; min-height: 44px; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .i { transform: translateX(3px); }
.link-arrow .i { transition: transform .2s var(--ease); }

/* ---------- Form controls ---------- */
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: .9375rem; font-weight: 500; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 0;
  font-size: 1rem; transition: border-color .15s var(--ease);
}
.textarea { min-height: 112px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315191C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.error { color: var(--danger); font-size: .875rem; min-height: 0; }
.hint { color: var(--ink-2); font-size: .875rem; }

/* chips: checkbox / radio rendered as square toggles */
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 10px; font-size: .9375rem; font-weight: 500; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 14px;
  background: var(--surface); transition: background-color .15s var(--ease), color .15s var(--ease);
  font-size: .9375rem; user-select: none;
}
.chip input:hover + span { background: var(--surface-2); }
.chip input:checked + span { background: var(--ink); color: var(--on-field); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip input:disabled + span { opacity: .45; }
.chip input:disabled { cursor: not-allowed; }

/* range */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--surface-2); }
input[type="range"]::-moz-range-track { height: 4px; background: var(--surface-2); }
/* 44px hit area, 24px visible disc: the transparent border is part of the thumb */
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; box-sizing: border-box; width: 44px; height: 44px; margin-top: -20px; background: var(--ink); background-clip: padding-box; border: 10px solid transparent; border-radius: 50%; transition: border-color .15s var(--ease); }
input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: 44px; height: 44px; background: var(--ink); background-clip: padding-box; border: 10px solid transparent; border-radius: 50%; }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:hover::-webkit-slider-thumb { border-color: rgba(21, 25, 28, .1); }
input[type="range"]:focus-visible::-webkit-slider-thumb { border-color: rgba(30, 90, 72, .35); }
input[type="range"]:focus-visible::-moz-range-thumb { border-color: rgba(30, 90, 72, .35); }

/* dual range (budget) */
.dual { position: relative; height: 44px; }
.dual input[type="range"] { position: absolute; inset: 0; pointer-events: none; }
.dual input[type="range"]::-webkit-slider-thumb { pointer-events: auto; }
.dual input[type="range"]::-moz-range-thumb { pointer-events: auto; }
.dual::before { content: ""; position: absolute; left: 22px; right: 22px; top: 20px; height: 4px; background: var(--surface-2); }
.dual input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.dual input[type="range"]::-moz-range-track { background: transparent; }
.dual-fill { position: absolute; top: 20px; height: 4px; background: var(--ink); pointer-events: none; }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  background: var(--ground); color: var(--ink); font-size: .8125rem; font-weight: 500; line-height: 1.2;
}
.tag-uc { background: var(--ink); color: var(--on-field); }
.tag-dark { background: var(--field); color: var(--on-field); }

/* ---------- Listing card ---------- */
.card { position: relative; display: flex; flex-direction: column; background: transparent; }
.card-media { position: relative; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-tags { position: absolute; left: 12px; right: 60px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.heart {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--ground); color: var(--ink); transition: background-color .15s var(--ease), color .15s var(--ease);
}
.heart:hover { background: #fff; }
.heart .i { width: 22px; height: 22px; transition: transform .2s var(--ease); }
.heart[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.heart[aria-pressed="true"] .i { fill: currentColor; }
.heart.pop .i { transform: scale(1.18); }
.card-body { padding-top: 16px; display: grid; gap: 6px; }
.card-area { color: var(--ink-2); font-size: .9375rem; }
.card-title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.01em; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:focus-visible { outline: none; }
.card:has(.card-title a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 6px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); font-size: .9375rem; }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-price { font-family: var(--serif); font-size: 1.75rem; line-height: 1; margin-top: 4px; }
.card-price small { font-family: var(--sans); font-size: .875rem; color: var(--ink-2); margin-left: 6px; }

.filters .chip span, .visit .chip span, .wizard .chip span { background: var(--ground); }
.filters .chip input:hover + span, .visit .chip input:hover + span, .wizard .chip input:hover + span { background: #fff; }
.filters .chip input:checked + span, .visit .chip input:checked + span, .wizard .chip input:checked + span { background: var(--ink); }
.grid-3 { display: grid; gap: clamp(32px, 4vw, 48px) clamp(20px, 2.4vw, 32px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 > :nth-child(3) { display: none; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } .grid-3 > :nth-child(3) { display: flex; } }
.grid-cards { display: grid; gap: clamp(32px, 4vw, 48px) clamp(20px, 2.4vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* ---------- Footer ---------- */
.site-footer { background: var(--field); color: var(--on-field); margin-top: var(--section); }
.site-footer a { color: var(--on-field); text-underline-offset: 4px; }
.site-footer a:hover { color: var(--accent-on-field); }
.footer-top { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr; padding-block: 72px 48px; }
.footer-top h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.footer-top ul { list-style: none; display: grid; gap: 2px; }
.footer-top li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-top p { color: var(--on-field-2); }
.footer-top .footer-office p { color: var(--on-field); }
.footer-office p + p { margin-top: 8px; }
.footer-word { padding-bottom: 28px; color: var(--on-field); }
.footer-word svg { width: 100%; height: auto; display: block; }
.footer-base { background: var(--field-2); color: var(--on-field-2); font-size: .875rem; }
.footer-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; }
.footer-base a { color: var(--on-field); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding-top: var(--section); }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { max-width: 36em; margin-top: 16px; }
@media (max-width: 700px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Home: hero ---------- */
.hero { padding-top: clamp(24px, 4vw, 56px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(20px, 2.4vw, 32px); align-items: stretch; }
.hero-copy { grid-column: 1 / span 6; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: 8px; }
.hero-copy .lede { max-width: 30em; margin-top: 36px; }
.hero-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.hero-links .link-arrow { text-decoration: none; }
.hero-links .link-arrow:hover { text-decoration: underline; text-underline-offset: 6px; }
.hero-media { grid-column: 7 / span 6; position: relative; min-height: clamp(460px, 40vw, 600px); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-media figcaption { position: absolute; left: 0; bottom: 0; background: var(--ground); padding: 10px 16px 0 0; font-size: .875rem; color: var(--ink-2); }
.quick { grid-column: 1 / -1; margin-top: 8px; background: var(--surface); padding: 24px; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(200px, auto); align-items: end; }
.quick .field > label { font-size: .875rem; }
.quick .btn { min-height: 52px; }
@media (max-width: 1100px) {
  .quick { grid-template-columns: 1fr 1fr; }
  .quick .btn { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-copy, .hero-media { grid-column: 1 / -1; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 3; margin-top: 32px; order: 2; }
  .quick { margin-top: 32px; order: 1; }
}
@media (max-width: 480px) { .quick { grid-template-columns: 1fr; padding: 16px; } }

/* ---------- Home: featured ---------- */
.featured { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(20px, 2.4vw, 32px); }
.featured > .card:first-child { grid-column: 1 / span 7; grid-row: span 2; }
.featured > .card:first-child .card-media { aspect-ratio: auto; flex: 1; min-height: 420px; }
.featured > .card:first-child .card-title { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem); }
.featured > .card:not(:first-child) { grid-column: 8 / span 5; }
.featured > .card:not(:first-child) .card-media { aspect-ratio: 16 / 10; }
@media (max-width: 900px) {
  .featured > .card:first-child, .featured > .card:not(:first-child) { grid-column: 1 / -1; grid-row: auto; }
  .featured > .card:first-child .card-media { min-height: 0; aspect-ratio: 4 / 3; flex: none; }
}

/* ---------- Home: areas ---------- */
.areas { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(20px, 2.4vw, 32px); align-items: start; }
.areas-map { grid-column: 1 / span 6; background: var(--surface); position: sticky; top: 100px; }
.areas-map svg { width: 100%; height: auto; display: block; }
.areas-map figcaption { padding: 0 20px 16px; font-size: .875rem; color: var(--ink-2); }
.areas-list { grid-column: 7 / span 6; list-style: none; }
.areas-list li + li { margin-top: 4px; }
.area-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline;
  padding: 20px 20px; text-decoration: none; background: transparent; transition: background-color .2s var(--ease);
}
.area-row:hover, .area-row.is-active { background: var(--surface); }
.area-row h3 { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1.1; }
.area-row p { grid-column: 1 / -1; color: var(--ink-2); max-width: 34em; }
.area-row .n { font-size: .9375rem; color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.map-dot { cursor: pointer; }
.map-dot circle.hit { fill: transparent; }
.map-dot circle.pt { fill: var(--ink); transition: r .2s var(--ease), fill .2s var(--ease); }
.map-dot circle.halo { fill: var(--accent); opacity: 0; transition: opacity .2s var(--ease); }
.map-dot text { font-family: var(--sans); font-size: 18px; fill: var(--ink); }
.map-dot.is-active circle.pt, .map-dot:hover circle.pt, .map-dot:focus-visible circle.pt { fill: var(--accent); }
.map-dot.is-active circle.halo, .map-dot:hover circle.halo, .map-dot:focus-visible circle.halo { opacity: .18; }
.map-dot:focus-visible { outline: none; }
.map-dot:focus-visible text { text-decoration: underline; }
@media (max-width: 900px) {
  .areas-map, .areas-list { grid-column: 1 / -1; position: static; }
}

/* ---------- Home: process (dark field) ---------- */
.process { background: var(--field); color: var(--on-field); margin-top: var(--section); padding-block: var(--section); }
.process-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px clamp(20px, 2.4vw, 32px); }
.process-head { grid-column: 1 / span 5; }
.process-head p { color: var(--on-field-2); margin-top: 20px; max-width: 30em; }
.process-media { grid-column: 1 / span 5; margin-top: 40px; aspect-ratio: 4 / 5; overflow: hidden; }
.process-media img { width: 100%; height: 100%; object-fit: cover; }
.steps { grid-column: 7 / span 6; list-style: none; display: grid; gap: 4px; align-self: start; counter-reset: step; }
.steps li { background: var(--field-2); padding: 28px 28px 30px; display: grid; gap: 10px; }
.steps h3 { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1.1; }
.steps p { color: var(--on-field-2); max-width: 36em; }
.steps .when { color: var(--accent-on-field); font-size: .9375rem; font-weight: 500; }
@media (max-width: 900px) {
  .process-head, .process-media, .steps { grid-column: 1 / -1; }
  .process-media { aspect-ratio: 16 / 10; margin-top: 32px; }
}

/* ---------- Home: reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(20px, 2.4vw, 32px); }
.review { margin: 0; display: grid; gap: 20px; align-content: start; }
.review blockquote { margin: 0; }
.review-lead { grid-column: 1 / span 7; background: var(--surface); padding: clamp(28px, 4vw, 56px); }
.review-lead blockquote p { font-family: var(--serif); font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem); line-height: 1.2; letter-spacing: -0.01em; }
.review-side { grid-column: 8 / span 5; display: grid; gap: 32px; align-content: start; }
.review-side .review { padding: 28px 0 0; }
.review-side blockquote p { font-size: 1.125rem; line-height: 1.55; }
.review figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .9375rem; color: var(--ink-2); }
.review figcaption strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .review-lead, .review-side { grid-column: 1 / -1; } }

/* ---------- Home: contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(20px, 2.4vw, 32px); }
.contact-copy { grid-column: 1 / span 5; }
.contact-copy .lede { margin-top: 20px; }
.contact-lines { margin-top: 32px; display: grid; gap: 14px; }
.contact-lines p { display: flex; gap: 12px; align-items: flex-start; }
.contact-lines .i { margin-top: 3px; }
.contact-side { grid-column: 7 / span 6; }
.contact-form { background: var(--surface); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; grid-template-columns: 1fr 1fr; align-content: start; }
.contact-form .full { grid-column: 1 / -1; }
@media (max-width: 900px) { .contact-copy, .contact-side { grid-column: 1 / -1; } }
@media (max-width: 520px) { .contact-form { grid-template-columns: 1fr; } }

/* ---------- Demo confirmation ---------- */
.confirm { background: var(--ground); padding: 24px; display: grid; gap: 12px; }
.confirm-head { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; }
.confirm-head .i { width: 28px; height: 28px; color: var(--accent); }
.confirm .demo-note { background: var(--field); color: var(--on-field); padding: 12px 14px; font-size: .9375rem; }
.surface-confirm { background: #fff; }

/* ---------- Listings page ---------- */
.page-head { padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(24px, 3vw, 40px); }
.page-head p { margin-top: 16px; }
.listings-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 3vw, 48px); align-items: start; }
/* The panel only sticks on screens tall enough to show it whole; a sticky panel with its own inner
   scrollbar hid the last filters on ordinary laptops. */
.filters { position: static; display: grid; gap: 20px; background: var(--surface); padding: 22px; }
@media (min-width: 961px) and (min-height: 980px) {
  .filters { position: sticky; top: 96px; }
}
.filters-head { display: flex; align-items: center; justify-content: space-between; }
.filters-head h2 { font-family: var(--serif); font-size: 1.75rem; }
.clear-btn { background: none; border: 0; padding: 0 4px; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.clear-btn:hover { color: var(--accent); }
.budget-read { display: flex; justify-content: space-between; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.results-count { font-size: 1.0625rem; }
.results-count strong { font-family: var(--serif); font-size: 2rem; font-weight: 400; margin-right: 6px; vertical-align: -2px; }
.sort { display: flex; align-items: center; gap: 12px; }
.sort .select { width: auto; min-width: 220px; }
.filter-toggle-row { display: none; margin: 0 0 16px; }
.empty { background: var(--surface); padding: clamp(32px, 5vw, 64px); display: grid; gap: 16px; justify-items: start; }
.empty h2 { font-family: var(--serif); font-size: var(--step-h3); }
@media (max-width: 960px) {
  .listings-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .filters:not(.is-open) { display: none; }
  .filter-toggle-row { display: block; }
  .sort .select { min-width: 0; }
}
@media (max-width: 520px) {
  .results-bar { align-items: stretch; flex-direction: column; }
  .sort { justify-content: space-between; }
  .sort .select { flex: 1; }
}

/* ---------- Detail page ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: .9375rem; color: var(--ink-2); padding-top: 24px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.detail-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: end; padding-block: 8px 32px; }
.detail-head .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.detail-head .tag { background: var(--surface); }
.detail-head .tag-uc { background: var(--ink); }
.detail-head h1 { font-family: var(--serif); font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; max-width: 16em; }
.detail-head .where { margin-top: 14px; color: var(--ink-2); }
.detail-price { text-align: right; display: grid; gap: 6px; justify-items: end; }
.detail-price .p { font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); line-height: 1; }
.detail-price .psf { color: var(--ink-2); font-size: .9375rem; }
.detail-actions { display: flex; gap: 8px; margin-top: 8px; }
.save-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.save-btn[aria-pressed="true"] .i { fill: currentColor; }
@media (max-width: 760px) {
  .detail-head { grid-template-columns: 1fr; }
  .detail-price { text-align: left; justify-items: start; }
  .detail-actions { width: 100%; }
  .detail-actions .btn { flex: 1; white-space: nowrap; padding: 0 14px; }
}
@media (max-width: 420px) { .detail-actions { flex-direction: column; } }

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 8px; height: clamp(320px, 46vw, 640px); }
.gallery button { position: relative; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--surface); min-height: 0; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.025); }
.gallery button:first-child { grid-row: 1 / span 3; }
.gallery .more {
  position: absolute; right: 12px; bottom: 12px; background: var(--ground); color: var(--ink);
  padding: 10px 14px; font-size: .9375rem; display: inline-flex; align-items: center; gap: 8px;
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .gallery button:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery button:not(:first-child) { aspect-ratio: 1; }
  .gallery button:nth-child(4) { display: none; }
}

.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 4vw, 64px); margin-top: clamp(40px, 5vw, 72px); align-items: start; }
.detail-main { display: grid; gap: clamp(48px, 6vw, 80px); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; }
.facts div { background: var(--surface); padding: 18px 20px; display: grid; gap: 4px; }
.facts dt { font-size: .875rem; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; }
.about p + p { margin-top: 14px; }
.about h2, .amenities h2, .emi h2 { margin-bottom: 20px; }
.amenity-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.amenity-list li { display: flex; align-items: center; gap: 12px; padding-block: 6px; }
.amenity-list .i { color: var(--accent); }
@media (max-width: 1080px) { .detail-body { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .amenity-list { grid-template-columns: 1fr; }
}

/* EMI calculator */
.emi-box { background: var(--surface); padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
.emi-controls { display: grid; gap: 22px; }
.emi-row { display: grid; gap: 2px; }
.emi-row .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.emi-row output { font-variant-numeric: tabular-nums; font-weight: 600; }
.emi-row .ends { display: flex; justify-content: space-between; color: var(--ink-2); font-size: .8125rem; }
.emi-out { background: var(--ground); padding: 24px; display: grid; gap: 18px; align-content: start; }
.emi-out .big { font-family: var(--serif); font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.emi-out dl { margin: 0; display: grid; gap: 10px; }
.emi-out dl div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.emi-out dt { color: var(--ink-2); }
.emi-out dd { margin: 0; font-weight: 600; }
.split { display: flex; height: 10px; background: var(--surface-2); }
.split .pr { background: var(--ink); transition: width .3s var(--ease); }
.split .in { background: var(--accent); flex: 1; }
.split-key { display: flex; gap: 16px; font-size: .8125rem; color: var(--ink-2); }
.split-key span { display: inline-flex; align-items: center; gap: 6px; }
.split-key i { width: 10px; height: 10px; display: inline-block; }
@media (max-width: 760px) { .emi-box { grid-template-columns: 1fr; } }

/* Site visit aside */
.visit { position: sticky; top: 96px; background: var(--surface); padding: clamp(20px, 2.5vw, 32px); display: grid; gap: 18px; }
.visit h2 { font-family: var(--serif); font-size: 2rem; line-height: 1.05; }
.visit form { display: grid; gap: 18px; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.slots .chip { display: block; }
.slots .chip span { width: 100%; padding: 0 6px; }
.agent { display: flex; gap: 14px; align-items: center; }
.agent-mono { width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: var(--on-field); font-family: var(--serif); font-size: 1.35rem; flex: none; }
@media (max-width: 1080px) { .visit { position: static; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(13, 16, 18, .96); color: var(--on-field); }
.lightbox::backdrop { background: rgba(13, 16, 18, .96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lb-in .22s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); gap: 16px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; }
.lb-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background-color .15s var(--ease); }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-cap { padding: 14px var(--gutter) 20px; color: var(--on-field-2); font-size: .9375rem; text-align: center; }
@media (max-width: 640px) {
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -60px; transform: none; }
  .lb-prev { left: var(--gutter); }
  .lb-next { right: var(--gutter); }
  .lb-cap { padding-inline: 80px; }
}

/* ---------- Shortlist ---------- */
.sl-layout { display: grid; gap: 4px; }
.sl-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 24px; background: var(--surface); align-items: stretch; }
.sl-row .card-media { aspect-ratio: 4 / 3; }
.sl-info { padding: 20px 0; display: grid; gap: 6px; align-content: center; }
.sl-info .card-title a { position: static; }
.sl-info .card-title a::after { display: none; }
.sl-info .card-title a { display: inline-block; padding-block: 6px; }
.sl-info .card-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sl-actions { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px 20px 20px 0; }
.compare-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: .9375rem; }
.compare-toggle input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.compare-toggle:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.compare-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin: 28px 0 0; padding: 16px 20px; background: var(--field); color: var(--on-field); }
.compare-bar p { color: var(--on-field-2); }
.compare-bar strong { color: var(--on-field); font-weight: 600; }
@media (max-width: 760px) {
  .sl-row { grid-template-columns: 1fr; gap: 0; }
  .sl-info { padding: 16px 16px 0; }
  .sl-actions { flex-direction: row; flex-wrap: wrap; padding: 8px 16px 16px; }
}
.compare { margin-top: clamp(48px, 6vw, 80px); }
.compare h2 { margin-bottom: 24px; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; table-layout: fixed; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.compare-table thead th { border-bottom: 0; padding: 0 16px 16px; font-weight: 400; }
.compare-table tbody th { font-weight: 500; color: var(--ink-2); width: 170px; font-size: .9375rem; }
.compare-table .head-img { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 12px; position: relative; }
.compare-table .head-img img { width: 100%; height: 100%; object-fit: cover; }
.compare-table .head-title { font-family: var(--serif); font-size: 1.35rem; line-height: 1.15; }
.compare-table .head-title a { text-decoration: none; }
.compare-table .head-title a:hover { text-decoration: underline; }
.compare-table td.best { color: var(--accent); font-weight: 600; }
.compare-table td ul { list-style: none; display: grid; gap: 4px; }

/* ---------- Sell ---------- */
.sell-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(20px, 2.4vw, 32px); align-items: start; }
.sell-copy { grid-column: 1 / span 5; display: grid; gap: 28px; }
.sell-media { aspect-ratio: 4 / 3; overflow: hidden; }
.sell-media img { width: 100%; height: 100%; object-fit: cover; }
.sell-points { list-style: none; display: grid; gap: 4px; }
.sell-points li { background: var(--surface); padding: 20px 22px; display: grid; gap: 4px; }
.sell-points strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.15; }
.sell-points span { color: var(--ink-2); }
.wizard { grid-column: 7 / span 6; background: var(--surface); padding: clamp(20px, 3vw, 40px); }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-bottom: 32px; }
.stepper li { padding: 12px 0 0; border-top: 4px solid var(--surface-2); font-size: .875rem; color: var(--ink-2); transition: border-color .25s var(--ease), color .25s var(--ease); }
.stepper li.done { border-top-color: var(--ink-2); color: var(--ink); }
.stepper li[aria-current="step"] { border-top-color: var(--accent); color: var(--ink); font-weight: 600; }
.wizard fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 20px; }
.wizard legend { font-family: var(--serif); font-size: 2rem; line-height: 1.1; margin-bottom: 8px; padding: 0; }
.wizard .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wizard .chips legend { font-family: var(--sans); font-size: .9375rem; font-weight: 500; line-height: 1.4; margin-bottom: 10px; }
.wiz-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.review-list { margin: 0; display: grid; gap: 4px; }
.review-list div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; background: var(--ground); padding: 12px 16px; }
.review-list dt { color: var(--ink-2); }
.review-list dd { margin: 0; font-weight: 500; }
.step-panel.enter { animation: step-in .32s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .sell-copy, .wizard { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .wiz-2 { grid-template-columns: 1fr; }
  .review-list div { grid-template-columns: 1fr; gap: 2px; }
  .stepper li { font-size: .75rem; }
}

/* ---------- 404 ---------- */
.nf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(20px, 2.4vw, 32px); padding-top: clamp(48px, 8vw, 120px); align-items: center; }
.nf-copy { grid-column: 1 / span 6; display: grid; gap: 24px; justify-items: start; }
.nf-art { grid-column: 8 / span 5; background: var(--surface); }
.nf-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .nf-copy, .nf-art { grid-column: 1 / -1; } }

/* ---------- Toast (live region) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px); opacity: 0;
  background: var(--ink); color: var(--on-field); padding: 14px 18px; font-size: .9375rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2); pointer-events: none; max-width: calc(100vw - 32px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal (opt-in by script) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover .card-media img, .gallery button:hover img { transform: none; }
}
