/* ============================================================
   Shana Gates — Community Pages Shared Stylesheet
   All community pages link to this file.
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:         #0d0d0d;
  --dark-2:       #131313;
  --dark-3:       #1a1a1a;
  --cream:        #F2EDE4;
  --cream-2:      #E8E1D5;
  --bronze:       #B8975A;
  --bronze-light: #CEB07A;
  --bronze-dim:   rgba(184,151,90,0.18);
  --text-light:   #F2EDE4;
  --text-muted:   rgba(242,237,228,0.55);
  --text-dark:    #1a1814;
  --text-mid:     #4a4540;
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'Jost', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--dark);
  color: var(--text-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAVIGATION
============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 24px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13,13,13,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184,151,90,0.18);
}

.nav-logo img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--bronze); }

.nav-cta {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--bronze);
  padding: 11px 26px;
  text-decoration: none;
  transition: background 0.3s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--bronze-light); }

/* Communities dropdown */
.nav-communities {
  position: relative;
}

.nav-communities-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-communities-trigger::after {
  content: '▾';
  font-size: 10px;
  color: rgba(242,237,228,0.5);
}

.communities-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(19,19,19,0.98);
  border: 1px solid rgba(184,151,90,0.2);
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  transform: translateX(-50%) translateY(-6px);
}

.nav-communities:hover .communities-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.communities-dropdown a {
  display: block;
  padding: 10px 18px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,151,90,0.08);
  transition: color 0.2s, background 0.2s;
}

.communities-dropdown a:last-child { border-bottom: none; }
.communities-dropdown a:hover { color: var(--bronze); background: rgba(184,151,90,0.06); }

/* ============================================================
   HERO — Full-width Mapbox + Overlay
============================================================ */
#community-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 580px;
  overflow: hidden;
  background: #0a0a0a;
}

#hero-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,13,13,0.5)  0%,
    rgba(13,13,13,0.45) 40%,
    rgba(13,13,13,0.82) 85%,
    rgba(13,13,13,0.97) 100%
  );
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 80px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.breadcrumb a,
.breadcrumb span {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a { color: rgba(242,237,228,0.45); }
.breadcrumb a:hover { color: var(--bronze); }
.breadcrumb .sep { color: rgba(184,151,90,0.35); font-size: 10px; }
.breadcrumb .current { color: var(--bronze); }

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 300;
  line-height: 0.95;
  color: var(--text-light);
  margin-bottom: 28px;
}

.hero-title em { font-style: italic; }

.hero-stats {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-value {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--text-light);
}

.hero-stat-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.4);
}

.hero-divider-v {
  width: 1px;
  height: 36px;
  background: rgba(184,151,90,0.25);
  align-self: center;
}

/* ============================================================
   DEMOGRAPHICS BAR
============================================================ */
#demographics {
  background: var(--dark-2);
  border-bottom: 1px solid rgba(184,151,90,0.12);
  padding: 48px 80px;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.demo-eyebrow {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
}

.demo-source-note {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 300;
  color: rgba(242,237,228,0.22);
  letter-spacing: 0.05em;
}

.demo-stats {
  display: flex;
  align-items: center;
}

.demo-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.demo-divider-v {
  width: 1px;
  height: 48px;
  background: rgba(184,151,90,0.18);
  flex-shrink: 0;
}

.demo-value {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1;
  letter-spacing: -0.01em;
}

.demo-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.4);
}

/* ============================================================
   OVERVIEW SECTION
============================================================ */
#overview {
  background: var(--cream);
  padding: 96px 80px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: start;
}

.overview-text .section-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 14px;
}

.overview-title {
  font-family: var(--serif);
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.overview-title em { font-style: italic; }

.overview-divider {
  width: 40px;
  height: 1px;
  background: var(--bronze);
  margin-bottom: 28px;
}

.overview-body {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 20px;
  max-width: 640px;
}

.overview-cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--bronze);
  padding: 14px 32px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover { background: var(--bronze-light); transform: translateY(-2px); }

.btn-text {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(26,24,20,0.3);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.btn-text:hover { color: var(--bronze); border-color: var(--bronze); }

/* Quick facts sidebar */
.quick-facts {
  background: var(--dark-2);
  padding: 36px 32px;
  border-left: 2px solid var(--bronze);
}

.quick-facts-heading {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 24px;
}

.quick-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(184,151,90,0.08);
  gap: 16px;
}

.quick-fact:last-child { border-bottom: none; }

.fact-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  color: rgba(242,237,228,0.45);
  letter-spacing: 0.04em;
}

.fact-value {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-light);
  text-align: right;
}

/* ============================================================
   HIGHLIGHTS GRID
============================================================ */
#highlights {
  background: var(--dark);
  padding: 96px 80px;
}

.section-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-light);
  margin-bottom: 56px;
}

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

.highlight-card {
  background: var(--dark-2);
  border: 1px solid rgba(184,151,90,0.08);
  padding: 36px 32px;
  transition: border-color 0.3s, background 0.3s;
}

.highlight-card:hover {
  border-color: rgba(184,151,90,0.25);
  background: var(--dark-3);
}

.highlight-icon {
  font-size: 26px;
  margin-bottom: 18px;
  display: block;
}

.highlight-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 12px;
}

.highlight-body {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(242,237,228,0.5);
}

/* ============================================================
   NEIGHBORHOODS GRID
============================================================ */
#neighborhoods {
  background: var(--cream-2);
  padding: 96px 80px;
}

#neighborhoods .section-eyebrow { color: var(--bronze); }

#neighborhoods .section-title {
  color: var(--text-dark);
  margin-bottom: 48px;
}

.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.neighborhood-card {
  background: var(--cream);
  border: 1px solid rgba(26,24,20,0.1);
  border-radius: 8px;
  padding: 18px 20px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.neighborhood-card:hover {
  border-color: rgba(184,151,90,0.5);
  box-shadow: 0 2px 18px rgba(26,24,20,0.09);
}

.neighborhood-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 5px;
}

.neighborhood-name {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.3;
}

.neighborhood-price {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--bronze);
  white-space: nowrap;
  flex-shrink: 0;
}

.neighborhood-tags {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-mid);
  opacity: 0.65;
  letter-spacing: 0.03em;
}

/* ============================================================
   LISTINGS / YLOPO
============================================================ */
#listings {
  background: var(--cream-2);
  padding: 96px 52px;
}

#listings .section-eyebrow { color: var(--bronze); }
#listings .section-title { color: var(--text-dark); margin-bottom: 16px; }

.listings-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.view-all-link {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,151,90,0.4);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: border-color 0.3s;
  margin-bottom: 6px;
}

.view-all-link:hover { border-color: var(--bronze); }

.listings-cta-row {
  text-align: center;
  margin-top: 52px;
}

.btn-view-all {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--bronze);
  padding: 17px 48px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.btn-view-all:hover { background: var(--bronze-light); transform: translateY(-2px); }

/* ============================================================
   LIFESTYLE / CALLOUT
============================================================ */
#lifestyle {
  background: var(--dark-3);
  padding: 96px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.lifestyle-text .section-eyebrow { color: var(--bronze); }
.lifestyle-title {
  font-family: var(--serif);
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-light);
  margin-bottom: 24px;
}

.lifestyle-title em { font-style: italic; }

.lifestyle-body {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(242,237,228,0.6);
  margin-bottom: 20px;
}

.lifestyle-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.lifestyle-bullets li {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(242,237,228,0.6);
  display: flex;
  align-items: center;
  gap: 12px;
}

.lifestyle-bullets li::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--bronze);
  flex-shrink: 0;
}

.lifestyle-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.lifestyle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.lifestyle-map-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid rgba(184,151,90,0.2);
}

#lifestyle-map {
  width: 100%;
  height: 100%;
}

/* ============================================================
   CTA SECTION
============================================================ */
#community-cta {
  background: var(--dark-2);
  padding: 96px 80px;
  text-align: center;
  border-top: 1px solid rgba(184,151,90,0.1);
}

.cta-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 20px;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.05;
}

.cta-title em { font-style: italic; }

.cta-subtitle {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(242,237,228,0.5);
  margin-bottom: 48px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-outline {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-light);
  background: transparent;
  padding: 14px 32px;
  text-decoration: none;
  border: 1px solid rgba(242,237,228,0.35);
  display: inline-block;
  transition: border-color 0.3s, color 0.3s, transform 0.2s;
}

.btn-outline:hover {
  border-color: var(--bronze);
  color: var(--bronze);
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(184,151,90,0.15);
  padding: 76px 52px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: 60px;
  margin-bottom: 64px;
}

.footer-brand .footer-logo {
  height: 30px;
  filter: brightness(0) invert(1);
  display: block;
  margin-bottom: 22px;
}

.footer-tagline {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: rgba(242,237,228,0.5);
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 300px;
}

.footer-contact-info {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(242,237,228,0.45);
  line-height: 2.1;
}

.footer-contact-info a {
  color: rgba(242,237,228,0.45);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact-info a:hover { color: var(--bronze); }

.footer-col-heading {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-links a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(242,237,228,0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--text-light); }

.footer-social-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-social-row a {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.45);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-social-row a:hover { color: var(--bronze); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(184,151,90,0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-disclaimer {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(242,237,228,0.28);
  max-width: 700px;
}

.footer-copy {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 300;
  color: rgba(242,237,228,0.3);
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
============================================================ */
@media (max-width: 1024px) {
  nav { padding: 20px 32px; }

  #demographics { padding: 44px 48px; }
  .demo-value { font-size: 29px; }

  .hero-content { padding: 0 48px 52px; }

  #overview {
    grid-template-columns: 1fr;
    padding: 72px 48px;
    gap: 48px;
  }
  .quick-facts { max-width: 560px; }

  #highlights { padding: 72px 48px; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }

  #neighborhoods { padding: 72px 48px; }
  .neighborhoods-grid { grid-template-columns: repeat(3, 1fr); }

  #city-stats { padding: 64px 48px; }
  .city-stat-item { padding: 0 16px; }
  .city-stat-number { font-size: 30px; }

  #listings { padding: 72px 32px; }
  .listings-header { flex-direction: column; align-items: flex-start; gap: 12px; }

  #hoa-fees { padding: 72px 48px; }
  .hoa-grid { grid-template-columns: 1fr; gap: 48px; }

  #parks-rec { padding: 72px 48px; }
  .parks-grid { grid-template-columns: repeat(2, 1fr); }

  #new-construction { padding: 72px 48px; }
  .builders-grid { grid-template-columns: repeat(2, 1fr); }

  #schools { padding: 72px 48px; }

  #nearby-communities { padding: 72px 48px; }

  #faq { padding: 72px 48px; }

  #lifestyle {
    grid-template-columns: 1fr;
    padding: 72px 48px;
    gap: 48px;
  }
  .lifestyle-map-box { aspect-ratio: 16/9; }

  #community-cta { padding: 72px 48px; }

  footer { padding: 64px 32px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
============================================================ */
@media (max-width: 768px) {

  /* NAV */
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-cta { font-size: 10px; padding: 10px 18px; }

  /* HERO */
  #community-hero { height: 60vh; min-height: 420px; }
  .hero-content { padding: 0 20px 40px; }
  .hero-title { font-size: clamp(40px, 12vw, 72px); }
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px 32px;
  }
  .hero-divider-v { display: none; }
  .hero-stat-value { font-size: 22px; }

  /* DEMOGRAPHICS */
  #demographics { padding: 36px 20px; }
  .demo-header { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 24px; }
  .demo-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 0;
  }
  .demo-divider-v { display: none; }
  .demo-stat { align-items: flex-start; text-align: left; }
  .demo-value { font-size: 26px; }

  /* OVERVIEW */
  #overview {
    grid-template-columns: 1fr;
    padding: 56px 20px;
    gap: 36px;
  }

  /* HIGHLIGHTS */
  #highlights { padding: 56px 20px; }
  .highlights-grid { grid-template-columns: 1fr; gap: 3px; }
  .section-title { margin-bottom: 36px; }

  /* NEIGHBORHOODS */
  #neighborhoods { padding: 56px 20px; }
  .neighborhoods-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* LISTINGS */
  #listings { padding: 56px 20px; }
  .listings-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; }
  .btn-view-all { display: block; text-align: center; padding: 15px 24px; }

  /* CITY STATS */
  #city-stats { padding: 52px 20px; }
  .city-stats-row { flex-wrap: wrap; gap: 32px 0; }
  .city-stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(184,151,90,0.12); padding: 16px 12px; }
  .city-stat-item:nth-child(odd) { border-right: 1px solid rgba(184,151,90,0.12); }
  .city-stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .city-stat-number { font-size: 28px; }

  /* HOA FEES */
  #hoa-fees { padding: 56px 20px; }
  .hoa-grid { grid-template-columns: 1fr; gap: 40px; }

  /* PARKS */
  #parks-rec { padding: 56px 20px; }
  .parks-grid { grid-template-columns: 1fr; gap: 16px; }

  /* NEW CONSTRUCTION */
  #new-construction { padding: 56px 20px; }
  .builders-grid { grid-template-columns: 1fr; gap: 16px; }

  /* SCHOOLS */
  #schools { padding: 56px 20px; }
  .schools-tabs { overflow-x: auto; }
  .schools-table thead th, .schools-table tbody td { padding: 12px 10px; font-size: 12.5px; }

  /* NEARBY COMMUNITIES */
  #nearby-communities { padding: 56px 20px; }
  .nearby-table th, .nearby-table tbody td { padding: 14px 12px; font-size: 12.5px; }

  /* FAQ */
  #faq { padding: 56px 20px; }
  .faq-question-text { font-size: 14px; }

  /* LIFESTYLE */
  #lifestyle {
    grid-template-columns: 1fr;
    padding: 56px 20px;
    gap: 36px;
  }
  .lifestyle-map-box { aspect-ratio: 4/3; }

  /* CTA */
  #community-cta { padding: 64px 20px; }
  .cta-buttons { flex-direction: column; align-items: center; gap: 12px; }
  .btn-primary, .btn-outline { width: 100%; max-width: 300px; text-align: center; }

  /* FOOTER */
  footer { padding: 52px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .footer-copy { white-space: normal; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
============================================================ */
@media (max-width: 480px) {
  #community-hero { height: 55vh; min-height: 380px; }
  .hero-content { padding: 0 16px 32px; }
  .hero-title { font-size: clamp(34px, 11vw, 52px); }
  #demographics { padding: 32px 16px; }
  .demo-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  #overview { padding: 48px 16px; }
  #highlights { padding: 48px 16px; }
  #neighborhoods { padding: 48px 16px; }
  #listings { padding: 48px 16px; }
  #lifestyle { padding: 48px 16px; }
  #community-cta { padding: 52px 16px; }
  footer { padding: 44px 16px 24px; }
  .hero-stats { gap: 16px 24px; }
}

/* ============================================================
   CITY STATS BAR — Lifestyle icon stats row
============================================================ */
#city-stats {
  background: var(--dark);
  padding: 80px 80px;
  border-top: 1px solid rgba(184,151,90,0.1);
  border-bottom: 1px solid rgba(184,151,90,0.1);
}

.city-stats-row {
  display: flex;
  justify-content: center;
}

.city-stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-right: 1px solid rgba(184,151,90,0.12);
  text-align: center;
}

.city-stat-item:last-child { border-right: none; }

.city-stat-icon {
  width: 52px;
  height: 52px;
  background: rgba(184,151,90,0.08);
  border: 1px solid rgba(184,151,90,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.city-stat-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--bronze);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.city-stat-number {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1;
}

.city-stat-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.4);
  max-width: 120px;
  line-height: 1.5;
}

/* ============================================================
   HOA FEES
============================================================ */
#hoa-fees {
  background: var(--cream);
  padding: 96px 80px;
}

#hoa-fees .section-eyebrow { color: var(--bronze); }
#hoa-fees .section-title { color: var(--text-dark); margin-bottom: 56px; }

.hoa-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}

.hoa-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.hoa-table th {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  text-align: left;
  padding: 12px 0 10px;
  border-bottom: 1px solid rgba(26,24,20,0.18);
}

.hoa-table td {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  color: var(--text-mid);
  padding: 14px 0;
  border-bottom: 1px solid rgba(26,24,20,0.06);
  vertical-align: middle;
}

.hoa-table td:last-child {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--text-dark);
  text-align: right;
}

.hoa-table tr:last-child td { border-bottom: none; }

.hoa-note {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 300;
  color: var(--text-mid);
  opacity: 0.6;
  line-height: 1.75;
  margin-top: 16px;
  padding: 14px 18px;
  border-left: 2px solid rgba(184,151,90,0.4);
  background: rgba(26,24,20,0.03);
}

.hoa-covers-heading {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 20px;
}

.hoa-covers-list {
  list-style: none;
}

.hoa-covers-list li {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  color: var(--text-mid);
  padding: 12px 0;
  border-bottom: 1px solid rgba(26,24,20,0.06);
  display: flex;
  align-items: center;
  gap: 14px;
}

.hoa-covers-list li:last-child { border-bottom: none; }

.hoa-covers-list li::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: var(--bronze);
  flex-shrink: 0;
}

.hoa-cta-note {
  background: var(--dark-2);
  padding: 18px 22px;
  margin-top: 28px;
}

.hoa-cta-note p {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 5px;
}

.hoa-cta-note span {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(242,237,228,0.55);
}

/* ============================================================
   PARKS & RECREATION
============================================================ */
#parks-rec {
  background: var(--dark-3);
  padding: 96px 80px;
}

.parks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.park-card {
  background: var(--dark-2);
  padding: 28px 26px;
  border: 1px solid rgba(184,151,90,0.08);
  transition: border-color 0.3s;
}

.park-card:hover { border-color: rgba(184,151,90,0.28); }

.park-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 5px;
  line-height: 1.2;
}

.park-address {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  color: var(--bronze);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.park-size {
  display: inline-block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.4);
  background: rgba(184,151,90,0.07);
  border: 1px solid rgba(184,151,90,0.14);
  padding: 4px 10px;
  margin-bottom: 18px;
}

.park-amenities {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.park-amenities li {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(242,237,228,0.5);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.park-amenities li::before {
  content: '·';
  color: var(--bronze);
  font-size: 16px;
  line-height: 1.2;
  flex-shrink: 0;
}

/* ============================================================
   NEW CONSTRUCTION
============================================================ */
#new-construction {
  background: var(--cream-2);
  padding: 96px 80px;
}

#new-construction .section-eyebrow { color: var(--bronze); }
#new-construction .section-title { color: var(--text-dark); margin-bottom: 56px; }

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

.builder-card {
  background: var(--cream);
  border: 1px solid rgba(26,24,20,0.1);
  border-radius: 4px;
  padding: 32px 28px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.builder-card:hover {
  border-color: rgba(184,151,90,0.45);
  box-shadow: 0 4px 24px rgba(26,24,20,0.08);
}

.builder-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.builder-development {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 14px;
}

.builder-sqft {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.builder-price-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--dark);
  background: var(--bronze);
  padding: 9px 22px;
  border-radius: 22px;
  margin-bottom: 18px;
  transition: background 0.3s;
}

.builder-price-btn:hover { background: var(--bronze-light); }

.builder-desc {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-mid);
  opacity: 0.7;
  margin-bottom: 20px;
}

.builder-view-link {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,151,90,0.4);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}

.builder-view-link:hover { border-color: var(--bronze); }

/* ============================================================
   SCHOOLS
============================================================ */
#schools {
  background: var(--dark-2);
  padding: 96px 80px;
}

.schools-intro {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(242,237,228,0.5);
  max-width: 640px;
  margin-bottom: 44px;
}

.schools-tabs {
  display: flex;
  border-bottom: 1px solid rgba(184,151,90,0.18);
  margin-bottom: 0;
  gap: 0;
}

.schools-tab {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.4);
  padding: 14px 26px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.25s, border-color 0.25s;
  user-select: none;
}

.schools-tab:hover { color: rgba(242,237,228,0.65); }
.schools-tab.active { color: var(--bronze); border-bottom-color: var(--bronze); }

.schools-panel { display: none; }
.schools-panel.active { display: block; }

.schools-table {
  width: 100%;
  border-collapse: collapse;
}

.schools-table thead th {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bronze);
  text-align: left;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(184,151,90,0.2);
  background: rgba(184,151,90,0.04);
}

.schools-table tbody td {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(242,237,228,0.65);
  padding: 15px 18px;
  border-bottom: 1px solid rgba(184,151,90,0.07);
  vertical-align: middle;
}

.schools-table tbody tr:last-child td { border-bottom: none; }

.schools-table tbody tr:hover td {
  background: rgba(184,151,90,0.04);
  color: rgba(242,237,228,0.85);
}

.school-name-cell {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
}

.school-grades-cell {
  color: var(--bronze) !important;
  font-weight: 400 !important;
}

.schools-disclaimer {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
  color: rgba(242,237,228,0.25);
  line-height: 1.75;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(184,151,90,0.08);
}

/* ============================================================
   NEARBY COMMUNITIES COMPARISON
============================================================ */
#nearby-communities {
  background: var(--cream-2);
  padding: 96px 80px;
}

#nearby-communities .section-title { color: var(--text-dark); margin-bottom: 12px; }

.nearby-subtitle {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 48px;
  max-width: 560px;
}

.nearby-table {
  width: 100%;
  border-collapse: collapse;
}

.nearby-table thead tr {
  background: var(--dark);
}

.nearby-table th {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  text-align: left;
  padding: 16px 20px;
}

.nearby-table tbody tr {
  background: var(--cream);
  border-bottom: 1px solid rgba(26,24,20,0.08);
  transition: background 0.2s;
}

.nearby-table tbody tr:hover { background: rgba(26,24,20,0.04); }
.nearby-table tbody tr:last-child { border-bottom: none; }

.nearby-table tbody td {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  color: var(--text-dark);
  padding: 18px 20px;
  vertical-align: middle;
}

.nearby-name-cell {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

.nearby-name-cell a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.nearby-name-cell a:hover { color: var(--bronze); }

.nearby-price-cell {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--bronze) !important;
  white-space: nowrap;
}

.nearby-arrow-cell {
  text-align: right;
  padding-right: 16px !important;
  color: rgba(26,24,20,0.3) !important;
  font-size: 18px;
}

.nearby-table tbody tr:hover .nearby-arrow-cell { color: var(--bronze) !important; }

/* ============================================================
   FAQ ACCORDION
============================================================ */
#faq {
  background: var(--cream);
  padding: 96px 80px;
}

#faq .section-title { color: var(--text-dark); margin-bottom: 12px; }

.faq-subtitle {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 52px;
  max-width: 560px;
}

.faq-list {
  max-width: 860px;
}

.faq-item {
  border-bottom: 1px solid rgba(26,24,20,0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faq-question-text {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.4;
  transition: color 0.25s;
}

.faq-question:hover .faq-question-text { color: var(--bronze); }

.faq-toggle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 1px solid rgba(26,24,20,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s;
}

.faq-toggle-icon {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1;
  transition: transform 0.3s, color 0.25s;
  display: block;
}

.faq-item.open .faq-toggle {
  background: var(--bronze);
  border-color: var(--bronze);
}

.faq-item.open .faq-toggle-icon {
  color: var(--dark);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 0 24px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-mid);
}

.faq-item.open .faq-answer { max-height: 600px; }

/* ============================================================
   YLOPO WIDGET — Force dark text (widget defaults to light colors)
============================================================ */
.YLOPO_resultsWidget,
.YLOPO_resultsWidget * {
  color: #1a1814 !important;
}
.YLOPO_resultsWidget input,
.YLOPO_resultsWidget select,
.YLOPO_resultsWidget textarea {
  color: #1a1814 !important;
  background-color: #fff !important;
}
.YLOPO_resultsWidget button,
.YLOPO_resultsWidget [role="button"] {
  color: #1a1814 !important;
}
/* Keep solid CTA buttons with colored backgrounds legible */
.YLOPO_resultsWidget [style*="background-color: rgb("] {
  color: #fff !important;
}

/* ============================================================
   MAPBOX OVERRIDES
============================================================ */
.mapboxgl-ctrl-bottom-right,
.mapboxgl-ctrl-bottom-left,
.mapboxgl-ctrl-top-right { display: none; }

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Hero fade-in */
.hero-content .breadcrumb { animation: fadeUp 0.8s ease 0.3s both; }
.hero-content .hero-eyebrow { animation: fadeUp 0.8s ease 0.5s both; }
.hero-content .hero-title { animation: fadeUp 0.9s ease 0.7s both; }
.hero-content .hero-stats { animation: fadeUp 0.8s ease 0.95s both; }
