/* ============================================================
   LUXURY ESCAPES REAL ESTATE — Dark Luxury Design System
   Ultra-Premium · Dubai · RERA Certified · DLD Verified
   ============================================================ */

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

/* ── Lucide icons: keep inline icons aligned and from collapsing in flex rows.
   `i[data-lucide]` is the empty placeholder before hydration; `svg.lucide`
   is the rendered icon. Sizing stays driven by each icon's width/height
   attribute or its contextual CSS. ── */
i[data-lucide] { display: inline-flex; }
svg.lucide { flex-shrink: 0; vertical-align: middle; }

:root {
  --bg:         #06080f;
  --bg-card:    #0c1425;
  --bg-mid:     #0a1020;
  --navy:       #0b2558;
  --blue-2:     #1a3a72;
  --gold:       #c9a86c;
  --gold-2:     #e8cc99;
  --gold-dim:   rgba(201,168,108,.12);
  --gold-glow:  rgba(201,168,108,.25);
  --white:      #ffffff;
  --text:       rgba(255,255,255,.88);
  --text-2:     rgba(255,255,255,.42);
  --border:     rgba(255,255,255,.07);
  --border-gold: rgba(201,168,108,.2);
  --radius:     16px;
  --radius-sm:  8px;
  --shadow:     0 4px 28px rgba(0,0,0,.4);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.5);
  --shadow-xl:  0 32px 80px rgba(0,0,0,.65), 0 0 0 1px rgba(201,168,108,.15);
  --ease:       cubic-bezier(.16,1,.3,1);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-cormorant: 'Cormorant Garamond', Georgia, serif;
}

/* ── NOISE GRAIN OVERLAY ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9998;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: none; border: none; background: none; font-family: inherit; }
select, input, textarea { font-family: inherit; font-size: 1rem; cursor: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ── CUSTOM CURSOR ── */
#cursorDot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: opacity .2s;
  top: 0; left: 0;
}
#cursorRing {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(201,168,108,.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease), border-color .35s, background .35s, mix-blend-mode .35s;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#cursorRing .cursor-label {
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transition: opacity .2s;
  white-space: nowrap;
}
body.cursor-hover-link #cursorRing {
  width: 64px;
  height: 64px;
  border-color: rgba(201,168,108,.5);
  background: rgba(201,168,108,.06);
  mix-blend-mode: normal;
}
body.cursor-hover-card #cursorRing {
  width: 80px;
  height: 80px;
  border-color: var(--gold);
  background: rgba(201,168,108,.08);
}
body.cursor-hover-card #cursorRing .cursor-label { opacity: 1; }
body.cursor-hover-img #cursorRing {
  width: 72px;
  height: 72px;
  border-color: rgba(255,255,255,.6);
}

/* ── SCROLL PROGRESS ── */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold));
  z-index: 9999;
  transition: width .05s linear;
  transform-origin: left;
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .22s; }
.reveal--delay-3 { transition-delay: .34s; }
.reveal--delay-4 { transition-delay: .46s; }

/* Clip-path reveal */
.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease);
}
.reveal-clip.in-view { clip-path: inset(0 0% 0 0); }

/* ── SECTION TYPOGRAPHY ── */
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-label--gold { color: var(--gold); }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-desc { font-size: 1rem; color: var(--text-2); max-width: 520px; }
.section-desc--light { color: rgba(255,255,255,.45); }
.section-header { margin-bottom: 56px; }
.section-header--light .section-title { color: var(--white); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: all .35s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.07);
  opacity: 0;
  transition: opacity .3s;
}
.btn:hover::before { opacity: 1; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, #b8924a 100%);
  color: #06080f;
  box-shadow: 0 4px 20px rgba(201,168,108,.25);
}
.btn--gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(201,168,108,.4);
}
.btn--blue {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-2) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(11,37,88,.4);
}
.btn--blue:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(11,37,88,.5);
}
.btn--outline {
  border: 1.5px solid rgba(255,255,255,.2);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn--outline-light {
  border: 1.5px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.85);
  padding: 10px 22px;
  font-size: .84rem;
}
.btn--outline-light:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
}
.btn--full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════ HEADER ═══ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .4s var(--ease), backdrop-filter .4s, box-shadow .4s;
  padding: 0;
}
.header__main {
  background: transparent;
  transition: background .4s var(--ease), box-shadow .4s;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.header__logo { flex-shrink: 0; }
.header__logo-img {
  width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
  transition: filter .4s var(--ease), opacity .4s;
  opacity: .92;
}
.header.scrolled .header__main {
  background: rgba(6,8,15,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,.4);
}
.header.scrolled .header__logo-img { filter: brightness(0) invert(1); opacity: 1; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 30px);
  margin-left: auto;
}
.nav__link {
  font-size: .84rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  letter-spacing: .03em;
  transition: color .2s;
  position: relative;
  white-space: nowrap;          /* keep longer translations on one line */
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .35s var(--ease);
}
.nav__link:hover::after { width: 100%; }
.nav__link:hover { color: var(--white); }

.header__cta { margin-left: 8px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  margin-left: auto;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── TOPBAR ── */
.header__topbar {
  background: rgba(6,8,15,.95);
  border-bottom: 1px solid var(--border);
  transition: height .35s var(--ease), opacity .35s var(--ease);
  overflow: hidden;
}
.header__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.header__topbar-contact {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header__topbar-contact a,
.header__topbar-contact span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  color: rgba(255,255,255,.38);
  transition: color .2s;
}
.header__topbar-contact a:hover { color: var(--gold); }
.header__topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__topbar-social a {
  color: rgba(255,255,255,.3);
  transition: color .2s;
  display: flex;
  align-items: center;
}
.header__topbar-social a:hover { color: var(--gold); }
.header.scrolled .header__topbar { height: 0; opacity: 0; }

/* ── NAV DROPDOWN ── */
.nav__item { position: relative; }
.nav__item > .nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__item > .nav__link svg {
  transition: transform .25s var(--ease);
  opacity: .5;
}
.nav__item:hover > .nav__link svg { transform: rotate(180deg); }
.nav__dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: rgba(10,14,28,.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  z-index: 200;
}
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--border);
  border-top: none;
}
/* Invisible bridge that fills the 16px gap between the trigger and the
   dropdown, so moving the cursor down to an option never breaks :hover. */
.nav__dropdown::after {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}
.nav__item:hover .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown .nav__link {
  display: block;
  padding: 10px 20px;
  font-size: .83rem;
  color: rgba(255,255,255,.6);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav__dropdown .nav__link::after { display: none; }
.nav__dropdown .nav__link:hover {
  background: rgba(255,255,255,.04);
  color: var(--gold);
}

/* ═══════════════════════════════════ HERO ═══ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Ambient animated gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(11,37,88,.5) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 80% 70%, rgba(201,168,108,.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(26,58,114,.2) 0%, transparent 70%);
  animation: ambientShift 8s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}
@keyframes ambientShift {
  0%   { opacity: 1; background-position: 0% 0%; }
  50%  { opacity: .8; }
  100% { opacity: 1; background-position: 100% 100%; }
}

.hero__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.hero__layer--bg {
  inset: -30% 0 -30%;
}
.hero__layer--bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero__layer--grad {
  z-index: 2;
  background:
    linear-gradient(to top, rgba(6,8,15,1) 0%, rgba(6,8,15,.55) 35%, rgba(6,8,15,.15) 65%, rgba(6,8,15,.4) 100%),
    linear-gradient(to right, rgba(6,8,15,.6) 0%, transparent 50%);
}

/* Hero floating badges */
.hero__badge {
  position: absolute;
  z-index: 4;
  background: rgba(10,16,32,.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 16px 22px;
  text-align: center;
  animation: badgeFloat 4s ease-in-out infinite alternate;
}
.hero__badge--1 {
  bottom: 22%;
  right: 8%;
  animation-delay: 0s;
}
.hero__badge--2 {
  top: 30%;
  right: 12%;
  animation-delay: 1.5s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.hero__badge--2-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__badge--2-no {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--gold-2);
  padding-left: 30px;   /* align under the label, past the icon */
}
body.rtl .hero__badge--2-no { padding-left: 0; padding-right: 30px; }
@keyframes badgeFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}
.badge-num {
  display: block;
  font-family: var(--font-cormorant);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.badge-label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 4px;
}
.hero__badge--2 span {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,.8);
}
.hero__badge--2 svg { color: #22c55e; flex-shrink: 0; }

/* Hero content */
.hero__content {
  position: relative;
  z-index: 3;
  padding-top: 118px;
  padding-bottom: 48px;
  width: 100%;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 32px;
  animation: fadeSlideUp 1s var(--ease) .2s both;
}
.hero__eyebrow-line {
  display: block;
  flex: 0 0 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: .7;
}

/* Hero title — word-by-word animation */
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 28px;
  perspective: 600px;
}
.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) rotateX(-30deg);
  animation: wordReveal 1s var(--ease) both;
}
.hero__word--italic { font-style: italic; color: var(--gold-2); }
.hero__br { display: block; height: .1em; }

@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

.hero__subtitle {
  font-size: .95rem;
  font-weight: 300;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeSlideUp 1s var(--ease) 1.2s both;
}

/* Search bar */
.hero__search {
  animation: fadeSlideUp 1s var(--ease) 1.4s both;
}
.hero__search-fields {
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  overflow: hidden;
  max-width: 880px;
}
.hero__field {
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  gap: 4px;
  flex: 1;
}
.hero__field label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.hero__field input,
.hero__field select {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-size: .9rem;
  font-weight: 400;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}
.hero__field input::placeholder { color: rgba(255,255,255,.32); }
.hero__field select option { background: #0a1020; color: var(--white); }
.hero__field-sep {
  width: 1px;
  background: rgba(255,255,255,.08);
  margin: 10px 0;
  flex-shrink: 0;
}
.hero__search-btn {
  margin: 8px;
  border-radius: 9px;
  flex-shrink: 0;
  align-self: center;
  padding: 13px 26px;
  font-size: .85rem;
}

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

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  animation: fadeSlideUp 1s var(--ease) 1.8s both;
}
.hero__scroll-hint span {
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.hero__scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding: 5px 0;
}
.hero__scroll-dot {
  width: 2px;
  height: 6px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0; }
}

/* ═══════════════════════════════════ MARQUEE ═══ */
.marquee-strip {
  background: linear-gradient(90deg, rgba(12,20,37,1) 0%, rgba(11,37,88,.4) 50%, rgba(12,20,37,1) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border-gold);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  direction: ltr;                 /* logo strip stays LTR in every language (incl. Arabic RTL) */
}
body.rtl .marquee-track { animation-name: marqueeScroll; }  /* keep the same scroll in RTL */
.marquee-strip::before,
.marquee-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-strip::before {
  left: 0;
  background: linear-gradient(to right, rgba(6,8,15,1), transparent);
}
.marquee-strip::after {
  right: 0;
  background: linear-gradient(to left, rgba(6,8,15,1), transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}
.marquee-content {
  display: flex;
  align-items: center;
  gap: 0;
  padding-right: 0;
  white-space: nowrap;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 44px;
}
/* Developer logos (white PNGs on transparent bg) */
.marquee-logo {
  height: 22px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: .55;
  filter: brightness(0) invert(1);   /* normalise to clean white */
  transition: opacity .3s var(--ease);
}
.marquee-strip:hover .marquee-logo { opacity: .85; }
.marquee-item span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .6;
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════ STATS ═══ */
.stats {
  background: var(--bg-mid);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(11,37,88,.35) 0%, transparent 70%),
    radial-gradient(ellipse 30% 60% at 80% 80%, rgba(201,168,108,.05) 0%, transparent 50%);
}
.stats__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 72px 32px;
  gap: 0;
}
.stats__item {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}
.stats__item strong {
  display: block;
  font-family: var(--font-cormorant);
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.stats__item strong em {
  font-style: normal;
  font-size: .45em;
  color: var(--gold);
  vertical-align: super;
}
.stats__item span {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-2);
}
/* The animated number lives in a <span> inside <strong>; make it inherit the
   big number size instead of the small uppercase label size above. */
.stats__item strong span {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
}
/* "AED 150M+" is longer than the others — keep it smaller and on one line. */
.stats__item:last-child strong {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  white-space: nowrap;
}
.stats__sep {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--border-gold), transparent);
  flex-shrink: 0;
}

/* ═══════════════════════════════════ DISCOVER ═══ */
.discover {
  padding: 110px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.discover::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,37,88,.25) 0%, transparent 70%);
  pointer-events: none;
}
.discover__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}
.discover__content p {
  font-size: .94rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 480px;
}
.discover__faq { margin-bottom: 6px; }
.discover__faq-item { margin-bottom: 26px; }
.discover__faq-item:last-child { margin-bottom: 0; }
.discover__faq-q {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 8px;
}
.discover__faq-item p { max-width: 520px; }
.discover__actions {
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.discover__image { position: relative; }
.discover__img-wrap {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
}
.discover__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.discover__image:hover .discover__img-wrap img { transform: scale(1.04); }
.discover__stats-pill {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 20px 26px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  backdrop-filter: blur(12px);
}
.discover__stats-pill--1 { bottom: 60px; left: -36px; }
.discover__stats-pill--2 { top: 60px; right: -28px; }
.discover__pill-num {
  font-family: var(--font-cormorant);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.discover__pill-text {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 5px;
}

/* ═══════════════════════════════════ PROPERTY TYPES ═══ */
.property-types {
  padding: 110px 0;
  background: var(--bg-mid);
}
.prop-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  padding-bottom: 8px;
}
.prop-scroll::-webkit-scrollbar { display: none; }
.prop-scroll.dragging { cursor: grabbing; }
.property-types__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 22px;
  align-items: start;
}
.prop-type-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.prop-type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px var(--border-gold);
  border-color: var(--border-gold);
}
.prop-type-card__img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.prop-type-card--tall .prop-type-card__img { aspect-ratio: 2/3; }
.prop-type-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.prop-type-card:hover .prop-type-card__img img { transform: scale(1.07); }
.prop-type-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,8,15,.9) 0%, rgba(6,8,15,.2) 50%, transparent 100%);
}
.prop-type-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 26px;
  color: var(--white);
}
.prop-type-card__count {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}
.prop-type-card__content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 9px;
  line-height: 1.2;
}
.prop-type-card__content p {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
  margin-bottom: 12px;
  display: none;
}
.prop-type-card:hover .prop-type-card__content p { display: block; }
.prop-type-card__link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold-2);
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════════════ LISTINGS ═══ */
.listings {
  padding: 110px 0 90px;
  background: var(--bg);
}
.listings__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.filter-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  transition: all .25s var(--ease);
  letter-spacing: .02em;
}
.filter-btn:hover { color: var(--white); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--navy), var(--blue-2));
  color: var(--white);
  box-shadow: 0 2px 12px rgba(11,37,88,.4);
}
.listings__sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}
.sort-select {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 36px 9px 14px;
  font-size: .83rem;
  color: var(--text);
  background: var(--bg-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.35)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}
.sort-select:focus { border-color: var(--gold); }
.sort-select option { background: #0a1020; }

/* ── GRID ── */
.listings__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── CARD ── */
.card {
  background: linear-gradient(135deg, #0d1425 0%, var(--bg-mid) 100%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  overflow: hidden;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: box-shadow .4s var(--ease), border-color .4s;
  position: relative;
}
.card:hover {
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(201,168,108,.2);
  border-color: rgba(201,168,108,.18);
}

.card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/11;
}
.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card__img-wrap img { transform: scale(1.05); }

.card__badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.card__badge--sale { background: rgba(201,168,108,.9); color: #06080f; }
.card__badge--rent { background: rgba(26,58,114,.9); color: var(--white); }
.card__badge--sold { background: rgba(10,16,30,.85); color: rgba(255,255,255,.7); }

.card__fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(6,8,15,.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: all .25s;
  z-index: 2;
}
.card__fav:hover, .card__fav.active { background: rgba(255,255,255,.12); color: #e63946; }

/* DLD QR overlay */
.card__dld-qr {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 66px;
  background: rgba(6,8,15,.9);
  border-radius: 10px;
  padding: 7px;
  opacity: 0;
  transform: scale(.85) translateY(4px);
  transition: opacity .3s, transform .3s;
  z-index: 3;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  text-align: center;
  border: 1px solid var(--border);
}
.card__dld-qr img { width: 100%; border-radius: 5px; }
.card__dld-qr span {
  display: block;
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 4px;
  line-height: 1.3;
}
.card:hover .card__dld-qr { opacity: 1; transform: scale(1) translateY(0); }

/* Card body */
.card__body { padding: 20px 22px 22px; }
.card__price {
  font-family: var(--font-cormorant);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.card__address {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .76rem;
  color: var(--text-2);
  margin-bottom: 8px;
}
.card__address svg { flex-shrink: 0; opacity: .5; }
.card__title-text {
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  margin-bottom: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__specs {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.card__spec {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: var(--text-2);
}
.card__spec svg { opacity: .4; }
.card__spec strong { color: rgba(255,255,255,.75); font-weight: 600; }

/* Skeleton */
.card--skeleton {
  pointer-events: none;
}
.card--skeleton::before {
  content: '';
  display: block;
  aspect-ratio: 16/11;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
.card--skeleton::after {
  content: '';
  display: block;
  height: 110px;
  margin: 20px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite .3s;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.page-btn {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-card);
  transition: all .25s;
}
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active {
  background: linear-gradient(135deg, var(--navy), var(--blue-2));
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(11,37,88,.4);
}

/* Empty state */
.listings__empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-2);
}
.listings__empty svg { margin: 0 auto 20px; opacity: .3; }
.listings__empty h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 8px; }
.listings__empty p { margin-bottom: 24px; }

/* Error */
.api-error {
  grid-column: 1 / -1;
  padding: 56px 32px;
  text-align: center;
  color: var(--text-2);
  font-size: .92rem;
  line-height: 1.8;
}

/* ═══════════════════════════════════ SERVICES ═══ */
.services {
  padding: 110px 0;
  background: var(--bg-mid);
  position: relative;
  overflow: hidden;
}
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(26,58,114,.3) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(201,168,108,.05) 0%, transparent 60%);
  pointer-events: none;
}
.services .container { position: relative; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 30px;
  background: rgba(255,255,255,.025);
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,108,.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.service-card:hover {
  border-color: rgba(201,168,108,.25);
  background: rgba(255,255,255,.04);
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0,0,0,.35);
}
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 22px;
  transition: transform .5s var(--ease), background .3s;
}
.service-card:hover .service-card__icon {
  background: rgba(201,168,108,.2);
  transform: translateY(-4px) scale(1.05);
}
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.service-card__tagline {
  display: block;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.service-card p {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ═══════════════════════════════════ ABOUT ═══ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
  background: var(--bg);
  overflow: hidden;
}
.about__image-col {
  position: relative;
  overflow: hidden;
}
.about__img-frame {
  position: relative;
  height: 100%;
  min-height: 520px;
}
.about__img-inner {
  position: absolute;
  inset: -20% 0 -20%;
  will-change: transform;
}
.about__img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about__img-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--bg) 100%);
}
.about__badge {
  position: absolute;
  bottom: 44px; right: -16px;
  background: linear-gradient(135deg, var(--gold) 0%, #b8924a 100%);
  border-radius: 16px;
  padding: 22px 30px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(201,168,108,.3);
  z-index: 4;
}
.about__badge-num {
  display: block;
  font-family: var(--font-cormorant);
  font-size: 3.2rem;
  font-weight: 700;
  color: #06080f;
  line-height: 1;
}
.about__badge-text {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(6,8,15,.6);
  margin-top: 5px;
  line-height: 1.35;
}
.about__content {
  padding: 80px 72px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}
.about__content .section-title { color: var(--white); }
.about__lead {
  font-size: .97rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 440px;
}
.about__checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 42px;
}
.about__checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  line-height: 1.55;
}
.about__check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-top: 1px;
}

/* ═══════════════════════════════════ TEAM ═══ */
.team {
  padding: 110px 0;
  background: var(--bg-mid);
}
.team__subheading {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.team__management { margin-bottom: 60px; }
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.team__grid--management { grid-template-columns: repeat(4, 1fr); }
.agent-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.agent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  border-color: var(--border-gold);
}
.agent-card__avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue-2));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.08);
}
.agent-card__avatar--gold {
  background: linear-gradient(135deg, var(--gold), #b8924a);
  color: #06080f;
}
.agent-card__info { flex: 1; }
.agent-card__info strong {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}
.agent-card__info span {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .07em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.agent-card__info p {
  font-size: .8rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ═══════════════════════════════════ GUIDES ═══ */
.guides {
  padding: 110px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.guides::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 20% 50%, rgba(26,58,114,.3) 0%, transparent 70%);
  pointer-events: none;
}
.guides .container { position: relative; }
.guides__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .3s, box-shadow .35s var(--ease), transform .35s var(--ease);
}
.guide-card:hover {
  border-color: rgba(201,168,108,.3);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  transform: translateY(-5px);
}
.guide-card__icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.guide-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
}
.guide-card > p {
  font-size: .84rem;
  color: var(--text-2);
  line-height: 1.8;
  flex: 1;
}
.guide-card__steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.guide-card__steps li {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  padding-left: 18px;
  position: relative;
}
.guide-card__steps li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .72rem;
}
.guide-card__link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold);
  transition: color .2s, letter-spacing .2s;
  display: inline-block;
  margin-top: 4px;
}
.guide-card__link:hover { color: var(--gold-2); letter-spacing: .03em; }

/* ═══════════════════════════════════ VALUATION ═══ */
.valuation {
  padding: 110px 0;
  background: var(--bg-mid);
}
.valuation__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 88px;
  align-items: center;
}
.valuation__lead {
  font-size: .94rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 440px;
}
.valuation__features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.valuation__feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .88rem;
  color: rgba(255,255,255,.7);
}
.valuation__feature-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.valuation__form {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 44px 44px 42px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.valuation__form h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 28px;
}

/* ═══════════════════════════════════ FORM ═══ */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.form__group label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.form__group input,
.form__group select,
.form__group textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .88rem;
  color: var(--text);
  background: rgba(255,255,255,.04);
  outline: none;
  transition: border-color .25s, background .25s;
  resize: vertical;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.06);
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--text-2); }
.form__group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.3)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: rgba(255,255,255,.04);
  color: var(--text);
}
.form__group select option { background: #0a1020; }

/* ═══════════════════════════════════ BLOG ═══ */
.blog {
  padding: 110px 0;
  background: var(--bg-mid);
}
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 52px;
}
.blog-card {
  background: var(--bg-card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.blog-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(0,0,0,.45);
  border-color: var(--border-gold);
}
.blog-card__img {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card__body h3 a { color: inherit; }
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-card__cat {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-block;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #06080f;
  background: var(--gold);
  padding: 4px 10px;
  border-radius: 5px;
}
.blog-card__body { padding: 26px 26px 30px; }
.blog-card__body time {
  display: block;
  font-size: .7rem;
  color: var(--text-2);
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.blog-card__body h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.38;
  margin-bottom: 10px;
}
.blog-card__body p {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.72;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__link {
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold);
  transition: color .2s, letter-spacing .2s;
  display: inline-block;
}
.blog-card__link:hover { color: var(--gold-2); letter-spacing: .02em; }
.blog__more { text-align: center; }

/* ═══════════════════════════════════ AREAS ═══ */
.areas { padding: 110px 0; background: var(--bg); }
.areas__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.area-card {
  background: var(--bg-card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.area-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(0,0,0,.45);
  border-color: var(--border-gold);
}
.area-card__img {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
}
.area-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.area-card:hover .area-card__img img { transform: scale(1.06); }
.area-card__body { padding: 22px 24px 26px; }
.area-card__body h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 9px;
}
.area-card__body p {
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.7;
}
.section--light .area-card__body h3 { color: var(--ink); }
.section--light .area-card__body p { color: var(--ink-body); }
.section--light .area-card { background: #fff; border-color: var(--ink-line); }

/* ═══════════════════════════════════ CONTACT ═══ */
.contact {
  padding: 110px 0;
  background: var(--bg);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 88px;
  align-items: start;
}
.contact__info .section-title { color: var(--white); }
.contact__lead {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 42px;
  font-size: .95rem;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
}
.contact__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact__form {
  background: var(--bg-card);
  border-radius: 22px;
  padding: 44px 44px 42px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════ FAQ ═══ */
.faq { padding: 110px 0; background: var(--bg); }
.faq__list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .3s;
}
.faq__item.open { border-color: var(--border-gold); }
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--white);
}
.faq__question i {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform .35s var(--ease);
}
.faq__item.open .faq__question i { transform: rotate(180deg); }
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.faq__item.open .faq__answer { grid-template-rows: 1fr; }
.faq__answer-inner { overflow: hidden; }
.faq__answer p {
  padding: 0 26px 24px;
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.8;
}

/* ═══════════════════════════════════ FOOTER ═══ */
.footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  color: var(--text-2);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 80px 32px 60px;
}
.footer__brand { max-width: 290px; }
.footer__logo {
  width: 140px;
  height: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
  opacity: .7;
}
.footer__brand p {
  font-size: .84rem;
  line-height: 1.75;
  margin-bottom: 26px;
  color: rgba(255,255,255,.32);
}
.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.footer__contact-list a,
.footer__contact-list span {
  font-size: .82rem;
  color: rgba(255,255,255,.32);
  transition: color .2s;
}
.footer__contact-list a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 10px; }
.footer__social-link {
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  transition: all .25s;
}
.footer__social-link:hover { border-color: var(--gold); color: var(--gold); }

.footer__nav-group h4 {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  margin-bottom: 20px;
}
.footer__nav-group ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer__nav-group a {
  font-size: .85rem;
  color: rgba(255,255,255,.38);
  transition: color .2s;
}
.footer__nav-group a:hover { color: var(--gold); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p { font-size: .75rem; color: rgba(255,255,255,.2); }

/* ═══════════════════════════════════ MODAL ═══ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.modal.open { opacity: 1; pointer-events: all; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,6,12,.8);
  backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  width: min(680px, 100%);
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  box-shadow: -24px 0 100px rgba(0,0,0,.5);
  transform: translateX(100%);
  transition: transform .45s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.modal.open .modal__panel { transform: translateX(0); }
.modal__close {
  position: sticky;
  top: 0;
  float: right;
  margin: 16px 16px 0 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  z-index: 10;
  transition: all .25s;
}
.modal__close:hover { background: rgba(201,168,108,.15); color: var(--gold); border-color: var(--border-gold); }

/* Modal content */
.modal__gallery { aspect-ratio: 16/9; overflow: hidden; }
.modal__gallery img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 28px 32px 48px; }
.modal__price {
  font-family: var(--font-cormorant);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
}
.modal__address {
  font-size: .88rem;
  color: var(--text-2);
  margin-bottom: 24px;
}
.modal__specs {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.modal__spec {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .86rem;
  color: var(--text-2);
}
.modal__spec svg { color: var(--gold); }
.modal__spec strong { font-weight: 700; color: var(--white); }

/* DLD block */
.modal__dld {
  display: flex;
  gap: 20px;
  background: rgba(201,168,108,.06);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}
.modal__dld-qr { flex-shrink: 0; width: 88px; }
.modal__dld-qr img { width: 100%; border-radius: 8px; }
.modal__dld-qr-label {
  display: block;
  font-size: .52rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-2);
  text-align: center;
  margin-top: 6px;
}
.modal__dld-info { flex: 1; }
.modal__dld-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #16a34a;
  background: rgba(22,163,74,.12);
  border: 1px solid rgba(22,163,74,.25);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.modal__dld-badge svg { color: #22c55e; }
.modal__dld-info strong { display: block; font-size: .75rem; color: var(--text-2); margin-bottom: 4px; }
.modal__dld-permit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--gold);
  font-family: monospace;
  margin-bottom: 8px;
}
.copy-btn {
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all .15s;
}
.copy-btn:hover { border-color: var(--gold); color: var(--gold); }
.modal__dld-info p { font-size: .78rem; color: var(--text-2); line-height: 1.65; margin-bottom: 8px; }
.dld-link {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.amenity-pill {
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  font-size: .73rem;
  color: rgba(255,255,255,.65);
}
.modal__desc { font-size: .88rem; color: var(--text-2); line-height: 1.8; margin-bottom: 20px; }
.modal__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}
.modal__detail {
  font-size: .82rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(255,255,255,.7);
}
.modal__detail strong {
  font-size: .65rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 600;
}
.modal__agent {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
}
.modal__agent img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.modal__agent strong { display: block; font-size: .9rem; color: var(--white); }
.modal__agent span { font-size: .76rem; color: var(--text-2); }
.modal__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.modal__cta .btn { flex: 1; justify-content: center; }

/* ═══════════════════════════════════ TOAST ═══ */
.toast {
  position: fixed;
  bottom: 36px; left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(12,20,37,.97);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  padding: 13px 26px;
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all .35s var(--ease);
  z-index: 9000;
  white-space: nowrap;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  backdrop-filter: blur(20px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════ MOBILE MENU ═══ */
@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(6,8,15,.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 36px 48px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    box-shadow: -20px 0 80px rgba(0,0,0,.5);
    border-left: 1px solid var(--border);
    z-index: 999;
    margin-left: 0;
  }
  .nav.open { transform: translateX(0); }
  .nav__link {
    color: rgba(255,255,255,.75);
    font-size: 1.05rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }
  .nav__link::after { display: none; }
}

/* ═══════════════════════════════════ RESPONSIVE ═══ */
@media (max-width: 1100px) {
  .listings__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__image-col { min-height: 440px; }
  .about__img-inner { inset: 0; }
  .about__content { padding: 60px 36px; }
  .about__badge { right: 24px; bottom: 24px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .discover__inner { grid-template-columns: 1fr; gap: 52px; }
  .discover__image { max-width: 500px; margin: 0 auto; }
  .property-types__grid { grid-template-columns: 1fr 1fr; }
  .prop-type-card--tall { grid-row: span 1; }
  .team__grid--management { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .guides__grid { grid-template-columns: repeat(2, 1fr); }
  .valuation__inner { grid-template-columns: 1fr; gap: 52px; }
  .valuation__form { max-width: 600px; }
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
  .areas__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 52px; }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  #cursorDot, #cursorRing { display: none; }
  .container { padding: 0 20px; }
  .hero__search-fields { flex-direction: column; border-radius: 14px; }
  .hero__field-sep { width: 100%; height: 1px; margin: 0 12px; }
  .hero__field { border-bottom: 1px solid rgba(255,255,255,.06); }
  .hero__field:last-of-type { border-bottom: none; }
  .hero__search-btn { margin: 8px; align-self: stretch; justify-content: center; }
  .listings__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .stats__inner { flex-direction: column; gap: 0; text-align: center; padding: 52px 20px; }
  .stats__sep { width: 48px; height: 1px; margin: 22px auto; }
  .header__topbar { display: none; }
  .property-types__grid { grid-template-columns: 1fr; }
  .team__grid--management { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .guides__grid { grid-template-columns: 1fr; }
  .blog__grid { grid-template-columns: 1fr; }
  .areas__grid { grid-template-columns: 1fr; }
  .valuation__form { padding: 28px 24px; }
  .contact__form { padding: 28px 24px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .modal__panel { width: 100%; height: 95vh; top: auto; bottom: 0; transform: translateY(100%); border-radius: 20px 20px 0 0; border-left: none; border-top: 1px solid var(--border); }
  .modal { align-items: flex-end; }
  .modal.open .modal__panel { transform: translateY(0); }
  .listings__toolbar { flex-direction: column; align-items: flex-start; }
  .nav__dropdown { position: static; transform: none; opacity: 1; pointer-events: all; box-shadow: none; background: rgba(255,255,255,.04); border-radius: 8px; margin: 4px 0 8px; padding: 4px 0; border: none; }
  .nav__dropdown::before { display: none; }
  .hero__badge { display: none; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.4rem, 11vw, 3.5rem); }
  .hero__eyebrow { font-size: .65rem; gap: 10px; }
  .hero__eyebrow-line { flex: 0 0 24px; }
  .section-title { font-size: clamp(1.85rem, 7vw, 2.6rem); }
  .about__content { padding: 48px 20px; }
  .discover__stats-pill--1 { left: 0; }
  .discover__stats-pill--2 { right: 0; }
}

/* ════════════════════════════════════════════════════════════
   LIGHT SECTIONS — alternating ivory bands
   ────────────────────────────────────────────────────────────
   Content sections flip to a light ivory background with dark
   "ink" typography. Self-contained dark elements (property /
   service / guide / team / blog cards and the contact form card)
   intentionally stay dark for premium contrast on the light bg.
   Hero, marquee, stats, valuation and footer remain dark.
   ════════════════════════════════════════════════════════════ */
:root {
  --ink:      #11182a;             /* headings on light */
  --ink-body: rgba(17,24,42,.66);  /* body text on light */
  --ink-mut:  rgba(17,24,42,.5);   /* muted on light */
  --ink-line: rgba(17,24,42,.13);  /* borders on light */
  --gold-ink: #9a7b3f;             /* deeper gold for light bg */
}

section.section--light { background: #f7f5f1; }

/* Hairline seam between adjacent light bands */
.section--light + .section--light { box-shadow: inset 0 1px 0 rgba(17,24,42,.07); }

/* Neutralise dark decorative glows inside light sections */
.section--light::before { display: none !important; }

/* ── Typography → dark ink ── */
.section--light .section-title { color: var(--ink); }
.section--light .section-desc,
.section--light .section-desc--light { color: var(--ink-body); }
.section--light .section-label,
.section--light .section-label--gold { color: var(--gold-ink); }
/* keep the italic accent gold */
.section--light .section-title em { color: var(--gold-ink); }

/* ── Discover ── */
.section--light .discover__content p { color: var(--ink-body); }
.section--light .discover__faq-q { color: var(--ink); }

/* ── About: its content sits in a dark card (like the contact form),
   so its text stays light — only the section background flips. ── */
.section--light .about__content .section-title { color: var(--white); }

/* ── Services: cards are near-transparent by default, so on the light
   background give them the same dark card surface as the other grids
   (guides / team / blog) — their text then stays light and readable. ── */
.section--light .service-card { background: var(--bg-card); }

/* ── Team ── */
.section--light .team__subheading { color: var(--ink-mut); border-bottom-color: var(--ink-line); }

/* ── Contact (info column; the form card stays dark) ── */
.section--light .contact__lead { color: var(--ink-body); }
.section--light .contact__detail { color: rgba(17,24,42,.78); }
.section--light .contact__detail a { color: inherit; transition: color .25s; }
.section--light .contact__detail a:hover { color: var(--gold-ink); }

/* ── Listings: toolbar / filters / pagination / empty state ── */
.section--light .listings__sort-wrap { color: var(--ink-mut); }
.section--light .filter-btn { color: var(--ink-mut); }
.section--light .filter-btn:hover { color: var(--ink); }
.section--light .sort-select,
.section--light .page-btn {
  color: var(--ink);
  background-color: #ffffff;
  border-color: var(--ink-line);
}
.section--light .sort-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(17,24,42,.55)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.section--light .sort-select option { background: #ffffff; color: var(--ink); }
.section--light .page-btn:hover { border-color: var(--gold); color: var(--gold-ink); }
.section--light .listings__empty { color: var(--ink-mut); }
.section--light .listings__empty h3 { color: var(--ink); }

/* ── Outline buttons (built for dark bg) → dark ink on light ── */
.section--light .btn--outline { border-color: rgba(17,24,42,.25); color: var(--ink); }
.section--light .btn--outline:hover { border-color: var(--gold); color: var(--gold-ink); }

/* ── Custom cursor dot: invert against any background so it stays
   visible on both dark and light sections ── */
#cursorDot { mix-blend-mode: difference; }

/* ════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ════════════════════════════════════════════════════════════ */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-switch__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 100px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  cursor: none; transition: border-color .25s, background .25s, color .25s;
}
.lang-switch__btn:hover { border-color: var(--border-gold); color: var(--gold-2); }
.lang-switch__btn svg:first-child { color: var(--gold); }
.lang-switch__chev { transition: transform .3s var(--ease); opacity: .7; }
.lang-switch.open .lang-switch__chev { transform: rotate(180deg); }

.lang-switch__menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 180px; padding: 8px;
  background: rgba(10,14,28,.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-gold); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 1200;
}
.lang-switch.open .lang-switch__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 10px 13px; border-radius: 9px;
  color: var(--text); font-size: .88rem; cursor: none;
  transition: background .2s, color .2s;
}
.lang-switch__opt:hover { background: rgba(255,255,255,.05); color: var(--white); }
.lang-switch__opt.active { background: var(--gold-dim); color: var(--gold-2); }
.lang-switch__native { font-weight: 500; }
.lang-switch__code { font-size: .7rem; letter-spacing: .08em; color: var(--text-2); }
.lang-switch__opt.active .lang-switch__code { color: var(--gold); }

/* On light sections the header is fixed/dark, so no override needed.
   Mobile: tuck the switcher next to the hamburger. */
@media (max-width: 1100px) {
  .lang-switch__btn { padding: 7px 10px; }
}

/* ════════════════════════════════════════════════════════════
   RTL (Arabic)
   ════════════════════════════════════════════════════════════ */
body.rtl { direction: rtl; }
body.rtl .section-title::after { left: auto; right: 0; }
body.rtl .lang-switch__menu { right: auto; left: 0; }
body.rtl .nav { margin-left: 0; margin-right: auto; }
/* directional arrow glyphs (→ ↗) read naturally mirrored in RTL flow;
   nudge inline-end spacing so they sit on the correct side */
body.rtl .prop-type-card__link,
body.rtl .guide-card__link,
body.rtl .blog-card__link,
body.rtl .pdp-similar__all,
body.rtl .dld-link { direction: rtl; }
body.rtl .pdp-breadcrumb,
body.rtl .pdp-head__loc,
body.rtl .card__address { direction: rtl; }
/* keep numeric/price runs left-to-right for legibility */
body.rtl .card__price,
body.rtl .pdp-head__price,
body.rtl .pdp-cta-card__price,
body.rtl .stats__item strong,
body.rtl .pdp-sim-card__price { direction: ltr; unicode-bidi: embed; }

/* ════════════════════════════════════════════════════════════
   RTL — refinements (Arabic)
   ════════════════════════════════════════════════════════════ */
/* Keep latin/number runs (phone, email, addresses) left-to-right
   even inside the RTL layout, so they don't read reversed. */
body.rtl [href^="tel:"],
body.rtl [href^="mailto:"],
body.rtl .header__topbar-contact a,
body.rtl .header__topbar-contact span,
body.rtl .footer__contact-list a,
body.rtl .footer__contact-list span,
body.rtl .contact__detail a { direction: ltr; unicode-bidi: isolate; }
/* but the contact detail block itself stays right-aligned */
body.rtl .header__topbar-contact span,
body.rtl .footer__contact-list span { text-align: right; }

/* Mirror the few margin helpers that assume LTR */
body.rtl .header__cta { margin-left: 0; margin-right: 8px; }
body.rtl .hamburger { margin-left: 0; margin-right: auto; }

/* Mobile nav drawer slides in from the LEFT in RTL */
@media (max-width: 1024px) {
  body.rtl .nav {
    right: auto; left: 0;
    transform: translateX(-100%);
    border-left: none; border-right: 1px solid var(--border);
    box-shadow: 20px 0 80px rgba(0,0,0,.5);
    align-items: flex-end;
  }
  body.rtl .nav.open { transform: translateX(0); }
}

/* Underline accent on nav links flips to the right edge */
body.rtl .nav__link::after { left: auto; right: 0; }

/* Lists, checklists and inline icon rows read from the right */
body.rtl .about__checklist li,
body.rtl .guide-card__steps li,
body.rtl .pdp-amenities li,
body.rtl .contact__detail,
body.rtl .hero__field label,
body.rtl .pdp-spec { text-align: right; }

/* Cards / spec rows: keep their internal flex direction natural in RTL */
body.rtl .pdp-info__row,
body.rtl .pdp-dld__permits { direction: rtl; }

/* Section title underline already handled; mirror the gold eyebrow line */
body.rtl .hero__eyebrow { direction: rtl; }

/* RTL: float the hero badges to the LEFT so they don't cover the
   right-aligned Arabic hero title. */
body.rtl .hero__badge--1 { right: auto; left: 8%; }
body.rtl .hero__badge--2 { right: auto; left: 12%; }

/* ────────────────────────────────────────────────────────────
   Our Portfolio — active filter tab & active pagination button
   sit on a navy gradient. Their content must be GOLD (the light
   section theme was overriding it to dark ink → unreadable).
   ──────────────────────────────────────────────────────────── */
.filter-btn.active,
.page-btn.active,
.section--light .filter-btn.active,
.section--light .page-btn.active { color: var(--gold-2); }
.section--light .filter-btn.active:hover,
.section--light .page-btn.active:hover { color: var(--gold-2); }

/* ════════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
   ════════════════════════════════════════════════════════════ */
.theme-toggle { flex-shrink: 0; }
.theme-toggle__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text); cursor: none;
  transition: border-color .25s, background .25s, color .25s, transform .25s;
}
.theme-toggle__btn:hover { border-color: var(--border-gold); color: var(--gold-2); transform: rotate(18deg); }

/* ════════════════════════════════════════════════════════════
   LIGHT THEME  (html.theme-light)
   The site is dark-first; this overrides the design tokens to a
   light palette. The header keeps its dark/transparent treatment
   (it sits over the hero image and turns into a dark bar on
   scroll), so its white nav text works in both themes.
   ════════════════════════════════════════════════════════════ */
html.theme-light {
  --bg:         #f4f1ea;
  --bg-card:    #ffffff;
  --bg-mid:     #ece6db;
  --white:      #141a24;            /* "white" text → dark ink */
  --text:       rgba(20,26,36,.82);
  --text-2:     rgba(20,26,36,.5);
  --border:     rgba(20,26,36,.1);
  --border-gold: rgba(201,168,108,.4);
  --shadow:     0 4px 24px rgba(20,26,46,.08);
  --shadow-lg:  0 18px 50px rgba(20,26,46,.12);
  --shadow-xl:  0 28px 70px rgba(20,26,46,.16), 0 0 0 1px rgba(201,168,108,.22);
}
html.theme-light body { background: var(--bg); }

/* Property cards use a hard-coded dark gradient — make them light. */
html.theme-light .card { background: linear-gradient(150deg, #ffffff, #f6f2ea); }
html.theme-light .card__dld-qr { background: rgba(255,255,255,.85); }
html.theme-light .card__dld-qr span { color: var(--ink-body); }
html.theme-light .card__fav { background: rgba(20,26,46,.06); color: #14181f; }

/* Keep white text where it sits on a coloured (navy) surface */
html.theme-light .btn--blue,
html.theme-light .card__badge--rent,
html.theme-light .filter-btn.active,
html.theme-light .page-btn.active { color: #fff; }
html.theme-light .filter-btn.active,
html.theme-light .page-btn.active { color: var(--gold-2); }   /* gold on navy (as requested) */

/* The hero sits over a dark photo in both themes — keep its text light. */
html.theme-light .hero__title { color: #fff; }
html.theme-light .hero__subtitle,
html.theme-light .hero__eyebrow { color: rgba(255,255,255,.75); }

/* The header stays dark-style; ensure its surfaces/menus remain dark
   regardless of the light tokens. */
html.theme-light .header.scrolled .header__main { background: rgba(8,11,20,.92); }
html.theme-light .nav__dropdown,
html.theme-light .lang-switch__menu { background: rgba(12,16,28,.98); }
html.theme-light .nav__link { color: rgba(255,255,255,.78); }
html.theme-light .nav__dropdown .nav__link:hover { color: var(--gold-2); }
html.theme-light .theme-toggle__btn,
html.theme-light .lang-switch__btn { color: rgba(255,255,255,.85); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }

/* Search bar & selects on the (dark) hero keep their glass look — leave as-is.
   Form inputs in the light body get a light field. */
html.theme-light .form__group input,
html.theme-light .form__group select,
html.theme-light .form__group textarea,
html.theme-light .pdp-form input,
html.theme-light .pdp-form textarea {
  background: #fff; border-color: var(--ink-line); color: var(--ink);
}
html.theme-light .form__group select option { background: #fff; color: var(--ink); }

/* Soften the noise overlay on light backgrounds */
html.theme-light body::after { opacity: .015; }

/* Marquee keeps its navy band (decorative) — leave as-is. */

/* In light theme the alternating "section--light" bands and the base get
   very close; give plain (non-light) sections pure white so the rhythm
   still reads. */
html.theme-light section:not(.section--light):not(.hero) { background: #fbf9f4; }
html.theme-light .section--light { background: #f1ede4; }

/* ── Light theme: fix text that was hard-coded white (would vanish on
   the light body). Header / hero / marquee stay dark, so their whites
   are left alone above. ── */
html.theme-light .section-desc--light { color: var(--ink-body); }
html.theme-light .card__title-text,
html.theme-light .card__spec strong { color: var(--ink); }
html.theme-light .card__address { color: var(--ink-body); }
html.theme-light .about__checklist li,
html.theme-light .guide-card__steps li,
html.theme-light .contact__detail,
html.theme-light .contact__detail a { color: var(--ink-body); }
html.theme-light .team__subheading { color: var(--ink-mut); border-bottom-color: var(--ink-line); }

/* ── Footer always keeps the dark design, in both themes ──
   Force the original dark surface + light text explicitly, since
   the design tokens (--bg-mid, --text-2, --border, --white) flip
   to light values everywhere else in this theme. */
html.theme-light .footer {
  background: #0a1020;
  border-top-color: rgba(255,255,255,.07);
  color: rgba(255,255,255,.42);
}
html.theme-light .footer__brand p,
html.theme-light .footer__contact-list a,
html.theme-light .footer__contact-list span { color: rgba(255,255,255,.32); }
html.theme-light .footer__social-link {
  color: rgba(255,255,255,.3);
  border-color: rgba(255,255,255,.07);
}
html.theme-light .footer__nav-group h4 { color: rgba(255,255,255,.25); }
html.theme-light .footer__nav-group a { color: rgba(255,255,255,.38); }
html.theme-light .footer__bottom {
  border-top-color: rgba(255,255,255,.07);
}
html.theme-light .footer__bottom p { color: rgba(255,255,255,.2); }

/* Image-overlay cards (property types) keep WHITE text — they sit over a
   photo with a dark gradient, not on the light surface. */
html.theme-light .prop-type-card__content h3 { color: #fff; }

/* Section accent dividers / separators on light */
html.theme-light .stats__sep { background: var(--ink-line); }
html.theme-light .section-title::after { background: var(--gold); }

/* Light theme: deepen gold for legibility on light surfaces (prices,
   eyebrows, links). Keep BRIGHT gold over the dark hero. */
html.theme-light { --gold: #a3823f; --gold-2: #8f7136; }
html.theme-light .hero__word--italic,
html.theme-light .hero__badge .badge-num,
html.theme-light .hero__badge .badge-label { color: #d8b878; }
html.theme-light .filter-btn.active,
html.theme-light .page-btn.active { color: #e8cc99; }   /* bright gold on navy pill */

/* Language switcher flags */
.lang-switch__flag {
  width: 22px; height: 15px; object-fit: cover;
  border-radius: 3px; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.lang-switch__opt { gap: 12px; }
.lang-switch__opt .lang-switch__native { margin-right: auto; }

/* ════════════════════════════════════════════════════════════
   TEAM — infinite carousel (Sales Consultants)
   Cards flow in a seamless auto-scrolling strip (same pattern as
   the developer-logo marquee) so adding/removing an agent never
   leaves a gap — the strip just gets shorter/longer and re-loops.
   ════════════════════════════════════════════════════════════ */
.team-carousel {
  position: relative;
  overflow: hidden;
  padding: 6px 0 10px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.team-carousel__track {
  display: flex;
  width: max-content;
  animation: teamCarouselScroll var(--team-carousel-duration, 34s) linear infinite;
}
.team-carousel:hover .team-carousel__track { animation-play-state: paused; }
.team-carousel__content {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 0 10px;
}
@keyframes teamCarouselScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.team-carousel .agent-card {
  width: 300px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .team-carousel .agent-card { width: 260px; }
  .team-carousel {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  }
}

/* Agent avatars with a real photo (falls back to initials on load error) */
.agent-card__avatar--photo {
  background: var(--bg-mid);
  overflow: hidden;
  padding: 0;
}
.agent-card__avatar--photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* RTL: the About/"Our Story" grid visually mirrors (image moves to the
   right, content to the left), so its edge-blend gradient must fade
   toward the LEFT instead of the right to still meet the content column. */
body.rtl .about__img-inner::after {
  background: linear-gradient(to left, transparent 60%, var(--bg) 100%);
}

/* ── Dirham currency icon — replaces the "AED" text in property prices ── */
.price-dirham {
  height: 0.72em;
  width: auto;
  display: inline-block;
  vertical-align: -0.05em;
  margin-right: 0.22em;
}
