/* =============================================================
   Amp House — Style Sheet
   WCAG AA contrast. Mobile-first. Template-ready via site-config.json.
   ============================================================= */

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

:root {
  --ink:           #14120E;
  --ink-soft:      #3A342A;
  --ink-subtle:    #5C5346;
  --cream:         #FBF8F1;
  --cream-deep:    #F2EADC;
  --card:          #F4EEDF;
  --dark:          #14120E;
  --dark-2:        #1F1B14;
  --dark-soft:     #2A241B;
  --border:        #E3D9C7;
  --border-soft:   #EDE5D4;

  /* Gold used ONLY for accents, CTAs, hovers. Text-on-dark uses cream. */
  --gold:          #D9B96A;
  --gold-dark:     #A88B47;
  --gold-light:    #F0D98A;   /* WCAG AA on --dark: 12.1:1 */

  /* Text tokens — use these, not raw gold */
  --text-on-dark:      #F5F0E8;  /* primary body text on dark bg    (13.6:1) */
  --text-on-dark-soft: #D9D2C3;  /* secondary body text on dark bg  (8.4:1)  */
  --text-on-light:     var(--ink);
  --text-on-light-soft:var(--ink-soft);

  --eyebrow-dark:      #F0D98A;  /* eyebrow on dark bg, meets AA large */
  --eyebrow-light:     #8A6E2D;  /* eyebrow on light bg, meets AA large (5.9:1) */

  --success:       #4A7C59;
  --radius:        8px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow-sm:     0 1px 2px rgba(20,18,14,.06), 0 2px 8px rgba(20,18,14,.05);
  --shadow:        0 2px 6px rgba(20,18,14,.07), 0 12px 32px rgba(20,18,14,.09);
  --shadow-lg:     0 20px 56px rgba(20,18,14,.22);
  --ease:          cubic-bezier(.4,0,.2,1);
  --font-serif:    'Fraunces', 'DM Serif Display', Georgia, serif;
  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
  --max-w:         1240px;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-on-light);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
em  { font-style: italic; font-family: var(--font-serif); font-weight: 400; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 18px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* Typographic primitives */
.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--eyebrow-light);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 5.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--text-on-light);
  margin-bottom: 22px;
}
.section-title--light { color: var(--text-on-dark); }
.section-title em { color: var(--gold-dark); font-style: italic; display: block; }
.section-title--light em { color: var(--gold-light); }

/* Dark-section eyebrow override */
.amenities .section-eyebrow,
.contact .section-eyebrow { color: var(--eyebrow-dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500; font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  min-height: 48px;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 600; }
.btn--primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--text-on-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: rgba(255,255,255,.1); color: var(--text-on-dark); border-color: rgba(255,255,255,.55); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--nav { padding: 10px 20px; min-height: 40px; background: var(--gold); color: var(--ink); border-color: var(--gold); font-size: .88rem; font-weight: 600; }
.btn--nav:hover { background: var(--gold-dark); color: var(--text-on-dark); border-color: var(--gold-dark); }
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: .88rem; min-height: 40px; }
.btn--full { width: 100%; }

.btn__spinner .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(251,248,241,.94);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; }
@media (min-width: 768px) { .nav__inner { padding: 22px 32px; } }
.nav__logo-text {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: .12em;
  color: var(--text-on-dark);
  transition: color .3s;
}
.nav--scrolled .nav__logo-text { color: var(--text-on-light); }
.nav__links { display: none; }
@media (min-width: 900px) {
  .nav__links { display: flex; align-items: center; gap: 32px; }
  .nav__links a { font-size: .95rem; color: var(--text-on-dark); transition: color .2s; }
  .nav__links a:hover { color: var(--gold-light); }
  .nav--scrolled .nav__links a { color: var(--text-on-light-soft); }
  .nav--scrolled .nav__links a:hover { color: var(--gold-dark); }
}
.nav__toggle {
  display: flex; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text-on-dark); transition: .3s var(--ease); }
.nav--scrolled .nav__toggle span { background: var(--ink); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 900px) { .nav__toggle { display: none; } }

.nav__mobile {
  position: fixed; top: 72px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 24px 32px;
  display: flex; flex-direction: column; gap: 20px;
  transform: translateY(-120%); transition: transform .3s var(--ease);
  z-index: 99;
}
.nav__mobile.is-open { transform: translateY(0); }
.nav__mobile a { font-size: 1.1rem; padding: 8px 0; color: var(--ink); min-height: 44px; display: flex; align-items: center; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  color: var(--text-on-dark);
  overflow: hidden;
  background: var(--dark);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s var(--ease);
  transform: scale(1.04);
}
.hero__slide.is-active { opacity: 1; transform: scale(1); transition: opacity 1.4s var(--ease), transform 8s linear; }

.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,18,14,.4) 0%, rgba(20,18,14,.3) 40%, rgba(20,18,14,.88) 100%),
    linear-gradient(90deg, rgba(20,18,14,.5) 0%, transparent 55%);
}
.hero__content {
  position: relative; z-index: 2;
  padding: 110px 18px 100px;
  width: 100%;
}
@media (min-width: 768px) { .hero__content { padding: 140px 32px 120px; } }
.hero__eyebrow {
  font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--eyebrow-dark);
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 10.5vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  margin-bottom: 22px;
  max-width: min(18ch, 100%);
  overflow-wrap: anywhere;
  hyphens: auto;
}
.hero__title-line { display: block; }
.hero__title em { color: var(--gold-light); font-weight: 300; font-style: italic; }
.hero__address { font-size: 1rem; color: var(--text-on-dark-soft); margin-bottom: 32px; }
@media (min-width: 768px) { .hero__address { font-size: 1.08rem; } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.hero__ctas .btn { flex: 1 1 auto; min-width: 150px; }
@media (min-width: 520px) { .hero__ctas .btn { flex: 0 0 auto; } }

.hero__quickstats {
  display: flex; align-items: center; gap: clamp(12px, 3vw, 40px);
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.22);
  border-bottom: 1px solid rgba(255,255,255,.22);
  max-width: 640px;
}
.hero__quickstats > div { display: flex; flex-direction: column; }
.hero__quickstats strong {
  font-family: var(--font-serif); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 400; color: var(--gold-light);
}
.hero__quickstats span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-on-dark-soft); }
.hero__quickstats-divider { width: 1px; height: 30px; background: rgba(255,255,255,.28); flex-shrink: 0; }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--text-on-dark-soft); z-index: 2;
  animation: hoverbob 2.4s ease-in-out infinite;
  display: none;
}
@media (min-width: 768px) { .hero__scroll { display: block; } }
.hero__scroll:hover { color: #fff; }
@keyframes hoverbob { 0%,100% { transform: translateX(-50%) translateY(0);} 50% { transform: translateX(-50%) translateY(8px);} }

.hero__dots {
  position: absolute; bottom: 24px; right: 20px; z-index: 2;
  display: flex; gap: 8px;
}
@media (min-width: 768px) { .hero__dots { right: 32px; } }
.hero__dot {
  width: 28px; height: 2px; background: rgba(255,255,255,.35);
  cursor: pointer; transition: background .3s;
  padding: 0;
}
.hero__dot.is-active { background: var(--gold-light); }

/* About */
.about { padding: clamp(70px, 10vw, 120px) 0; background: var(--cream); }
.about__inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about__inner { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.about__body { color: var(--text-on-light-soft); margin-bottom: 22px; font-size: 1.05rem; line-height: 1.75; max-width: 58ch; }
.about__image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}
.about__image img, .about__image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.about__image-placeholder { background: linear-gradient(135deg, var(--cream-deep), var(--gold-light)); }

/* Available Units */
.units { padding: clamp(64px, 9vw, 110px) 0; background: var(--cream-deep); border-top: 1px solid var(--border-soft); }
.units__sub { color: var(--text-on-light-soft); max-width: 54ch; margin-bottom: 40px; font-size: 1.02rem; }
.units__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 780px) { .units__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .units__grid { grid-template-columns: repeat(3, 1fr); } }
.units__empty {
  text-align: center; padding: 48px 24px;
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border);
  max-width: 560px; margin: 0 auto;
}
.units__empty h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.6rem; margin-bottom: 10px; color: var(--ink); }
.units__empty p { color: var(--text-on-light-soft); margin-bottom: 22px; }

.unit-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column;
  border: 1px solid var(--border-soft);
}
.unit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.unit-card--skeleton {
  min-height: 420px;
  background: linear-gradient(90deg, var(--border-soft) 25%, var(--cream) 50%, var(--border-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.unit-card__photo {
  aspect-ratio: 4 / 3;
  background: var(--card) center/cover no-repeat;
  position: relative; cursor: pointer;
}
.unit-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: var(--ink);
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  padding: 6px 12px; border-radius: 999px;
}
.unit-card__photo-count {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(20,18,14,.78); color: var(--text-on-dark);
  font-size: .75rem; padding: 5px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
  display: flex; align-items: center; gap: 5px;
}
.unit-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.unit-card__unit { font-family: var(--font-serif); font-size: 1.5rem; letter-spacing: -.01em; margin-bottom: 4px; line-height: 1.1; color: var(--ink); }
.unit-card__addr { font-size: .88rem; color: var(--ink-subtle); margin-bottom: 14px; }
.unit-card__stats {
  display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-on-light-soft); font-size: .9rem;
  padding: 12px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  margin-bottom: 16px;
}
.unit-card__stats span { display: flex; align-items: center; gap: 5px; }
.unit-card__stats strong { color: var(--ink); font-weight: 600; }

.unit-card__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.unit-card__price strong { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 400; color: var(--ink); }
.unit-card__price span { color: var(--ink-subtle); font-size: .95rem; }
.unit-card__avail { font-size: .86rem; color: var(--success); font-weight: 600; margin-bottom: 18px; }

.unit-card__actions { display: flex; gap: 10px; margin-top: auto; }
.unit-card__actions .btn { flex: 1; }

/* Unit modal */
.unit-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 720px) { .unit-modal { align-items: center; } }
.unit-modal[hidden] { display: none; }
.unit-modal__backdrop { position: absolute; inset: 0; background: rgba(20,18,14,.75); backdrop-filter: blur(6px); }
.unit-modal__panel {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 100vw;
  max-height: 92vh; overflow: auto;
  box-shadow: var(--shadow-lg);
  margin: 0;
  animation: sheetSlideUp .3s var(--ease);
}
@media (min-width: 720px) {
  .unit-modal__panel {
    border-radius: var(--radius-lg);
    max-width: min(920px, calc(100vw - 32px));
    margin: 4vh 16px;
    animation: sheetFadeIn .25s var(--ease);
  }
}
@keyframes sheetSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheetFadeIn  { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: scale(1); } }
.unit-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(20,18,14,.85); color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.unit-modal__close:hover { background: var(--ink); }
.unit-modal__hero { aspect-ratio: 16/9; background: var(--card) center/cover; }
@media (min-width: 720px) { .unit-modal__hero { border-radius: var(--radius-lg) var(--radius-lg) 0 0; } }
.unit-modal__content { padding: 24px 18px 28px; }
@media (min-width: 720px) { .unit-modal__content { padding: 40px 48px; } }
.unit-modal__title { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 6px; line-height: 1.1; color: var(--ink); }
.unit-modal__subtitle { color: var(--ink-subtle); margin-bottom: 22px; font-size: .98rem; }
.unit-modal__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 720px) { .unit-modal__grid { grid-template-columns: 1.2fr .8fr; gap: 40px; } }

.unit-modal__price-box {
  background: #fff; border: 1px solid var(--border);
  padding: 20px; border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 22px;
}
.unit-modal__price-box strong { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 400; color: var(--ink); }
.unit-modal__meta-row { display: flex; flex-wrap: wrap; gap: 16px; font-size: .9rem; color: var(--text-on-light-soft); }
.unit-modal__meta-row strong { color: var(--ink); font-weight: 600; }

.unit-modal h4 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; margin: 24px 0 12px; color: var(--ink); }
.unit-modal__amenities { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.unit-modal__amenities li {
  list-style: none; background: var(--card); padding: 7px 14px; border-radius: 999px;
  font-size: .84rem; color: var(--text-on-light-soft);
}
.unit-modal__desc { color: var(--text-on-light-soft); white-space: pre-line; font-size: .96rem; line-height: 1.7; overflow-wrap: anywhere; }
.unit-modal__fees { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; column-gap: 16px; font-size: .92rem; }
.unit-modal__fees dt { color: var(--text-on-light-soft); }
.unit-modal__fees dd { font-weight: 600; color: var(--ink); }
.unit-modal__cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.unit-modal__cta-row .btn { flex: 1 1 160px; }
.unit-modal__floorplan { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }

/* Amenities section */
.amenities {
  padding: clamp(70px, 10vw, 120px) 0;
  background: var(--dark); color: var(--text-on-dark);
  position: relative;
}
.amenities .section-title { color: var(--text-on-dark); }
.amenities::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.amenity-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  margin-bottom: 56px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 600px) { .amenity-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .amenity-grid { grid-template-columns: repeat(4, 1fr); } }
.amenity-item {
  background: var(--dark-2);
  padding: 24px 14px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; color: var(--text-on-dark);
  transition: background .2s;
}
.amenity-item:hover { background: var(--dark-soft); }
.amenity-item__icon {
  width: 40px; height: 40px; color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
}
.amenity-item__icon svg { width: 28px; height: 28px; }
.amenity-item span { font-size: .9rem; line-height: 1.4; }

/* Pricing cards */
.pricing {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 700px) { .pricing { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pricing__card {
  background: var(--cream);
  color: var(--text-on-light);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.pricing__title {
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500;
  color: var(--ink); margin-bottom: 8px;
}
.pricing__summary { color: var(--text-on-light-soft); font-size: .95rem; margin-bottom: 16px; line-height: 1.55; }
.pricing__list { display: flex; flex-direction: column; gap: 0; list-style: none; padding: 0; }
.pricing__list > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: .95rem;
}
.pricing__list > div:last-child { border-bottom: 0; }
.pricing__list dt { color: var(--text-on-light-soft); }
.pricing__list dd { color: var(--ink); font-weight: 600; text-align: right; }

/* Gallery */
.gallery { padding: clamp(70px, 10vw, 120px) 0; background: var(--cream); }
.gallery__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-top: 40px;
}
@media (min-width: 640px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1000px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.gallery__item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden; position: relative;
  cursor: pointer; background: var(--card);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,18,14,.5), transparent 50%);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 14px;
  opacity: 0; transition: opacity .3s;
  color: var(--text-on-dark);
}
.gallery__item:hover .gallery__item__overlay,
.gallery__item:focus-visible .gallery__item__overlay { opacity: 1; }
.gallery__skeleton {
  aspect-ratio: 4/3;
  background: linear-gradient(90deg, var(--border-soft) 25%, var(--cream-deep) 50%, var(--border-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--radius);
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10,8,6,.96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__img-wrap { max-width: 92vw; max-height: 80vh; display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__caption { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.85); font-size: .9rem; max-width: 80%; text-align: center; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; color: #fff; background: rgba(255,255,255,.1);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; line-height: 1;
  transition: background .2s;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 18px; right: 18px; font-size: 1.6rem; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (min-width: 768px) { .lightbox__prev { left: 22px; } .lightbox__next { right: 22px; } }

/* Virtual tour */
.virtual-tour { padding: 70px 0; background: var(--cream-deep); text-align: center; }
.virtual-tour__sub { color: var(--text-on-light-soft); max-width: 46ch; margin: 0 auto 28px; }

/* Neighborhood */
.neighborhood { padding: clamp(70px, 10vw, 120px) 0; background: var(--cream); }
.neighborhood__intro { color: var(--text-on-light-soft); max-width: 64ch; font-size: 1.05rem; margin-bottom: 32px; line-height: 1.7; }

.scores {
  display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap;
}
.score {
  background: var(--dark); color: var(--text-on-dark);
  padding: 16px 22px; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; min-width: 100px;
  box-shadow: var(--shadow-sm);
}
.score strong { font-family: var(--font-serif); font-size: 2rem; color: var(--gold-light); font-weight: 400; line-height: 1; }
.score span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; color: var(--text-on-dark-soft); }

.neighborhood__split {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
}
@media (min-width: 900px) { .neighborhood__split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: stretch; } }

.poi-list { display: flex; flex-direction: column; gap: 10px; }
.poi {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.poi:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.poi__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream-deep); color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.poi__icon svg { width: 22px; height: 22px; }
.poi__body { min-width: 0; }
.poi__name { font-weight: 600; color: var(--ink); font-size: .98rem; line-height: 1.25; margin-bottom: 2px; }
.poi__type { font-size: .78rem; color: var(--ink-subtle); text-transform: uppercase; letter-spacing: .08em; }
.poi__dist { text-align: right; font-size: .85rem; color: var(--ink); line-height: 1.3; }
.poi__dist strong { display: block; font-weight: 600; color: var(--gold-dark); font-size: .95rem; }

.neighborhood__map-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  background: var(--card);
  min-height: 320px;
}
@media (min-width: 900px) { .neighborhood__map-wrap { aspect-ratio: auto; } }
.neighborhood__map {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(.55) contrast(.9) saturate(.7) brightness(1.02);
}
/* Any embedded iframe inside a section — defensive */
.container iframe, section iframe { max-width: 100%; }

/* Contact */
.contact { padding: clamp(70px, 10vw, 120px) 0; background: var(--dark); color: var(--text-on-dark); }
.contact__inner { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .contact__inner { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.contact__tagline { color: var(--text-on-dark-soft); margin-bottom: 28px; font-size: 1.05rem; max-width: 42ch; }
.contact__details { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.contact__detail-link {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold-light); font-size: 1.02rem; font-weight: 500;
  transition: color .2s;
  padding: 6px 0;
}
.contact__detail-link:hover { color: #fff; }
.contact__hours { color: var(--text-on-dark-soft); font-size: .9rem; }

.contact__form {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.1);
  padding: 24px; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 600px) { .contact__form { padding: 36px; } }

.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; gap: 16px; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: .78rem; color: var(--text-on-dark);
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--text-on-dark);
  padding: 12px 14px;
  border-radius: var(--radius);
  font: inherit;
  min-height: 48px;
  transition: border-color .2s, background .2s;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.1);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(245,240,232,.4); }
.form__status { font-size: .92rem; min-height: 1.2em; }
.form__status.is-success { color: var(--gold-light); }
.form__status.is-error { color: #F0B39A; }

/* Footer */
.footer { background: #0F0D09; color: var(--text-on-dark-soft); padding: 48px 0 36px; font-size: .9rem; }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 720px) { .footer__inner { grid-template-columns: 1.2fr .8fr 1.2fr; gap: 40px; } }
.footer__logo { font-family: var(--font-serif); font-size: 1.25rem; letter-spacing: .12em; color: var(--text-on-dark); margin-bottom: 12px; }
.footer__address { font-style: normal; margin-bottom: 10px; line-height: 1.7; }
.footer__phone { color: var(--gold-light); font-weight: 600; }
.footer__phone:hover { color: #fff; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: var(--gold-light); }
.footer__managed { font-size: .88rem; }
.footer__mna { color: var(--gold-light); font-weight: 600; display: inline-block; margin: 4px 0 16px; }
.footer__mna:hover { color: #fff; }
.footer__legal { font-size: .82rem; color: rgba(251,248,241,.6); margin-top: 10px; }
.footer__fair-housing { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: .78rem; color: rgba(251,248,241,.6); }
.footer__fair-housing svg { color: var(--gold-light); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  html { scroll-behavior: auto; }
}
