/* Amy Williams Real Estate — shared styles
   Palette: ink black + cream + brass, drawn from the Black Sheep logo and Amy's photography. */

:root {
  --ink: #1c1b19;
  --ink-soft: #2a2825;
  --cream: #f7f2ea;
  --sand: #ece3d5;
  --linen: #fffdf9;
  --stone: #5c564e;          /* muted text, 6.6:1 on cream */
  --brass: #b08d57;          /* decorative only */
  --brass-deep: #7a5c2e;     /* brass text on light, 5.6:1 */
  --brass-light: #d9bf8f;    /* brass text on ink, 9:1 */
  --line: #ddd2c1;
  --focus: #7a5c2e;
  --error: #a3341f;

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(28, 27, 25, .06), 0 12px 32px -12px rgba(28, 27, 25, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--ink); color: var(--linen); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--linen { background: var(--linen); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--ink .eyebrow { color: var(--brass-light); }
.lede { font-size: 1.15rem; color: var(--stone); max-width: 60ch; }
.section--ink .lede { color: #cfc6b8; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; border-radius: 999px;
  font: 500 .95rem/1 var(--font-body); letter-spacing: .04em; text-decoration: none;
  border: 1.5px solid var(--ink); cursor: pointer; touch-action: manipulation;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--ink); color: var(--cream); }
.btn--primary:hover { background: var(--brass-deep); border-color: var(--brass-deep); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn--light:hover { background: var(--brass-light); border-color: var(--brass-light); }
.btn--outline-light { background: transparent; color: var(--cream); border-color: rgba(247, 242, 234, .5); }
.btn--outline-light:hover { border-color: var(--cream); background: rgba(247, 242, 234, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px; color: var(--brass-deep);
}
.section--ink .text-link { color: var(--brass-light); }
.text-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* Utility bar + header */
.topbar { background: var(--ink); color: #d9d1c4; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--brass-light); }
.topbar svg { width: 15px; height: 15px; }
.topbar__links { display: flex; gap: 20px; align-items: center; }
.topbar__tag { letter-spacing: .08em; }

.header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
/* Blur lives on a pseudo-element so the fixed mobile menu isn't trapped in the header's containing block */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(247, 242, 234, .94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand__name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; display: block; }
.brand__sub { font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--stone); display: block; margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: .93rem; padding: 10px 12px; border-radius: 8px; position: relative;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { font-weight: 500; }
.nav .btn { margin-left: 10px; min-height: 44px; padding: 0 20px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  border-radius: 10px; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed; inset: 116px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 12px var(--gutter) 28px; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(28, 27, 25, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    max-height: calc(100dvh - 116px); overflow-y: auto;
  }
  .header.is-scrolled .nav, .nav.is-docked { inset: 76px 0 auto 0; max-height: calc(100dvh - 76px); }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 18px 0 0; border-bottom: 1.5px solid var(--ink); border-radius: 999px; }
}
@media (max-width: 640px) {
  .topbar__tag { display: none; }
  .topbar .wrap { justify-content: center; }
}

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--brass-deep); }
.hero .lede { margin-bottom: 30px; }
.hero__media { position: relative; }
.arch {
  border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--sand); box-shadow: var(--shadow);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__card {
  position: absolute; left: -28px; bottom: 32px; background: var(--linen); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 290px;
}
.hero__card img { width: 40px; height: auto; }
.hero__card strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; line-height: 1.2; }
.hero__card span { font-size: .85rem; color: var(--stone); }
.hero__search {
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center;
}
.hero__search p { margin: 0; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); width: 100%; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; width: 100%; margin: 0 auto; }
  .hero__card { left: 12px; bottom: 16px; }
}

/* Page hero (inner pages) */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero--split .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.page-hero--split .arch { aspect-ratio: 4 / 4.6; }
@media (max-width: 860px) {
  .page-hero--split .wrap { grid-template-columns: 1fr; }
  .page-hero--split .arch { max-width: 380px; }
}

/* Trust strip */
.strip { border-block: 1px solid var(--line); background: var(--linen); }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.strip li { padding: 26px 20px; text-align: center; border-left: 1px solid var(--line); }
.strip li:first-child { border-left: 0; }
.strip strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.strip span { font-size: .88rem; color: var(--stone); }
@media (max-width: 760px) {
  .strip li { padding: 22px 10px; }
  .strip strong { font-size: 1.6rem; }
}

/* Cards */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 4px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
a.card { text-decoration: none; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brass); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--stone); margin: 0 0 18px; }
.card .text-link { margin-top: auto; align-self: flex-start; }
.card__icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sand); color: var(--brass-deep); margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card--feature { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.card--feature p { color: #cfc6b8; }
.card--feature .card__icon { background: var(--ink-soft); color: var(--brass-light); }
.card--feature .text-link { color: var(--brass-light); }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

/* Commission */
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--brass-deep); }
.section--ink .checklist svg { color: var(--brass-light); }

.calc {
  background: var(--ink-soft); border: 1px solid #3b3833; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
}
.calc h3 { color: var(--cream); }
.calc label { display: block; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: #cfc6b8; margin: 18px 0 8px; }
.calc__input { position: relative; }
.calc__input span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #cfc6b8; font-size: 1.2rem; }
.calc input {
  width: 100%; min-height: 58px; border-radius: 12px; border: 1px solid #4a463f; background: var(--ink);
  color: var(--cream); font: 500 1.3rem var(--font-body); padding: 0 18px 0 36px; font-variant-numeric: tabular-nums;
}
.calc input[type="range"] { padding: 0; min-height: 32px; border: 0; background: transparent; accent-color: var(--brass-light); }
.calc__result { margin-top: 26px; padding-top: 22px; border-top: 1px solid #3b3833; }
.calc__result small { display: block; color: #cfc6b8; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.calc__result output { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.6rem); color: var(--brass-light); line-height: 1.1; margin: 6px 0; font-variant-numeric: tabular-nums; }
.fine { font-size: .82rem; color: var(--stone); line-height: 1.5; }
.section--ink .fine, .calc .fine { color: #b5ac9e; }

/* Steps */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--brass-deep); line-height: 1; margin-bottom: 14px; }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--stone); font-size: .96rem; margin: 0; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .steps, .steps--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps, .steps--4 { grid-template-columns: 1fr; } }

/* About teaser */
.portrait { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: var(--sand); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.quote { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; margin: 0 0 24px; }
.signoff { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--brass-deep); margin-top: 8px; }

/* Neighbourhood chips + cards */
.chips { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--linen); font-size: .95rem; }
.chips--center { justify-content: center; }
.hood { background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.hood__top {
  background: var(--ink); color: var(--cream); padding: 26px 26px 22px; position: relative; overflow: hidden;
}
.hood__top::after {
  content: ""; position: absolute; right: -18px; bottom: -22px; width: 120px; height: 94px; opacity: .08;
  background: url("../img/icon-white.png") center / contain no-repeat;
}
.hood__top small { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-light); }
.hood__top h3 { margin: 6px 0 0; color: var(--cream); }
.hood__body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.hood__body p { color: var(--stone); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.tags li { font-size: .8rem; padding: 4px 10px; background: var(--sand); border-radius: 999px; }
.hood .text-link { margin-top: auto; align-self: flex-start; }

/* Testimonials */
.review {
  background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.review__stars { display: flex; gap: 3px; color: var(--brass); }
.review__stars svg { width: 18px; height: 18px; }
.review blockquote { margin: 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; }
.review cite { font-style: normal; font-size: .9rem; color: var(--stone); margin-top: auto; }
.review--placeholder { border-style: dashed; border-color: var(--brass); background: transparent; }
.review--placeholder blockquote { color: var(--stone); }

/* Forms */
.form { background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form h3 { margin-bottom: 4px; }
.form > p { color: var(--stone); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 22px; }
.form__full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 6px; }
.field label .req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; border: 1px solid #cbbfac; border-radius: 10px; background: #fff;
  font: 400 16px var(--font-body); color: var(--ink); padding: 12px 14px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass-deep); box-shadow: 0 0 0 3px rgba(122, 92, 46, .2); }
.field .error { display: none; color: var(--error); font-size: .85rem; margin-top: 6px; }
.field.has-error input, .field.has-error select { border-color: var(--error); }
.field.has-error .error { display: block; }
.form__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form__status { font-size: .92rem; color: var(--brass-deep); margin: 0; }
.form__status:empty { display: none; }

/* FAQ */
.faq { max-width: 820px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--font-display); font-size: 1.3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.6rem; color: var(--brass-deep); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--stone); padding-bottom: 12px; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--cream); border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 280px; height: 220px; opacity: .06; background: url("../img/icon-white.png") center / contain no-repeat; pointer-events: none; }
.cta-band h2 { color: var(--cream); margin-bottom: 10px; }
.cta-band p { color: #cfc6b8; margin: 0; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* Prose */
.prose { max-width: 68ch; }
.prose p { color: var(--ink-soft); }
.prose h2 { margin-top: 1.2em; }

/* Listings */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .listing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .listing-grid { grid-template-columns: 1fr; } }
.listing-card {
  position: relative; background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brass); }
.listing-card__img { position: relative; aspect-ratio: 16 / 11; background: var(--sand); overflow: hidden; }
.listing-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.listing-card:hover .listing-card__img img { transform: scale(1.03); }
.listing-card__noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brass); background: var(--sand); }
.listing-card__noimg svg { width: 48px; height: 48px; }
.listing-badge {
  position: absolute; left: 14px; top: 14px; background: var(--ink); color: var(--cream);
  font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.listing-badge--sold { background: var(--brass-light); color: var(--ink); }
.listing-card__body { padding: 20px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.listing-card__price { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.listing-card h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 500; line-height: 1.4; margin: 0 0 4px; }
.listing-card h3 a { text-decoration: none; }
.listing-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.listing-card h3 a:focus-visible { outline: none; }
.listing-card:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.listing-card__place { display: flex; gap: 6px; align-items: center; color: var(--stone); font-size: .92rem; margin: 0 0 12px; }
.listing-card__place svg { width: 15px; height: 15px; flex: none; color: var(--brass-deep); }
.listing-card__facts { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; color: var(--ink-soft); }
.listing-card__facts li + li { position: relative; }
.listing-card__facts li + li::before { content: ""; position: absolute; left: -9px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--brass); }
.listing-card__facts--lg { font-size: 1.05rem; gap: 8px 22px; }
.listing-card__facts--lg li + li::before { left: -12px; }
.listing-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .78rem; color: var(--stone); }
.realtor-badge { position: relative; z-index: 2; display: inline-flex; min-height: 32px; align-items: center; }
.realtor-badge img { width: 110px; height: auto; }
.listing-card--skeleton .listing-card__img, .listing-card--skeleton span {
  background: linear-gradient(90deg, var(--sand) 0%, #f3ece1 50%, var(--sand) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear;
}
.listing-card--skeleton span { display: block; height: 14px; border-radius: 6px; margin-bottom: 12px; }
.listing-card--skeleton span:first-child { width: 50%; height: 26px; }
.listing-card--skeleton span:last-child { width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.listing-none { grid-column: 1 / -1; text-align: center; color: var(--stone); padding: 40px 0; }
.listing-none button { background: none; border: 0; border-bottom: 1px solid currentColor; font: inherit; cursor: pointer; }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 28px; }
.filters .field { flex: 1 1 200px; }
.filters .field--sm { flex: 0 1 170px; }
.filters__count { margin-left: auto; color: var(--stone); font-size: .95rem; padding-bottom: 12px; }
@media (max-width: 620px) { .filters .field--sm { flex: 1 1 140px; } .filters__count { margin-left: 0; } }

.empty-state { text-align: center; max-width: 640px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) 24px; border: 1px dashed var(--brass); border-radius: var(--radius-lg); }
.empty-state .card__icon { margin: 0 auto 18px; }
.empty-state .btn-row { justify-content: center; }

.sold-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .sold-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .sold-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
.sold-card { margin: 0; }
.sold-card__img { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.sold-card__img img { width: 100%; height: 100%; object-fit: cover; }
.sold-card .listing-badge { left: 10px; top: 10px; }
.sold-card figcaption { display: flex; gap: 6px; align-items: flex-start; font-size: .92rem; margin-top: 10px; line-height: 1.4; }
.sold-card figcaption svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--brass-deep); }

/* Listing detail */
.back-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--stone); font-size: .95rem; margin-bottom: 20px; min-height: 44px; }
.back-link svg { width: 16px; height: 16px; transform: rotate(180deg); }
.back-link:hover { color: var(--ink); }
.detail-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }
.gallery__main { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 253, 249, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
}
.gallery__nav:hover { background: var(--linen); }
.gallery__nav svg { width: 20px; height: 20px; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--prev svg { transform: rotate(180deg); }
.gallery__nav--next { right: 14px; }
.gallery__count { position: absolute; right: 14px; bottom: 14px; background: rgba(28, 27, 25, .75); color: var(--cream); font-size: .82rem; padding: 4px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.gallery__thumbs button { flex: 0 0 96px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--sand); opacity: .7; transition: opacity .2s var(--ease), border-color .2s var(--ease); }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button[aria-current], .gallery__thumbs button:hover { opacity: 1; border-color: var(--brass-deep); }
.listing-title { font-size: clamp(2rem, 3.4vw, 2.7rem); margin-bottom: 6px; }
.listing-place { color: var(--stone); margin-bottom: 14px; }
.listing-price { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--brass-deep); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.detail-aside { position: sticky; top: 100px; display: grid; gap: 20px; }
@media (max-width: 960px) { .detail-aside { position: static; } }
.detail-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.facts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.facts-list div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts-list dt { color: var(--stone); }
.facts-list dd { margin: 0; font-weight: 500; text-align: right; }
@media (max-width: 620px) { .facts-list { grid-template-columns: 1fr; } }
.ddf-note { font-size: .78rem; color: var(--stone); line-height: 1.55; margin-top: 40px; }

/* Footer */
.footer { background: var(--ink); color: #cfc6b8; padding: 72px 0 32px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--font-body); font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cream); text-decoration: underline; }
.footer__brand .brand__name { color: var(--cream); font-size: 1.7rem; }
.footer__brokerage { width: 240px; max-width: 100%; margin: 22px 0 6px; opacity: .92; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #4a463f; display: grid; place-items: center; }
.social a:hover { border-color: var(--brass-light); color: var(--brass-light); text-decoration: none; }
.social svg { width: 18px; height: 18px; }
.footer__legal { border-top: 1px solid #3b3833; margin-top: 56px; padding-top: 24px; font-size: .78rem; line-height: 1.6; color: #a39a8c; display: grid; gap: 10px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* Mobile call button */
.call-fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--cream);
  align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.call-fab svg { width: 24px; height: 24px; }
@media (max-width: 640px) { .call-fab { display: inline-flex; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.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; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: 48px; }
