:root {
  --ink: #141416;
  --muted: #6c7177;
  --line: #e9e5de;
  --paper: #fbfaf8;
  --white: #fff;
  --blue: #0c82b8;
  --blue-dark: #075f8a;
  --orange: #0c82b8;
  --gold: #d49a39;
  --charcoal: #222225;
  --shadow: 0 24px 70px rgba(20, 20, 22, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  width: 100%;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; }

a { color: inherit; text-decoration: none; }

.form-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  margin: 12px 0 0;
  color: var(--blue-dark);
  font-weight: 750;
}

.form-error {
  margin: 12px 0 0;
  color: #9f1d1d;
  font-weight: 750;
}

.site-header {
  position: fixed;
  inset: 16px 24px auto;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(130px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img { width: 34px; height: 34px; object-fit: contain; }

.brand-logo {
  width: clamp(218px, 24vw, 265px) !important;
  height: 66px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.nav-links {
  display: flex;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(20,20,22,0.05);
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 14px;
  color: #333;
}

.nav-links a:hover { background: var(--white); }

.nav-cta {
  padding: 11px 17px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 108px 24px 34px;
}

.hero-bg, .hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg { object-fit: cover; }

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7,9,12,0.78) 0%, rgba(7,9,12,0.48) 48%, rgba(7,9,12,0.14) 100%),
    linear-gradient(0deg, rgba(7,9,12,0.62), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 36px;
  align-items: end;
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  min-width: 0;
}

.hero-copy { color: var(--white); max-width: 720px; min-width: 0; }

.wordmark {
  width: min(340px, 70vw);
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .11em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 18px;
  max-width: 820px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-lede {
  max-width: 690px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.84);
}

.search-card {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow);
}

.search-card-intro {
  margin: 0 4px 12px;
}

.search-card-intro h2 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
}

.search-card-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.search-card .search-grid + label {
  display: block;
  margin-top: 8px;
}

.search-card .primary-button {
  margin-top: 12px;
}

.area-chips button, .listing-topline button, .map-toolbar button {
  border: 0;
  cursor: pointer;
}

label span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 13px;
  background: var(--white);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: #8b929a;
}

textarea { min-height: 116px; padding-top: 14px; resize: vertical; }

.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

.search-grid.contact-methods {
  margin-bottom: 10px;
}

.primary-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(12,130,184,.28);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(1120px, calc(100% - 40px));
  margin: -20px auto 72px;
  position: relative;
  z-index: 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.quick-strip div {
  padding: 24px;
  background: var(--white);
}

.quick-strip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 28px;
}

.mini-stars {
  display: inline;
  color: var(--gold);
  font-size: 18px;
  vertical-align: 3px;
}

.quick-strip span { color: var(--muted); font-size: 14px; }

.source-link {
  display: inline-flex;
  margin-top: 7px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stat-link {
  display: inline-block;
}

section:not(.hero) {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 92px;
  scroll-margin-top: 128px;
}

.section-heading {
  display: block;
  max-width: 820px;
  margin-bottom: 24px;
}

.section-heading.compact {
  display: block;
  max-width: 720px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p, .area-copy p, .contact-section p { color: var(--muted); line-height: 1.55; }

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
}

.area-chips button {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 750;
}

.area-chips button.active { background: var(--ink); color: var(--white); }

.market-layout {
  display: grid;
  grid-template-columns: minmax(320px, 470px) 1fr;
  gap: 22px;
  align-items: stretch;
}

.listing-feed {
  display: grid;
  gap: 16px;
}

.listing-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 160px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
}

.listing-card.featured { grid-template-columns: 1fr; }

.listing-card.featured .listing-image { min-height: 230px; }

.listing-card:not(.featured) .listing-image {
  background-color: #121416;
  background-size: contain;
  background-repeat: no-repeat;
}

.listing-image {
  min-height: 100%;
  background-size: cover;
  background-position: center;
}

.img-waverly { background-image: url("./assets/listings/waverly-exterior.jpg"); }
.img-longwood { background-image: url("./assets/listings/longwood-exterior.jpg"); }

.listing-body { padding: 18px; }

.listing-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.listing-topline span {
  font-size: 22px;
  font-weight: 850;
}

.listing-topline button, .map-toolbar button, .map-action {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f0ea;
  font-size: 13px;
  font-weight: 800;
}

.listing-card h3 { margin-bottom: 4px; font-size: 20px; }
.listing-card p { margin-bottom: 14px; color: var(--muted); }

.listing-preview {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue-dark);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4f1ec;
  color: #4c4f52;
  font-size: 12px;
  font-weight: 750;
}

.map-panel {
  overflow: hidden;
  min-height: 630px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}

.mock-map {
  position: relative;
  height: calc(100% - 68px);
  min-height: 560px;
  overflow: hidden;
  background: #e9efe8;
}

.listing-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.listing-map .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

.listing-map .leaflet-control-zoom a {
  color: var(--ink);
  font-weight: 900;
}

.map-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  z-index: 4;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
}

.map-card strong, .map-card span { display: block; }
.map-card span { margin-top: 6px; color: var(--muted); line-height: 1.45; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-grid article, .insight-row article, .reviews-grid blockquote {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
}

.service-grid span, .insight-row span {
  display: inline-flex;
  margin-bottom: 34px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(12,130,184,.1);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.service-grid h3, .insight-row h3 { font-size: 24px; line-height: 1.12; }
.service-grid p { color: var(--muted); line-height: 1.55; }

.service-grid article:has(a),
.insight-row article:has(a),
.town-grid a {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-grid article:has(a):hover,
.insight-row article:has(a):hover,
.town-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(12,130,184,.35);
  box-shadow: 0 16px 38px rgba(20,20,22,.10);
}

.service-grid article a,
.insight-row article a,
.inline-text-link {
  color: var(--blue-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.landing-preview {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 34px;
  align-items: center;
  padding: 42px;
  border-radius: 34px;
  background: linear-gradient(135deg, #171719, #273037);
  color: var(--white);
  overflow: hidden;
}

.landing-preview p {
  color: rgba(255,255,255,.74);
  line-height: 1.58;
}

.inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-weight: 900;
}

.inline-button.light {
  background: var(--white);
  color: var(--ink);
}

.device-preview {
  min-height: 460px;
  padding: 16px;
  border-radius: 34px;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
  transform: rotate(2deg);
}

.device-top {
  width: 88px;
  height: 8px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.42);
}

.device-photo {
  height: 230px;
  border-radius: 24px;
  background: url("./assets/listings/waverly-exterior.jpg") center/cover;
}

.device-title {
  margin-top: 16px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.device-copy {
  margin: 12px 0 18px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.38;
}

.device-lines {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.device-lines span {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
}

.device-lines span:nth-child(2) { width: 72%; }
.device-lines span:nth-child(3) { width: 52%; }

.device-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.device-stats strong {
  padding: 14px 8px;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  text-align: center;
}

.areas-section {
  display: grid;
  grid-template-columns: .92fr 1fr;
  gap: 40px;
  align-items: center;
}

.area-visual {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.area-visual img {
  display: block;
  width: 100%;
  min-height: 520px;
  object-fit: cover;
}

.town-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.town-grid a {
  padding: 14px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 800;
}

.town-grid a strong,
.town-grid a span {
  display: block;
}

.town-grid a span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.resource-directory {
  align-items: start;
}

.resource-groups {
  display: grid;
  gap: 24px;
}

.resource-group h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.resource-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.team-grid, .reviews-grid, .insight-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.team-section .team-grid,
section.team-grid {
  width: min(840px, 100%);
  margin-inline: auto;
}

.profile-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.profile-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / .84;
  object-fit: cover;
  background: #f2f0ec;
}

.profile-photo-frame {
  display: block;
  width: 100%;
  aspect-ratio: 1 / .84;
  margin: 0;
  overflow: hidden;
  background: #f2f0ec;
}

.profile-photo-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.profile-photo-frame .zac-photo {
  transform: scale(1.01);
  transform-origin: 43% 50%;
}

.profile-photo-frame .amber-photo {
  object-position: center;
}

.profile-photo-frame .lisa-photo {
  object-position: 50% 42%;
}

.profile-photo-frame.yalena-frame {
  position: relative;
  background:
    radial-gradient(circle at 78% 12%, rgba(246, 139, 60, .38), transparent 29%),
    radial-gradient(circle at 12% 92%, rgba(0, 132, 180, .34), transparent 33%),
    linear-gradient(150deg, #edf8fb 0%, #f8f4ed 100%);
}

.profile-photo-frame .yalena-photo {
  object-fit: cover;
  object-position: 50% 46%;
}

.language-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .92);
  box-shadow: 0 10px 22px rgba(13, 31, 45, .22);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .02em;
}

.profile-photo-frame.patty-frame {
  background:
    radial-gradient(circle at 54% 24%, rgba(255, 255, 255, .96) 0 16%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(145deg, #e9f5f8 0%, #d8e8ee 48%, #f3efe8 100%);
}

.profile-photo-frame .patty-photo {
  object-fit: contain;
  object-position: 50% 45%;
  padding: 0;
  transform: scale(1.48);
  transform-origin: 50% 58%;
  filter: drop-shadow(0 16px 26px rgba(20, 33, 43, .18));
}

.amber-card img { object-fit: contain; padding: 40px; }

.photo-needed {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / .84;
  background:
    radial-gradient(circle at 28% 22%, rgba(12,130,184,.20), transparent 30%),
    linear-gradient(135deg, #edf5f8, #dbe9ee);
  color: var(--blue-dark);
  font-size: 44px;
  font-weight: 950;
}

.profile-card div { padding: 15px 16px 16px; }
.profile-card h3 { margin-bottom: 5px; font-size: 20px; }
.profile-card p { margin: 0; color: var(--muted); }

.review-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}

.review-header p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.rating-pill {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--white);
  font-weight: 850;
}

.review-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.review-filters button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 11px 15px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 850;
  cursor: pointer;
}

.review-filters button.active {
  background: var(--ink);
  color: var(--white);
}

blockquote {
  margin: 0;
}

blockquote p {
  min-height: 126px;
  font-size: 20px;
  line-height: 1.24;
}

.stars {
  margin-bottom: 18px;
  color: var(--gold);
  letter-spacing: 0;
  font-weight: 900;
}

cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.review-import {
  border-style: dashed !important;
  background: rgba(12,130,184,.07) !important;
}

.review-import p {
  color: var(--blue-dark);
  font-weight: 900;
}

.detail-body { background: #f4f1ec; }

.detail-header { position: sticky; top: 16px; }

.detail-page {
  padding: 120px 24px 70px;
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  width: min(1180px, 100%);
  margin: 0 auto 26px;
  padding: 40px;
  border-radius: 34px;
  background: var(--charcoal);
  color: var(--white);
}

.detail-hero h1 { margin-bottom: 8px; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.02; }
.detail-hero p:not(.eyebrow) { margin-bottom: 0; color: rgba(255,255,255,.74); }

.subpage {
  max-width: 1180px;
  margin: 0 auto;
  padding: 130px 24px 70px;
}

.page-hero {
  margin-bottom: 28px;
  padding: 44px;
  border-radius: 34px;
  color: var(--white);
  background: var(--charcoal);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: .98;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.74);
  line-height: 1.55;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  grid-template-rows: repeat(2, 230px);
  gap: 12px;
}

.gallery-main, .gallery-side {
  min-height: 100%;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
}

.gallery-main {
  grid-row: span 2;
  background-image: url("./assets/listings/waverly-exterior.jpg");
}

.gallery-side.one { background-image: url("./assets/listings/waverly-kitchen.jpg"); }
.gallery-side.two { background-image: url("./assets/listings/waverly-living.jpg"); }

.photo-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 14px;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.photo-rail.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.photo-rail a {
  flex: 0 0 min(76vw, 560px);
  height: 360px;
  overflow: hidden;
  border-radius: 28px;
  background: #111;
  scroll-snap-align: start;
}

.photo-rail.dragging a {
  pointer-events: none;
}

.photo-rail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.detail-copy, .tour-card {
  padding: 34px;
  border-radius: 30px;
  background: var(--white);
  border: 1px solid var(--line);
}

.detail-copy p, .detail-copy li, .tour-card p { color: var(--muted); line-height: 1.58; }

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 28px 0;
}

.detail-stats span {
  padding: 16px;
  border-radius: 18px;
  background: #f4f1ec;
}

.detail-stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: 24px;
  color: var(--ink);
}

.tour-card {
  position: sticky;
  top: 112px;
}

.tour-card img {
  width: 100%;
  margin-bottom: 22px;
}

.listing-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 132px 0 72px;
}

.listing-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 20px;
}

.listing-topline h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: .96;
  letter-spacing: 0;
}

.listing-location {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.15;
}

.listing-subline {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.listing-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.listing-facts span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--blue-dark);
  font-weight: 850;
}

.listing-topline .listing-price {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 950;
  text-align: right;
}

.listing-price-block {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.listing-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 8px 12px;
  border: 1px solid rgba(34, 116, 82, .22);
  border-radius: 999px;
  background: #e9f6ee;
  color: #16623f;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.listing-status.pending {
  border-color: rgba(142, 93, 24, .24);
  background: #fbf1df;
  color: #865814;
}

.listing-gallery {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(17, 47, 68, .12);
}

.listing-gallery-stage {
  position: relative;
  display: grid;
  min-height: 560px;
  background: #ebe6dc;
}

.listing-photo-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.listing-photo-open img {
  display: block;
  width: 100%;
  height: min(65vw, 640px);
  min-height: 420px;
  object-fit: cover;
}

.listing-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 92px;
  height: 150px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.listing-gallery-arrow.prev { left: 0; }
.listing-gallery-arrow.next { right: 0; }

.listing-gallery-arrow span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 36px;
  height: 36px;
  border-top: 8px solid rgba(255,255,255,.92);
  border-right: 8px solid rgba(255,255,255,.92);
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.38));
}

.listing-gallery-arrow.prev span {
  transform: translate(-38%, -50%) rotate(225deg);
}

.listing-gallery-arrow.next span {
  transform: translate(-62%, -50%) rotate(45deg);
}

.listing-gallery-arrow:hover span,
.listing-gallery-arrow:focus-visible span {
  border-color: #fff;
}

.listing-gallery-count {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(17, 47, 68, .86);
  color: var(--white);
  font-weight: 850;
}

.listing-thumbnails {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 120px;
  gap: 10px;
  overflow-x: auto;
  padding: 12px;
}

.listing-thumbnails button {
  overflow: hidden;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
}

.listing-thumbnails button.active {
  border-color: var(--blue);
}

.listing-thumbnails img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}

.listing-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  margin-top: 30px;
}

.listing-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 42px rgba(17, 47, 68, .07);
}

.listing-copy {
  padding: 32px;
}

.listing-copy h2 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
}

.listing-copy p {
  color: #495866;
  font-size: 18px;
  line-height: 1.65;
}

.listing-source-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px !important;
}

.listing-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.listing-highlights div {
  padding: 16px;
  border-radius: 18px;
  background: #f3f8fa;
  color: var(--blue-dark);
  font-weight: 850;
}

.listing-detail-table {
  display: grid;
  gap: 0;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.listing-detail-table div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.listing-detail-table div:last-child {
  border-bottom: 0;
}

.listing-detail-table span {
  color: var(--muted);
  font-weight: 800;
}

.listing-detail-table strong {
  color: var(--ink);
}

.listing-side-card {
  position: sticky;
  top: 118px;
  align-self: start;
  padding: 24px;
}

.listing-side-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.listing-side-card p {
  color: var(--muted);
  line-height: 1.55;
}

.listing-local-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.listings-index-page {
  width: min(1220px, calc(100% - 32px));
}

.listing-index-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 30px;
  background: #242428;
}

.listing-index-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--white);
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.02;
}

.listing-index-hero h1 span {
  display: block;
}

.listing-index-hero .eyebrow {
  color: var(--blue);
}

.listing-index-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 17px;
  line-height: 1.55;
}

.listing-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.listing-card-grid .listing-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(17, 47, 68, .08);
}

.listing-card-grid .listing-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}

.listing-card-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.listing-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.listing-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
}

.listing-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.listing-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.listing-card .listing-price {
  color: var(--blue-dark);
  font-weight: 900;
}

.listing-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(8, 16, 22, .88);
}

.listing-lightbox.open {
  display: flex;
}

.listing-lightbox img {
  max-width: min(1180px, 96vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

.listing-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--blue-dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 40px;
  align-items: start;
  padding: 44px;
  border-radius: 34px;
  background: var(--charcoal);
  color: var(--white);
}

.contact-section p { color: rgba(255,255,255,.72); }

.contact-section p a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-section.light-section {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.contact-section.light-section p {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.fair-housing-section {
  align-items: center;
}

.fair-housing-card {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  color: var(--ink) !important;
  text-align: center;
  text-decoration: none !important;
}

.fair-housing-card img {
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
}

.fair-housing-card span {
  color: var(--muted);
}

.fair-housing-flyer {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--white);
}

.fair-housing-flyer img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.fair-housing-flyer p {
  color: var(--muted);
  line-height: 1.58;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 10px auto 32px;
  padding: 32px;
  border-radius: 32px;
  border: 1px solid #d8d4cc;
  background: #e9e6df;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(20,20,22,.10);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr .72fr .82fr .96fr;
  gap: 24px;
  align-items: start;
}

.footer-brand img {
  width: min(280px, 100%);
  margin-bottom: 14px;
}

.footer-brand p,
.footer-credentials p,
.footer-bottom,
.footer-links a {
  color: #565c61;
  line-height: 1.55;
}

.footer-contact {
  display: grid;
  gap: 6px;
  margin: 16px 0;
}

.footer-contact a {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.social-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111;
  font-weight: 950;
  box-shadow: none;
  line-height: 0;
  text-decoration: none;
  transition: transform .16s ease, opacity .16s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  opacity: .9;
}

.social-icon:focus-visible {
  outline: 3px solid rgba(0, 114, 177, .28);
  outline-offset: 3px;
}

.social-icon.has-image img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.social-icon[href*="zillow"] img {
  width: 38px;
  height: 38px;
}

.social-icon[href*="realtor.com"] img {
  width: 38px;
  height: 38px;
}

.social-icon span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.realtor-dot span {
  border: 2px solid #d5202f;
  color: #d5202f;
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1;
}

.realtor-dot span::before {
  display: none;
}

.zillow-dot span {
  color: #006aff;
  font-size: 22px;
  font-weight: 950;
  transform: skew(-8deg);
}

.insta-dot span {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 72% 26%, #fff 0 2px, transparent 3px),
    radial-gradient(circle, transparent 0 6px, #fff 7px 9px, transparent 10px),
    linear-gradient(135deg, #feda75, #fa7e1e 28%, #d62976 55%, #962fbf 78%, #4f5bd5);
}

.x-dot span {
  color: #111;
  font-size: 19px;
  font-weight: 950;
}

.fb-dot span {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #1877f2;
  color: #fff;
  font-size: 24px;
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links h3,
.footer-credentials h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.credential-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}

.credential-card {
  display: grid;
  place-items: center;
  min-height: 82px;
  padding: 10px;
  border: 1px solid #d8d4cc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20,20,22,.06);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.credential-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 114, 177, .45);
  box-shadow: 0 14px 28px rgba(20,20,22,.10);
}

.credential-card:focus-visible {
  outline: 3px solid rgba(0, 114, 177, .25);
  outline-offset: 3px;
}

.credential-row img {
  max-width: 100%;
  max-height: 66px;
  object-fit: contain;
}

.footer-credentials p {
  margin: 0;
}

.footer-credentials p + p {
  margin-top: 6px;
}

.compliance-note {
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #d8d4cc;
  font-size: 13px;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
    border-radius: 26px;
  }
  .nav-links { display: none; }
  .header-actions { gap: 8px; }
  .header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-size: 0;
  }
  .header-phone::after {
    content: "Call";
    font-size: 13px;
  }
  .hero-content,
  .market-layout,
  .areas-section,
  .contact-section,
  .section-heading,
  .landing-preview,
  .listing-detail-layout,
  .fair-housing-flyer,
  .footer-main {
    grid-template-columns: 1fr;
  }
  .quick-strip,
  .service-grid,
  .team-grid,
  .reviews-grid,
  .insight-row,
  .listing-card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .team-section .team-grid,
  section.team-grid { width: min(620px, 100%); }
  .search-card { max-width: 520px; }
}

@media (min-width: 921px) and (max-width: 1240px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
  }

  .brand-logo {
    width: clamp(190px, 21vw, 242px) !important;
  }

  .nav-links {
    justify-self: center;
    max-width: 100%;
    gap: 4px;
  }

  .nav-links a {
    padding: 8px 10px;
  }

  .header-phone {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    inset: 10px 10px auto;
    width: calc(100vw - 20px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    max-width: calc(100vw - 20px);
    padding: 8px;
  }
  .brand-logo {
    width: clamp(142px, 44vw, 182px) !important;
    height: 52px !important;
  }
  .header-actions {
    justify-self: end;
    min-width: 0;
    gap: 7px;
  }
  .header-phone { display: none; }
  .nav-cta { padding: 10px 12px; font-size: 13px; white-space: nowrap; }
  .brand span { display: none; }
  .hero { padding: 92px 14px 24px; }
  section:not(.hero) { width: min(100% - 28px, 1180px); margin-bottom: 64px; }
  .hero-content {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    gap: 22px;
  }
  .hero-copy,
  .hero-lede,
  .hero-copy h1 {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
  }
  .hero-copy h1 {
    font-size: 40px;
    line-height: 1.04;
  }
  .hero-lede {
    font-size: 17px;
  }
  .search-card {
    width: calc(100vw - 28px);
    max-width: none;
    padding: 15px;
  }
  .quick-strip,
  .service-grid,
  .team-grid,
  .reviews-grid,
  .insight-row,
  .listing-card-grid,
  .town-grid,
  .article-layout,
  .search-grid {
    grid-template-columns: 1fr;
  }
  .team-section .team-grid,
  section.team-grid {
    width: min(292px, 100%);
    gap: 14px;
  }
  .profile-card {
    border-radius: 16px;
  }
  .profile-card div { padding: 13px 14px 14px; }
  .profile-card h3 { font-size: 19px; }
  .profile-card p { font-size: 14px; }
  .listing-card { grid-template-columns: 1fr; }
  .listing-image { min-height: 210px; }
  .contact-section { padding: 24px; }
  .subpage { padding: 100px 14px 50px; }
  .page-hero { padding: 24px; }
  h1 { font-size: 42px; }
  .detail-page { padding: 100px 14px 50px; }
  .detail-hero { display: block; padding: 24px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 220px); }
  .gallery-main { grid-row: span 1; }
  .photo-rail a { flex-basis: 86vw; height: 260px; }
  .detail-stats { grid-template-columns: 1fr 1fr; }
  .listing-page { padding: 104px 0 54px; }
  .listing-topline,
  .listing-content-grid { grid-template-columns: 1fr; }
  .listing-topline .listing-price { text-align: left; }
  .listing-price-block { justify-items: start; }
  .listing-gallery-stage { min-height: 350px; }
  .listing-photo-open img { height: 62vw; min-height: 310px; }
  .listing-gallery-arrow { width: 70px; height: 118px; }
  .listing-gallery-arrow span { width: 28px; height: 28px; border-width: 7px; }
  .listing-highlights { grid-template-columns: 1fr; }
  .listing-detail-table div { grid-template-columns: 1fr; gap: 4px; }
  .listing-side-card { position: static; }
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }
  .credential-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer { width: min(100% - 28px, 1180px); padding: 24px; }
}

@media (max-width: 390px) {
  .brand-logo {
    width: clamp(128px, 40vw, 152px) !important;
  }

  .nav-cta {
    padding: 9px 11px;
    font-size: 12px;
  }
}

.refined-hero {
  min-height: 92vh;
  align-items: end;
  padding-bottom: 54px;
}

.refined-hero .hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 12, 18, 0.74), rgba(5, 12, 18, 0.24) 54%, rgba(5, 12, 18, 0.08)),
    linear-gradient(0deg, rgba(5, 12, 18, 0.6), rgba(5, 12, 18, 0.04) 46%);
}

.refined-hero-content {
  align-items: end;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  gap: 44px;
}

.hero-kicker {
  margin: 0 0 14px;
  color: #9fe3ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.refined-hero .hero-copy h1 {
  max-width: 760px;
  font-size: clamp(48px, 6.2vw, 76px);
  line-height: 0.96;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-actions.compact-actions {
  margin-top: 18px;
}

.refined-lead-card {
  max-width: 530px;
  padding: 25px;
  border-radius: 30px;
  background: rgba(255,255,255,0.94);
  scroll-margin-top: 140px;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.refined-lead-card .search-card-intro h2 {
  margin: 0;
  font-size: 28px;
}

.refined-lead-card .search-card-intro p {
  margin-bottom: 16px;
}

.refined-lead-card label {
  margin-bottom: 10px;
}

.refined-lead-card.form-attention {
  box-shadow:
    0 0 0 3px rgba(12, 130, 184, 0.22),
    0 26px 68px rgba(12, 130, 184, 0.22);
  transform: translateY(-3px);
}

.refined-proof {
  margin-top: -42px;
  position: relative;
  z-index: 4;
}

.refined-heading {
  align-items: end;
}

.refined-place-section,
.featured-home-section,
.refined-team,
.refined-reviews,
.refined-insights {
  margin-bottom: 84px;
}

.refined-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr);
  grid-template-rows: repeat(2, minmax(210px, 1fr));
  gap: 22px;
}

.media-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 26px;
  background: #dce2e5;
  box-shadow: 0 18px 44px rgba(19, 33, 43, 0.12);
}

.media-card.large {
  grid-row: span 2;
  min-height: 462px;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(0,0,0,0.58), transparent);
}

.media-card div {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
}

.media-card span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.media-card strong {
  display: block;
  font-size: 23px;
  line-height: 1.08;
}

.refined-paths article {
  min-height: 265px;
}

.featured-home-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(20, 20, 22, 0.1);
}

.featured-home-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.featured-home-card > div {
  padding: clamp(22px, 3vw, 36px);
}

.featured-home-card h3 {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1.06;
}

.listing-price {
  margin: 12px 0 18px;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 900;
}

.refined-areas {
  align-items: start;
}

.compact-team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.compact-reviews-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-insights {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 920px) {
  .refined-hero-content,
  .refined-media-grid,
  .featured-home-card {
    grid-template-columns: 1fr;
  }

  .media-card.large {
    min-height: 330px;
  }

  .compact-team-grid,
  .compact-reviews-grid,
  .compact-insights {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .refined-hero {
    min-height: auto;
    padding-bottom: 28px;
  }

  .refined-hero .hero-copy h1 {
    font-size: 39px;
  }

  .hero-actions {
    gap: 9px;
  }

  .hero-actions .inline-button {
    width: 100%;
    justify-content: center;
  }

  .refined-proof {
    margin-top: 0;
  }

  .refined-media-grid,
  .compact-team-grid,
  .compact-reviews-grid,
  .compact-insights {
    grid-template-columns: 1fr;
  }

  .featured-home-card img {
    min-height: 250px;
  }
}
