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

/* Fonts, served from this site (DM Serif Display and Jost, SIL Open Font License) */
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/jost-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/jost-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

: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%; scroll-padding-top: 77px; }   /* jump links land below the sticky header */
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; overflow-wrap: break-word; }
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; }
/* Lighter focus ring on dark backgrounds so it stays visible */
.section--ink, .footer, .topbar, .cta-band, .calc, .hood__top, .lightbox, .lst-hero { --focus: var(--brass-light); }
/* Placeholder text dark enough to read (browser default is too pale on cream and on the dark calculators) */
::placeholder { color: var(--stone); opacity: 1; }
.calc ::placeholder { color: #b5ac9e; opacity: 1; }
.nav .nav-sub a:focus-visible, .share__menu button:focus-visible, .contact-fab__menu a:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

.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); color: var(--ink); }
.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; }
/* Phones: icons only (labels stay for screen readers) so the bar fits on one line */
@media (max-width: 480px) {
  .topbar a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .topbar svg { width: 18px; height: 18px; }
  .topbar a { min-width: 44px; min-height: 44px; justify-content: center; }
  .topbar__links { gap: 4px; }
}
.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: .6875rem; letter-spacing: .32em; text-transform: uppercase; color: var(--stone); display: block; margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { white-space: nowrap; }
.brand__name { white-space: nowrap; }
.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; }

/* Desktop dropdowns: sections of each menu page */
.nav-item { position: relative; display: flex; }
.nav-sub {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 120; min-width: 230px;
  display: grid; gap: 2px; padding: 8px; background: var(--linen);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }   /* keeps it open while the mouse moves down */
.nav-item:hover > .nav-sub, .nav-item.is-open > .nav-sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-item.is-closed > .nav-sub { opacity: 0; visibility: hidden; }
.nav-item:nth-last-child(-n+3) > .nav-sub { left: auto; right: 0; }   /* Listings and Blog open leftward */
.nav .nav-sub a { padding: 9px 12px; font-size: .9rem; border-radius: 8px; color: var(--ink); }
.nav .nav-sub a::after { display: none; }
.nav .nav-sub a:hover, .nav .nav-sub a:focus-visible { background: var(--sand); }

.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: 1200px) {   /* below this, the menu collapses into the tap-to-open menu */
  .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(100vh - 116px); max-height: calc(100dvh - 116px); overflow-y: auto;
  }
  .header.is-scrolled .nav { inset: 76px 0 auto 0; max-height: calc(100vh - 76px); 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; }
  .nav-item { display: contents; }   /* phones and tablets keep the plain menu */
  .nav-sub { display: none; }
}
@media (max-width: 1000px) {
  .topbar__tag { display: none; }   /* tablets: the links need the room, or they wrap onto two lines */
  .topbar .wrap { justify-content: center; }
}
.topbar a { white-space: nowrap; }

/* 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__note { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--brass-deep); margin: -4px 0 16px; }
.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: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; color: var(--stone);
}
@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; }
  /* Phones and tablets: Amy's photo comes first, before the headline */
  .hero__media { order: -1; max-width: min(320px, 78%); }
  .hero .wrap { gap: 28px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 24px; }
  .hero__card { display: none; }   /* would cover the photo at this size; the header already shows Amy's name */
  /* Smaller, squarer photo on phones so the headline shows on the first screen */
  .hero__media { max-width: min(250px, 66%); }
  .hero .arch { aspect-ratio: 1 / 1.1; }
}

/* 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; }
}
/* Full-width title, then intro text beside a landscape photo (e.g. Neighbourhoods) */
.page-hero__split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: 8px; }
.page-hero__split .lede:last-child { margin-bottom: 0; }
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .page-hero__split { grid-template-columns: 1fr; } }

/* 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 h2, .calc h3 { color: var(--cream); }
.calc h2 { font-size: 1.5rem; }
.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 #857a6b; 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__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.calc__input--suffix input { padding: 0 40px 0 18px; }
.calc__input--suffix span { left: auto; right: 18px; }
.calc select {
  width: 100%; min-height: 58px; border-radius: 12px; border: 1px solid #857a6b; background: var(--ink);
  color: var(--cream); font: 500 1.05rem var(--font-body); padding: 0 14px;
}
.calc input:focus, .calc select:focus { outline: none; border-color: var(--brass-light); box-shadow: 0 0 0 3px rgba(201, 169, 110, .25); }
.calc input:focus-visible, .calc select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.calc__breakdown { margin: 14px 0 0; display: grid; gap: 6px; }
.calc__breakdown div { display: flex; justify-content: space-between; gap: 12px; color: #cfc6b8; font-size: .95rem; }
.calc__breakdown dd { margin: 0; color: var(--cream); font-variant-numeric: tabular-nums; }
.calc__warn:empty { display: none; }
.calc__warn { color: var(--brass-light) !important; }
.calc__step { margin: 22px 0 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--brass-light); }
.calc__step + .calc__row label, .calc__step + div label { margin-top: 10px; }
.calc__hint { margin: 6px 0 0; font-size: .8rem; }
.calc--net input { font-size: 1.05rem; min-height: 46px; }
/* Sell & buy calculator: one even row per field, label left and box right */
.calc__lines { display: grid; gap: 10px; margin-top: 12px; }
.calc__line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 14px; align-items: center; }
.calc .calc__line label { margin: 0; }
.calc__line .calc__hint { grid-column: 2; margin-top: 4px; }
@media (max-width: 480px) {
  .calc--net { padding: 22px 18px; }
  .calc__line { column-gap: 10px; }
  .calc .calc__line label { letter-spacing: .06em; font-size: .78rem; }
}
.calc__breakdown-head { margin-top: 10px; padding-top: 10px; border-top: 1px solid #3b3833; }
.calc__breakdown-head dt { color: var(--brass-light); font-family: var(--font-display); font-size: 1.05rem; }
.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%; }
/* WebP <picture> wrappers: let the photo size against its frame as if the <picture> weren't there */
.arch > picture, .portrait > picture, .lst-hero > picture { display: contents; }
.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); position: relative; z-index: 1; }
.hood__top::after { pointer-events: none; }
.hood__top h3 a {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: rgba(217, 191, 143, .45); transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.hood__top h3 a:hover { color: var(--brass-light); text-decoration-color: currentColor; }
.hood__top h3 a:focus-visible { outline-color: var(--brass-light); }
.hood-hint { text-align: center; margin: 0 0 28px; }
.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; }

/* Google reviews */
.reviews-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-bottom: 32px;
  padding: 24px 28px; background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius);
}
.reviews-summary__score { display: flex; align-items: center; gap: 16px; }
.reviews-summary__num { font-family: var(--font-display); font-size: 3.2rem; line-height: 1; }
.reviews-summary__score p { color: var(--stone); font-size: .92rem; margin-top: 4px; }
.reviews-summary .btn-row { margin-left: auto; }
@media (max-width: 760px) { .reviews-summary .btn-row { margin-left: 0; width: 100%; } }
.google-logo { width: 74px; height: auto; }
.stars { color: var(--brass); }
.stars__track { position: relative; display: inline-block; line-height: 0; }
.stars__track svg { width: 18px; height: 18px; margin-right: 2px; }
.stars__base { color: var(--line); white-space: nowrap; }
.stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; }
.review--google { gap: 12px; }
.review__head { display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.review__avatar--initial { display: grid; place-items: center; background: var(--sand); font-family: var(--font-display); font-size: 1.3rem; color: var(--brass-deep); }
.review__author { margin: 0; font-weight: 500; line-height: 1.3; }
.review__author a { text-decoration: none; }
.review__author a:hover { text-decoration: underline; }
.review__when { margin: 0; font-size: .85rem; color: var(--stone); }
.review--google .review__text { font-family: var(--font-body); font-size: 1rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review--google .review__text.is-open { display: block; }
.review__more { align-self: flex-start; background: none; border: 0; padding: 4px 0; font: 500 .92rem var(--font-body); color: var(--brass-deep); cursor: pointer; border-bottom: 1px solid currentColor; }
.review__source { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--stone); }
.review--skeleton span { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--sand) 0%, #f3ece1 50%, var(--sand) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.review--skeleton span:first-child { width: 55%; height: 20px; }
.review--skeleton span:last-child { width: 70%; }

/* 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 #857a6b; 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 input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.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; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 10px; padding: 0; }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.field .check-chip { position: relative; display: inline-flex; margin: 0; font-weight: 400; cursor: pointer; }
.field .check-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; cursor: pointer; }
.check-chip span { display: inline-block; padding: 8px 14px; border: 1px solid #857a6b; border-radius: 999px; background: #fff; font-size: .88rem; transition: background .15s, border-color .15s, color .15s; }
.check-chip input:checked + span { background: var(--brass-deep); border-color: var(--brass-deep); color: #fff; }
.check-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(122, 92, 46, .3); outline: 3px solid var(--focus); outline-offset: 2px; }
.field--consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field--consent input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; margin-top: 3px; accent-color: var(--brass-deep); }
.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; }

/* How a form ends: confirmation panel (replaces the fields) and the "didn't send" block */
.form.is-done > :not(.form__done) { display: none !important; }
.form__done { display: flex; flex-direction: column; align-items: flex-start; gap: 0; animation: form-done-in .22s cubic-bezier(.16, 1, .3, 1) both; }
.form__done-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; margin-bottom: 18px; border: 2px solid var(--cream); box-shadow: 0 0 0 1px var(--line); }
.form__done-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.15; margin: 0 0 10px; scroll-margin-top: 110px; text-wrap: balance; }
.form__done-title:focus { outline: none; }
.form__done-title:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.form__done-text { margin: 0 0 24px; max-width: 46ch; color: var(--ink); }
.form__done-actions { display: flex; flex-wrap: wrap; gap: 12px; align-self: stretch; }
.form__done-actions .btn { flex: 1 1 auto; }
.form__done--compact .form__done-text { margin-bottom: 16px; }
@keyframes form-done-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form__fail { order: -1; flex: 1 1 100%; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1.5px solid var(--error); border-radius: 12px; background: #fdf1ee; color: var(--ink); }
.form__fail:focus { outline: none; }
.form__fail:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.form__fail-icon { flex: none; width: 24px; height: 24px; margin-top: 1px; color: var(--error); }
.form__fail-text { margin: 0 0 12px; font-weight: 500; line-height: 1.45; }
.form__fail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.form__fail-actions .btn { min-height: 44px; padding: 0 20px; background: var(--linen); }
.form__fail-actions .btn:hover { background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .form__done { animation: 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-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; }
@supports selector(:has(*)) { .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; } }
/* Area and neighbourhood pages: centre the cards when there are fewer sales than columns */
.sold-grid[data-filter] { display: flex; flex-wrap: wrap; justify-content: center; }
.sold-grid[data-filter] > * { flex: 0 1 calc((100% - 3 * 18px) / 4); min-width: 0; }
@media (max-width: 1000px) { .sold-grid[data-filter] > * { flex-basis: calc((100% - 2 * 18px) / 3); } }
@media (max-width: 720px) { .sold-grid[data-filter] > * { flex-basis: calc((100% - 12px) / 2); } .sold-grid[data-filter] > :only-child { flex-basis: min(100%, 360px); } }
.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 { position: relative; scroll-margin-top: 110px; }
.sold-card.is-linked .sold-card__img { outline: 3px solid var(--brass); outline-offset: 3px; }
.sold-card figcaption { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; font-size: .92rem; margin-top: 10px; line-height: 1.4; }
.sold-card__area { display: flex; gap: 6px; align-items: flex-start; min-width: 0; }
.sold-card__area svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--brass-deep); }

/* Location links to Google Maps */
.map-link { display: inline-flex; gap: 6px; align-items: flex-start; color: inherit; text-decoration: none; border-radius: 4px; position: relative; }
.map-link::after { content: ""; position: absolute; inset: -12px -4px; }   /* bigger tap area on phones, same look */
.map-link:hover { color: var(--brass-deep); text-decoration: underline; text-underline-offset: 3px; }
.map-link svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--brass-deep); }
.listing-card__place .map-link { position: relative; z-index: 2; }
.listing-place .map-link { align-items: center; gap: 8px; }
.map-link__hint { font-size: .82rem; color: var(--brass-deep); border-bottom: 1px solid currentColor; margin-left: 4px; }

/* Neighbourhood pages */
.breadcrumb { font-size: .88rem; color: var(--stone); margin-bottom: 18px; }
.breadcrumb a { color: var(--brass-deep); text-decoration: none; display: inline-block; padding-block: 4px; }   /* taller tap target on phones */
.breadcrumb a:hover { text-decoration: underline; }
.hero-photo--map iframe { width: 100%; height: 100%; border: 0; display: block; }
.chips--links li { padding: 0; }
.chips--links a { display: block; padding: 10px 18px; text-decoration: none; border-radius: 999px; }
.chips--links a:hover { background: var(--ink); color: var(--cream); }
.card h3 + p { margin-bottom: 8px; }

/* Articles (Market updates & tips) */
.article { max-width: 72ch; margin: 0 auto; }
.article h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-top: 1.6em; }
.article ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.article li { margin-bottom: .6em; }
.article .btn-row { margin: 24px 0; }
.article .table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.article table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article th, .article td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); font-weight: 500; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 20px; }
.compare .card p { margin-bottom: 8px; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }

/* Map pop-up (opened from any Google Maps link) */
html.map-open { overflow: hidden; }
.map-dialog {
  width: min(960px, calc(100vw - 32px)); height: min(680px, calc(100vh - 48px)); height: min(680px, calc(100dvh - 48px)); max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--linen); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(28, 27, 25, .55); overflow: hidden;
}
.map-dialog[open] { display: flex; flex-direction: column; animation: map-in .22s var(--ease); }
.map-dialog::backdrop { background: rgba(28, 27, 25, .55); backdrop-filter: blur(2px); }
@keyframes map-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.map-dialog__bar { display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 24px; border-bottom: 1px solid var(--line); }
.map-dialog__title { margin: 0; font-size: 1.5rem; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.map-dialog__open { font-size: .9rem; white-space: nowrap; }
.map-dialog__close {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--sand); color: var(--ink); cursor: pointer;
}
.map-dialog__close:hover { background: var(--line); }
.map-dialog__close svg { width: 20px; height: 20px; }
.map-dialog__frame { flex: 1; position: relative; background: var(--sand); }
.map-dialog__frame::before { content: "Loading map…"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--stone); font-size: .95rem; }
.map-dialog__frame iframe { position: relative; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) {
  .map-dialog { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .map-dialog__bar { padding: 10px 10px 10px 16px; gap: 10px; flex-wrap: wrap; }
  .map-dialog__title { font-size: 1.25rem; flex-basis: calc(100% - 64px); }
  .map-dialog__open { order: 3; margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) { .map-dialog[open] { animation: none; } }

/* Share menu on sold homes */
.share { position: relative; flex: none; }
.share__toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; margin: -5px -6px 0 0;
  border: 1px solid transparent; border-radius: 999px; background: none; cursor: pointer;
  font: 500 .82rem var(--font-body); color: var(--brass-deep); touch-action: manipulation;
}
.share__toggle:hover, .share__toggle[aria-expanded="true"] { background: var(--linen); border-color: var(--line); }
.share__toggle svg { width: 15px; height: 15px; }
.share__menu {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 180px; padding: 6px;
  background: var(--linen); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  display: grid; gap: 2px;
}
.share__menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px;
  background: none; font: 400 .92rem var(--font-body); color: var(--ink); cursor: pointer; text-align: left;
}
.share__menu button:hover, .share__menu button:focus-visible { background: var(--sand); }
.share__menu svg { width: 18px; height: 18px; flex: none; color: var(--ink-soft); }
.share__note { margin: 8px 0 0; font-size: .82rem; color: var(--brass-deep); line-height: 1.45; }
@media (max-width: 720px) {
  .share__toggle span { display: none; }
  .share__toggle { min-width: 44px; min-height: 44px; padding: 0; justify-content: center; margin: -12px -10px 0 0; }
  .share__menu { min-width: 168px; }
}

/* 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: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.detail-grid > * { min-width: 0; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 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, .footer .footer__title { 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; } }
/* Phones: brand and contact take full rows, the two link lists sit side by side */
@media (max-width: 560px) {
  .footer { padding-top: 56px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 20px; }
  .footer__brand, .footer__grid > :last-child { grid-column: 1 / -1; }
  .footer__legal { margin-top: 40px; }
}

/* Mobile call button */
/* Persistent "Contact me" button, bottom-right on every page */
.contact-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.contact-fab__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--cream); text-decoration: none; font-weight: 500; border: 2px solid var(--brass-light); box-shadow: 0 10px 30px -8px rgba(28, 27, 25, .45); transition: transform .15s var(--ease), background .15s var(--ease); }
.contact-fab__btn:hover { background: var(--brass-deep); transform: translateY(-1px); }
.contact-fab__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.contact-fab__btn svg { width: 20px; height: 20px; }
.contact-fab__menu { background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; min-width: 240px; display: grid; gap: 2px; }
.contact-fab__title { margin: 4px 10px 6px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.contact-fab__menu a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-fab__menu a:hover, .contact-fab__menu a:focus-visible { background: var(--sand); }
.contact-fab__menu svg { width: 18px; height: 18px; color: var(--brass-deep); flex: none; }
@media (max-width: 640px) {
  .contact-fab { right: 14px; bottom: 14px; }
  .contact-fab__btn { min-height: 50px; padding: 0 18px; }
  .footer { padding-bottom: 84px; }   /* keep the last footer line clear of the button */
}
@media print { .contact-fab { display: none; } }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .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; animation-iteration-count: 1 !important; }
  .nav-sub, .nav-sub * { transition: none !important; }   /* the dropdown must show instantly so keyboard focus can move into it */
}
.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; }

/* Home page: rating line under the hero buttons, and the reviews section */
.hero__rating { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; font-size: .92rem; color: var(--stone); text-decoration: none; }
.hero__rating span { color: var(--brass); letter-spacing: 2px; }
.hero__rating:hover { color: var(--ink); text-decoration: underline; }
#reviews .reviews-summary { margin-bottom: 32px; }
#reviews .review blockquote { font-size: 1.15rem; }
#reviews figcaption { margin-top: auto; }


/* Open houses: date/time list on each card */
.oh-times { list-style: none; margin: 0 0 12px; padding: 10px 12px; background: var(--sand); border-radius: 10px; display: grid; gap: 6px; }
.oh-times li { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: .95rem; }
.oh-times svg { width: 16px; height: 16px; flex: none; color: var(--brass-deep); }

/* Buttons that replaced the forms, and the central form's "asking about" note */
.cta-card { padding: clamp(28px, 4vw, 40px); gap: 10px; }
.cta-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.cta-card .btn { align-self: flex-start; margin: 8px 0 4px; }
.cta-card .fine { margin: 0; }
.form__title { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 0 0 18px; }
.form .inquiry-for { margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; background: var(--sand); color: var(--brass-deep); font-weight: 500; }
.contact-aside { align-self: start; position: sticky; top: 110px; }
@media (max-width: 900px) { .contact-aside { position: static; } }
/* Testimonials: the key sentence in each Google review */
.review__highlight { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-skip-ink: auto; }

/* Neighbourhood pages: "at a glance" facts */
.fact-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; }
.fact { background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.fact dt { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 8px; }
.fact dd { margin: 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.3; }
.fact-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* four facts, no empty fifth column */
@media (max-width: 1000px) { .fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .fact-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .fact-grid { grid-template-columns: 1fr; } }

/* Blog: news posts */
.news-list { display: grid; gap: 24px; max-width: 820px; margin: 0 auto; }
.news-post { background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); scroll-margin-top: 100px; }
.news-post h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 8px 0 12px; }
.news-post p { color: var(--ink-soft); }
.news-post__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; font-size: .85rem; color: var(--stone); }
.news-post__tag { background: var(--sand); color: var(--brass-deep); border-radius: 999px; padding: 4px 12px; font-weight: 500; letter-spacing: .04em; }
.news-post__means { border-left: 3px solid var(--brass); padding-left: 14px; }
/* Title-only posts: the title is a button that opens the rest (guides.js) */
.news-post h2:has(.news-post__toggle) { margin-bottom: 0; }
.news-post__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.news-post__toggle:hover { color: var(--brass-deep); }
.news-post__icon { flex: none; position: relative; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--cream); }
.news-post__icon::before, .news-post__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); transition: transform .2s ease; }
.news-post__icon::after { transform: rotate(90deg); }
.news-post.is-open .news-post__icon::after { transform: rotate(0deg); }
.news-post__body { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .news-post__icon::after { transition: none; } }

/* Videos page */
.video-feed { display: flex; justify-content: center; min-height: 200px; }
.video-feed .tiktok-embed { margin: 0 auto; max-width: 780px; min-width: 288px; width: 100%; }

/* Neighbourhood pages: everyday places within a short walk */
.walk-near { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.walk-near h3 { text-align: center; margin: 0 0 6px; }
.walk-near__intro { text-align: center; color: var(--stone); margin: 0 auto 24px; max-width: 560px; }
.walk-near__names { margin: 22px auto 0; max-width: 760px; text-align: center; line-height: 1.7; }
.walk-near .fine { text-align: center; margin-top: 14px; }
.walk-near .fact-grid { display: flex; flex-wrap: wrap; justify-content: center; }   /* 3 to 6 items; a leftover one sits centred */
.walk-near .fact { flex: 1 1 150px; max-width: 220px; }

/* Home valuation landing page (no menu, form up top) */
.lp-header .wrap { min-height: 72px; }
.lp-call { min-height: 44px; padding: 0 18px; }
.lp-call svg { width: 18px; height: 18px; }
.lp-hero { padding: clamp(36px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.lp-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.lp-hero h1 { margin-top: 8px; }
.lp-trust { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; color: var(--stone); }
.lp-form { scroll-margin-top: 24px; }
.lp-form .form__title { margin-bottom: 4px; }
.lp-footer { padding: 36px 0; }
.btn-row--center { justify-content: center; }
.grid--1 { grid-template-columns: minmax(0, 720px); justify-content: center; }   /* landing pages with a single review */
.lp-jump { display: none; }
.lp-more summary { cursor: pointer; font-size: .95rem; font-weight: 500; color: var(--brass-deep); min-height: 44px; display: flex; align-items: center; }
.lp-more[open] summary { margin-bottom: 8px; }
@media (max-width: 900px) { .lp-jump { display: block; } }   /* phones: the form is further down, so offer a shortcut */
@media (max-width: 900px) {
  .lp-hero__grid { grid-template-columns: 1fr; }
  .lp-hero__copy .checklist { margin-bottom: 0; }
}
@media (max-width: 480px) { .lp-call span { display: none; } .lp-call { width: 44px; padding: 0; justify-content: center; } }


/* Listing landing pages */
.lst-hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; background: var(--ink); }
.lst-hero > img, .lst-hero > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lst-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 27, 25, .05) 30%, rgba(28, 27, 25, .78)); }
.lst-hero__text { position: relative; padding-block: 48px 56px; }
.lst-hero .eyebrow { color: var(--brass-light); }
.lst-hero h1 { color: var(--cream); margin: 6px 0 10px; }
.lst-hero h1 span { display: block; font-size: .55em; margin-top: 6px; color: #e9e1d4; }
.lst-addr { text-decoration: none; }
.lst-addr:hover, .lst-addr:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lst-addr svg { width: .7em; height: .7em; vertical-align: -.05em; color: var(--brass-light); }
.lst-price { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 0 0 20px; }
.lst-facts { background: var(--ink-soft); color: var(--cream); }
.lst-facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.lst-facts div { padding: 20px 12px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .12); }
.lst-facts div:first-child { border-left: 0; }
.lst-facts strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.lst-facts span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #cfc6b8; }
.lst-feature { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.lst-feature img, .lst-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lst-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.lst-gallery a { display: block; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; }
.lst-gallery a[hidden] { display: none; }
.lst-gallery a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lst-gallery img { transition: transform .3s var(--ease); }
.lst-gallery a:hover img { transform: scale(1.04); }
.lst-video { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lst-video__player video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); background: var(--ink); box-shadow: var(--shadow); display: block; }
.lst-tour { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.lst-tour img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.lst-tour [data-tour-start] { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.lst-tour iframe { width: 100%; height: 100%; border: 0; display: block; }
.section--ink .lst-tour + .fine a { color: var(--brass-light); }
.lst-plan { margin: 0; background: #fff; border-radius: var(--radius-lg); padding: 16px; border: 1px solid var(--line); }
.lst-plan img { width: 100%; height: auto; display: block; }
.lst-rooms { max-width: 640px; margin: 28px auto 0; }
.lst-rooms table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.lst-rooms th, .lst-rooms td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.lst-rooms th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); font-weight: 500; }
.lst-map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: var(--sand); }
.lst-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(16, 15, 14, .94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 8px; }
.lightbox figcaption { color: #cfc6b8; margin-top: 10px; font-size: .9rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; border-radius: 999px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 900px) {
  .lst-video { grid-template-columns: 1fr; }
  .lst-video__player { max-width: 360px; margin: 0 auto; }
  .lst-tour { aspect-ratio: 3 / 4; }
}
@media (max-width: 640px) {
  .lst-facts div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

/* Home data tools: assessment lookup, home values, affordability, land transfer tax, first-time buyer checker */
.tool-panel { background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
.tool-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.tool-search .field { margin: 0; }
.tool-search .btn { min-height: 50px; }
@media (max-width: 560px) { .tool-search { grid-template-columns: 1fr; } }
.tool-status { min-height: 1.5em; margin: 12px 0 0; color: var(--stone); font-size: .95rem; }
.lookup__choices { margin-top: 16px; }
.lookup__choices ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; max-height: 360px; overflow-y: auto; }
.lookup__choice { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.lookup__choice:hover { border-color: var(--brass-deep); }
.lookup__choice span { color: var(--stone); font-variant-numeric: tabular-nums; }
.lookup__card { margin-top: 24px; }
.lookup__card h2 { margin-bottom: 16px; }
.lookup__compare, .lookup__trend { margin: 16px 0 0; }
.lookup__cta { margin-top: 28px; padding: 20px; border-radius: var(--radius); background: var(--sand); }
.lookup__cta p { margin-top: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat-tile small { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.stat-tile strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-tile span { display: block; font-size: .85rem; color: var(--stone); margin-top: 2px; }
.viz { margin: 20px 0 0; }
.viz__caption { font-size: .95rem; color: var(--stone); margin-bottom: 8px; }
.viz__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; padding: 0; font-size: .9rem; }
.viz__legend li { display: inline-flex; align-items: center; gap: 8px; }
.viz__key { width: 22px; height: 0; border-top: 2px solid var(--c); }
.viz__key--dashed { border-top-style: dashed; }
.viz__plot { position: relative; }
.viz__plot svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.viz__grid { stroke: var(--line); stroke-width: 1; }
.viz__tick { fill: var(--stone); font: 12px var(--font-body); font-variant-numeric: tabular-nums; }
.viz__cross { stroke: var(--stone); stroke-width: 1; stroke-dasharray: 2 3; }
.viz__tip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--ink); color: var(--cream); border-radius: 10px; padding: 8px 12px; font-size: .85rem; line-height: 1.5; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); }
.viz__tip strong { display: block; }
.viz__tip span { display: flex; align-items: center; gap: 6px; }
.viz__tip i { width: 14px; border-top: 2px solid var(--c); }
.viz__tip i.is-dashed { border-top-style: dashed; }
.viz__table { margin-top: 12px; }
.viz__table summary { cursor: pointer; color: var(--brass-deep); font-weight: 500; min-height: 32px; display: inline-flex; align-items: center; }
.viz__table table, .data-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: 8px; font-variant-numeric: tabular-nums; }
.viz__table th, .viz__table td, .data-table th, .data-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.viz__table thead th, .data-table thead th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); font-weight: 500; }
.data-table tbody th { font-weight: 500; }
.table-scroll { overflow-x: auto; }
.tool-select { max-width: 420px; }
.checker__q { border: 0; margin: 0 0 18px; padding: 0; }
.checker__q legend { font-weight: 500; margin-bottom: 8px; }
.checker__results { display: grid; gap: 12px; margin-top: 8px; }
.benefit { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brass-deep); border-radius: var(--radius); padding: 16px 18px; }
.benefit h3 { font-size: 1.25rem; margin: 0 0 6px; }
.benefit p { margin: 0 0 6px; }
.benefit .fine { margin: 0; }
.benefit--no { border-left-color: var(--line); }
.benefit--no .benefit__tag { color: var(--stone); }
.benefit__tag { display: inline-block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 4px; }
.calc .calc__check { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--cream); margin: 18px 0 0; cursor: pointer; }
.calc .calc__check input { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: var(--brass-light); }
.data-table tr.is-home th, .data-table tr.is-home td { background: var(--sand); }
.data-table td.fine { color: var(--stone); font-size: .88rem; }
button.text-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; min-height: 24px; }

/* Listing card photos */
.lc-carousel { position: absolute; inset: 0; z-index: 2; }
.lc-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.lc-track::-webkit-scrollbar { display: none; }
.lc-track:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.lc-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: block; }
.lc-slide img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.lc-btn {
  position: absolute; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; background: rgba(247, 242, 234, .92); color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 8px rgba(28, 27, 25, .25); opacity: 0; transition: opacity .2s var(--ease), background-color .2s var(--ease);
}
.lc-btn--prev { left: 10px; }
.lc-btn--next { right: 10px; }
.lc-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lc-btn:hover { background: var(--cream); }
.lc-btn:focus-visible { opacity: 1; outline: 3px solid var(--focus); outline-offset: 2px; }
.lc-btn:disabled { visibility: hidden; }
@media (hover: hover) { .lc-carousel:hover .lc-btn, .lc-carousel:focus-within .lc-btn { opacity: 1; } }
@media (hover: none) { .lc-btn { display: none; } }
.lc-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.lc-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(247, 242, 234, .55); box-shadow: 0 0 0 1px rgba(28, 27, 25, .25); transition: background-color .2s var(--ease), transform .2s var(--ease); }
.lc-dots span.is-on { background: var(--cream); transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { .lc-track { scroll-behavior: auto; } .lc-btn, .lc-dots span { transition: none; } }
.lc-carousel ~ .listing-badge { z-index: 3; pointer-events: none; }

/* Review wall */
.review-wall { --rw-gap: 20px; --rw-card: 360px; --rw-dur: 60s; display: block; position: relative; margin-inline: calc(var(--gutter) * -1); }
.review-wall__row { overflow: hidden; padding: 10px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.review-wall__track { display: flex; width: max-content; animation: review-wall-left var(--rw-dur) linear infinite; }
.review-wall .review { flex: none; width: var(--rw-card); margin-right: var(--rw-gap); padding: 26px; gap: 12px; box-shadow: var(--shadow); }
#reviews .review-wall .review blockquote { font-size: 1.05rem; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-wall:hover .review-wall__track,
.review-wall:focus-within .review-wall__track,
.review-wall.is-paused .review-wall__track { animation-play-state: paused; }
.review-wall .review:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.review-wall__pause { display: block; margin: 14px auto 0; background: none; border: 0; border-bottom: 1px solid currentColor; padding: 2px 0; font: 500 .9rem var(--font-body); color: var(--brass-deep); cursor: pointer; }
@keyframes review-wall-left { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .review-wall { --rw-card: min(82vw, 320px); --rw-gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .review-wall { margin-inline: 0; }
  .review-wall__row { overflow: visible; padding: 0; -webkit-mask-image: none; mask-image: none; }
  .review-wall__track { width: auto; flex-wrap: wrap; gap: var(--rw-gap); animation: none; }
  .review-wall .review { width: auto; margin-right: 0; flex: 1 1 280px; }
  .review-wall [data-rw-clone], .review-wall__pause { display: none; }
}

/* Mini calculators on homepage cards */
.card--mini h3 a { color: inherit; text-decoration: none; }
.card--mini h3 a:hover { color: var(--brass-deep); }
.mini { margin: 0 0 18px; padding: 14px 14px 12px; border-radius: 12px; background: var(--sand); }
.mini label { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--stone); margin: 0 0 6px; }
.mini label output { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.mini input[type="range"] { width: 100%; margin: 0; min-height: 28px; accent-color: var(--brass-deep); }
.mini__out { margin: 6px 0 2px !important; font: 400 1.6rem/1.1 var(--font-display); color: var(--ink) !important; }
.mini__out output { font-variant-numeric: tabular-nums; }
.mini__out small { font: 400 .9rem var(--font-body); color: var(--stone); }
.mini__note { margin: 0 !important; font-size: .8rem; color: var(--stone); }
.mini__search { display: flex; gap: 6px; margin-bottom: 8px; }
.mini__search input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid #b9ad9b; border-radius: 10px; padding: 0 12px; font: inherit; font-size: .95rem; background: var(--cream); color: var(--ink); }
.mini__search button { flex: none; width: 44px; border: 0; border-radius: 10px; background: var(--ink); color: var(--cream); cursor: pointer; display: grid; place-items: center; }
.mini__search button svg { width: 18px; height: 18px; }
.mini__search input:focus-visible, .mini__search button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Listing page extras */
.lx-alert-section { padding-block: clamp(28px, 4vw, 48px); }
.lx-alert { background: var(--ink); color: var(--cream); border-radius: 16px; padding: clamp(22px, 4vw, 32px); max-width: 640px; margin-inline: auto; }
.detail-aside .lx-alert { max-width: none; margin: 0; padding: 22px; }
.lx-alert .eyebrow { color: var(--brass-light); margin: 0 0 6px; }
.lx-alert__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.35rem, 4.5vw, 1.7rem); line-height: 1.2; margin: 0 0 8px; color: var(--cream); }
.lx-alert__crit { margin: 0 0 16px; color: var(--brass-light); font-size: .95rem; }
.lx-alert__form { display: flex; gap: 8px; }
.lx-alert__form[hidden] { display: none; }
.lx-alert__form input[type="email"] { flex: 1; min-width: 0; min-height: 48px; border: 1px solid transparent; border-radius: 10px; padding: 0 14px; font: inherit; font-size: 1rem; background: var(--cream); color: var(--ink); }
.lx-alert__form input[aria-invalid="true"] { border-color: #ffb4a3; box-shadow: 0 0 0 2px #ffb4a3; }
.lx-alert__form button { flex: none; min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--brass-light); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.lx-alert__form button:hover { background: var(--cream); }
.lx-alert__form button:disabled { opacity: .7; cursor: wait; }
.lx-alert__form input:focus-visible, .lx-alert__form button:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 2px; }
.lx-alert__status { margin: 10px 0 0; min-height: 1.4em; font-size: .95rem; color: var(--cream); }
.lx-alert__status.is-error { color: #ffc9bd; }
.lx-alert__fine { margin: 6px 0 0; font-size: .8rem; color: #cfc6b8; }
@media (max-width: 480px) { .lx-alert__form { flex-direction: column; } .lx-alert__form button { width: 100%; } }

.lx-save-section { padding-block: clamp(36px, 5vw, 64px); }
.lx-save { max-width: 680px; margin-inline: auto; }
.lx-save h2 { margin: 0 0 20px; font-size: clamp(1.4rem, 4.5vw, 1.9rem); }
.lx-save__row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px; margin-bottom: 12px; }
.lx-save__label { font-size: .95rem; color: var(--ink); }
.lx-save__track { display: block; height: 28px; border-radius: 6px; background: rgba(28, 27, 25, .06); overflow: hidden; }
.lx-save__bar { display: block; height: 100%; border-radius: 6px; }
.lx-save__bar--amy { background: var(--brass); }
.lx-save__bar--typ { background: var(--stone); }
.lx-save__amt { font-variant-numeric: tabular-nums; font-size: .95rem; color: var(--ink); min-width: 4.5em; text-align: right; }
.lx-save__keep { font-family: var(--font-display); font-size: clamp(1.7rem, 6vw, 2.3rem); color: var(--brass-deep); margin: 18px 0 10px; line-height: 1.1; }
.lx-save__fine { font-size: .82rem; color: var(--stone); margin: 0; }
.lx-save__fine a { color: var(--brass-deep); }
@media (max-width: 480px) { .lx-save__row { grid-template-columns: 1fr auto; } .lx-save__label { grid-column: 1 / -1; font-weight: 500; } }

/* Site-wide extras */
/* Notice bar (off until main.js NOTICE is filled in). Not sticky, so the sticky header still sits at the top once it scrolls away. */
.notice-bar { position: relative; z-index: 101; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 48px; background: var(--brass-deep); color: #fff; font-size: .9rem; line-height: 1.35; text-align: center; }
.notice-bar p { margin: 0; }
.notice-bar a { color: #fff; font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.notice-bar a:focus-visible, .notice-bar__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.notice-bar__close { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 8px; }
.notice-bar__close:hover { background: rgba(255, 255, 255, .16); }

/* Availability pill */
.avail { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--sand); color: var(--ink); font: 500 .85rem/1.3 var(--font-body); font-style: normal; min-height: 32px; }
.avail:empty { visibility: hidden; }
.avail--block { margin: 8px 0 28px; }
.avail--dark { background: rgba(255, 255, 255, .1); color: var(--cream); }
.avail--footer { margin-top: 28px; }
.avail__dot { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); }
.avail.is-open .avail__dot { background: #2e9e5b; }
.avail.is-open .avail__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2e9e5b; animation: avail-pulse 2s ease-out infinite; }
@keyframes avail-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .avail.is-open .avail__dot::after { animation: none; display: none; } }

/* Homepage question chips */
.qchips-wrap { padding-block: 18px 4px; }
.qchips { display: flex; flex-wrap: wrap; gap: 10px; }
.qchip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #b9ad9b; border-radius: 999px; background: var(--linen); color: var(--ink); font-size: .95rem; text-decoration: none; transition: border-color .15s var(--ease), background .15s var(--ease); }
.qchip:hover { border-color: var(--brass-deep); background: var(--sand); }
.qchip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Recently viewed */
.recent { padding: 36px 0; border-top: 1px solid var(--line); background: var(--linen); }
.recent__title { margin: 0 0 14px; font: 400 1.3rem/1.2 var(--font-display); }
.recent__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.recent__card { display: flex; align-items: center; gap: 12px; height: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); text-decoration: none; }
.recent__card:hover { border-color: var(--brass-deep); }
.recent__card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.recent__card img, .recent__ph { flex: none; width: 84px; height: 62px; border-radius: 8px; object-fit: cover; background: var(--sand); }
.recent__card span:not(.recent__ph) { min-width: 0; }
.recent__card small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.recent__card strong { display: block; font: 500 .9rem/1.3 var(--font-body); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 700px) { .recent__list { grid-template-columns: 1fr; } }

/* First 30 days */
.days { margin-top: 40px; }
.days__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.days__hint { margin: 0; font-size: .85rem; color: var(--stone); }
.days__btns { display: none; gap: 8px; }
.js .days__btns { display: flex; }
.days__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--brass-deep); background: var(--linen); color: var(--brass-deep); display: grid; place-items: center; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.days__btn svg { width: 18px; height: 18px; }
.days__btn:hover:not(:disabled) { background: var(--brass-deep); color: var(--linen); }
.days__btn:disabled { opacity: .35; cursor: default; }
.days__scroller { contain: paint; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 4px; overscroll-behavior-x: contain; padding: 4px 4px 18px; -webkit-overflow-scrolling: touch; scrollbar-color: var(--brass) transparent; }
.days__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.days__card { flex: 0 0 min(300px, 80%); scroll-snap-align: start; background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; }
.days__card h3 { margin: 0 0 6px; }
.days__card p { color: var(--stone); margin: 0 0 18px; }
.days__card .days__when { margin: 0 0 10px; font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-deep); }
.days__card .text-link { margin-top: auto; align-self: flex-start; }
@media (max-width: 700px) { .days__btns { display: none !important; } }

/* Listings extras */
.save-btn { position: absolute; top: 10px; right: 10px; z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 253, 249, .94); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(28, 27, 25, .25); transition: transform .2s var(--ease), background-color .2s var(--ease); }
.save-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: fill .2s var(--ease), stroke .2s var(--ease); }
.save-btn:hover { transform: scale(1.08); }
.save-btn[aria-pressed="true"] svg { fill: #8c2f24; stroke: #8c2f24; }
.save-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.oh-pill { position: absolute; left: 14px; top: 50px; z-index: 3; pointer-events: none; background: var(--ink); color: var(--cream); font-size: .82rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; box-shadow: 0 1px 4px rgba(28, 27, 25, .3); max-width: calc(100% - 28px); }
.oh-soon { margin: 0 0 6px; font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-deep); }

.view-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 24px; }
.saved-toggle, .view-switch button { font: inherit; font-size: .95rem; cursor: pointer; min-height: 44px; }
.saved-toggle { padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.saved-toggle[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.view-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--linen); }
.view-switch button { border: 0; border-radius: 999px; padding: 0 22px; background: transparent; color: var(--ink); }
.view-switch button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.saved-toggle:focus-visible, .view-switch button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.listing-map { height: min(70vh, 620px); min-height: 360px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--sand); z-index: 0; }
.map-note { margin: 10px 0 0; color: var(--stone); font-size: .9rem; min-height: 1.2em; }
.map-pin-wrap { background: none; border: 0; }
.map-pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); white-space: nowrap; background: var(--ink); color: var(--cream); font: 500 .82rem/1 var(--font-body); padding: 7px 11px; border-radius: 999px; box-shadow: 0 2px 6px rgba(28, 27, 25, .35); transition: background-color .15s var(--ease), color .15s var(--ease); }
.map-pin-wrap.is-on .map-pin, .map-pin-wrap:focus-visible .map-pin { background: var(--brass); color: var(--ink); }
.map-pin-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 999px; }
.map-popup .leaflet-popup-content { margin: 0; width: 220px !important; font-family: var(--font-body); }
.map-popup .leaflet-popup-content-wrapper { border-radius: 12px; padding: 0; overflow: hidden; background: var(--linen); color: var(--ink); }
.map-mini { display: block; text-decoration: none; color: inherit; }
.map-mini img { display: block; width: 100%; height: 120px; object-fit: cover; }
.map-mini span { display: block; padding: 0 12px; }
.map-mini__price { font-family: var(--font-display); font-size: 1.3rem; margin-top: 10px; }
.map-mini__title { font-size: .92rem; line-height: 1.35; }
.map-mini__facts { font-size: .82rem; color: var(--stone); padding-bottom: 12px !important; margin-top: 2px; }
.map-mini:hover .map-mini__title { text-decoration: underline; }
.map-mini:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

.sold-stamp { position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none; transform: translate(-50%, -50%) rotate(-14deg); }
.sold-stamp > span { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 6vw, 2.6rem); letter-spacing: .14em; line-height: 1; padding: 8px 18px 8px 22px; color: #8c2f24; border: 4px solid #8c2f24; border-radius: 6px; background: rgba(255, 253, 249, .85); box-shadow: inset 0 0 0 2px rgba(140, 47, 36, .0), 0 2px 10px rgba(28, 27, 25, .25); }
.js .sold-card:not(.is-stamped) .sold-stamp > span { opacity: 0; }
.sold-card.is-stamped .sold-stamp > span { animation: sold-drop .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes sold-drop { 0% { opacity: 0; transform: scale(2.4); } 55% { opacity: 1; transform: scale(.94); } 75% { transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
.sold-card__meta { margin: 4px 0 0; font-size: .88rem; color: var(--stone); }
@media (prefers-reduced-motion: reduce) { .sold-card.is-stamped .sold-stamp > span { animation: none; opacity: 1; } .save-btn, .save-btn svg, .map-pin { transition: none; } }
@media (max-width: 480px) { .view-bar { justify-content: space-between; } .listing-map { min-height: 320px; } }
@media (prefers-reduced-motion: reduce) { .js .sold-card:not(.is-stamped) .sold-stamp > span { opacity: 1; } }

/* Guide and blog extras */
.byline { display: flex; align-items: center; gap: 14px; margin: 22px 0 0; }
.byline__img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--cream), 0 0 0 3.5px var(--brass); }
.byline picture { display: contents; }
.byline__text { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--stone); }
.byline__text a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.byline__text a:hover { color: var(--brass-deep); }
.byline__sep { margin: 0 .45em; color: var(--brass-deep); }
.byline__text time { white-space: nowrap; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 40px 0 0; }
.pager__btn { min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--linen); color: var(--ink); font: inherit; font-size: 1rem; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.pager__btn:hover:not(:disabled) { border-color: var(--brass-deep); }
.pager__btn[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.pager__btn:disabled { opacity: .4; cursor: default; }
.pager__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.news-list[data-paginate] { scroll-margin-top: 100px; }

.faq-tools { max-width: 820px; margin: 40px auto 0; display: flex; justify-content: flex-end; }
.faq-tools + .faq { margin-top: 4px; }
.faq-toggle { min-height: 44px; padding: 8px 4px; border: 0; background: none; color: var(--brass-deep); font: 500 .95rem/1 var(--font-body); letter-spacing: .03em; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.faq-toggle:hover { color: var(--ink); }
.faq-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.cover { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 168px; padding: 26px 28px 24px; border-radius: var(--radius) var(--radius) 0 0; }
.cover--ink { background: var(--ink); color: var(--cream); }
.cover--sand { background: var(--sand); color: var(--ink); }
.cover__num { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.3rem); line-height: 1; }
.cover--ink .cover__num { color: var(--brass-light); }
.cover--sand .cover__num { color: var(--brass-deep); }
.cover__title { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.4rem); line-height: 1.2; max-width: 26ch; text-wrap: balance; }
.news-post > .cover { margin: calc(clamp(24px, 4vw, 36px) * -1) calc(clamp(24px, 4vw, 36px) * -1) 24px; }
.card > .cover { margin: -32px -28px 16px; }
@media (max-width: 480px) { .cover { min-height: 0; padding: 22px 22px 20px; } .news-post > .cover { margin-inline: -24px; margin-top: -24px; } .card > .cover { margin: -32px -28px 14px; } }

/* Neighbourhood extras */
.chips--links li.is-dim { opacity: .3; }
.chips--links li.is-dim:hover, .chips--links li.is-dim:focus-within { opacity: 1; }
.area-filter { text-align: center; margin: 0 0 12px; }
.area-filter__label { margin: 0 0 10px; font-weight: 500; }
.area-filter__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.area-chip { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--linen); color: var(--ink); font: inherit; font-size: .95rem; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.area-chip:hover { border-color: var(--brass-deep); }
.area-chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.area-chip__n { display: inline-block; margin-left: 4px; font-size: .8rem; opacity: .7; }
.area-chip:focus-visible, .area-filter__clear:focus-visible, .quiz__opt input:focus-visible + span, .area-quizlink a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.area-filter__status { margin: 12px 0 0; font-size: .9rem; color: var(--stone); min-height: 1.4em; }
.area-filter__clear { margin-top: 4px; min-height: 44px; padding: 0 12px; background: none; border: 0; font: inherit; font-size: .9rem; color: var(--brass-deep); text-decoration: underline; cursor: pointer; }
.area-quizlink { text-align: center; margin: 0 0 20px; }
.hood { transition: opacity .3s var(--ease), filter .3s var(--ease); }
.hood.is-dim, .js .hood.reveal.is-dim { opacity: .3; filter: grayscale(1); }
.hood.is-dim:hover, .hood.is-dim:focus-within, .js .hood.reveal.is-dim:hover, .js .hood.reveal.is-dim:focus-within { opacity: .85; filter: none; }

.quiz { max-width: 640px; margin: 28px auto 0; padding: clamp(20px, 4vw, 32px); gap: 0; }
.quiz__top { margin-bottom: 18px; }
.quiz__count { margin: 0 0 8px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.quiz__bar { height: 8px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; background: var(--brass-deep); border-radius: 999px; transition: width .35s var(--ease); }
.quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz legend { padding: 0; margin-bottom: 6px; font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 1.8rem); line-height: 1.2; }
.quiz legend:focus, .quiz__h:focus { outline: none; }
.quiz__options { display: grid; gap: 10px; margin-top: 14px; }
.quiz__opt { display: block; position: relative; cursor: pointer; }
.quiz__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz__opt span { display: block; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); transition: border-color .2s var(--ease), background .2s var(--ease); }
.quiz__opt:hover span { border-color: var(--brass-deep); }
.quiz__opt input:checked + span { border-color: var(--ink); background: var(--sand); box-shadow: inset 0 0 0 1px var(--ink); }
.quiz__err { color: var(--error); font-size: .9rem; margin: 12px 0 0; }
.quiz__nav { margin-top: 18px; }
.quiz__h { margin: 0 0 16px; }
.quiz__results { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.quiz__card { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.quiz__card h4 { margin: 0 0 4px; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
.quiz__card h4 a { text-decoration: none; }
.quiz__card p { margin-bottom: 8px; }

.area-stats { margin: 20px 0 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.area-stats__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 28px; margin: 0; }
.area-stats__row dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.area-stats__row dd { margin: 2px 0 0; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.area-stats__src { margin: 12px 0 0; font-size: .8rem; color: var(--stone); }
/* Blog posts are read in full on the page, so their cover is a slim numbered band (the title follows right below) */
.news-post > .cover { min-height: 0; flex-direction: row; align-items: center; padding-block: 16px; }
.news-post > .cover .cover__num { font-size: 2rem; }
.news-post > .cover .cover__title { display: none; }

/* Committee fixes: clear floating chat pill, video cards, proof banner, hero subnote */
.footer { padding-bottom: 96px; }
.page-contact .contact-fab { display: none; }
.hero__subnote { display: block; font-style: normal; font-size: .92rem; color: var(--stone); margin-top: 4px; }
.video-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.video-card:hover { transform: translateY(-2px); border-color: var(--brass-deep); }
.video-card__thumb { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; background: var(--sand); }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card__badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(28, 27, 25, .88); color: var(--cream); font-size: .82rem; font-weight: 500; }
.video-card__badge svg { width: 14px; height: 14px; }
.video-card h3 { margin: 0 0 6px; font-size: 1.25rem; }
.video-card p { margin: 0; color: var(--stone); font-size: .95rem; }
.proof-banner { display: block; margin-top: 20px; padding: 16px 20px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: var(--cream); text-decoration: none; font-size: .95rem; line-height: 1.5; transition: border-color .2s var(--ease), background .2s var(--ease); }
.proof-banner:hover { border-color: var(--brass-light); background: rgba(255, 255, 255, .1); }
.proof-banner strong { color: var(--brass-light); font-weight: 600; }
.proof-banner span { display: inline-block; margin-top: 4px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* Homepage refinement (Nov 30): shorter page, button on the first phone screen, proof up front */
p, .lede { text-wrap: pretty; }

/* Phones: smaller photo, tighter top, buttons before the long intro */
@media (max-width: 640px) {
  .hero { padding-top: 16px; padding-bottom: 48px; }
  .hero .wrap { gap: 18px; }
  .hero__media { max-width: min(210px, 56%); }
  .hero .arch { aspect-ratio: 1 / 1.02; }
  .hero .wrap > div:first-child { display: flex; flex-direction: column; align-items: flex-start; }
  .hero .eyebrow { margin-bottom: 12px; font-size: .72rem; letter-spacing: .16em; }
  .hero h1 { font-size: 2.3rem; margin-bottom: .35em; }
  .hero__note { font-size: 1.12rem; margin: 0 0 16px; }
  .hero__subnote { font-family: var(--font-body); font-size: .8rem; font-weight: 400; line-height: 1.45; margin-top: 4px; }
  /* Visual order only; the intro paragraph holds no links, so keyboard order is unchanged */
  .hero .btn-row { order: 1; width: 100%; }
  .hero .btn-row .btn { flex: 1 1 auto; }
  .hero .lede { order: 2; margin: 22px 0 0; font-size: 1.05rem; }
  .hero__rating { order: 3; }
  .hero__search { order: 4; width: 100%; }
}

/* At-a-glance strip on phones: the 1% fact gets the full row, the other two share the next */
@media (max-width: 560px) {
  .strip ul { grid-template-columns: 1fr 1fr; }
  .strip li { padding: 18px 12px; }
  .strip li:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .strip li:nth-child(2) { border-left: 0; }
  .strip span { font-size: .85rem; display: block; line-height: 1.4; }
}

/* 1% section: the Claxton listing as the proof, with its photo */
.proof-banner--feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: stretch;
  margin-top: clamp(40px, 6vw, 72px); padding: 0; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid rgba(217, 191, 143, .35); background: var(--ink-soft);
  font-size: 1rem; line-height: 1.55;
}
.proof-banner--feature:hover { border-color: var(--brass-light); background: #302d29; }
.proof-banner__photo { display: block; min-height: 100%; background: #3b3833; }
.proof-banner__photo picture { display: contents; }
.proof-banner__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proof-banner--feature:hover .proof-banner__photo img { transform: scale(1.03); }
.proof-banner__body { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 4vw, 44px); }
.proof-banner__lead { color: #cfc6b8; }
.proof-banner__title { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; color: var(--cream); text-wrap: balance; }
.proof-banner__price { color: var(--brass-light); }
.proof-banner__facts { color: #e6ded1; max-width: 52ch; }
.proof-banner--feature .proof-banner__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--brass-light); text-decoration: none; border-bottom: 1px solid currentColor; align-self: flex-start; padding-bottom: 2px; }
.proof-banner__go svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.proof-banner--feature:hover .proof-banner__go svg { transform: translateX(3px); }
@media (max-width: 760px) {
  .proof-banner--feature { grid-template-columns: 1fr; }
  .proof-banner__photo { aspect-ratio: 16 / 9; min-height: 0; }
}

/* Help: one featured path, the rest as a compact list */
.help-paths { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.help-paths__feature { justify-content: center; }
.help-paths__feature { padding: clamp(28px, 4vw, 44px); }
.help-paths__feature h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.help-paths__feature p { font-size: 1.05rem; }
@media (max-width: 860px) { .help-paths { grid-template-columns: 1fr; } }

/* Text link list (help paths, calculators, guides) */
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #cfc2ad; }
.link-list li { border-bottom: 1px solid #cfc2ad; }
.link-list a { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 14px 6px; color: var(--ink); text-decoration: none; transition: background-color .2s var(--ease); }
.link-list a:hover { background: rgba(255, 253, 249, .55); }
.link-list a:focus-visible { outline-offset: -3px; }
.link-list__icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--linen); color: var(--brass-deep); }
.link-list__icon svg { width: 20px; height: 20px; }
.link-list__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.link-list__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; line-height: 1.3; }
.link-list__desc { font-size: .93rem; line-height: 1.45; color: var(--stone); text-wrap: pretty; }
.link-list__go { flex: none; width: 18px; height: 18px; color: var(--brass-deep); transition: transform .2s var(--ease); }
.link-list a:hover .link-list__go { transform: translateX(3px); }
.link-list__all .link-list__title { font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--brass-deep); }

/* Calculators and guides, side by side */
.resources { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(32px, 5vw, 72px); }
.resources__title { font-size: 1.5rem; margin-bottom: 14px; }
@media (max-width: 760px) { .resources { grid-template-columns: 1fr; } }

/* Meet Amy: the heading leads, the quote sits under it */
#meet-amy h2 { margin-bottom: .4em; }

/* Homepage on phones: tighter rhythm so the page reads in fewer screens */
@media (max-width: 640px) {
  .page-home .section { padding: 52px 0; }
  .page-home .mt-lg { margin-top: 32px; }
  .page-home .steps { margin-top: 28px; gap: 0; }
  .page-home .steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 8px; padding: 16px 0; border-top-width: 1px; }
  .page-home .steps li::before { grid-row: 1 / span 2; font-size: 1.8rem; margin: 0; }
  .page-home .steps h3 { margin-bottom: 4px; }
  .page-home #meet-amy .portrait { aspect-ratio: 4 / 3; }
  .page-home .proof-banner--feature { margin-top: 40px; }
}
@media (max-width: 640px) {
  .page-home .qchips-wrap { padding-block: 4px 0; }
  .page-home .qchips { gap: 8px; }
  .page-home .qchip { padding: 0 14px; font-size: .9rem; }
  .page-home .hero__search { margin-top: 20px; padding-top: 16px; }
  .page-home .proof-banner__photo { aspect-ratio: 2 / 1; }
}
/* The older small banner styles every span as an underlined link line; the feature card sets its own */
.proof-banner--feature span { display: block; margin-top: 0; font-weight: 400; text-decoration: none; }
.proof-banner--feature .proof-banner__price { display: inline; }
.proof-banner--feature .proof-banner__photo { display: block; }
.proof-banner--feature .proof-banner__body { display: flex; }
.proof-banner--feature .proof-banner__go { display: inline-flex; margin-top: 6px; font-weight: 500; }
