@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --estate-green: #91c440;
  --estate-light-gray: #adadad;
  --estate-medium-gray: #f6f6f6;
  --estate-dark-gray: #5b5b5f;
  --estate-white: #ffffff;
  --estate-black: #000000;
  --font-body: "Nunito Sans", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  --site-max: 1216px;
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 18px 46px rgba(91, 91, 95, 0.16);
  --border-soft: 1px solid rgba(91, 91, 95, 0.16);
  --speed-fast: 160ms;
  --speed-base: 260ms;
  --speed-slow: 520ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--estate-black);
  background: var(--estate-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

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

a:hover {
  color: var(--estate-dark-gray);
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
}

strong {
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid var(--estate-green);
  outline-offset: 4px;
}

::selection {
  color: var(--estate-black);
  background: var(--estate-green);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--estate-black);
  color: var(--estate-white);
  padding: 0.75rem 1rem;
  transition: transform var(--speed-fast) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 32px, var(--site-max));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 32px, 920px);
  margin-inline: auto;
}

.display-title,
.section-title,
.page-title,
.card-title,
.detail-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--estate-black);
}

.display-title {
  font-size: clamp(3.1rem, 8vw, 7rem);
}

.page-title {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.card-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--estate-dark-gray);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--estate-green);
}

.lead {
  color: var(--estate-dark-gray);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.72;
}

.small-copy {
  color: var(--estate-dark-gray);
  font-size: 0.9rem;
}

.brand-strip {
  background: var(--estate-dark-gray);
  color: var(--estate-white);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-strip__inner {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
}

.brand-strip__dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: var(--estate-green);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: var(--border-soft);
  backdrop-filter: blur(16px);
  transition: box-shadow var(--speed-base) var(--ease), transform var(--speed-base) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  min-height: 82px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  width: 210px;
  min-width: 180px;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.primary-nav a {
  position: relative;
  color: var(--estate-black);
  font-size: 0.93rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding-block: 0.4rem;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--estate-green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--speed-base) var(--ease);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn,
.button-link,
.form-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-weight: 900;
  line-height: 1;
  transition: transform var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease);
}

.btn:hover,
.button-link:hover,
.form-button:hover {
  transform: translateY(-2px);
}

.btn-primary,
.form-button {
  background: var(--estate-black);
  color: var(--estate-white);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover,
.form-button:hover {
  color: var(--estate-white);
  background: var(--estate-dark-gray);
}

.btn-secondary {
  color: var(--estate-black);
  background: var(--estate-medium-gray);
  border-color: rgba(91, 91, 95, 0.2);
}

.btn-secondary:hover {
  color: var(--estate-black);
  background: var(--estate-white);
  border-color: var(--estate-light-gray);
}

.btn-green {
  color: var(--estate-black);
  background: var(--estate-green);
}

.btn-green:hover {
  color: var(--estate-black);
  background: var(--estate-green);
  box-shadow: 0 14px 28px rgba(145, 196, 64, 0.34);
}

.icon-btn,
.nav-toggle {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: var(--border-soft);
  border-radius: 999px;
  background: var(--estate-white);
  color: var(--estate-black);
  transition: background var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease);
}

.icon-btn:hover,
.nav-toggle:hover {
  transform: translateY(-2px);
  background: var(--estate-medium-gray);
  border-color: var(--estate-light-gray);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--estate-black);
  transition: transform var(--speed-base) var(--ease), opacity var(--speed-base) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--estate-medium-gray);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  min-height: clamp(620px, 74vh, 760px);
  align-items: stretch;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  padding-right: clamp(1rem, 4vw, 4rem);
}

.hero__copy > * + * {
  margin-top: 1.55rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 12% 0 12% 22%;
  border-radius: 42px 0 0 42px;
  background: var(--estate-dark-gray);
}

.hero-photo-card {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  overflow: hidden;
  border: 12px solid var(--estate-white);
  border-radius: var(--radius-lg);
  background: var(--estate-white);
  box-shadow: var(--shadow-soft);
}

.hero-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.hero-photo-card:hover img {
  transform: scale(1.035);
}

.hero-stat {
  position: absolute;
  z-index: 2;
  right: min(4vw, 2rem);
  bottom: min(7vw, 4rem);
  width: min(270px, calc(100% - 40px));
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem;
  backdrop-filter: blur(18px);
}

.hero-stat__value {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-stat__label {
  color: var(--estate-dark-gray);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.filter-shell {
  position: relative;
  z-index: 10;
  margin-top: -42px;
}

.filter-panel {
  border: var(--border-soft);
  border-radius: 24px;
  background: var(--estate-white);
  box-shadow: var(--shadow-card);
  padding: clamp(1rem, 2.2vw, 1.35rem);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) minmax(140px, 0.7fr) minmax(160px, 0.8fr) auto auto;
  align-items: end;
  gap: 0.8rem;
}

.form-field {
  display: grid;
  gap: 0.36rem;
}

.form-label {
  color: var(--estate-dark-gray);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(91, 91, 95, 0.22);
  border-radius: 999px;
  background: var(--estate-medium-gray);
  color: var(--estate-black);
  padding: 0.74rem 1rem;
  transition: border-color var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease);
}

.textarea {
  min-height: 140px;
  resize: vertical;
  border-radius: 22px;
}

.input:hover,
.select:hover,
.textarea:hover,
.input:focus,
.select:focus,
.textarea:focus {
  background: var(--estate-white);
  border-color: var(--estate-light-gray);
  box-shadow: 0 0 0 4px rgba(145, 196, 64, 0.16);
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.advanced-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0.8rem;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--speed-slow) var(--ease), opacity var(--speed-base) var(--ease), padding-top var(--speed-slow) var(--ease);
}

.advanced-panel.is-open {
  max-height: 380px;
  opacity: 1;
  padding-top: 1rem;
}

.section {
  padding-block: clamp(4rem, 7vw, 7rem);
}

.section--tight {
  padding-block: clamp(2.8rem, 5vw, 4.5rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(240px, 0.52fr);
  gap: clamp(1.6rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.7rem);
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.result-count {
  color: var(--estate-dark-gray);
  font-size: 0.95rem;
  font-weight: 800;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.property-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: var(--border-soft);
  border-radius: 20px;
  background: var(--estate-white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: transform var(--speed-base) var(--ease), box-shadow var(--speed-base) var(--ease), border-color var(--speed-base) var(--ease);
}

.property-card:hover {
  transform: translateY(-7px);
  border-color: var(--estate-light-gray);
  box-shadow: var(--shadow-card);
}

.property-card__link {
  display: grid;
  color: inherit;
}

.property-card__media {
  position: relative;
  overflow: hidden;
  background: var(--estate-medium-gray);
}

.property-card__media img {
  width: 100%;
  aspect-ratio: 4 / 2.65;
  object-fit: cover;
  transition: transform 800ms var(--ease), filter 800ms var(--ease);
}

.property-card:hover .property-card__media img {
  transform: scale(1.05);
}

.status-ribbon {
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--estate-black);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0.48rem 0.72rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
}

.property-card__body {
  display: grid;
  gap: 0.7rem;
  padding: 1.05rem;
}

.card-kicker {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card-location {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--estate-black);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.pin {
  position: relative;
  display: inline-flex;
  width: 0.74rem;
  height: 0.74rem;
  flex: 0 0 auto;
  border: 2px solid var(--estate-green);
  border-radius: 999px 999px 999px 0;
  transform: rotate(-45deg);
}

.pin::after {
  content: "";
  position: absolute;
  inset: 0.18rem;
  border-radius: 999px;
  background: var(--estate-green);
}

.auction-line {
  color: var(--estate-green);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: right;
  line-height: 1.25;
}

.address-line {
  color: var(--estate-dark-gray);
  font-size: 0.88rem;
  font-weight: 800;
}

.card-description {
  color: var(--estate-dark-gray);
  font-size: 0.93rem;
  line-height: 1.48;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.25rem;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.mini-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--estate-dark-gray);
  color: var(--estate-white);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.bed-bath {
  white-space: nowrap;
  color: var(--estate-black);
  font-size: 0.9rem;
  font-weight: 900;
}

.empty-state {
  display: none;
  border: 1px dashed var(--estate-light-gray);
  border-radius: 24px;
  background: var(--estate-medium-gray);
  padding: 2rem;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.premium-band {
  background: var(--estate-dark-gray);
  color: var(--estate-white);
}

.premium-band .section-title,
.premium-band .lead,
.premium-band .small-copy {
  color: var(--estate-white);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.value-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1.35rem;
}

.value-card h3 {
  margin-bottom: 0.55rem;
  color: var(--estate-white);
  font-size: 1.05rem;
}

.value-card p {
  color: var(--estate-white);
  opacity: 0.88;
}

.page-hero {
  background: var(--estate-medium-gray);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.48fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  color: var(--estate-dark-gray);
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.breadcrumbs a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--estate-light-gray);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-card {
  border: var(--border-soft);
  border-radius: 18px;
  background: var(--estate-white);
  padding: 1.1rem;
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-card span {
  display: block;
  color: var(--estate-dark-gray);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  margin-top: 0.4rem;
  text-transform: uppercase;
}

.detail-main {
  padding-block: clamp(1.6rem, 4vw, 3rem) clamp(4rem, 7vw, 6rem);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--estate-medium-gray);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item--main img {
  min-height: 480px;
}

.gallery-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.gallery-stack .gallery-item img {
  min-height: 150px;
}

.detail-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding-block: 1.6rem;
}

.detail-title {
  font-size: clamp(2rem, 5vw, 4.6rem);
}

.detail-address {
  margin-top: 0.8rem;
  color: var(--estate-dark-gray);
  font-size: 1rem;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  border: 1px solid rgba(91, 91, 95, 0.2);
  border-radius: 999px;
  background: var(--estate-white);
  color: var(--estate-black);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.5rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-pill::before {
  content: "";
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 999px;
  background: var(--estate-green);
}

.property-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.fact {
  border: var(--border-soft);
  border-radius: 18px;
  background: var(--estate-white);
  padding: 1rem;
}

.fact strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
}

.fact span {
  display: block;
  color: var(--estate-dark-gray);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  margin-top: 0.45rem;
  text-transform: uppercase;
}

.detail-card,
.sidebar-card,
.content-card {
  border: var(--border-soft);
  border-radius: 24px;
  background: var(--estate-white);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}

.detail-card {
  overflow: hidden;
}

.sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 1rem;
}

.sidebar-card {
  padding: 1.2rem;
}

.sidebar-card h2,
.sidebar-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.sidebar-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.sidebar-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(91, 91, 95, 0.14);
  padding-top: 0.65rem;
  color: var(--estate-dark-gray);
  font-size: 0.92rem;
}

.sidebar-list strong {
  color: var(--estate-black);
  text-align: right;
}

.tabs {
  border-top: var(--border-soft);
}

.tab-list {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  border-bottom: var(--border-soft);
  background: var(--estate-medium-gray);
  padding: 0.65rem;
}

.tab-button {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--estate-dark-gray);
  font-weight: 900;
  padding: 0.72rem 1rem;
  transition: background var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease);
}

.tab-button[aria-selected="true"] {
  color: var(--estate-black);
  background: var(--estate-white);
  border-color: rgba(91, 91, 95, 0.14);
}

.tab-panel {
  display: none;
  padding: clamp(1rem, 3vw, 1.55rem);
}

.tab-panel.is-active {
  display: block;
  animation: panelIn var(--speed-base) var(--ease) both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.info-item {
  border-bottom: 1px solid rgba(91, 91, 95, 0.16);
  padding-bottom: 0.8rem;
}

.info-label {
  display: block;
  color: var(--estate-dark-gray);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.info-value {
  font-weight: 800;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.document-card {
  display: grid;
  gap: 0.55rem;
  border: var(--border-soft);
  border-radius: 18px;
  background: var(--estate-medium-gray);
  padding: 1rem;
  transition: transform var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease);
}

.document-card:hover {
  transform: translateY(-3px);
  background: var(--estate-white);
  border-color: var(--estate-light-gray);
}

.document-card strong {
  font-size: 0.95rem;
}

.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 320px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(91, 91, 95, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(91, 91, 95, 0.12) 1px, transparent 1px),
    var(--estate-medium-gray);
  background-size: 44px 44px;
  text-align: center;
}

.map-marker {
  display: inline-flex;
  width: 74px;
  height: 74px;
  align-items: center;
  justify-content: center;
  border-radius: 999px 999px 999px 0;
  background: var(--estate-green);
  transform: rotate(-45deg);
  box-shadow: 0 20px 42px rgba(145, 196, 64, 0.38);
}

.map-marker span {
  display: block;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: var(--estate-white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.process-card {
  position: relative;
  overflow: hidden;
  border: var(--border-soft);
  border-radius: 24px;
  background: var(--estate-white);
  padding: 1.35rem;
}

.process-card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  background: var(--estate-green);
  color: var(--estate-black);
  font-weight: 900;
  margin-bottom: 1rem;
}

.process-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.content-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.content-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

.content-card {
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
}

.content-card h2,
.content-card h3 {
  margin-bottom: 0.65rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.form-note {
  min-height: 24px;
  color: var(--estate-dark-gray);
  font-size: 0.92rem;
  font-weight: 800;
}

.form-note.is-success {
  color: var(--estate-black);
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: var(--border-soft);
  border-radius: 20px;
  background: var(--estate-white);
  overflow: hidden;
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  color: var(--estate-black);
  font-weight: 900;
  padding: 1rem 1.15rem;
  text-align: left;
}

.faq-question::after {
  content: "+";
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--estate-medium-gray);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
}

.faq-answer {
  display: none;
  color: var(--estate-dark-gray);
  padding: 0 1.15rem 1.15rem;
}

.faq-answer.is-open {
  display: block;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 0.35rem;
  border: var(--border-soft);
  border-radius: 22px;
  background: var(--estate-white);
  padding: 1rem;
}

.legal-nav a {
  border-radius: 999px;
  color: var(--estate-dark-gray);
  font-weight: 800;
  padding: 0.55rem 0.7rem;
}

.legal-nav a:hover {
  background: var(--estate-medium-gray);
  color: var(--estate-black);
}

.legal-content {
  display: grid;
  gap: 1rem;
}

.legal-section {
  scroll-margin-top: 130px;
  border: var(--border-soft);
  border-radius: 24px;
  background: var(--estate-white);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.legal-section h2 {
  margin-bottom: 0.7rem;
}

.footer {
  background: var(--estate-dark-gray);
  color: var(--estate-white);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(150px, 0.7fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-logo {
  width: 205px;
}

.footer p,
.footer a,
.footer li {
  color: var(--estate-white);
}

.footer p {
  opacity: 0.85;
  margin-top: 1rem;
  max-width: 410px;
}

.footer h2,
.footer h3 {
  color: var(--estate-white);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: 0.56rem;
  padding: 0;
  list-style: none;
}

.footer a {
  opacity: 0.82;
  transition: opacity var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease);
}

.footer a:hover {
  color: var(--estate-white);
  opacity: 1;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 2.5rem;
  padding-block: 1.2rem;
  color: var(--estate-white);
  font-size: 0.88rem;
}

.footer__bottom a {
  font-weight: 800;
}

.social-row {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--speed-slow) var(--ease), transform var(--speed-slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .brand-strip__inner {
    min-height: 38px;
    font-size: 0.78rem;
  }

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: 74px;
  }

  .brand-link {
    width: 184px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: var(--border-soft);
    border-radius: 22px;
    background: var(--estate-white);
    box-shadow: var(--shadow-card);
    padding: 0.75rem;
  }

  .primary-nav.is-open {
    display: flex;
    animation: panelIn var(--speed-base) var(--ease) both;
  }

  .primary-nav a {
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
  }

  .primary-nav a:hover,
  .primary-nav a[aria-current="page"] {
    background: var(--estate-medium-gray);
  }

  .primary-nav a::after {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .hero__inner,
  .page-hero__grid,
  .section-heading,
  .contact-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: 0;
  }

  .hero__copy {
    padding-right: 0;
  }

  .filter-shell {
    margin-top: -24px;
  }

  .filter-row,
  .advanced-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-actions {
    grid-column: 1 / -1;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-item--main img {
    min-height: 360px;
  }

  .detail-heading,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .property-facts,
  .document-grid,
  .content-grid-3,
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-nav {
    position: static;
  }
}

@media (max-width: 680px) {
  .container,
  .container-narrow {
    width: min(100% - 24px, var(--site-max));
  }

  .hero__visual {
    min-height: 330px;
  }

  .hero__visual::before {
    inset: 15% 0 12% 12%;
  }

  .hero-photo-card {
    border-width: 8px;
  }

  .hero-stat {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -2rem auto 0;
  }

  .filter-row,
  .advanced-panel,
  .cards-grid,
  .stat-row,
  .property-facts,
  .sidebar,
  .info-grid,
  .document-grid,
  .process-grid,
  .content-grid-2,
  .content-grid-3,
  .value-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .filter-actions,
  .results-toolbar,
  .footer__bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-actions .btn,
  .hero__actions .btn,
  .results-toolbar .select,
  .form-button {
    width: 100%;
  }

  .card-kicker,
  .card-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .auction-line {
    text-align: left;
  }

  .gallery-stack {
    grid-template-columns: 1fr;
  }

  .gallery-item--main img,
  .gallery-item img {
    min-height: 260px;
  }

  .detail-title {
    font-size: 2.55rem;
  }

  .tab-list {
    padding-bottom: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.content-stack {
  display: grid;
  gap: 1rem;
}

.section-heading--single {
  grid-template-columns: 1fr;
}

.section-heading--flush {
  margin-bottom: 0;
}

/* --- NEW CODE START ---
   Property detail MVP refinements: Hubzu-style gallery, section anchors,
   local info tabs, disclaimers, and accessible modal photo presentation.
--- NEW CODE END --- */
.site-header--detail .header-inner {
  min-height: 76px;
}

.detail-hero {
  background: var(--estate-white);
  border-bottom: var(--border-soft);
  padding-block: clamp(1rem, 2.8vw, 2rem) clamp(1.2rem, 3vw, 2rem);
}

.detail-breadcrumbs {
  margin-bottom: 1rem;
}

.detail-headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.44fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
  padding-top: clamp(1.2rem, 2.8vw, 2rem);
  padding-left: 12px; padding-right: 12px; padding-bottom: 12px; 
  margin-top: 15px;
}

.detail-headline .page-title {
  margin-top: 0.85rem;
  font-size: 50px;
}

.detail-headline__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: var(--border-soft);
  border-radius: 24px;
  background: var(--estate-medium-gray);
  overflow: hidden;
}

.detail-headline__stats div {
  padding: 1.05rem 0.9rem;
  text-align: center;
}

.detail-headline__stats div + div {
  border-left: var(--border-soft);
}

.detail-headline__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

.detail-headline__stats span {
  display: block;
  color: var(--estate-dark-gray);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-top: 0.45rem;
  text-transform: uppercase;
}

.detail-main--clean {
  background: var(--estate-white);
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.detail-content-stack {
  display: grid;
  gap: 1.1rem;
  min-width: 0;
}

.detail-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 1fr);
  gap: 0.75rem;
}

.gallery-main-button,
.gallery-thumb,
.gallery-modal__thumb {
  appearance: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: inherit;
}

.gallery-main-button {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: clamp(360px, 48vw, 600px);
  border-radius: 24px;
  background: var(--estate-medium-gray);
  padding: 0;
  box-shadow: var(--shadow-card);
}

.gallery-main-button img,
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 840ms var(--ease), filter var(--speed-base) var(--ease);
}

.gallery-main-button:hover img,
.gallery-main-button:focus-visible img,
.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
  transform: scale(1.035);
}

.gallery-main-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.42) 100%);
  pointer-events: none;
}

.gallery-main-actions {
  position: absolute;
  left: clamp(0.8rem, 2.4vw, 1.35rem);
  bottom: clamp(0.8rem, 2.4vw, 1.35rem);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gallery-main-actions span,
.gallery-main-counter,
.gallery-thumb__overlay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: var(--estate-white);
  color: var(--estate-black);
  font-size: 0.84rem;
  font-weight: 900;
  min-height: 36px;
  padding: 0.48rem 0.72rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.gallery-main-counter {
  position: absolute;
  right: clamp(0.8rem, 2.4vw, 1.35rem);
  bottom: clamp(0.8rem, 2.4vw, 1.35rem);
  z-index: 2;
}

.gallery-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  min-height: clamp(170px, 22vw, 294px);
  border: 2px solid transparent;
  border-radius: 22px;
  background: var(--estate-medium-gray);
  padding: 0;
  transition: border-color var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease);
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible,
.gallery-thumb.is-active {
  border-color: var(--estate-green);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
}

.gallery-thumb__overlay {
  position: absolute;
  inset: auto auto 1rem 1rem;
  z-index: 2;
  background: var(--estate-dark-gray);
  color: var(--estate-white);
}

.detail-anchor-nav {
  position: sticky;
  top: 96px;
  z-index: 30;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  border: var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 0.45rem;
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.detail-anchor-nav::-webkit-scrollbar {
  display: none;
}

.detail-anchor-nav a {
  flex: 0 0 auto;
  border-radius: 999px;
  color: var(--estate-dark-gray);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 0.62rem 0.88rem;
  transition: background var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease);
}

.detail-anchor-nav a:hover,
.detail-anchor-nav a[aria-current="true"] {
  background: var(--estate-green);
  color: var(--estate-black);
}

.detail-section {
  scroll-margin-top: 150px;
  border: var(--border-soft);
  border-radius: 24px;
  background: var(--estate-white);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.05);
  padding: clamp(1rem, 2.4vw, 1.55rem);
}

.section-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-lead {
  margin-bottom: 1rem;
}

.section-two-col {
  align-items: start;
}

.section-subtitle {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.detail-check-list,
.disclaimer-list {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.1rem;
}

.detail-check-list li,
.disclaimer-list li {
  color: var(--estate-dark-gray);
  padding-left: 0.25rem;
}

.detail-check-list li::marker,
.disclaimer-list li::marker {
  color: var(--estate-green);
}

.local-info-tabs {
  border: var(--border-soft);
  border-radius: 20px;
  overflow: hidden;
}

.local-tab-list {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  border-bottom: var(--border-soft);
  background: var(--estate-medium-gray);
  padding: 0.65rem;
}

.local-tab-button {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--estate-dark-gray);
  font-weight: 900;
  padding: 0.72rem 1rem;
  transition: background var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease);
}

.local-tab-button[aria-selected="true"] {
  color: var(--estate-black);
  background: var(--estate-white);
  border-color: rgba(91, 91, 95, 0.14);
}

.local-tab-panel {
  display: none;
  padding: clamp(0.85rem, 2vw, 1.2rem);
}

.local-tab-panel.is-active {
  display: block;
  animation: panelIn var(--speed-base) var(--ease) both;
}

.local-table-wrap {
  overflow-x: auto;
}

.local-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.local-table th,
.local-table td {
  border-bottom: 1px solid rgba(91, 91, 95, 0.16);
  padding: 0.92rem 1rem;
  vertical-align: middle;
}

.local-table tbody tr:nth-child(odd),
.local-table thead tr {
  background: var(--estate-medium-gray);
}

.local-table th {
  color: var(--estate-black);
  font-weight: 900;
  text-align: left;
}

.local-table td:last-child,
.local-table--history th:last-child,
.local-table--history td:last-child {
  text-align: right;
}

.local-source {
  border-top: 1px solid rgba(91, 91, 95, 0.16);
  color: var(--estate-dark-gray);
  font-size: 0.92rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
}

.map-info-grid {
  align-self: center;
}

.sidebar--property {
  top: 114px;
}

.sidebar-card--auction {
  padding: 1.35rem;
}

.sidebar-card--auction .status-pill {
  margin-bottom: 0.8rem;
}

.sidebar-card--auction h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.sidebar-actions {
  display: grid;
  gap: 0.7rem;
}

.text-link {
  display: inline-flex;
  color: var(--estate-black);
  font-weight: 900;
  margin-top: 0.85rem;
  text-decoration: underline;
  text-decoration-color: var(--estate-green);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.gallery-modal {
  width: min(100% - 28px, 1180px);
  max-width: none;
  height: min(100% - 28px, 900px);
  max-height: none;
  border: 0;
  border-radius: 28px;
  background: var(--estate-white);
  color: var(--estate-black);
  padding: 0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.gallery-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.gallery-modal__chrome {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
}

.gallery-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: var(--border-soft);
  padding: 1rem clamp(1rem, 2.4vw, 1.5rem);
}

.gallery-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.gallery-modal__close,
.gallery-modal__nav {
  border: var(--border-soft);
  background: var(--estate-white);
  color: var(--estate-black);
  font-weight: 900;
  transition: background var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease);
}

.gallery-modal__close {
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
}

.gallery-modal__close:hover,
.gallery-modal__nav:hover {
  background: var(--estate-green);
  transform: translateY(-1px);
}

.gallery-modal__stage {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  min-height: 0;
  background: var(--estate-medium-gray);
  padding: clamp(0.8rem, 2vw, 1.25rem);
}

.gallery-modal__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.7rem;
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.gallery-modal__figure img {
  width: 100%;
  height: min(62vh, 610px);
  border-radius: 22px;
  object-fit: contain;
  background: var(--estate-white);
}

.gallery-modal__figure figcaption {
  color: var(--estate-dark-gray);
  font-size: 0.94rem;
  font-weight: 800;
  text-align: center;
}

.gallery-modal__nav {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.gallery-modal__thumbs {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  border-top: var(--border-soft);
  padding: 0.9rem clamp(1rem, 2.4vw, 1.5rem);
}

.gallery-modal__thumb {
  flex: 0 0 112px;
  overflow: hidden;
  height: 76px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--estate-medium-gray);
  padding: 0;
  transition: border-color var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease);
}

.gallery-modal__thumb:hover,
.gallery-modal__thumb:focus-visible,
.gallery-modal__thumb.is-active {
  border-color: var(--estate-green);
  transform: translateY(-2px);
}

.gallery-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.has-modal {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .detail-gallery,
  .detail-headline {
    grid-template-columns: 1fr;
  }

  .gallery-main-button {
    min-height: 430px;
  }

  .detail-anchor-nav {
    top: 86px;
  }
}

@media (max-width: 760px) {
  .detail-gallery {
    gap: 0.65rem;
  }

  .gallery-main-button {
    min-height: 330px;
    border-radius: 20px;
  }

  .gallery-thumbs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .gallery-thumb {
    min-height: 132px;
    border-radius: 18px;
  }

  .gallery-main-actions {
    display: none;
  }

  .gallery-main-counter {
    left: 0.8rem;
    right: auto;
  }

  .detail-headline__stats,
  .section-panel__header {
    grid-template-columns: 1fr;
  }

  .section-panel__header {
    display: grid;
  }

  .section-panel__header .btn {
    width: 100%;
  }

  .detail-anchor-nav {
    top: 80px;
    border-radius: 18px;
  }

  .gallery-modal {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .gallery-modal__topbar {
    align-items: flex-start;
  }

  .gallery-modal__stage {
    grid-template-columns: 1fr;
  }

  .gallery-modal__nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
  }

  .gallery-modal__nav:hover {
    transform: translateY(calc(-50% - 1px));
  }

  .gallery-modal__nav--prev {
    left: 0.75rem;
  }

  .gallery-modal__nav--next {
    right: 0.75rem;
  }

  .gallery-modal__figure img {
    height: min(58vh, 560px);
  }

  .gallery-modal__thumb {
    flex-basis: 94px;
    height: 64px;
  }
}

@media (max-width: 520px) {
  .detail-headline__stats {
    grid-template-columns: 1fr;
  }

  .detail-headline__stats div + div {
    border-left: 0;
    border-top: var(--border-soft);
  }

  .gallery-thumbs-grid {
    grid-template-columns: 1fr;
  }

  .gallery-thumb {
    min-height: 168px;
  }

  .local-table {
    min-width: 460px;
  }
}

/* 2026 refinement: buyer access modal, lower-price inventory polish, and document actions */
.document-card--button {
  appearance: none;
  background: var(--white);
  border: 1px solid rgba(91, 91, 95, 0.18);
  color: var(--black);
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
}

.document-card--button:hover,
.document-card--button:focus-visible {
  border-color: var(--green);
  box-shadow: 0 18px 44px rgba(91, 91, 95, 0.12);
  transform: translateY(-2px);
}

.access-modal {
  border: 0;
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.22);
  inline-size: min(920px, calc(100vw - 32px));
  max-block-size: min(90vh, 980px);
  padding: 0;
}

.access-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.access-modal__panel {
  background: var(--white);
  color: var(--black);
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 44px);
  position: relative;
}

.access-modal__close {
  align-items: center;
  background: var(--medium-gray);
  border: 1px solid rgba(91, 91, 95, 0.14);
  border-radius: 999px;
  color: var(--black);
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 18px;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
  width: 44px;
}

.access-modal__close:hover,
.access-modal__close:focus-visible {
  background: var(--white);
  border-color: var(--green);
  transform: rotate(8deg) scale(1.04);
}

.access-modal__header {
  padding-right: 54px;
}

.access-modal__property {
  align-items: center;
  background: var(--medium-gray);
  border: 1px solid rgba(91, 91, 95, 0.12);
  border-radius: 22px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
}

.access-modal__property strong,
.access-modal__property span {
  display: block;
}

.access-modal__property strong {
  font-size: 1rem;
}

.access-modal__property span {
  color: var(--dark-gray);
  font-size: 0.93rem;
}

.access-form {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.access-form__wide {
  grid-column: 1 / -1;
}

.access-form__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.check-row {
  align-items: flex-start;
  color: var(--dark-gray);
  display: flex;
  gap: 12px;
  line-height: 1.55;
}

.check-row input {
  accent-color: var(--green);
  margin-top: 4px;
}

.site-header--detail {
  border-bottom: 1px solid rgba(91, 91, 95, 0.12);
  box-shadow: 0 10px 32px rgba(91, 91, 95, 0.06);
}

.detail-headline {
  border: 1px solid rgba(91, 91, 95, 0.12);
  box-shadow: 0 18px 54px rgba(91, 91, 95, 0.08);
}

@media (max-width: 720px) {
  .access-form {
    grid-template-columns: 1fr;
  }

  .access-modal__property {
    align-items: flex-start;
    flex-direction: column;
  }
}

button.btn {
  cursor: pointer;
  font: inherit;
}

/* --- V4 POLISH START --- */
.card-price {
  color: var(--estate-black);
  font-size: 0.9rem;
  font-weight: 900;
}

.value-card {
  border: var(--border-soft);
  background: var(--estate-white);
  color: var(--estate-black);
}

.value-card h3 {
  color: var(--estate-black);
}

.value-card p {
  color: var(--estate-dark-gray);
  opacity: 1;
}

.premium-band .value-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.premium-band .value-card h3,
.premium-band .value-card p {
  color: var(--estate-white);
}

.premium-band .value-card p {
  opacity: 0.88;
}

.contact-intro-stack {
  display: grid;
  gap: 1.35rem;
}

.contact-photo-card {
  overflow: hidden;
  border: var(--border-soft);
  border-radius: 28px;
  background: var(--estate-white);
  box-shadow: 0 18px 54px rgba(91, 91, 95, 0.08);
}

.contact-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 2.6;
  object-fit: cover;
}

.contact-photo-card figcaption {
  color: var(--estate-dark-gray);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 1rem 1.1rem;
}

.cta-panel {
  border: var(--border-soft);
  border-radius: 32px;
  background: var(--estate-white);
  box-shadow: 0 18px 54px rgba(91, 91, 95, 0.08);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.cta-panel > * + * {
  margin-top: 1rem;
}

.support-cta-section {
  background: var(--estate-medium-gray);
}

.cta-panel--light .section-title,
.cta-panel--light .lead {
  color: var(--estate-black);
}

.cta-panel--light .lead {
  max-width: 780px;
  color: var(--estate-dark-gray);
}

.text-link--button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.text-link--button:hover {
  color: var(--estate-dark-gray);
}

.access-modal__property {
  background: var(--estate-medium-gray);
}

.access-modal__property span,
.check-row {
  color: var(--estate-dark-gray);
}

.check-row input {
  accent-color: var(--estate-green);
}
/* --- V4 POLISH END --- */

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

@media (max-width: 680px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

:root {
  --green: var(--estate-green);
  --medium-gray: var(--estate-medium-gray);
  --dark-gray: var(--estate-dark-gray);
}

/* --- V5 COMPLETION START --- */
:root {
  --green: var(--estate-green);
  --medium-gray: var(--estate-medium-gray);
  --dark-gray: var(--estate-dark-gray);
  --white: var(--estate-white);
  --black: var(--estate-black);
}

.section--soft {
  background: var(--estate-medium-gray);
}

.support-path-grid,
.assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

.support-path-card,
.assurance-card {
  position: relative;
  overflow: hidden;
  border: var(--border-soft);
  border-radius: 26px;
  background: var(--estate-white);
  color: var(--estate-black);
  box-shadow: 0 16px 48px rgba(91, 91, 95, 0.08);
  padding: clamp(1.25rem, 2.2vw, 1.7rem);
}

.support-path-card::before,
.assurance-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: var(--estate-green);
  margin-bottom: 1rem;
}

.support-path-card h3,
.assurance-card h3 {
  color: var(--estate-black);
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}

.support-path-card p,
.assurance-card p {
  color: var(--estate-dark-gray);
}

.support-path-card .text-link,
.assurance-card .text-link {
  color: var(--estate-black);
}

.support-page .section-heading .lead,
.support-page .section-title,
.support-page .support-path-card,
.support-page .support-path-card h3,
.support-page .support-path-card p {
  opacity: 1;
  visibility: visible;
}

.support-cta-section {
  background: var(--estate-white);
  border-top: var(--border-soft);
}

.support-cta-section .cta-panel {
  background: var(--estate-medium-gray);
  border-color: rgba(91, 91, 95, 0.14);
  box-shadow: none;
}

.support-cta-section .section-title,
.support-cta-section .lead {
  color: var(--estate-black);
}

.support-cta-section .lead {
  color: var(--estate-dark-gray);
}

.about-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: stretch;
}

.about-proof-panel {
  display: grid;
  align-content: center;
  border-radius: 30px;
  background: var(--estate-dark-gray);
  color: var(--estate-white);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.about-proof-panel .section-title,
.about-proof-panel .lead,
.about-proof-panel .eyebrow {
  color: var(--estate-white);
}

.about-proof-list {
  display: grid;
  gap: 1rem;
}

.about-proof-item {
  border: var(--border-soft);
  border-radius: 24px;
  background: var(--estate-white);
  padding: clamp(1.15rem, 2vw, 1.55rem);
}

.about-proof-item h3 {
  margin-bottom: 0.5rem;
}

@media (max-width: 920px) {
  .support-path-grid,
  .assurance-grid,
  .about-proof-grid {
    grid-template-columns: 1fr;
  }
}
/* --- V5 COMPLETION END --- */

/* =====================================================================
   --- V6 PREMIUM REFRESH ---
   - Explicit color treatments for headings/leads (kills white-on-white).
   - New dark CTA band that visually separates from the gray footer.
   - About-page restructured layout (spotlight, principles, process, why).
   - Contact-page trust list and grid layout.
   - Homepage trust grid before footer.
   - All new components written to be self-contained with explicit colors
     so they cannot be silently overridden by base rules.
   ===================================================================== */

/* ---------- Heading replacements with hard-set colors ---------- */
.support-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(240px, 0.52fr);
  gap: clamp(1.6rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 3.7rem);
}

.support-section-heading > div {
  display: grid;
  gap: 0.8rem;
}

.support-heading-title {
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  margin: 0;
}

.support-heading-title--block {
  display: block;
  margin-bottom: 1rem;
}

.support-heading-lead {
  color: #4a4a50;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
  margin: 0;
}

.support-helper-copy {
  color: #5b5b5f;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: 1rem;
}

@media (max-width: 920px) {
  .support-section-heading {
    grid-template-columns: 1fr;
  }
}

/* Force the section--soft and white sections to have correct text color
   so nothing (including past .support-page rule) can break legibility. */
.support-page .support-section-heading .support-heading-title,
.support-page .support-section-heading .eyebrow,
.support-page .support-heading-title,
.support-page .support-heading-lead {
  color: #0a0a0a;
  opacity: 1;
  visibility: visible;
}

.support-page .support-section-heading .eyebrow {
  color: #5b5b5f;
}

.support-page .support-heading-lead {
  color: #4a4a50;
}

.support-page .support-path-card,
.support-page .support-path-card h3,
.support-page .support-path-card p,
.support-page .assurance-card,
.support-page .assurance-card h3,
.support-page .assurance-card p {
  opacity: 1;
  visibility: visible;
}

/* Lock the support path/assurance card colors so they always read */
.support-path-card,
.assurance-card {
  background: #ffffff;
  color: #0a0a0a;
}

.support-path-card h3,
.assurance-card h3 {
  color: #0a0a0a;
}

.support-path-card p,
.assurance-card p {
  color: #4a4a50;
}

/* ---------- Support paths grid: allow 3 across on wide screens ---------- */
.support-path-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .support-path-grid,
  .assurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .support-path-grid,
  .assurance-grid {
    grid-template-columns: 1fr;
  }
}

.support-paths-section {
  background: #ffffff;
}

/* ---------- Faq layout intro ---------- */
.faq-intro {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

/* =====================================================================
   DARK CTA BAND — clearly separates from the gray footer below.
   Used on home, support, contact, about.
   ===================================================================== */
.support-cta-band,
.about-cta-band {
  background: #ffffff;
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2.4rem, 5vw, 4rem);
}

.support-cta-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  background: #0a0a0a;
  color: #ffffff;
  border-radius: 30px;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.support-cta-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--estate-green) 0%, #b9e065 100%);
}

.support-cta-card__copy {
  display: grid;
  gap: 0.85rem;
}

.support-cta-card__title {
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}

.support-cta-card__lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  max-width: 56ch;
  margin: 0;
}

.support-cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.eyebrow--on-dark {
  color: rgba(255, 255, 255, 0.78) !important;
}

.eyebrow--on-dark::before {
  background: var(--estate-green);
}

.btn-on-dark {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

@media (max-width: 920px) {
  .support-cta-card {
    grid-template-columns: 1fr;
  }
  .support-cta-card__actions {
    justify-content: flex-start;
  }
}

/* Neutralize the older support-cta-section rule from earlier passes
   so it doesn't interfere with the new dark band layout. */
.support-cta-section { background: #ffffff; }
.support-cta-section .cta-panel { background: transparent; box-shadow: none; }

/* =====================================================================
   ABOUT PAGE — Spotlight, audiences, principles, process, why
   ===================================================================== */
.about-spotlight-section { background: #ffffff; }

.about-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.about-spotlight__photo {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(91, 91, 95, 0.14);
  box-shadow: 0 24px 64px rgba(91, 91, 95, 0.12);
  background: #ffffff;
}

.about-spotlight__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
}

.about-spotlight__photo figcaption {
  color: #4a4a50;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(91, 91, 95, 0.1);
}

.about-spotlight__copy {
  display: grid;
  gap: 1.1rem;
}

.about-spotlight__list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: grid;
  gap: 0.85rem;
}

.about-spotlight__list li {
  position: relative;
  padding: 0.95rem 1.1rem 0.95rem 2.6rem;
  background: #f9f9f7;
  border: 1px solid rgba(91, 91, 95, 0.1);
  border-radius: 16px;
  color: #2a2a2c;
  font-size: 0.98rem;
  line-height: 1.6;
}

.about-spotlight__list li::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 1.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--estate-green);
  box-shadow: 0 0 0 4px rgba(145, 196, 64, 0.18);
}

.about-spotlight__list strong { color: #0a0a0a; }

@media (max-width: 920px) {
  .about-spotlight { grid-template-columns: 1fr; }
}

/* Audience cards */
.about-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

.about-audience-card {
  background: #ffffff;
  border: 1px solid rgba(91, 91, 95, 0.12);
  border-radius: 24px;
  padding: clamp(1.3rem, 2.4vw, 1.8rem);
  box-shadow: 0 16px 48px rgba(91, 91, 95, 0.08);
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.about-audience-card__tag {
  display: inline-flex;
  align-self: start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: rgba(145, 196, 64, 0.18);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}

.about-audience-card h3 {
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.1rem 0 0;
}

.about-audience-card p {
  color: #4a4a50;
  margin: 0;
}

@media (max-width: 920px) {
  .about-audience-grid { grid-template-columns: 1fr; }
}

/* Principles */
.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.25rem);
}

.about-principle-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(91, 91, 95, 0.1);
  border-radius: 22px;
  padding: clamp(1.2rem, 2vw, 1.6rem);
  box-shadow: 0 14px 40px rgba(91, 91, 95, 0.06);
  display: grid;
  gap: 0.55rem;
}

.about-principle-card__num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--estate-green);
  font-weight: 700;
}

.about-principle-card h3 {
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.18rem;
  letter-spacing: -0.018em;
  margin: 0;
}

.about-principle-card p {
  color: #4a4a50;
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1080px) {
  .about-principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .about-principles-grid { grid-template-columns: 1fr; }
}

/* Process list */
.about-process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.25rem);
  counter-reset: about-step;
}

.about-process-item {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(91, 91, 95, 0.12);
  border-radius: 22px;
  padding: clamp(1.2rem, 2vw, 1.7rem);
  box-shadow: 0 14px 40px rgba(91, 91, 95, 0.06);
  display: grid;
  gap: 0.55rem;
}

.about-process-item__step {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: rgba(145, 196, 64, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  align-self: start;
}

.about-process-item h3 {
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.018em;
  margin: 0.15rem 0 0;
}

.about-process-item p {
  color: #4a4a50;
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1080px) {
  .about-process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .about-process-list { grid-template-columns: 1fr; }
}

/* Why */
.about-why-section { background: #ffffff; }

.about-why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.3rem);
}

.about-why-card {
  background: #ffffff;
  border: 1px solid rgba(91, 91, 95, 0.12);
  border-radius: 22px;
  padding: clamp(1.3rem, 2.4vw, 1.8rem);
  box-shadow: 0 14px 40px rgba(91, 91, 95, 0.06);
}

.about-why-card h3 {
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: -0.018em;
  margin: 0 0 0.4rem;
}

.about-why-card p {
  color: #4a4a50;
  margin: 0;
}

@media (max-width: 720px) {
  .about-why-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   CONTACT PAGE
   ===================================================================== */
.contact-form-section { background: #ffffff; }

.contact-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

@media (max-width: 920px) {
  .contact-layout-grid { grid-template-columns: 1fr; }
}

.contact-photo-card {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(91, 91, 95, 0.12);
  background: #ffffff;
  box-shadow: 0 18px 54px rgba(91, 91, 95, 0.08);
}

.contact-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3.2;
  object-fit: cover;
}

.contact-photo-card figcaption {
  color: #4a4a50;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.95rem 1.1rem;
  border-top: 1px solid rgba(91, 91, 95, 0.1);
}

.contact-trust-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.contact-trust-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #f9f9f7;
  border: 1px solid rgba(91, 91, 95, 0.1);
  border-radius: 16px;
}

.contact-trust-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #0a0a0a;
  color: var(--estate-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.contact-trust-item strong {
  display: block;
  color: #0a0a0a;
  font-size: 0.97rem;
  margin-bottom: 0.1rem;
}

.contact-trust-item span {
  color: #4a4a50;
  font-size: 0.88rem;
}

/* =====================================================================
   HOME — Trust grid block before footer
   ===================================================================== */
.home-trust-section { background: var(--estate-medium-gray); }

.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.3rem);
}

.home-trust-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(91, 91, 95, 0.1);
  border-radius: 22px;
  padding: clamp(1.2rem, 2.2vw, 1.7rem);
  box-shadow: 0 14px 40px rgba(91, 91, 95, 0.06);
  display: grid;
  gap: 0.55rem;
}

.home-trust-card__num {
  font-family: var(--font-display);
  color: var(--estate-green);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-trust-card h3 {
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.18rem;
  letter-spacing: -0.018em;
  margin: 0;
}

.home-trust-card p {
  color: #4a4a50;
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1080px) {
  .home-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .home-trust-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   PREMIUM BAND — adjust to use new heading classes
   ===================================================================== */
.premium-band .support-section-heading .support-heading-title,
.premium-band .support-section-heading .support-heading-lead,
.premium-band .support-section-heading .eyebrow {
  color: #ffffff;
}

.premium-band .support-section-heading .eyebrow::before {
  background: var(--estate-green);
}

.premium-band .support-heading-lead {
  color: rgba(255, 255, 255, 0.85);
}

/* =====================================================================
   Defensive override: kill any inherited opacity from older .reveal rules
   on critical headings that should always be visible (above-the-fold).
   ===================================================================== */
.support-section-heading,
.support-heading-title,
.support-heading-lead {
  opacity: 1 !important;
  visibility: visible !important;
}

/* --- V6 PREMIUM REFRESH END --- */

/* =====================================================================
   --- V6 RESPONSIVE COMPLETION ---
   Comprehensive mobile/tablet polish across every page.
   Appended last so it overrides earlier rules where needed.
   ===================================================================== */

/* Site-wide overflow guard */
html, body { overflow-x: clip; }

img, video, svg { max-width: 100%; height: auto; }

/* Container gutters tighter on small screens */
@media (max-width: 720px) {
  .container,
  .container-narrow { padding-inline: 18px; }
  .section,
  section { padding-block: clamp(2.4rem, 7vw, 3.6rem); }
}
@media (max-width: 480px) {
  .container,
  .container-narrow { padding-inline: 14px; }
}

/* Brand strip — hide on narrow phones to reclaim vertical space */
@media (max-width: 560px) {
  .brand-strip { display: none; }
}

/* Header tighter on tiny screens */
@media (max-width: 480px) {
  .header-inner { min-height: 64px; }
  .brand-link { width: 158px; }
  .nav-toggle { width: 42px; height: 42px; }
}

/* Hero — keep title from blowing out on phones */
@media (max-width: 720px) {
  .hero { padding-bottom: clamp(1.4rem, 4vw, 2.2rem); }
  .hero h1,
  .hero__title { font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.05; }
  .hero .lead,
  .hero__lead { font-size: 1rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { min-height: 280px; }
  .hero-stat { margin: -1.4rem auto 0; padding: 1.05rem 1.15rem; }
}

/* Page heroes (about / support / contact) */
@media (max-width: 720px) {
  .page-hero { padding-block: clamp(2.5rem, 8vw, 4rem); }
  .page-hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.05; }
}

/* Section title scaling on mobile */
@media (max-width: 560px) {
  .support-heading-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .section-title { font-size: clamp(1.8rem, 7vw, 2.4rem); line-height: 1.05; }
  .lead { font-size: 1rem; }
}

/* Filter shell — compact at tablet, single col on small phones */
@media (max-width: 920px) {
  .filter-shell { padding: clamp(1rem, 3vw, 1.4rem); border-radius: 22px; }
}
@media (max-width: 560px) {
  .filter-row,
  .advanced-panel { grid-template-columns: 1fr; gap: 0.75rem; }
  .filter-actions { flex-direction: column; gap: 0.6rem; }
  .filter-actions .btn { width: 100%; }
  .filter-shell { margin-top: -16px; }
  .toggle-advanced { width: 100%; justify-content: center; }
}

/* Results toolbar stacks on phones */
@media (max-width: 720px) {
  .results-toolbar { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .results-toolbar .select { width: 100%; }
}

/* Cards — proper 2-col tablet step before single col */
@media (max-width: 920px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}
@media (max-width: 620px) {
  .cards-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .property-card { border-radius: 22px; }
  .property-card__media { aspect-ratio: 4 / 2.6; }
}

/* Footer — 2-col tablet step, then 1-col phone */
@media (max-width: 920px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
  }
}

/* Property detail — headline & gallery on mobile */
@media (max-width: 720px) {
  .detail-title { font-size: clamp(1.8rem, 7vw, 2.4rem); line-height: 1.05; }
  .detail-meta { font-size: 0.9rem; }
  .detail-headline { padding: clamp(1.1rem, 3vw, 1.6rem); border-radius: 22px; }
  .gallery-main-button { min-height: 240px; border-radius: 18px; }
}

/* Detail anchor nav — horizontal scroll instead of wrap */
@media (max-width: 720px) {
  .detail-anchor-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .detail-anchor-nav::-webkit-scrollbar { display: none; }
  .detail-anchor-nav__list,
  .detail-anchor-nav ul {
    flex-wrap: nowrap !important;
    white-space: nowrap;
  }
  .detail-anchor-nav a {
    flex-shrink: 0;
    font-size: 0.85rem;
  }
}

/* Property detail tables — scroll container on small */
@media (max-width: 720px) {
  .local-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-inline: -18px;
    padding-inline: 18px;
  }
  .local-table { font-size: 0.88rem; }
}

/* Access modal — full screen on small phones */
@media (max-width: 560px) {
  .access-modal {
    inline-size: 100%;
    max-block-size: 100%;
    height: 100%;
    border-radius: 0;
    margin: 0;
  }
  .access-modal__panel { padding: 22px 18px 28px; gap: 18px; }
  .access-modal__close {
    height: 38px; width: 38px;
    right: 12px; top: 12px;
    font-size: 24px;
  }
  .access-modal__header { padding-right: 46px; }
  .access-form__actions { flex-direction: column; align-items: stretch; }
  .access-form__actions .btn { width: 100%; }
}

/* About spotlight image — kill the portrait-tall on mobile */
@media (max-width: 920px) {
  .about-spotlight__photo img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .about-spotlight__photo img { aspect-ratio: 4 / 2.8; }
}

/* Contact photo + trust list on small */
@media (max-width: 560px) {
  .contact-photo-card img { aspect-ratio: 4 / 2.6; }
  .contact-trust-item {
    grid-template-columns: 40px 1fr;
    gap: 0.7rem;
    padding: 0.75rem 0.85rem;
  }
  .contact-trust-item__icon { width: 34px; height: 34px; font-size: 0.7rem; }
}

/* Home trust grid — fix the 621–760 awkward zone */
@media (max-width: 760px) {
  .home-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .home-trust-grid { grid-template-columns: 1fr; }
}

/* Support CTA card — stack actions full width on phones */
@media (max-width: 560px) {
  .support-cta-card { padding: 1.6rem 1.3rem 1.8rem; border-radius: 24px; }
  .support-cta-card__actions { flex-direction: column; align-items: stretch; }
  .support-cta-card__actions .btn { width: 100%; }
  .about-cta-band .support-cta-card { padding: 1.6rem 1.3rem 1.8rem; }
}

/* FAQ list */
@media (max-width: 560px) {
  .faq-list { gap: 0.65rem; }
  .faq-item summary { font-size: 1rem; }
}

/* Buttons shrink on tiny screens */
@media (max-width: 380px) {
  .btn { padding: 0.85rem 1.1rem; font-size: 0.9rem; }
  .btn-pill { font-size: 0.85rem; }
}

/* --- V6 RESPONSIVE COMPLETION END --- */

/* =====================================================================
   --- V6 RESPONSIVE COMPLETION PATCH 2 ---
   Kills horizontal overflow on property detail page.
   ===================================================================== */

/* Force every layout container on the detail page to respect viewport */
.detail-main,
.detail-layout,
.detail-content-stack,
.detail-section,
.detail-headline,
.section-panel__header,
.section-panel__header > div,
.property-facts,
.info-grid,
.document-grid,
.content-grid-2 {
  min-width: 0;
  max-width: 100%;
}

/* Section panel header — stack EARLY (920px) so the action button
   never forces the row wider than the section. */
@media (max-width: 920px) {
  .section-panel__header {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }
  .section-panel__header > div {
    min-width: 0;
  }
  .section-panel__header .btn {
    width: 100%;
    justify-self: stretch;
    min-width: 0;
    white-space: normal;
  }
}

/* All buttons inside detail sections must shrink, not push */
.detail-section .btn,
.detail-headline .btn {
  min-width: 0;
  max-width: 100%;
}

/* Long words / URLs in body copy can no longer push the panel wider */
.detail-section p,
.detail-section .lead,
.detail-section li,
.detail-headline p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Property facts: kill any chance of grid items being wider than parent */
.property-facts .fact,
.info-grid > *,
.document-grid > * {
  min-width: 0;
  max-width: 100%;
}

/* Detail headline stats: ensure single column children fit viewport */
@media (max-width: 920px) {
  .detail-headline__stats {
    grid-template-columns: 1fr !important;
  }
  .detail-headline__stats div + div {
    border-left: 0 !important;
    border-top: 1px solid rgba(91, 91, 95, 0.12);
  }
}

/* Defensive: anything inside .container can never exceed it */
.container > *,
.container-narrow > * {
  max-width: 100%;
}

/* Box-sizing safety on any layout primitive that might be missing it */
.detail-section,
.detail-headline,
.section-panel__header,
.detail-anchor-nav,
.filter-shell,
.property-card {
  box-sizing: border-box;
}

/* --- V6 RESPONSIVE COMPLETION PATCH 2 END --- */

/* =====================================================================
   --- V6 RESPONSIVE COMPLETION PATCH 3 ---
   1. Mobile gallery: horizontal swipe carousel, tap-to-open modal.
   2. Final responsive sweep across every page.
   ===================================================================== */

/* ---------------------------------------------------------------------
   MOBILE GALLERY CAROUSEL (≤720px)
   Promotes the 4 thumbnails to flex siblings of the main image and
   makes the whole row a horizontal scroll-snap carousel. Tapping any
   slide still triggers data-gallery-open, opening the modal at that
   index. No JS changes required.
   --------------------------------------------------------------------- */
@media (max-width: 720px) {
  .detail-gallery {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 0 18px 6px;
    margin-inline: -18px;
    scrollbar-width: none;
  }
  .detail-gallery::-webkit-scrollbar { display: none; }

  /* Lift the 4 thumb children up so they become flex siblings of main */
  .gallery-thumbs-grid {
    display: contents !important;
  }

  /* Every slide takes ~92% viewport, leaving an obvious peek of the next */
  .gallery-main-button,
  .gallery-thumb {
    flex: 0 0 calc(100% - 36px) !important;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-height: 300px !important;
    border-radius: 20px !important;
    overflow: hidden;
    margin: 0;
    position: relative;
  }

  .gallery-main-button {
    min-height: 320px !important;
  }

  .gallery-main-button img,
  .gallery-main-image,
  .gallery-thumb img {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: cover;
    display: block;
  }

  /* Hide desktop-only "Gallery / Map View / Street View" pills */
  .gallery-main-actions { display: none !important; }

  /* Reposition the "Photo 1 of N" pill bottom-left, dark capsule */
  .gallery-main-counter {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: auto;
    top: auto;
    font-size: 0.78rem;
    padding: 0.5rem 0.85rem;
    background: rgba(10, 10, 10, 0.72);
    color: #fff;
    border-radius: 999px;
    border: 0;
  }

  .gallery-thumb__overlay {
    font-size: 0.95rem;
  }
}

/* ---------------------------------------------------------------------
   PROPERTY DETAIL — overflow safety net
   --------------------------------------------------------------------- */
@media (max-width: 720px) {
  .detail-headline,
  .detail-headline > *,
  .detail-section,
  .section-panel__header,
  .section-panel__header * {
    min-width: 0;
    max-width: 100%;
  }

  .detail-section *,
  .detail-headline * {
    overflow-wrap: anywhere;
  }

  /* Single column for every secondary grid */
  .info-grid,
  .document-grid,
  .content-grid-2,
  .content-grid-3 {
    grid-template-columns: 1fr !important;
  }

  /* Anchor nav uses the same negative-margin container trick */
  .detail-anchor-nav {
    margin-inline: -18px;
    padding-inline: 18px;
  }
}

/* ---------------------------------------------------------------------
   HERO — final mobile polish
   --------------------------------------------------------------------- */
@media (max-width: 560px) {
  .hero {
    padding-top: clamp(1.5rem, 6vw, 2.5rem);
  }
  .hero__inner { gap: 1.2rem; }
  .hero__visual { min-height: 240px; }
  .hero-photo-card { border-width: 6px; }
}

/* ---------------------------------------------------------------------
   ACCESS MODAL — final mobile pass
   --------------------------------------------------------------------- */
@media (max-width: 560px) {
  .access-modal {
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
  }
  .access-form .form-field { min-width: 0; }
  .access-form input,
  .access-form select,
  .access-form textarea {
    width: 100%;
    max-width: 100%;
  }
}

/* ---------------------------------------------------------------------
   LISTING CARDS — tighten on small phones
   --------------------------------------------------------------------- */
@media (max-width: 560px) {
  .property-card__body { padding: 1rem 1.05rem 1.1rem; }
  .property-card .card-title,
  .property-card h3 { font-size: 1.05rem; line-height: 1.2; }
  .property-card .card-meta { font-size: 0.88rem; }
}

/* ---------------------------------------------------------------------
   ABOUT / CONTACT / SUPPORT — tighten section padding on phones
   --------------------------------------------------------------------- */
@media (max-width: 560px) {
  .about-spotlight__copy,
  .contact-photo-card,
  .contact-trust-list,
  .support-cta-card,
  .home-trust-card,
  .about-audience-card,
  .about-principle-card,
  .about-process-item,
  .about-why-card {
    min-width: 0;
    max-width: 100%;
  }

  .about-spotlight__list li {
    padding: 0.85rem 1rem 0.85rem 2.4rem;
    font-size: 0.95rem;
  }

  .home-trust-card,
  .about-audience-card,
  .about-principle-card,
  .about-process-item,
  .about-why-card {
    padding: 1.1rem 1.15rem 1.2rem;
    border-radius: 18px;
  }
}

/* ---------------------------------------------------------------------
   STRICT VIEWPORT GUARD — last line of defense
   --------------------------------------------------------------------- */
body, main, section, article {
  max-width: 100vw;
}

.container,
.container-narrow {
  max-width: 100%;
  box-sizing: border-box;
}

/* Any unexpected wide child is forced to fit */
.container > *,
.container-narrow > *,
main > *,
section > * {
  max-width: 100%;
  min-width: 0;
}

/* --- V6 RESPONSIVE COMPLETION PATCH 3 END --- */
