/* Fine Properties sites. One stylesheet for all ten domains; per-site accent via --accent.
   Shape system: buttons and chips are full pills, cards/tiles/panels 20px, images inside
   them inherit, inputs 12px. One accent (Change purple) on cool neutrals. Light by
   default, dark via [data-theme="dark"]. Motion uses transform/opacity only. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-opsz-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfbfc;
  --bg-2: #f1f1f4;
  --surface: #ffffff;
  --text: #15151a;
  --text-2: #56565f;
  --text-3: #6d6d77;
  --line: rgba(21, 21, 26, 0.1);
  --line-2: rgba(21, 21, 26, 0.18);
  --accent: #4726e1;
  --accent-ink: #4726e1;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgba(30, 24, 70, 0.06), 0 12px 32px -12px rgba(30, 24, 70, 0.18);
  --nav-bg: rgba(251, 251, 252, 0.78);
  --r-card: 20px;
  --r-input: 12px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --nav-h: 64px;
  --gutter: clamp(20px, 4vw, 48px);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0e0e11;
  --bg-2: #15151a;
  --surface: #1a1a20;
  --text: #f2f2f5;
  --text-2: #a9a9b3;
  --text-3: #8d8d98;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --accent: #6a4fff;
  --accent-ink: #a594ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  --nav-bg: rgba(14, 14, 17, 0.72);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .footer a, .idx a, .muted a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
.sr-only, .form__hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 30; padding: 10px 16px; background: var(--surface); border-radius: 999px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* Type */
.display {
  font-size: clamp(2.6rem, 1.4rem + 4.4vw, 5rem);
  font-weight: 640;
  letter-spacing: -0.038em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.display--md { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 3.9rem); }
.h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); font-weight: 620; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 .6em; text-wrap: balance; }
.h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 .5em; }
.lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); line-height: 1.5; color: var(--text-2); max-width: 60ch; margin: 1.1rem 0 0; text-wrap: pretty; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 .9rem; }
.prose { max-width: 68ch; }
.prose p { color: var(--text-2); }
.prose .h3 { margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 560; white-space: nowrap; cursor: pointer;
  transition: transform .16s var(--ease-out), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 15px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: transparent; color: var(--text); cursor: pointer;
  transition: background-color .2s, transform .16s var(--ease-out);
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn:active { transform: scale(0.94); }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 560; color: var(--accent-ink); }
.link-arrow .i { transition: transform .25s var(--ease-out); }
.link-arrow:hover .i { transform: translateX(4px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; height: var(--nav-h); }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--nav-bg); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line); transition: opacity .3s var(--ease-out);
}
.js .nav:not(.is-stuck)::before { opacity: 0; }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__icon { width: auto; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name, .brand__from { white-space: nowrap; }
@media (max-width: 420px) { .brand { gap: 8px; } .brand__icon { height: 30px; } .brand__name { font-size: 16px; } .brand__from { font-size: 11.5px; } }
.brand__name { font-weight: 660; letter-spacing: -0.02em; font-size: 18px; }
.brand__from { font-size: 12.5px; color: var(--text-2); }
.nav__links { display: flex; gap: 26px; font-size: 15px; }
.nav__links a { color: var(--text-2); transition: color .2s; position: relative; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--text); }
.nav__links a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 6px; }
.nav__phone { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--text-2); margin-right: 6px; font-variant-numeric: tabular-nums; }
.nav__phone:hover { color: var(--text); }
[data-theme="light"] .i--moon, [data-theme="dark"] .i--sun { display: block; }
[data-theme="light"] .i--sun, [data-theme="dark"] .i--moon { display: none; }
.nav__menu { display: none; }
.mobile-menu { position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: grid; }
.mobile-menu a { padding: 14px 0; font-size: 20px; font-weight: 560; border-bottom: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }

@media (max-width: 1080px) { .nav__phone span { display: none; } }
@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-grid; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a:hover { color: var(--text); }

/* Hero */
.hero { padding: clamp(24px, 4vh, 56px) 0 clamp(48px, 7vh, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; min-height: min(640px, calc(100dvh - var(--nav-h) - 120px)); }
.hero__title { max-width: 15ch; }
.hero__title--long { max-width: 18ch; font-size: clamp(2.4rem, 1.2rem + 3.2vw, 3.75rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero__stack { position: relative; aspect-ratio: 7 / 6; }
.hero__photo { position: absolute; margin: 0; }
.hero__photo a { display: block; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.hero__photo a:hover img { transform: scale(1.03); }
.hero__photo--1 { left: 0; top: 4%; width: 82%; z-index: 2; }
.hero__photo--2 { right: 0; top: -2%; width: 36%; z-index: 1; }
.hero__photo--3 { right: 4%; bottom: 0; width: 40%; z-index: 3; }
.hero__photo figcaption { margin-top: 14px; font-size: 14px; line-height: 1.45; max-width: 46ch; }
.hero__cap-price { font-weight: 640; font-variant-numeric: tabular-nums; margin-right: .35em; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__stack { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero__photo { position: static; width: auto !important; }
  .hero__photo--1 { grid-column: 1 / -1; }
}

/* Stats band */
.stats { padding: clamp(64px, 10vw, 128px) 0; background: var(--bg-2); }
.stats--plain { background: none; padding: 32px var(--gutter) 8px; }
.stats__title { max-width: 22ch; }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin: clamp(28px, 4vw, 56px) 0 0; }
.stat { border-top: 1px solid var(--line-2); padding-top: 18px; }
.stat dt { font-size: 15px; color: var(--text-2); }
.stat dd { margin: 6px 0 0; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__delta { font-size: 14px; color: var(--text-3); margin: 10px 0 0; }
.stats__foot { margin: clamp(28px, 4vw, 48px) 0 0; max-width: 70ch; color: var(--text-2); }
.stats__foot .link-arrow { margin-left: .3em; text-decoration: none; }
@media (max-width: 760px) { .stats__grid { grid-template-columns: 1fr 1fr; } }

/* Rail */
.rail { padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 7vw, 96px); }
.rail__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.rail__head .h2 { margin: 0; }
.rail__head .link-arrow { white-space: nowrap; }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 28px max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))) 24px;
  scrollbar-width: thin;
}
.rail__track > * { scroll-snap-align: start; }

/* Cards */
.card { border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.card:hover { transform: translateY(-3px); }
.card:active { transform: scale(0.99); }
.card__link { display: block; height: 100%; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.04); }
.card__nophoto { height: 100%; display: grid; place-items: center; color: var(--text-3); font-size: 40px; }
.badge { position: absolute; left: 14px; top: 14px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 560; background: rgba(14, 14, 17, 0.72); color: #fff; backdrop-filter: blur(8px); }
.card__body { padding: 18px 20px 20px; }
.card__price { margin: 0; font-size: 1.35rem; font-weight: 640; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.card__title { margin: 4px 0 0; font-size: 1rem; font-weight: 520; }
.card__place { margin: 2px 0 0; font-size: 14.5px; color: var(--text-2); }
.card__facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.card__facts li { display: inline-flex; align-items: center; gap: 6px; }
.card__office { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px; }

/* Bento neighborhoods */
.hoods { padding: clamp(64px, 9vw, 120px) 0; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 18vw, 240px); gap: 16px; margin: 28px 0 32px; }
.tile { position: relative; border-radius: var(--r-card); overflow: hidden; background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 22%, var(--bg-2)), var(--bg-2)); display: flex; align-items: flex-end; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.tile:has(img)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 10, 14, 0.78), rgba(10, 10, 14, 0.05) 62%); }
.tile:hover img { transform: scale(1.05); }
.tile__body { padding: 20px 22px; display: grid; gap: 2px; }
.tile:has(img) .tile__body { color: #fff; }
.tile__name { font-size: 1.4rem; font-weight: 620; letter-spacing: -0.02em; }
.tile__meta { font-size: 14.5px; opacity: .85; }
.tile--1 { grid-column: span 4; grid-row: span 2; }
.tile--1 .tile__name { font-size: 2rem; }
.tile--2, .tile--3 { grid-column: span 2; }
.tile--4, .tile--5, .tile--6 { grid-column: span 2; }
@media (max-width: 820px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .tile--1 { grid-column: 1 / -1; grid-row: span 1; }
  .tile--2, .tile--3, .tile--4, .tile--5, .tile--6 { grid-column: span 1; }
}
@media (max-width: 480px) { .bento { grid-template-columns: 1fr; } .tile { grid-column: 1 / -1 !important; } }

/* Sell band */
.sellband { padding: 0 0 clamp(72px, 10vw, 128px); }
.sellband__inner { border-radius: calc(var(--r-card) + 8px); padding: clamp(40px, 7vw, 96px); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%), var(--bg-2); }
.sellband__inner .btn { margin-top: 2rem; }

/* Page heads */
.pagehead { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(24px, 4vw, 48px); }
.block { padding-top: clamp(40px, 6vw, 72px); }
.block .h2 { margin-bottom: 24px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; padding: 14px 0; position: sticky; top: var(--nav-h); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .16s var(--ease-out); }
.chip span small { color: var(--text-3); font-size: 13px; }
.chip input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip input:checked + span small { color: inherit; opacity: .7; }
.chip input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.chip span:active { transform: scale(0.97); }
.filters__selects { display: flex; flex-wrap: wrap; gap: 8px; }
.select select { height: 38px; padding: 0 34px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--text); font: inherit; font-size: 15px; appearance: none; cursor: pointer; }
.filters__count { margin: 18px 0; color: var(--text-2); font-size: 15px; }
.card.is-hidden { display: none; }
.empty { padding: 48px 0; display: grid; gap: 16px; justify-items: start; }

/* Neighborhood list */
.hoodlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hoodrow a { display: grid; grid-template-columns: 112px minmax(0, 2fr) repeat(3, minmax(0, 1fr)) 24px; gap: 24px; align-items: center; padding: 14px 16px 14px 14px; border-radius: var(--r-card); transition: background-color .2s; }
.hoodrow a:hover { background: var(--bg-2); }
.hoodrow__media { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 18%, var(--bg-2)), var(--bg-2)); }
.hoodrow__media img { width: 100%; height: 100%; object-fit: cover; }
.hoodrow__name { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.hoodrow__fig { font-size: 14.5px; color: var(--text-2); }
.hoodrow__fig strong { display: block; font-size: 1.15rem; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.hoodrow__go { color: var(--text-3); transition: transform .25s var(--ease-out); }
.hoodrow a:hover .hoodrow__go { transform: translateX(4px); color: var(--accent-ink); }
@media (max-width: 760px) {
  .hoodrow a { grid-template-columns: 88px 1fr 1fr; gap: 6px 14px; }
  .hoodrow__media { grid-row: span 2; }
  .hoodrow__name { grid-column: 2 / -1; }
  .hoodrow__fig:last-of-type, .hoodrow__go { display: none; }
}

/* Facts */
.facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin: 0; padding: 28px 0; border-block: 1px solid var(--line); }
.facts__grid dt { font-size: 14.5px; color: var(--text-2); }
.facts__grid dd { margin: 4px 0 0; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-weight: 560; color: var(--text-2); padding: 14px 18px; background: var(--bg-2); white-space: nowrap; }
.table td { padding: 13px 18px; white-space: nowrap; }
.table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--bg-2) 45%, transparent); }

/* Schools */
.schools { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0 0; }
.schools > div { padding: 18px 20px; border-radius: var(--r-card); background: var(--bg-2); }
.schools dt { font-size: 14px; color: var(--text-2); }
.schools dd { margin: 4px 0 0; font-weight: 560; }

/* Market report */
.bars { display: grid; gap: 4px; }
.bars__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 220px; gap: 18px; align-items: center; padding: 8px 10px; border-radius: 12px; transition: background-color .2s; }
.bars__row:hover { background: var(--bg-2); }
.bars__label { font-size: 15px; color: var(--text-2); }
.bars__bar { height: 12px; border-radius: 999px; background: var(--accent); width: calc(var(--v) / var(--max) * 100%); min-width: 4px; transform-origin: left center; }
.bars__val { font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 680px) { .bars__row { grid-template-columns: 90px 1fr; } .bars__val { grid-column: 1 / -1; text-align: left; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--form { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); padding-bottom: clamp(64px, 9vw, 112px); }
@media (max-width: 860px) { .split, .split--form { grid-template-columns: 1fr; } }
.zips { display: grid; gap: 14px; margin: 0; }
.zips dt { font-size: 1.5rem; font-weight: 620; letter-spacing: -0.02em; }
.zips dd { margin: 0; color: var(--text-2); }
.zips strong { color: var(--text); }
.topsales { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 2px; }
.topsales li { counter-increment: t; display: grid; grid-template-columns: 32px 1fr; gap: 0 12px; padding: 10px 0; }
.topsales li::before { content: counter(t); grid-row: span 2; color: var(--text-3); font-variant-numeric: tabular-nums; }
.topsales li span:first-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.topsales li span:last-child { font-size: 14.5px; }

/* Sell / contact */
.ticks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
.panel { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }
.contactways { display: grid; gap: 12px; align-content: start; }
.contactway { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--r-card); background: var(--bg-2); transition: transform .2s var(--ease-out); }
.contactway:hover { transform: translateX(4px); }
.contactway .i { font-size: 22px; color: var(--accent-ink); }
.contactway strong { display: block; font-weight: 600; }
.contactway span { color: var(--text-2); }

/* Forms */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 560; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-input);
  border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c4314b; }
.field__help { margin: -6px 0 0; font-size: 14px; color: var(--text-2); }
.form__error { margin: 0; color: #c4314b; font-size: 15px; }
[data-theme="dark"] .form__error { color: #ff8095; }
.form__ok { margin: 0; padding: 14px 16px; border-radius: var(--r-input); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.form .btn { justify-self: start; }

/* IDX + footer */
.idx { padding: 40px 0; border-top: 1px solid var(--line); }
.idx__inner { display: grid; grid-template-columns: 56px 1fr; gap: 20px; font-size: 13px; color: var(--text-3); line-height: 1.6; }
.idx p { margin: 0 0 8px; max-width: 110ch; }
.idx img { opacity: .9; }
.footer { background: var(--bg-2); padding: 56px 0 40px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; }
.footer__logo-link { display: inline-block; margin: 0 0 20px; }
.footer__logo { width: 192px; height: auto; }
/* The Change marks are black + blue on transparent; in dark mode invert the black to
   white and rotate the blue's hue back so it stays blue. */
[data-theme="dark"] .brand__icon, [data-theme="dark"] .footer__logo { filter: invert(1) hue-rotate(180deg); }
.footer__name { margin: 0; font-size: 1.25rem; font-weight: 640; letter-spacing: -0.02em; }
.footer__line { margin: 4px 0 12px; color: var(--text-2); }
.footer__nav { display: grid; gap: 8px; align-content: start; }
.footer__nav a { color: var(--text-2); text-decoration: none; }
.footer__nav a:hover { color: var(--text); }
.footer__office { font-style: normal; color: var(--text-2); line-height: 1.7; }
.footer__office a { color: var(--text-2); text-decoration: none; }
.footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); display: grid; gap: 10px; }
.footer__legal p { margin: 0; }
.eho { display: flex; gap: 8px; align-items: center; }
.eho img { width: 20px; height: auto; flex: none; }
[data-theme="dark"] .eho img { filter: invert(1); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } .idx__inner { grid-template-columns: 1fr; } }

.notfound { min-height: 50vh; display: grid; align-content: center; justify-items: start; gap: 8px; }
.notfound .btn { margin-top: 1.5rem; }

/* Motion. Content is fully visible without JS; .js turns the reveal states on. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }

  .js .hero__title, .js .hero__lede, .js .hero__ctas { animation: rise .9s var(--ease-out) both; }
  .js .hero__lede { animation-delay: .08s; }
  .js .hero__ctas { animation-delay: .16s; }
  .js .hero__photo { animation: settle 1.2s var(--ease-out) both; }
  .js .hero__photo--1 { animation-delay: .1s; }
  .js .hero__photo--2 { animation-delay: .22s; }
  .js .hero__photo--3 { animation-delay: .34s; }

  .js .bars__row .bars__bar { transform: scaleX(0); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
  .js .bars__row.in .bars__bar { transform: scaleX(1); }

  @supports (animation-timeline: view()) {
    .hero__photo--2 img, .hero__photo--3 img { animation: drift linear both; animation-timeline: view(); animation-range: entry 100% exit 100%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(28px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translateY(0) scale(1.06); } to { transform: translateY(-6%) scale(1.06); } }


/* ---- Change Luxury theme (changevegasluxury, changedmvluxury, changevirginialuxury) ----
   Deliberately different from the Fine Properties look: Geist instead of Inter, Change
   logo blue instead of purple, square corners, flat bordered cards, dark by default and a
   full-bleed photo hero. Same markup underneath. */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght.woff2") format("woff2-variations"), url("../fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
.theme-change {
  --accent: #1769ab; --accent-ink: #1769ab; --r-card: 6px; --r-input: 4px;
  --shadow: none;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
[data-theme="light"] .theme-change { --bg: #fafafa; --bg-2: #f0f1f3; --surface: #ffffff; --text: #111316; --text-2: #50555e; --text-3: #6a707a; }
[data-theme="dark"] .theme-change {
  --bg: #0b0d10; --bg-2: #13161b; --surface: #15191f; --text: #eef0f3; --text-2: #a4aab4; --text-3: #8a909a;
  --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.16);
  --accent: #1f7fd0; --accent-ink: #6db4ef; --nav-bg: rgba(11, 13, 16, 0.78);
}
.theme-change .display { font-weight: 600; letter-spacing: -0.045em; }
.theme-change .h2 { font-weight: 600; letter-spacing: -0.035em; }
.theme-change .btn { border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; font-weight: 600; }
.theme-change .btn--sm { font-size: 13px; }
.theme-change .btn--primary { box-shadow: none; }
.theme-change .chip span, .theme-change .select select, .theme-change .icon-btn { border-radius: 4px; }
.theme-change .card { border: 1px solid var(--line); }
.theme-change .card:hover { transform: none; border-color: var(--line-2); }
.theme-change .card__price { font-weight: 600; }
.theme-change .badge { border-radius: 3px; text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; }
.theme-change .stats { background: var(--bg-2); border-block: 1px solid var(--line); }
.theme-change .stat { border-top: 2px solid var(--accent); }
.theme-change .sellband__inner { border-radius: 6px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 30%, var(--bg-2)), var(--bg-2) 70%); }
.theme-change .tile, .theme-change .hoodrow__media, .theme-change .table-wrap, .theme-change .panel, .theme-change .contactway, .theme-change .schools > div { border-radius: 6px; }
.theme-change .nav__links a[aria-current]::after { border-radius: 0; height: 2px; }
.theme-change .eyebrow { color: var(--accent-ink); }
.brand__logo { height: 34px; width: auto; flex: none; }
.brand__sub { padding-left: 12px; border-left: 1px solid var(--line-2); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
[data-theme="dark"] .brand__logo { filter: invert(1) hue-rotate(180deg); }
@media (max-width: 420px) { .brand__logo { height: 28px; } .brand__sub { font-size: 12.5px; padding-left: 8px; } }

/* Full-bleed hero */
.xhero { position: relative; min-height: min(820px, calc(100dvh - var(--nav-h))); display: flex; align-items: flex-end; color: #fff; overflow: hidden; margin-top: calc(var(--nav-h) * -1); padding-top: var(--nav-h); background: #101317; }
.xhero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xhero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 10, 13, 0.92) 0%, rgba(8, 10, 13, 0.55) 45%, rgba(8, 10, 13, 0.15) 100%); }
.xhero__inner { position: relative; padding-bottom: clamp(40px, 7vh, 88px); padding-top: 40px; }
.xhero__title { max-width: 16ch; color: #fff; }
.xhero__lede { color: rgba(255, 255, 255, 0.82); }
.xhero__ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.xhero__ghost:hover { border-color: #fff; }
.xhero__cap { margin: 28px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.7); }
.xhero__cap a { color: #fff; text-decoration: none; font-weight: 500; }
.theme-change.page-home .nav:not(.is-stuck) { color: #fff; }
.theme-change.page-home .nav:not(.is-stuck) .nav__links a, .theme-change.page-home .nav:not(.is-stuck) .nav__phone { color: rgba(255, 255, 255, 0.82); }
.theme-change.page-home .nav:not(.is-stuck) .icon-btn { color: #fff; }
[data-theme="light"] .theme-change.page-home .nav:not(.is-stuck) .brand__logo { filter: invert(1) hue-rotate(180deg); }
@media (prefers-reduced-motion: no-preference) {
  .js .xhero__img { animation: xzoom 1.6s var(--ease-out) both; }
  .js .xhero__title, .js .xhero__lede, .js .xhero .hero__ctas, .js .xhero__cap { animation: rise .9s var(--ease-out) both; }
  .js .xhero__lede { animation-delay: .1s; }
  .js .xhero .hero__ctas { animation-delay: .2s; }
  .js .xhero__cap { animation-delay: .3s; }
}
@keyframes xzoom { from { transform: scale(1.06); opacity: .6; } to { transform: none; opacity: 1; } }

.more { display: flex; justify-content: center; margin: 32px 0 0; }

/* ---- Tennis homes theme (virginiatennishomes.com, marylandtennishomes.com) -------------
   Design read: statewide niche search for buyers who play, sporty and crisp, not luxury.
   Outfit; hard-court green with one optic-yellow highlight (the ball), cool chalk neutrals.
   Shape system: cards, tiles and panels 10px; buttons, chips and inputs 8px. Hero is a
   court seen from above, its lines drawn in once on load. */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
.theme-tennis {
  --accent: #0f6b45; --accent-ink: #0f6b45; --on-accent: #ffffff;
  --court: #134a33; --court-2: #0e3a28; --ball: #d8f04b;
  --r-card: 10px; --r-input: 8px;
  --shadow: 0 1px 2px rgba(12, 40, 28, 0.06), 0 10px 28px -14px rgba(12, 40, 28, 0.22);
  font-family: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17.5px;
}
[data-theme="light"] .theme-tennis { --bg: #f4f7f3; --bg-2: #e9efe8; --surface: #ffffff; --text: #0f1a14; --text-2: #46554c; --text-3: #637268; --line: rgba(15, 26, 20, 0.1); --line-2: rgba(15, 26, 20, 0.2); --nav-bg: rgba(244, 247, 243, 0.8); }
[data-theme="dark"] .theme-tennis {
  --bg: #0a1410; --bg-2: #101d17; --surface: #13211b; --text: #ecf3ee; --text-2: #a5b5ab; --text-3: #869a8e;
  --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.17);
  --accent: #23935f; --accent-ink: #7fd3a6; --court: #0f3a28; --court-2: #0b2c1f; --nav-bg: rgba(10, 20, 16, 0.78);
}
.theme-tennis .display { font-weight: 650; letter-spacing: -0.035em; line-height: 1.02; }
.theme-tennis .h2 { font-weight: 620; letter-spacing: -0.025em; }
.theme-tennis .btn, .theme-tennis .chip span, .theme-tennis .select select, .theme-tennis .icon-btn { border-radius: 8px; }
.theme-tennis .btn { font-weight: 560; }
.theme-tennis .badge { border-radius: 6px; }
.theme-tennis .tile, .theme-tennis .hoodrow__media, .theme-tennis .panel, .theme-tennis .contactway { border-radius: var(--r-card); }
.theme-tennis .chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.theme-tennis .nav__links a[aria-current]::after { background: var(--accent-ink); }
.theme-tennis .card__price { font-weight: 620; letter-spacing: -0.01em; }

/* Hero: a court from above */
.thero { position: relative; overflow: hidden; color: #f2f7f3; background: radial-gradient(120% 90% at 85% 10%, var(--court) 0%, var(--court-2) 70%); margin-top: calc(var(--nav-h) * -1); padding: calc(var(--nav-h) + clamp(32px, 6vh, 72px)) 0 clamp(48px, 8vh, 96px); }
.courtlines { position: absolute; inset: 4% -6%; width: 112%; height: 92%; color: rgba(255, 255, 255, 0.13); pointer-events: none; }
.thero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.thero__kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14px; font-weight: 560; letter-spacing: .06em; text-transform: uppercase; color: rgba(242, 247, 243, 0.78); }
.ball { width: 14px; height: 14px; border-radius: 50%; background: var(--ball); box-shadow: 0 0 0 4px rgba(216, 240, 75, 0.16); flex: none; }
.thero__title { color: #fff; max-width: 13ch; }
.thero__lede { color: rgba(242, 247, 243, 0.82); }
.thero .btn--primary { background: var(--ball); color: #0f1a14; box-shadow: 0 10px 28px -12px rgba(216, 240, 75, 0.55); }
.thero .btn--primary:hover { background: #e4f76f; }
.thero__ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.thero__ghost:hover { border-color: #fff; }
.thero__photo { margin: 0; position: relative; }
.thero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.6); }
.thero__photo figcaption { margin-top: 14px; font-size: 14px; color: rgba(242, 247, 243, 0.72); }
.thero__photo figcaption span:not(.thero__price) { font-size: 13px; }
.thero__price { color: #fff; font-weight: 600; margin-right: 6px; }
.theme-tennis.page-home .nav:not(.is-stuck) { color: #fff; }
.theme-tennis.page-home .nav:not(.is-stuck) .nav__links a, .theme-tennis.page-home .nav:not(.is-stuck) .nav__phone, .theme-tennis.page-home .nav:not(.is-stuck) .brand__from { color: rgba(255, 255, 255, 0.8); }
.theme-tennis.page-home .nav:not(.is-stuck) .icon-btn { color: #fff; }
.theme-tennis.page-home .nav:not(.is-stuck) .brand__icon { filter: brightness(0) invert(1); }
@media (max-width: 860px) { .thero__grid { grid-template-columns: 1fr; } .thero__title { max-width: 16ch; } }
@media (prefers-reduced-motion: no-preference) {
  .js .courtlines rect, .js .courtlines line:not(.courtlines__net) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawline 1.6s var(--ease-in-out) forwards; }
  .js .courtlines line:nth-child(n+2) { animation-delay: .25s; }
  .js .courtlines line:nth-child(n+4) { animation-delay: .45s; }
  .js .courtlines line:nth-child(n+6) { animation-delay: .6s; }
  .js .thero__copy > *, .js .thero__photo { animation: rise .9s var(--ease-out) both; }
  .js .thero__copy > :nth-child(2) { animation-delay: .06s; }
  .js .thero__copy > :nth-child(3) { animation-delay: .12s; }
  .js .thero__copy > :nth-child(4) { animation-delay: .18s; }
  .js .thero__photo { animation-delay: .2s; }
}
@keyframes drawline { to { stroke-dashoffset: 0; } }

/* Stat strip */
.tstats { border-bottom: 1px solid var(--line); background: var(--surface); }
.tstats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding-block: clamp(28px, 4vw, 44px); gap: 24px; }
.tstat { padding-left: 18px; border-left: 3px solid var(--accent); }
.tstat dt { font-size: 14.5px; color: var(--text-2); }
.tstat dd { margin: 6px 0 0; font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem); font-weight: 620; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .tstats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Court labels on cards */
.court { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13.5px; font-weight: 520; color: var(--text-2); }
.court .i { width: 16px; height: 16px; flex: none; }
.court--community { color: var(--accent-ink); }
.card__county { color: var(--text-3); }
.card__county::before { content: "\00b7"; margin: 0 6px 0 2px; }

/* How we find them */
.how { padding: clamp(64px, 9vw, 120px) 0; background: var(--bg-2); }
.how__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.how__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.how__card { padding: 28px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.how__card .i { width: 30px; height: 30px; color: var(--accent-ink); margin-bottom: 18px; }
.how__card p { margin: 0; color: var(--text-2); }
@media (max-width: 860px) { .how__grid, .how__cards { grid-template-columns: 1fr; } }
.sellband__sister { margin-top: 20px; }
.theme-tennis .sellband { padding-top: clamp(64px, 9vw, 120px); }
.theme-tennis .sellband__inner { border-radius: var(--r-card); background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 22%, var(--bg-2)), var(--bg-2) 70%); }

/* Towns list on county pages */
.towns { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 32px; }
.towns li { break-inside: avoid; display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
