/* ─────────────────────────────────────────
   WAYEB REAL ESTATE — Main Stylesheet
   ───────────────────────────────────────── */

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

:root {
  --gold: #F0A500;
  --gold-light: #FFCD00;
  --dark: #111110;
  --dark-mid: #1C1C1A;
  --white: #FFFFFF;
  --white-80: rgba(255,255,255,0.8);
  --white-50: rgba(255,255,255,0.5);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}


/* ─────────────────────────────────────────
   LOGO
   ───────────────────────────────────────── */

.logo { text-decoration: none; display: block; flex-shrink: 0; }
.logo__svg         { height: 32px; width: auto; display: block; }
.logo__svg--footer { height: 28px; }


/* ─────────────────────────────────────────
   NAV
   ───────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px 56px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease,
              padding 0.35s ease, box-shadow 0.35s ease;
  animation: fadeDown 1s ease 0.2s both;
}

nav.scrolled {
  background: var(--dark-mid);
  border-bottom-color: var(--white-10);
  padding: 16px 56px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.nav__right {
  display: flex;
  align-items: flex-end;
  gap: 36px;
}

.nav__links { display: flex; gap: 36px; list-style: none; }

.nav__links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-80);
  text-decoration: none;
  transition: color 0.25s;
}

.nav__links a:hover { color: var(--gold-light); }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid var(--white-20);
  padding-left: 24px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-50);
  padding: 0;
  transition: color 0.25s;
}

.lang-btn.active { color: var(--gold); font-weight: 600; }
.lang-btn:hover  { color: var(--white-80); }

.lang-toggle .sep {
  color: var(--white-20);
  font-size: 11px;
  user-select: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: 0;
  background: var(--dark-mid);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 60px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav__drawer.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav__drawer .nav__links {
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 320px;
}

.nav__drawer .nav__links li {
  width: 100%;
  border-bottom: 1px solid var(--white-10);
}

.nav__drawer .nav__links a {
  display: block;
  padding: 22px 0;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-align: center;
}

.nav__drawer .lang-toggle {
  margin-top: 40px;
  border-left: none;
  padding-left: 0;
  gap: 20px;
}

.nav__drawer .lang-btn { font-size: 13px; }


/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero.jpg');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  animation: heroZoom 12s ease-out forwards;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,9,0.42) 0%,
    rgba(10,10,9,0.10) 35%,
    rgba(10,10,9,0.22) 65%,
    rgba(10,10,9,0.85) 100%
  );
}

.hero__content {
  position: absolute;
  bottom: 80px;
  left: 56px; right: 56px;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  animation: fadeUp 1.1s ease 0.5s both;
}

.hero__headline { max-width: 640px; }

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

.hero__eyebrow-line { width: 32px; height: 1px; background: var(--gold); }

.hero__eyebrow-text {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__title {
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.06em;
  color: var(--white);
  text-transform: uppercase;
}

.hero__title strong {
  font-weight: 700;
  display: block;
  text-transform: uppercase;
}

.hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
  flex-shrink: 0;
  max-width: 280px;
}

.hero__desc {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--white-80);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid var(--white-50);
  padding: 14px 24px;
  transition: border-color 0.25s, color 0.25s;
  white-space: nowrap;
}

.hero__btn:hover  { border-color: var(--gold); color: var(--gold); }
.hero__btn:active { border-color: var(--gold-light); color: var(--gold-light); }

.hero__btn-arrow {
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s;
}

.hero__btn-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

.hero__btn:hover .hero__btn-arrow { width: 28px; }

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1.2s ease 1s both;
}

.hero__scroll-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-50);
}

.hero__scroll-bar {
  width: 1px; height: 48px;
  background: var(--white-20);
  position: relative;
  overflow: hidden;
}

.hero__scroll-bar::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: scrollBar 2s ease-in-out infinite;
}


/* ─────────────────────────────────────────
   STATS
   ───────────────────────────────────────── */

.stats {
  background: var(--dark-mid);
  border-top: 1px solid var(--white-10);
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  min-width: 160px;
  padding: 48px 40px;
  border-right: 1px solid var(--white-10);
}

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

.stat__num {
  font-size: 48px;
  font-weight: 200;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__num span { font-size: 28px; color: var(--gold); }

.stat__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-50);
}


/* ─────────────────────────────────────────
   SECTIONS
   ───────────────────────────────────────── */

.section { padding: 100px 56px; }

.section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.section__tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

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

.section__tag-text {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.section__title {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
}

.section__title strong { font-weight: 700; }

.section__body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--white-80);
  margin-bottom: 20px;
}

.section__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.section__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.section__image-badge {
  position: absolute;
  bottom: 32px; right: -1px;
  background: var(--gold);
  color: var(--dark);
  padding: 20px 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ─────────────────────────────────────────
   LISTINGS
   ───────────────────────────────────────── */

.listings { background: var(--dark-mid); padding: 100px 56px; }

.listings__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.listings__link {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: opacity 0.25s;
  white-space: nowrap;
}

.listings__link:hover { opacity: 0.7; }

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

.card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: #222;
}

.card:first-child { grid-row: span 2; aspect-ratio: auto; }

.card__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.7s ease;
  filter: brightness(0.75);
}

.card:hover .card__img { transform: scale(1.06); filter: brightness(0.6); }

.card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,9,0.85) 0%, transparent 55%);
}

.card__info { position: absolute; bottom: 24px; left: 24px; right: 24px; }

.card__tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.card__title { font-size: 17px; font-weight: 500; color: var(--white); margin-bottom: 4px; }
.card__price { font-size: 13px; font-weight: 300; color: var(--white-80); }


/* ─────────────────────────────────────────
   CTA BANNER
   ───────────────────────────────────────── */

.cta-banner {
  padding: 100px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
  border-top: 1px solid var(--white-10);
}

.cta-banner__title {
  font-size: clamp(28px, 4vw, 60px);
  font-weight: 200;
  line-height: 1.1;
  color: var(--white);
}

.cta-banner__title strong { font-weight: 700; color: var(--gold); }

.cta-banner__btn {
  flex-shrink: 0;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--gold);
  padding: 20px 40px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s;
}

.cta-banner__btn:hover { background: var(--gold-light); }


/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */

footer {
  background: var(--dark-mid);
  border-top: 1px solid var(--white-10);
  padding: 56px 56px 36px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--white-10);
  margin-bottom: 28px;
}

.footer__copy { font-size: 12px; font-weight: 300; color: var(--white-50); }

.footer__nav { display: flex; gap: 32px; list-style: none; flex-wrap: wrap; }

.footer__nav a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-50);
  text-decoration: none;
  transition: color 0.25s;
}

.footer__nav a:hover { color: var(--white); }


/* ─────────────────────────────────────────
   ANIMATIONS
   ───────────────────────────────────────── */

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.00); }
}

@keyframes scrollBar {
  0%   { top: -100%; }
  100% { top: 100%; }
}


/* ─────────────────────────────────────────
   RESPONSIVE — TABLET ≤ 1024px
   ───────────────────────────────────────── */

@media (max-width: 1024px) {

  nav          { padding: 20px 32px; }
  nav.scrolled { padding: 14px 32px; }

  .nav__right { display: none; }
  .hamburger  { display: flex; }

  .hero__content {
    left: 32px; right: 32px; bottom: 60px;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .hero__right { align-items: flex-start; max-width: 100%; }
  .hero__desc  { text-align: left; }

  .section       { padding: 72px 32px; }
  .section--split { grid-template-columns: 1fr; gap: 48px; }
  .section__image { aspect-ratio: 16/9; }

  .listings      { padding: 72px 32px; }
  .listings__grid { grid-template-columns: repeat(2, 1fr); }
  .card:first-child { grid-row: auto; aspect-ratio: 3/4; }

  .cta-banner {
    padding: 72px 32px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  footer         { padding: 48px 32px 28px; }
  .footer__top   { flex-direction: column; align-items: flex-start; }

  .stats .stat   { padding: 36px 28px; }
  .stat__num     { font-size: 38px; }
}


/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE ≤ 640px
   ───────────────────────────────────────── */

@media (max-width: 640px) {

  nav          { padding: 16px 20px; }
  nav.scrolled { padding: 12px 20px; }

  .hero__content { left: 20px; right: 20px; bottom: 48px; }
  .hero__title   { font-size: clamp(28px, 9vw, 46px); }
  .hero__scroll  { display: none; }

  .section    { padding: 56px 20px; }
  .listings   { padding: 56px 20px; }

  .listings__grid    { grid-template-columns: 1fr; }
  .card              { aspect-ratio: 4/3; }
  .card:first-child  { aspect-ratio: 4/3; }

  .cta-banner        { padding: 56px 20px; }
  .cta-banner__btn   { width: 100%; text-align: center; }

  footer             { padding: 40px 20px 24px; }
  .footer__nav       { flex-direction: column; gap: 16px; }

  .stats             { flex-direction: column; }
  .stat              { border-right: none; border-bottom: 1px solid var(--white-10); padding: 28px 20px; }
  .stat:last-child   { border-bottom: none; }
}


/* ─────────────────────────────────────────
   LISTING DETAIL — BREADCRUMB
   ───────────────────────────────────────── */

.breadcrumb {
  padding: 108px 56px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.breadcrumb a,
.breadcrumb span {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-50);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep    { color: var(--white-20); }
.breadcrumb .current { color: var(--gold); }


/* ─────────────────────────────────────────
   LISTING DETAIL — PHOTO GRID (Airbnb style)
   ───────────────────────────────────────── */

.photo-grid {
  margin: 24px 56px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 4px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.photo-grid__main {
  grid-row: span 2;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.photo-grid__main img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-grid__main:hover img { transform: scale(1.03); }

.photo-grid__thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 4px;
}

.photo-grid__thumb {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.photo-grid__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-grid__thumb:hover img { transform: scale(1.05); }

/* "Show all photos" button */
.photo-grid__show-all {
  position: absolute;
  bottom: 20px; right: 20px;
  background: var(--white);
  color: var(--dark);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
  z-index: 10;
}

.photo-grid__show-all:hover  { background: var(--gold); color: var(--dark); }
.photo-grid__show-all:active { background: var(--gold-light); color: var(--dark); }

.photo-grid__show-all svg { width: 16px; height: 16px; flex-shrink: 0; }


/* ─────────────────────────────────────────
   PHOTO LIGHTBOX MODAL
   ───────────────────────────────────────── */

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 500; /* above overlay (300) and overlay bar (310) */
  background: rgba(10,10,9,0.97);
  display: none;          /* hard hide — no opacity limbo on iOS */
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
}

.photo-modal.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.photo-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--white-10);
  flex-shrink: 0;
}

.photo-modal__counter {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white-80);
}

.photo-modal__close {
  background: none;
  border: 1px solid var(--white-20);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 18px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.photo-modal__close:hover { border-color: var(--gold); color: var(--gold); }

.photo-modal__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 80px;
  position: relative;
  overflow: hidden;
}

.photo-modal__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
}

.photo-modal__prev,
.photo-modal__next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none;
  border: 1px solid var(--white-20);
  color: var(--white);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-size: 18px;
}

.photo-modal__prev { left: 20px; }
.photo-modal__next { right: 20px; }
.photo-modal__prev:hover,
.photo-modal__next:hover { border-color: var(--gold); color: var(--gold); }

.photo-modal__strip {
  display: flex;
  gap: 6px;
  padding: 16px 32px;
  overflow-x: auto;
  flex-shrink: 0;
  border-top: 1px solid var(--white-10);
  scrollbar-width: thin;
  scrollbar-color: var(--white-20) transparent;
}

.photo-modal__strip::-webkit-scrollbar { height: 4px; }
.photo-modal__strip::-webkit-scrollbar-thumb { background: var(--white-20); }

.photo-modal__strip-thumb {
  flex-shrink: 0;
  width: 88px; height: 60px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s;
  border: 2px solid transparent;
}

.photo-modal__strip-thumb.active {
  opacity: 1;
  border-color: var(--gold);
}

.photo-modal__strip-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}


/* ─────────────────────────────────────────
   LISTING DETAIL — HEADER + META
   ───────────────────────────────────────── */

.listing-header {
  padding: 48px 56px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.listing-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.listing-title {
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 12px;
}

.listing-title strong { font-weight: 700; }

.listing-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 300;
  color: var(--white-50);
  letter-spacing: 0.06em;
}

.listing-location svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }

.listing-price-block { text-align: right; }

.listing-price-label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 6px;
}

.listing-price {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 200;
  color: var(--white);
  line-height: 1;
}

.listing-price span { color: var(--gold); font-size: 0.55em; vertical-align: top; margin-top: 6px; display: inline-block; }


/* ─────────────────────────────────────────
   LISTING DETAIL — SPECS BAR
   ───────────────────────────────────────── */

.listing-specs {
  display: flex;
  gap: 0;
  margin: 36px 56px 0;
  border: 1px solid var(--white-10);
  flex-wrap: wrap;
}

.listing-spec {
  flex: 1;
  min-width: 140px;
  padding: 24px 28px;
  border-right: 1px solid var(--white-10);
}

.listing-spec:last-child { border-right: none; }

.listing-spec__label {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 6px;
}

.listing-spec__value {
  font-size: 17px;
  font-weight: 300;
  color: var(--white);
}

.listing-spec__value strong { font-weight: 600; color: var(--gold); }


/* ─────────────────────────────────────────
   LISTING DETAIL — BODY CONTENT
   ───────────────────────────────────────── */

.listing-body {
  padding: 56px 56px 0;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}

.listing-desc h2 {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--white-10);
}

.listing-desc p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--white-80);
  margin-bottom: 18px;
}

.listing-features {
  margin-top: 40px;
}

.listing-features h3 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 20px;
}

.listing-features ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}

.listing-features li {
  font-size: 14px;
  font-weight: 300;
  color: var(--white-80);
  display: flex;
  align-items: center;
  gap: 10px;
}

.listing-features li::before {
  content: '';
  display: block;
  width: 4px; height: 4px;
  background: var(--gold);
  flex-shrink: 0;
}


/* ─────────────────────────────────────────
   LISTING DETAIL — CONTACT SIDEBAR
   ───────────────────────────────────────── */

.listing-sidebar {
  position: sticky;
  top: 100px;
}

.contact-card {
  background: var(--dark-mid);
  border: 1px solid var(--white-10);
  padding: 36px;
}

.contact-card__title {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 6px;
}

.contact-card__subtitle {
  font-size: 20px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--white-10);
}

.contact-card__subtitle strong { font-weight: 700; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-50);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--white-10);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff50' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option { background: var(--dark-mid); }

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

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--white-20); }

.form-group textarea { resize: vertical; min-height: 90px; }

.form-submit {
  width: 100%;
  background: transparent;
  color: var(--gold);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  padding: 15px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  margin-top: 4px;
}

.form-submit:hover,
.form-submit:active {
  background: var(--gold);
  color: var(--dark);
}

.form-submit:active {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--dark);
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px 0 8px;
  font-size: 14px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.06em;
}

/* WhatsApp button */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px;
  margin-top: 0;
  transition: background 0.25s, color 0.25s;
}

.whatsapp-btn:hover  { background: var(--gold-light); color: var(--dark); }
.whatsapp-btn:active { background: var(--gold-light); color: var(--dark); }

.whatsapp-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.contact-card__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 4px;
}

.contact-card__divider span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white-20);
  white-space: nowrap;
}

.contact-card__divider::before,
.contact-card__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--white-10);
}

/* Agent info */
.contact-card__agent {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--white-10);
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-card__agent-avatar {
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--dark);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card__agent-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 2px;
}

.contact-card__agent-role {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white-50);
}


/* ─────────────────────────────────────────
   LISTING DETAIL — MAP PLACEHOLDER
   ───────────────────────────────────────── */

.listing-map {
  margin: 56px 56px 0;
  padding-top: 48px;
  border-top: 1px solid var(--white-10);
}

.listing-map h2 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 20px;
}

.map-placeholder {
  width: 100%;
  height: 320px;
  background: var(--dark-mid);
  border: 1px solid var(--white-10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--white-20);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.map-placeholder svg { width: 32px; height: 32px; opacity: 0.3; }


/* ─────────────────────────────────────────
   LISTING DETAIL — RELATED LISTINGS
   ───────────────────────────────────────── */

.listing-related {
  padding: 56px 56px 100px;
}

.listing-related h2 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 32px;
  padding-top: 48px;
  border-top: 1px solid var(--white-10);
}

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


/* ─────────────────────────────────────────
   LISTING RESPONSIVE
   ───────────────────────────────────────── */

@media (max-width: 1024px) {
  .breadcrumb       { padding: 100px 32px 0; }
  .photo-grid       { margin: 20px 32px 0; grid-template-rows: 220px 220px; }
  .photo-grid__thumbs { grid-template-rows: 220px 220px; }
  .listing-header   { padding: 36px 32px 0; grid-template-columns: 1fr; }
  .listing-price-block { text-align: left; }
  .listing-specs    { margin: 28px 32px 0; }
  .listing-body     { padding: 40px 32px 0; grid-template-columns: 1fr; }
  .listing-sidebar  { position: static; }
  .listing-map      { margin: 40px 32px 0; }
  .listing-related  { padding: 40px 32px 80px; }
  .related-grid     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .breadcrumb        { padding: 90px 20px 0; }
  .photo-grid        { margin: 16px 0 0; grid-template-columns: 1fr; grid-template-rows: 260px; }
  .photo-grid__main  { grid-row: span 1; }
  .photo-grid__thumbs { display: none; }
  .listing-header    { padding: 28px 20px 0; }
  .listing-specs     { margin: 20px 20px 0; }
  .listing-spec      { min-width: 120px; padding: 18px 16px; }
  .listing-body      { padding: 32px 20px 0; }
  .listing-map       { margin: 32px 20px 0; }
  .listing-related   { padding: 32px 20px 60px; }
  .related-grid      { grid-template-columns: 1fr; }
  .listing-features ul { grid-template-columns: 1fr; }
  .photo-modal__stage { padding: 16px 48px; }
  .photo-modal__prev { left: 6px; }
  .photo-modal__next { right: 6px; }
}


/* ─────────────────────────────────────────
   LISTING PAGES — background matches nav scrolled state
   ───────────────────────────────────────── */

body.listing-page {
  background: var(--dark-mid);
}

body.listing-page .listing-specs,
body.listing-page .listing-body,
body.listing-page .listing-map,
body.listing-page .listing-related {
  background: var(--dark-mid);
}

body.listing-page .contact-card {
  background: rgba(255,255,255,0.04);
  border-color: var(--white-10);
}

body.listing-page .form-group input,
body.listing-page .form-group select,
body.listing-page .form-group textarea {
  background: rgba(255,255,255,0.06);
}

body.listing-page footer {
  background: #151514;
  border-top-color: var(--white-10);
}


/* ─────────────────────────────────────────
   LISTING OVERLAY (full-screen, over everything)
   ───────────────────────────────────────── */

.listing-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--dark-mid);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  /* No overflow:hidden — it traps position:fixed children (photo-modal) */
}

.listing-overlay.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

/* Top chrome bar */
.overlay-bar {
  position: sticky;
  top: 0;
  z-index: 310; /* above overlay content, below photo-modal (500) */
  flex-shrink: 0;
  height: 56px;
  background: var(--dark-mid);
  border-bottom: 1px solid var(--white-10);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  justify-content: flex-start;
}

.overlay-bar__close {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white-80);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color 0.2s;
  flex-shrink: 0;
}

.overlay-bar__close:hover { color: var(--gold); }

.overlay-bar__close svg {
  width: 18px; height: 18px;
}

.overlay-bar__divider {
  width: 1px;
  height: 20px;
  background: var(--white-10);
  flex-shrink: 0;
}

.overlay-bar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.overlay-bar__nav button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white-50);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
  font-size: 16px;
}

.overlay-bar__nav button:hover { color: var(--white); }
.overlay-bar__nav button:disabled { opacity: 0.2; cursor: default; }

.overlay-bar__title {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.overlay-bar__count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white-50);
  padding: 0 16px;
}

/* Scrollable content area */
.overlay-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Adjust listing sections inside overlay — no top padding needed (no nav) */
.overlay-content .breadcrumb        { display: none; }
.overlay-content .photo-grid        { margin-top: 0; }
.overlay-content .listing-header    { padding-top: 40px; }
.overlay-content footer             { display: none; }

/* Loading state */
.overlay-content__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  flex-direction: column;
  gap: 16px;
  color: var(--white-20);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.overlay-spinner {
  width: 24px; height: 24px;
  border: 1px solid var(--white-10);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive overlay bar */
@media (max-width: 640px) {
  .overlay-bar { padding: 0 14px; gap: 10px; }
  .overlay-bar__title { font-size: 11px; }
  .overlay-bar__count { display: none; }
}


/* ─────────────────────────────────────────
   PHOTO MODAL — Back button style
   ───────────────────────────────────────── */

.photo-modal__back {
  background: none;
  border: 1px solid var(--white-20);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 18px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-modal__back:hover { border-color: var(--gold); color: var(--gold); }

/* Photo modal sits above overlay (z-index already set to 400 in base) */
/* When inside overlay, it still uses position:fixed which works correctly */

/* ─────────────────────────────────────────
   FOOTER CONTACT SECTION
   ───────────────────────────────────────── */

/* ─────────────────────────────────────────
   FOOTER CONTACT SECTION
   ───────────────────────────────────────── */

.footer-contact {
  background: var(--dark);
  border-top: 1px solid var(--white-10);
  padding: 80px 56px;
  overflow: hidden;
}

.footer-contact__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 80px;
  align-items: start;
}

.footer-contact__left,
.footer-contact__right {
  min-width: 0;
  overflow: hidden;
}

.footer-contact__eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-contact__heading {
  font-size: 36px;
  font-weight: 300;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 20px;
}

.footer-contact__heading strong { font-weight: 700; }

.footer-contact__desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--white-50);
  line-height: 1.7;
  margin-bottom: 36px;
}

.footer-contact__agent {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 32px;
  border-top: 1px solid var(--white-10);
}

.footer-contact__agent-avatar {
  width: 48px; height: 48px;
  background: var(--gold);
  color: var(--dark);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-contact__agent-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 3px;
}

.footer-contact__agent-role {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--white-50);
}

.footer-contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.footer-contact__form .form-group {
  width: 100%;
}

.footer-contact__form .form-group input,
.footer-contact__form .form-group select,
.footer-contact__form .form-group textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-contact__actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  width: 100%;
}

.footer-contact__submit {
  flex: 1;
  min-width: 0;
}

.footer-contact__wa {
  flex: 1;
  min-width: 0;
  padding: 15px 20px;
  white-space: nowrap;
  justify-content: center;
}

/* Overlay hides footer-contact when inside */
.overlay-content .footer-contact { display: none; }

/* Responsive footer contact */
@media (max-width: 960px) {
  .footer-contact { padding: 64px 32px; }
  .footer-contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-contact__heading { font-size: 28px; }
}

@media (max-width: 640px) {
  .footer-contact { padding: 56px 20px; }
  .footer-contact__heading { font-size: 24px; }
  .footer-contact__actions { flex-direction: column; }
}


/* ─────────────────────────────────────────
   CONTACT CARD — Updated layout (form first)
   ───────────────────────────────────────── */

/* Divider now appears between form and WhatsApp */
.contact-card .contact-card__divider {
  margin: 20px 0 16px;
}


/* ── Footer contact grid fix ── */
.footer-contact__left,
.footer-contact__right {
  min-width: 0;
  width: 100%;
}

.footer-contact__form.contact-form {
  width: 100%;
  box-sizing: border-box;
}

.footer-contact__form .form-group input,
.footer-contact__form .form-group select,
.footer-contact__form .form-group textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}


/* ─────────────────────────────────────────
   iOS / touch: disable sticky :hover states
   Use :active for tap feedback instead
   ───────────────────────────────────────── */
@media (hover: none) {
  .photo-grid__show-all:hover  { background: var(--white); color: var(--dark); }
  .hero__btn:hover             { border-color: var(--white-50); color: var(--white); }
  .nav__links a:hover          { color: var(--white-80); }
  .card:hover .card__img       { transform: none; filter: brightness(0.75); }
  .explore-card:hover .explore-card__img { transform: none; filter: brightness(0.72); }
  .overlay-bar__close:hover    { color: var(--white-80); }
  .overlay-bar__nav button:hover { color: var(--white-50); }
  .listings__link:hover        { opacity: 1; }
  .cta-banner__btn:hover       { background: var(--gold); }
  .whatsapp-btn:hover          { background: var(--gold); }
}
