/* =====================================================
   New Valley Homes — v2 Stylesheet
   Minimalist, luxurious, Apple-inspired
   ===================================================== */

:root {
  --bg: #fafaf8;
  --bg-alt: #f3f1ec;
  --ink: #0b0b0c;
  --ink-soft: #1a1a1c;
  --muted: #6b6d72;
  --muted-2: #a4a6ab;
  --line: #e6e4df;
  --line-2: #ecebe6;
  --accent: #9c7a4a;        /* warm bronze */
  --accent-dark: #7e6038;
  --accent-soft: #f4ede2;
  --white: #ffffff;
  --ok: #2e7d5b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.10);

  --header-h: 72px;
  --banner-h: 42px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv02', 'cv11';
  padding-top: calc(var(--header-h) + var(--banner-h));
}
body.banner-hidden { padding-top: var(--header-h); }
body.menu-open { overflow: hidden; }
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; margin-top: 1.6em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.8); }

/* =====================================================
   TOP BANNER + HEADER + NAV BACKDROP
   ===================================================== */
.top-banner {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--banner-h); z-index: 90;
  background: linear-gradient(90deg, #0b0b0c, #2a2320);
  color: #f6f1e7;
  font-size: 0.85rem;
  display: flex; align-items: center;
  transition: transform 0.35s ease;
}
body.banner-hidden .top-banner { transform: translateY(-100%); pointer-events: none; }
.top-banner__inner {
  max-width: 1240px; width: 100%; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.top-banner__inner i.fa-star { color: var(--accent); margin-right: 6px; }
.top-banner__close {
  background: transparent; border: none; color: #f6f1e7; cursor: pointer;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background 0.2s;
}
.top-banner__close:hover { background: rgba(255, 255, 255, 0.1); }

.site-header {
  position: fixed; left: 0; right: 0;
  top: var(--banner-h);
  z-index: 80;
  transition: top 0.35s ease, background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  background: rgba(250, 250, 248, 0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
}
body.banner-hidden .site-header { top: 0; }
.site-header.is-scrolled {
  background: rgba(250, 250, 248, 0.92);
  border-bottom-color: var(--line);
}
.site-header__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__logo { height: 40px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 600; }
.brand__tag { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; gap: 6px; align-items: center; }
.nav-link {
  position: relative;
  padding: 10px 14px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover { background: rgba(0,0,0,0.05); }
.nav-link--active { color: var(--accent-dark); }
.nav-link--active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.site-header__cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line); cursor: pointer;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.nav-toggle span {
  width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: calc(var(--banner-h) + var(--header-h));
  left: 0; right: 0;
  background: rgba(250,250,248,0.98);
  backdrop-filter: blur(20px);
  z-index: 70;
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--line);
}
body.banner-hidden .mobile-menu { top: var(--header-h); }
.mobile-menu a {
  padding: 14px 4px;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line-2);
}
.mobile-menu .btn { margin-top: 12px; }
body.menu-open .mobile-menu { display: flex; }

/* 3D nav backdrop blobs */
.nav-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: calc(var(--banner-h) + var(--header-h) + 40px);
  pointer-events: none;
  z-index: 75;
  overflow: hidden;
  mix-blend-mode: multiply;
  opacity: 0.35;
}
.nav-backdrop__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  transform: translateZ(0);
  animation: drift 22s ease-in-out infinite alternate;
}
.nav-backdrop__blob--1 {
  width: 460px; height: 460px;
  left: -120px; top: -200px;
  background: radial-gradient(circle at 30% 30%, rgba(156, 122, 74, 0.8), transparent 70%);
}
.nav-backdrop__blob--2 {
  width: 520px; height: 520px;
  right: -160px; top: -260px;
  background: radial-gradient(circle at 70% 40%, rgba(90, 80, 70, 0.5), transparent 70%);
  animation-delay: -7s;
}
.nav-backdrop__blob--3 {
  width: 340px; height: 340px;
  left: 45%; top: -200px;
  background: radial-gradient(circle at 50% 50%, rgba(244, 237, 226, 0.9), transparent 70%);
  animation-delay: -14s;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(40px, 20px, 0) scale(1.1); }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.btn i { font-size: 0.88em; }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-soft); }
.btn--ghost {
  background: rgba(255,255,255,0.5); color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: var(--white); border-color: var(--ink); }
.btn--ghost-dark {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3);
}
.btn--ghost-dark:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn--sm { padding: 8px 16px; font-size: 0.85rem; }
.btn--md { padding: 10px 20px; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - var(--banner-h));
  color: var(--white);
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 120px 0 80px;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.5s ease;
  transform: scale(1.05);
}
.hero__slide.is-active { opacity: 1; transform: scale(1); transition: opacity 1.5s ease, transform 8s ease; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.75) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  padding: 0 24px; width: 100%;
}
.hero__title {
  color: var(--white); font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  letter-spacing: -0.025em; line-height: 1.02; margin-bottom: 24px;
}
.hero__lede {
  max-width: 620px; font-size: 1.15rem; color: rgba(255,255,255,0.88); margin-bottom: 32px;
}
.hero__lede strong { color: var(--white); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 28px;
  color: rgba(255,255,255,0.8); font-size: 0.9rem;
}
.hero__meta i { color: var(--accent); margin-right: 6px; }

.hero__dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.hero__dot {
  width: 28px; height: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.35);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, width 0.2s;
}
.hero__dot.is-active { background: var(--white); width: 44px; }

/* =====================================================
   SECTIONS
   ===================================================== */
.section { padding: 96px 0; }
.section--light { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; text-align: left; }
.section__head--row > div { text-align: left; }
.section__title { margin-bottom: 14px; }
.section__sub { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }
.section__head--row .section__sub { margin: 0; }

.link-arrow {
  font-weight: 600; color: var(--ink); font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow i { transition: transform 0.2s; }
.link-arrow:hover i { transform: translateX(4px); }

/* =====================================================
   CREDIBILITY BAND
   ===================================================== */
.credibility {
  background: var(--ink); color: var(--white);
  padding: 48px 0;
}
.credibility__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center;
}
.credibility__num {
  font-family: var(--font-serif); font-size: 2.4rem; letter-spacing: -0.02em; color: var(--accent);
}
.credibility__label { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* =====================================================
   COMMUNITY CARDS
   ===================================================== */
.community-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.community-grid--lg .community-card { min-height: 500px; }
.community-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  background: #222;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.community-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.community-card__image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.8s ease;
}
.community-card:hover .community-card__image { transform: scale(1.04); }
.community-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.8) 100%);
}
.community-card__body {
  position: relative; z-index: 2;
  padding: 32px; color: var(--white);
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.community-card__body h2, .community-card__body h3 {
  color: var(--white); margin: 0 0 10px; font-size: 2rem;
}
.community-card__body p { color: rgba(255,255,255,0.82); margin-bottom: 16px; }
.community-card__price {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  font-size: 0.85rem; font-weight: 600; align-self: flex-start;
  margin-bottom: 16px;
}
.community-card__arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white); font-weight: 600; font-size: 0.95rem;
  align-self: flex-start;
}
.community-card__arrow i { transition: transform 0.3s; }
.community-card:hover .community-card__arrow i { transform: translateX(6px); }

/* =====================================================
   WALKOUT FEATURE BAND
   ===================================================== */
.walkout-feature {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  color: var(--white);
  overflow: hidden;
}
.walkout-feature__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.walkout-feature__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.25) 100%);
}
.walkout-feature__content {
  position: relative; z-index: 2;
  padding: 80px 24px;
  max-width: 1240px; margin: 0 auto; width: 100%;
}
.walkout-feature__content h2 {
  color: var(--white); max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.walkout-feature__content p {
  color: rgba(255,255,255,0.85); max-width: 560px; font-size: 1.05rem;
  margin-bottom: 28px;
}

/* =====================================================
   LISTINGS CARDS
   ===================================================== */
.listing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.listing-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.listing-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
}
.listing-card__body { padding: 20px; }
.listing-card__price {
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.listing-card__title {
  font-weight: 600; margin-bottom: 4px; color: var(--ink);
}
.listing-card__address {
  color: var(--muted); font-size: 0.9rem; margin-bottom: 14px;
}
.listing-card__address i { color: var(--accent); margin-right: 4px; }
.listing-card__specs {
  display: flex; gap: 18px; color: var(--muted); font-size: 0.88rem;
  padding-top: 14px; border-top: 1px solid var(--line-2);
}
.listing-card__specs i { color: var(--ink); margin-right: 4px; }

.chip {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.95); color: var(--ink);
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}
.chip--accent {
  background: var(--accent); color: var(--white);
  top: 14px; left: 14px;
}
.chip + .chip { top: 46px; }

/* =====================================================
   SCHOOLS / LIFESTYLE
   ===================================================== */
.schools-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.schools-collage {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px;
  gap: 12px;
}
.schools-collage img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md);
}
.schools-collage img:first-child { grid-column: 1 / span 2; }
.check-list { list-style: none; padding: 0; margin: 24px 0; }
.check-list li {
  padding: 10px 0; display: flex; gap: 12px; align-items: flex-start;
  color: var(--ink-soft); font-size: 0.98rem;
  border-bottom: 1px solid var(--line-2);
}
.check-list li i { color: var(--accent); margin-top: 4px; flex-shrink: 0; }

/* =====================================================
   REVIEWS
   ===================================================== */
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.review-card {
  margin: 0;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.review-card__stars { color: var(--accent); font-size: 1rem; margin-bottom: 12px; }
.review-card blockquote {
  margin: 0 0 16px; font-size: 1rem; line-height: 1.6; color: var(--ink-soft);
}

/* =====================================================
   CTA BAND
   ===================================================== */
.cta-band { background: var(--ink); color: var(--white); padding: 80px 0; }
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; }
.cta-band__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* =====================================================
   PAGE HEAD
   ===================================================== */
.page-head {
  padding: 120px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.page-head--compact { padding: 100px 0 36px; text-align: left; }
.page-head--compact .eyebrow { margin-bottom: 10px; }
.page-head__title { margin-bottom: 16px; }
.page-head--compact .page-head__title { font-size: clamp(2rem, 3.5vw, 3rem); }
.page-head__sub {
  color: var(--muted); font-size: 1.1rem; max-width: 720px;
  margin: 0 auto;
}
.page-head--compact .page-head__sub { margin-left: 0; }

/* =====================================================
   LISTINGS PAGE (toolbar + split view)
   ===================================================== */
.listings-toolbar {
  position: sticky;
  top: calc(var(--header-h) + var(--banner-h));
  z-index: 30;
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
body.banner-hidden .listings-toolbar { top: var(--header-h); }
.listings-toolbar__inner {
  display: flex; gap: 16px; align-items: center;
  padding: 14px 24px; flex-wrap: wrap;
}
.filters { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.filter {
  display: inline-flex; flex-direction: column; gap: 2px;
  font-size: 0.72rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase;
  font-weight: 600;
}
.filter select {
  font-family: var(--font-sans); font-size: 0.92rem;
  padding: 8px 32px 8px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--white);
  color: var(--ink); cursor: pointer; min-width: 140px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230b0b0c' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.filter--toggle {
  flex-direction: row; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); cursor: pointer; text-transform: none; color: var(--ink);
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0;
}
.filter--toggle input { accent-color: var(--accent); }

.view-toggle { display: flex; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.view-toggle__btn {
  padding: 7px 14px; border-radius: 999px; border: none; background: transparent;
  font-size: 0.84rem; font-weight: 600; cursor: pointer; color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.view-toggle__btn.is-active { background: var(--ink); color: var(--white); }

/* Split layout */
.listings-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  height: calc(100vh - var(--header-h) - var(--banner-h) - 64px);
  min-height: 620px;
}
body.banner-hidden .listings-split { height: calc(100vh - var(--header-h) - 64px); }
.listings-split__list {
  overflow-y: auto;
  padding: 20px 24px 40px;
  background: var(--bg);
}
.listings-split__map {
  position: sticky; top: 0;
  height: 100%;
  background: var(--bg-alt);
}
#listings-map { width: 100%; height: 100%; }

.listings-split.view-grid { display: block; height: auto; }
.listings-split.view-grid .listings-split__list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  overflow: visible; padding: 40px 24px;
  max-width: 1280px; margin: 0 auto;
}
.listings-split.view-grid .listings-split__map { display: none; }
.listings-split.view-map .listings-split__list { display: none; }
.listings-split.view-map { grid-template-columns: 1fr; height: calc(100vh - var(--header-h) - var(--banner-h) - 64px); }

.listing-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.listing-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.listing-row__media {
  position: relative;
  background-size: cover; background-position: center;
  min-height: 200px;
}
.listing-row__body { padding: 20px 20px 20px 0; }
.listing-row__price {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600;
  color: var(--ink); margin-bottom: 4px;
}
.listing-row__title { font-family: var(--font-sans); font-size: 1.05rem; margin: 0 0 4px; font-weight: 600; }
.listing-row__title a { color: var(--ink); }
.listing-row__address { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.listing-row__address i { color: var(--accent); margin-right: 4px; }
.listing-row__specs {
  display: flex; flex-wrap: wrap; gap: 12px;
  color: var(--ink-soft); font-size: 0.85rem;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.listing-row__actions { display: flex; gap: 8px; }

.listings-split.view-grid .listing-row {
  grid-template-columns: 1fr;
  display: flex; flex-direction: column;
  margin: 0;
}
.listings-split.view-grid .listing-row__media { min-height: 0; aspect-ratio: 4/3; }
.listings-split.view-grid .listing-row__body { padding: 18px; }

.listings-empty {
  padding: 60px 24px; text-align: center; color: var(--muted);
}

/* Leaflet pin */
.nvh-pin {
  width: 40px; height: 50px; position: relative;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.25));
}
.nvh-pin__inner {
  position: absolute; inset: 0;
  background: var(--white); color: var(--ink);
  width: 40px; height: 40px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  transition: all 0.2s;
}
.nvh-pin__inner i { transform: rotate(45deg); font-size: 15px; }
.nvh-pin.is-active .nvh-pin__inner {
  background: var(--accent); color: var(--white); border-color: var(--accent-dark);
  transform: rotate(-45deg) scale(1.2);
}

.nvh-popup { width: 220px; }
.nvh-popup img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.nvh-popup__price { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; }
.nvh-popup__title { font-size: 0.88rem; margin-bottom: 6px; }
.nvh-popup a { color: var(--accent-dark); font-weight: 600; font-size: 0.88rem; }

/* =====================================================
   LISTING DETAIL
   ===================================================== */
.detail-hero { padding: 32px 24px 0; max-width: 1280px; margin: 0 auto; }
.detail-hero__gallery {
  display: grid; grid-template-columns: 2fr 1fr; gap: 8px;
  height: 560px;
  border-radius: var(--radius-lg); overflow: hidden;
}
.detail-hero__main {
  background-size: cover; background-position: center;
  cursor: zoom-in;
}
.detail-hero__side {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px;
  position: relative;
}
.detail-hero__thumb { background-size: cover; background-position: center; cursor: zoom-in; }
.detail-hero__all {
  position: absolute; right: 16px; bottom: 16px;
  background: rgba(255,255,255,0.95); border: none;
  padding: 10px 16px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow-sm);
}
.detail-hero__all:hover { background: var(--white); }

.detail-info { padding: 60px 0; }
.detail-info__grid {
  display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start;
}
.detail-info__title { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 12px; }
.detail-info__address { color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.detail-info__address i { color: var(--accent); margin-right: 6px; }
.detail-info__specs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 20px; background: var(--bg-alt); border-radius: var(--radius-md);
  margin-bottom: 28px;
}
.detail-info__specs > div { text-align: center; }
.detail-info__specs strong {
  display: block; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600;
}
.detail-info__specs span { color: var(--muted); font-size: 0.8rem; }
.detail-info__desc { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 16px; }

.feature-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin: 12px 0 32px;
}
.feature-grid li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; color: var(--ink-soft);
  border-bottom: 1px solid var(--line-2);
}
.feature-grid li i { color: var(--accent); }

.detail-map { height: 360px; border-radius: var(--radius-md); overflow: hidden; margin: 14px 0; }

/* Sticky CTA card */
.detail-cta { position: sticky; top: calc(var(--header-h) + var(--banner-h) + 20px); }
body.banner-hidden .detail-cta { top: calc(var(--header-h) + 20px); }
.detail-cta__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.detail-cta__price {
  font-family: var(--font-serif); font-size: 2rem; font-weight: 600;
  letter-spacing: -0.01em;
}
.detail-cta__meta { color: var(--muted); margin-bottom: 18px; }
.detail-cta__contact {
  margin-top: 18px;
  padding: 20px; background: var(--bg-alt); border-radius: var(--radius-md);
  font-size: 0.92rem;
}
.detail-cta__contact strong { display: block; margin-bottom: 6px; }

/* =====================================================
   LEAD FORMS
   ===================================================== */
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.lead-form input,
.lead-form select,
.lead-form textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.lead-form__note { font-size: 0.78rem; margin: 6px 0 0; }

.lead-form--large label span { font-size: 0.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* =====================================================
   COMMUNITY DETAIL
   ===================================================== */
.community-hero {
  position: relative;
  min-height: 520px;
  padding: 140px 0 80px;
  color: var(--white);
  background-size: cover; background-position: center;
}
.community-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.75));
}
.community-hero__content { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.community-hero__content h1 { color: var(--white); max-width: 820px; }
.community-hero__tag { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 620px; margin-bottom: 28px; }

.community-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.community-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.community-gallery img {
  width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-md);
}
.community-map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.community-map-embed iframe { display: block; }

/* =====================================================
   SHOW HOMES & ABOUT
   ===================================================== */
.showhome-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px; gap: 10px;
}
.showhome-tile { margin: 0; overflow: hidden; border-radius: var(--radius-md); }
.showhome-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.showhome-tile:hover img { transform: scale(1.05); }
.showhome-tile--wide { grid-column: span 2; grid-row: span 2; }

.showhome-info {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start;
}

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.about-gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.about-gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-md); }

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.contact-info { background: var(--bg-alt); padding: 28px; border-radius: var(--radius-md); }
.contact-info h3 { margin-top: 1.2em; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info a { color: var(--accent-dark); font-weight: 600; }

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  padding: 80px 24px 40px;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.lightbox__close {
  position: fixed; top: 20px; right: 20px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--white);
  border: 1px solid rgba(255,255,255,0.2); cursor: pointer;
  font-size: 1.2rem;
  display: grid; place-items: center;
  transition: background 0.2s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }
.lightbox__grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.lightbox__grid img {
  width: 100%; border-radius: var(--radius-sm);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 80px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  max-width: 1240px; margin: 0 auto 40px; padding: 0 24px;
}
.footer-brand p { margin: 0 0 16px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 14px; filter: brightness(1.1); }
.footer-tag { max-width: 320px; font-size: 0.95rem; }
.site-footer h4 {
  color: var(--white); font-family: var(--font-sans); font-size: 0.82rem;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer p, .site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--white); }
.site-footer strong { color: var(--white); font-weight: 600; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; font-size: 0.94rem; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: grid; place-items: center; color: var(--white);
  transition: background 0.2s;
}
.socials a:hover { background: var(--accent); }
.rating { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.rating__stars { color: var(--accent); letter-spacing: 0.1em; }
.footer-bottom {
  max-width: 1240px; margin: 0 auto; padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.site-footer .muted { color: rgba(255,255,255,0.45); }

/* =====================================================
   TOAST
   ===================================================== */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  padding: 14px 22px;
  background: var(--ink); color: var(--white);
  border-radius: 999px; z-index: 220;
  font-size: 0.92rem; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: all 0.3s cubic-bezier(.2,.9,.3,1.2);
  box-shadow: var(--shadow-lg);
}
.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .credibility__grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .schools-grid, .community-detail-grid, .about-grid, .contact-grid, .showhome-info {
    grid-template-columns: 1fr; gap: 40px;
  }
  .detail-info__grid { grid-template-columns: 1fr; }
  .detail-cta { position: static; }
  .listings-split {
    grid-template-columns: 1fr;
    height: auto;
  }
  .listings-split__map { height: 440px; position: static; }
  .listings-split.view-grid .listings-split__list { grid-template-columns: repeat(2, 1fr); }
  .showhome-grid { grid-template-columns: repeat(2, 1fr); }
  .showhome-tile--wide { grid-column: auto; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__cta .btn--primary { display: none; }

  .section { padding: 64px 0; }
  .hero { padding: 100px 0 120px; min-height: 86vh; }
  .hero__title { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .hero__lede { font-size: 1rem; }
  .hero__meta { flex-direction: column; gap: 10px; }

  .community-grid { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .credibility__grid { grid-template-columns: 1fr 1fr; }
  .credibility__num { font-size: 1.8rem; }

  .section__head--row { flex-direction: column; align-items: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
  .detail-hero { padding: 16px 0 0; }
  .detail-hero__gallery { height: auto; grid-template-columns: 1fr; }
  .detail-hero__main { aspect-ratio: 4/3; border-radius: 0; }
  .detail-hero__side { display: none; }

  .listings-split.view-grid .listings-split__list { grid-template-columns: 1fr; }
  .listing-row { grid-template-columns: 1fr; }
  .listing-row__media { min-height: 0; aspect-ratio: 16/10; }
  .listing-row__body { padding: 18px; }

  .form-row { grid-template-columns: 1fr; }
  .community-gallery, .about-gallery, .schools-collage { grid-template-columns: 1fr; }
  .schools-collage { grid-template-rows: auto; }
  .schools-collage img { height: 220px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .top-banner__inner { font-size: 0.78rem; }
  .brand__tag { display: none; }

  .showhome-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .lightbox__grid { grid-template-columns: 1fr; }
}
