/* Leonardo Armas Real Estate — high-end luxury theme
   Palette: charcoal ink · ivory cream · warm stone · soft gold */
:root {
  --ink: #0a0a0b;
  --ink-2: #121214;
  --ink-3: #1a1a1d;
  --cream: #f5f0e8;
  --cream-soft: #e8e2d6;
  --stone: #a89f91;
  --stone-light: #c4b8a5;
  --gold: #c9a962;
  --gold-soft: rgba(201, 169, 98, 0.22);
  --glass: rgba(255, 255, 255, 0.06);
  --line: rgba(245, 240, 232, 0.12);
  --line-dark: rgba(10, 10, 11, 0.08);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--cream);
  background: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- Layout ---------- */
.wrap {
  width: min(1180px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.wrap-wide {
  width: min(1360px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
  /* Always visible while scrolling (mobile + desktop) */
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
}

.nav__inner {
  width: min(1360px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.nav__brand img {
  height: 34px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.98;
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav__brand-text small {
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 400;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav__links a {
  opacity: 0.78;
  transition: opacity 0.25s;
}

.nav__links a:hover,
.nav__links a.is-active {
  opacity: 1;
  color: var(--cream);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(245, 240, 232, 0.55);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.nav__cta:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* Hamburger — cream/gold lines on charcoal (never a flat grey square) */
.nav__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 98, 0.38);
  background:
    linear-gradient(
      145deg,
      rgba(201, 169, 98, 0.16) 0%,
      rgba(255, 255, 255, 0.04) 55%,
      rgba(10, 10, 11, 0.35) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(245, 240, 232, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.28);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.nav__burger span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--cream);
  box-shadow: 0 0 0 0.5px rgba(201, 169, 98, 0.25);
  transform-origin: center;
  transition:
    transform 0.28s var(--ease),
    opacity 0.2s ease,
    background 0.2s ease,
    width 0.2s ease;
}

.nav__burger:hover,
.nav__burger:focus-visible {
  border-color: rgba(201, 169, 98, 0.7);
  background:
    linear-gradient(
      145deg,
      rgba(201, 169, 98, 0.28) 0%,
      rgba(255, 255, 255, 0.06) 100%
    );
  outline: none;
}

.nav__burger:hover span,
.nav__burger:focus-visible span {
  background: var(--gold);
}

/* Open → gold X */
.nav.is-open .nav__burger {
  border-color: var(--gold);
  background:
    linear-gradient(
      145deg,
      rgba(201, 169, 98, 0.32) 0%,
      rgba(18, 18, 20, 0.9) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(245, 240, 232, 0.14),
    0 0 0 1px rgba(201, 169, 98, 0.2),
    0 6px 18px rgba(0, 0, 0, 0.35);
}

.nav.is-open .nav__burger span {
  background: var(--gold);
}

.nav.is-open .nav__burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav.is-open .nav__burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav.is-open .nav__burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav {
    background: rgba(10, 10, 11, 0.94);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
    padding-top: env(safe-area-inset-top);
    height: calc(var(--nav-h) + env(safe-area-inset-top));
  }
  .nav__links {
    position: fixed;
    top: calc(var(--nav-h) + env(safe-area-inset-top));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.85rem 1.1rem 1.35rem;
    background:
      linear-gradient(
        180deg,
        rgba(18, 18, 20, 0.99) 0%,
        rgba(10, 10, 11, 0.98) 100%
      );
    border-bottom: 1px solid rgba(201, 169, 98, 0.22);
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.55),
      inset 0 1px 0 rgba(201, 169, 98, 0.08);
    max-height: min(70vh, calc(100dvh - var(--nav-h) - env(safe-area-inset-top)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1001;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.25s, visibility 0.25s;
  }
  .nav.is-open .nav__links {
    transform: none;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  .nav__links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    opacity: 1;
    letter-spacing: 0.06em;
  }
  .nav__links a:hover,
  .nav__links a:active,
  .nav__links a.is-active {
    background: rgba(201, 169, 98, 0.12);
    color: var(--cream);
  }
  .nav__links .nav__cta {
    margin-top: 0.35rem;
    justify-content: center;
    border-color: rgba(201, 169, 98, 0.45);
    color: var(--gold);
  }
  .nav__links .nav__cta:hover {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
  }
  .nav__burger {
    display: flex;
    z-index: 1002;
    pointer-events: auto;
  }
  .nav__cta--desktop {
    display: none;
  }
  body.nav-menu-open {
    overflow: hidden;
    /* do NOT use touch-action:none — blocks scrolling the menu panel on iOS */
    touch-action: auto;
  }
  body.nav-menu-open .nav__links {
    touch-action: pan-y;
    overscroll-behavior: contain;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.3s, color 0.3s,
    border-color 0.3s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(245, 240, 232, 0.45);
  color: var(--cream);
}

.btn--ghost:hover {
  background: var(--cream);
  color: var(--ink);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}

.btn--ink {
  background: var(--ink);
  color: var(--cream);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroKen 22s ease-in-out infinite alternate;
}

@keyframes heroKen {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.14) translate3d(-1.5%, -1%, 0);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(10, 10, 11, 0.45) 0%,
      rgba(10, 10, 11, 0.15) 35%,
      rgba(10, 10, 11, 0.55) 70%,
      rgba(10, 10, 11, 0.92) 100%
    ),
    radial-gradient(ellipse at 30% 70%, rgba(10, 10, 11, 0.2), transparent 50%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1360px, calc(100% - 2rem));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 0 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 14vw, 10.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.88;
  color: var(--cream);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.hero__aside {
  max-width: 22rem;
  padding-bottom: 0.6rem;
}

.hero__aside h2 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.hero__aside p {
  margin: 0 0 1.4rem;
  color: var(--cream-soft);
  font-size: 0.95rem;
  opacity: 0.88;
}

.hero__scroll {
  position: absolute;
  right: max(1.5rem, calc((100% - 1360px) / 2));
  bottom: 2rem;
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-light);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .hero__content {
    grid-template-columns: 1fr;
    padding-bottom: 5rem;
  }
  .hero__aside {
    max-width: none;
  }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.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;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--cream {
  background: var(--cream);
  color: var(--ink);
}

.section--cream .kicker {
  color: var(--stone);
}

.section--stone {
  background: #ebe4d8;
  color: var(--ink);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section__title {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

/* ---------- Stats strip (count-up) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.stat {
  background: var(--ink-2);
  padding: 1.6rem 1.25rem;
  text-align: center;
}

.stat__num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1;
  color: var(--gold);
}

.stat__label {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

@media (max-width: 700px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- About split ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

.about-grid__copy h2 {
  margin: 0.4rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.about-grid__copy p {
  margin: 0 0 1rem;
  color: var(--stone-light);
  font-size: 0.98rem;
}

.about-grid__photo {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--ink-3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.about-grid__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-grid__side {
  font-size: 0.95rem;
  color: var(--cream-soft);
  opacity: 0.9;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-grid__photo {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ---------- Featured listings ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--cream);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
    border-color 0.35s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(201, 169, 98, 0.35);
}

.card__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #000;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.06);
}

.card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
}

.card__badge--available {
  background: rgba(20, 90, 55, 0.88);
  border-color: rgba(110, 231, 183, 0.35);
}

.card__badge--sold {
  background: rgba(120, 30, 30, 0.85);
}

.card__badge--pending {
  background: rgba(120, 90, 20, 0.85);
}

.card__badge--soon {
  background: rgba(30, 60, 110, 0.88);
  border-color: rgba(125, 211, 252, 0.35);
}

.card__body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.card__price {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.card__title {
  font-weight: 500;
  font-size: 1.02rem;
}

.card__meta {
  color: var(--stone);
  font-size: 0.88rem;
}

.card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.card__fact {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--cream-soft);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
}

.card__fact strong {
  color: var(--gold);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* cream section cards */
.section--cream .card,
.section--stone .card {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-dark);
  box-shadow: 0 16px 40px rgba(10, 10, 11, 0.06);
}

.section--cream .card__meta,
.section--stone .card__meta {
  color: #6b6560;
}

.section--cream .card__fact,
.section--stone .card__fact {
  background: #f3efe7;
  border-color: transparent;
  color: #3d3a36;
}

/* ---------- Agent band ---------- */
.agent {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
  align-items: center;
}

.agent__photo-wrap {
  position: relative;
  max-width: 440px;
}

.agent__photo {
  border-radius: 22px;
  overflow: hidden;
  background: #121214;
  aspect-ratio: 3/4;
  box-shadow: 0 32px 70px rgba(10, 10, 11, 0.28), 0 0 0 1px rgba(10, 10, 11, 0.06);
}

.agent__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform 1.1s var(--ease);
}

.agent__photo-wrap:hover .agent__photo img {
  transform: scale(1.03);
}

.agent__logo-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 240, 232, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.agent__logo-badge img {
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: block;
}

.agent__copy h2 {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.05;
}

.agent__copy p {
  margin: 0 0 1rem;
  max-width: 42ch;
  color: #4a4540;
}

.agent__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.agent__mark img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.agent__mark span {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.section--stone .agent__mark img {
  /* light bg uses black logo */
  filter: none;
}

@media (max-width: 800px) {
  .agent {
    grid-template-columns: 1fr;
  }
  .agent__photo-wrap {
    max-width: 360px;
    margin: 0 auto;
  }
}

/* About hero with dual brand */
.about-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.about-brand__logo {
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.about-brand__divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.about-brand__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--cream);
}

/* Footer logo */
.footer__logo {
  height: 32px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  margin-bottom: 0.65rem;
  opacity: 0.95;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 320px;
  display: grid;
  align-items: end;
}

.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(10, 10, 11, 0.88),
    rgba(10, 10, 11, 0.35)
  );
}

.cta-band__content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 36rem;
}

.cta-band__content h2 {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
}

.cta-band__content p {
  margin: 0 0 1.25rem;
  color: var(--cream-soft);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  color: var(--stone);
  font-size: 0.88rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer__brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: 0.04em;
}

.footer a:hover {
  color: var(--cream);
}

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.78rem;
}

@media (max-width: 700px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Page hero (inner) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 3.5rem) 0 3rem;
  background: var(--ink-2);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 80% 20%,
    var(--gold-soft),
    transparent 50%
  );
  pointer-events: none;
}

.page-hero h1 {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
}

/* ---------- Listings page ---------- */
.lst-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.lst-filters select,
.lst-filters input {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  color: var(--cream);
  outline: none;
}

.lst-filters select:focus,
.lst-filters input:focus {
  border-color: var(--gold);
}

.lst-status {
  color: var(--stone);
  margin: 0 0 1rem;
}

/* ---------- Listing detail ---------- */
.ld {
  max-width: min(1100px, 100%);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 1.5rem) 1.1rem 4rem;
  /* Photo strip must never widen the page / show a site-wide scrollbar */
  overflow-x: clip;
  box-sizing: border-box;
}

.ld a.back {
  color: var(--stone);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ld-gallery {
  margin: 1rem 0 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ld-hero {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #0a0a0b;
  max-height: min(62vh, 560px);
  aspect-ratio: 16 / 10;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.ld-hero img {
  width: 100%;
  height: 100%;
  max-height: min(62vh, 560px);
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.ld-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(10, 10, 11, 0.72);
  color: var(--gold, #d4af37);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ld-nav:hover,
.ld-nav:focus-visible {
  background: rgba(20, 18, 12, 0.88);
  border-color: var(--gold, #d4af37);
  outline: none;
  transform: translateY(-50%) scale(1.04);
}

.ld-nav:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.ld-nav--prev {
  left: 0.75rem;
}

.ld-nav--next {
  right: 0.75rem;
}

.ld-nav svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.ld-counter {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 3;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cream, #f5f0e8);
  background: rgba(10, 10, 11, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-variant-numeric: tabular-nums;
}

/* Thumb row: arrows + hidden scrollbar (no page layout shift) */
.ld-thumbs-wrap {
  display: grid;
  grid-template-columns: 2.25rem 1fr 2.25rem;
  align-items: center;
  gap: 0.4rem;
  margin: 0.55rem 0 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ld-thumbs-arrow {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(10, 10, 11, 0.55);
  color: var(--gold, #d4af37);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.ld-thumbs-arrow:hover,
.ld-thumbs-arrow:focus-visible {
  background: rgba(20, 18, 12, 0.85);
  border-color: var(--gold, #d4af37);
  outline: none;
}

.ld-thumbs-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.ld-thumbs-arrow svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.ld-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.35rem 0.1rem 0.55rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /* Kill default scrollbar so it never shoves layout */
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.55) rgba(255, 255, 255, 0.06);
  min-width: 0;
  max-width: 100%;
}

.ld-thumbs::-webkit-scrollbar {
  height: 6px;
}

.ld-thumbs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.ld-thumbs::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.75), rgba(184, 148, 60, 0.9));
  border-radius: 999px;
  border: 1px solid rgba(10, 10, 11, 0.35);
}

.ld-thumbs button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  opacity: 0.65;
  outline: 2px solid transparent;
  outline-offset: 1px;
  transition: opacity 0.15s ease, outline-color 0.15s ease;
}

.ld-thumbs button.is-on {
  opacity: 1;
  outline-color: var(--gold, #d4af37);
}

.ld-thumbs button:hover,
.ld-thumbs button:focus-visible {
  opacity: 1;
  outline-color: rgba(212, 175, 55, 0.55);
}

.ld-thumbs img {
  width: 92px;
  height: 68px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

@media (max-width: 640px) {
  .ld-nav {
    width: 2.35rem;
    height: 2.35rem;
  }
  .ld-nav--prev {
    left: 0.45rem;
  }
  .ld-nav--next {
    right: 0.45rem;
  }
  .ld-thumbs-wrap {
    grid-template-columns: 2rem 1fr 2rem;
    gap: 0.3rem;
  }
  .ld-thumbs img {
    width: 78px;
    height: 58px;
  }
}

/* ---------- Listing map (dark luxury) ---------- */
.ld-map {
  margin: 1.75rem 0 0.5rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(201, 169, 98, 0.28);
  background:
    radial-gradient(ellipse 70% 80% at 10% 0%, rgba(201, 169, 98, 0.08), transparent 55%),
    linear-gradient(165deg, #121214 0%, #0a0a0b 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(245, 240, 232, 0.05);
  overflow: hidden;
}

.ld-map__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1.1rem 1.2rem 0.85rem;
}

.ld-map__head .kicker {
  margin: 0 0 0.35rem;
}

.ld-map__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.ld-map__addr {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--stone);
  max-width: 36ch;
}

.ld-map__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ld-map__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(145deg, #e8d5a3, var(--gold, #c9a962));
  border: 1px solid rgba(245, 240, 232, 0.2);
  box-shadow: 0 6px 18px rgba(201, 169, 98, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ld-map__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(201, 169, 98, 0.35);
}

.ld-map__frame {
  position: relative;
  height: min(42vh, 380px);
  min-height: 260px;
  background: #0a0a0b;
  border-top: 1px solid rgba(201, 169, 98, 0.18);
}

.ld-map__frame .leaflet-container {
  width: 100%;
  height: 100%;
  background: #0a0a0b;
  font-family: var(--sans);
}

/* Leaflet chrome → ink / gold */
.ld-map__frame .leaflet-control-zoom a {
  background: rgba(18, 18, 20, 0.92) !important;
  color: var(--gold, #c9a962) !important;
  border-color: rgba(201, 169, 98, 0.35) !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 16px !important;
}

.ld-map__frame .leaflet-control-zoom a:hover {
  background: rgba(28, 26, 20, 0.98) !important;
  color: var(--cream) !important;
}

.ld-map__frame .leaflet-control-attribution {
  background: rgba(10, 10, 11, 0.78) !important;
  color: var(--stone) !important;
  font-size: 0.62rem !important;
  max-width: 70%;
}

.ld-map__frame .leaflet-control-attribution a {
  color: var(--gold, #c9a962) !important;
}

.ld-map-pin {
  width: 28px;
  height: 28px;
  margin-left: -14px !important;
  margin-top: -28px !important;
  background: transparent;
  border: 0;
}

.ld-map-pin__dot {
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(145deg, #e8d5a3, #c9a962 55%, #9a7b3c);
  box-shadow:
    0 0 0 2px rgba(10, 10, 11, 0.85),
    0 6px 16px rgba(201, 169, 98, 0.45);
  position: relative;
}

.ld-map-pin__dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #0a0a0b;
}

.ld-map__status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--stone);
  font-size: 0.92rem;
  z-index: 2;
  background: rgba(10, 10, 11, 0.55);
  pointer-events: none;
}

.ld-map__status[hidden] {
  display: none !important;
}

.ld-map__status.is-error {
  pointer-events: auto;
}

@media (max-width: 640px) {
  .ld-map__frame {
    height: 280px;
    min-height: 240px;
  }
}

.ld-price {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0.35rem 0;
}

.ld-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 400;
  margin: 0 0 0.4rem;
}

.ld-sub {
  color: var(--stone);
  margin: 0 0 1rem;
}

.ld-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.ld-fact {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.88rem;
}

.ld-fact--mls {
  border-color: rgba(201, 169, 98, 0.45);
  color: var(--cream);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.ld-fact--mls::before {
  content: none;
}

.ld-fact strong {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* Property facts sheet — all stats count up */
.ld-sheet {
  margin: 1.25rem 0 1.5rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1rem;
  background: var(--glass);
  border: 1px solid var(--line);
}

.ld-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.85rem 1rem;
}

.ld-stat {
  text-align: left;
  min-width: 0;
}

.ld-stat__num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.ld-stat__num strong {
  font-weight: 500;
}

.ld-stat__label {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}

.ld-tour-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.65rem 0 0.35rem;
}

.ld-tour-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  max-width: 48ch;
}

.card__subtitle {
  font-size: 0.82rem;
  opacity: 0.88;
  margin-top: 0.15rem;
}

.ld-body {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1.4fr 0.8fr;
}

@media (max-width: 800px) {
  .ld-body {
    grid-template-columns: 1fr;
  }
}

.ld-desc {
  line-height: 1.7;
  color: var(--cream-soft);
  white-space: pre-wrap;
}

.ld-side {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem;
  background: var(--ink-2);
  height: fit-content;
}

.ld-side h3 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.ld-side ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--stone-light);
}

.ld-cta {
  display: inline-flex;
  margin-top: 0.95rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.ld-oh {
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.15), var(--ink-3));
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  margin: 0 0 1.25rem;
}

.ld-agent {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.ld-agent .name {
  font-weight: 600;
}

.ld-agent__phone {
  margin-top: 0.25rem;
}

.ld-agent a.phone-link,
a.phone-link {
  color: var(--gold);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ld-agent a.phone-link:hover,
a.phone-link:hover {
  color: var(--cream);
  border-bottom-color: rgba(201, 169, 98, 0.55);
}

.ld-err {
  color: #f0a0a0;
  padding: 2rem 0;
}

/* ---------- Contact form ---------- */
.form-grid {
  display: grid;
  gap: 0.85rem;
  max-width: 34rem;
}

.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
}

.form-note {
  color: var(--stone);
  font-size: 0.88rem;
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gold {
  color: var(--gold);
}

.muted {
  color: var(--stone);
}
