/* ============================================================
   ROYAL ESTATE — Architectural Motion & Editorial System
   Built for realestate4 by Royal Technologies
   ============================================================ */

:root {
  --bg: #f7f4ee;
  --bg-soft: #efe9df;
  --surface: #fffdf9;
  --ink: #12100d;
  --ink-2: #544d43;
  --line: rgba(18, 16, 13, 0.12);
  --pink: #e91e7f;
  --pink-hover: #c9136a;
  --pink-soft: #ffd9ec;
  --sky: #8ec9ee;
  --gold: #d99b38;
  --dark: #0a101d;
  --dark-2: #101a2e;
  --cream: #f3ead9;
  --shadow: 0 30px 60px -18px rgba(30, 22, 10, 0.24);
  --r-lg: 26px;
  --r-md: 18px;
  --font-d: "Fraunces", Georgia, serif;
  --font-s: "Pinyon Script", cursive;
  --font-b: "Outfit", system-ui, -apple-system, sans-serif;
}

html[data-theme="dark"] {
  --bg: #0c0e14;
  --bg-soft: #131722;
  --surface: #171c28;
  --ink: #f4efe6;
  --ink-2: #b9b2a4;
  --line: rgba(244, 239, 230, 0.14);
  --pink-soft: #3d1530;
  --shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.65);
}

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

html {
  scroll-behavior: auto;
}
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--pink);
  color: #fff;
}

button, [role="button"], select, summary, input:not([type="checkbox"], [type="radio"], [type="range"]) {
  min-height: 2.25rem;
}

/* ---------- Scroll Progress & Cursor Glow ---------- */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--sky), var(--pink), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 140;
}

#glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(233, 30, 127, 0.13), rgba(142, 201, 238, 0.09) 45%, transparent 68%);
  filter: blur(6px);
  opacity: 0;
}

/* ---------- Preloader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a101d;
  color: #f5efe2;
}
#loader .l-in {
  text-align: center;
  padding: 24px;
}
#loader .l-brand {
  font-family: var(--font-d);
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  letter-spacing: 0.1em;
  font-weight: 600;
}
#loader .l-brand em {
  font-family: var(--font-s);
  font-style: normal;
  color: var(--pink);
  letter-spacing: 0;
  font-size: 1.25em;
}
#loader .l-sub {
  font-family: var(--font-b);
  opacity: 0.78;
  margin-top: 8px;
  font-size: 0.96rem;
}
#loader .l-bar {
  width: min(320px, 72vw);
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
  margin: 26px auto 12px;
  overflow: hidden;
  border-radius: 99px;
}
#loader .l-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sky), var(--pink), var(--gold));
}
#loader .l-num {
  font-family: var(--font-b);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  opacity: 0.8;
}
#loader .l-skip {
  margin-top: 20px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  padding: 6px 16px;
  font-family: var(--font-b);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
#loader .l-skip:hover {
  color: #fff;
  border-color: var(--pink);
}

/* ---------- Navigation ---------- */
header.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
header.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 13px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.brand small {
  font-family: var(--font-b);
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  font-weight: 700;
  opacity: 0.65;
}
.brand .dot {
  color: var(--pink);
}

nav.links {
  display: flex;
  gap: 4px;
  align-items: center;
}
nav.links a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 99px;
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}
nav.links a:hover, nav.links a.active {
  background: var(--ink);
  color: var(--bg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 13px;
  height: 40px;
  border-radius: 99px;
  cursor: pointer;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.2s, border-color 0.2s;
}
.icon-pill:hover {
  border-color: var(--pink);
  transform: translateY(-1px);
}
#savedNavBtn i {
  color: var(--pink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 99px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
  will-change: transform;
}
.btn-pink {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(233, 30, 127, 0.6);
}
.btn-pink:hover {
  background: var(--pink-hover);
}
.btn-ink {
  background: var(--ink);
  color: var(--bg);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--pink);
}
.btn-light {
  background: #fff;
  color: #12100d;
}
.nav-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

#menuBtn {
  display: none;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.35rem;
  cursor: pointer;
}

#mobileMenu {
  display: none;
  padding: 10px 22px 22px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
}
#mobileMenu a:not(.btn) {
  display: block;
  padding: 13px 6px;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-foot {
  margin-top: 16px;
}
header.nav.open #mobileMenu {
  display: block;
  animation: dropDown 0.25s ease;
}
header.nav.open {
  background: var(--surface);
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 29, 0.45);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
@keyframes dropDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero Slider ---------- */
.hero {
  position: relative;
  padding: 96px 18px 26px;
  max-width: 1360px;
  margin: 0 auto;
}
.hero-top {
  text-align: center;
  padding: 8px 10px 22px;
  position: relative;
  z-index: 5;
}
.hero-top h2 {
  font-family: var(--font-d);
  font-weight: 560;
  font-size: clamp(2rem, 5.2vw, 3.45rem);
  margin: 0;
  letter-spacing: 0.005em;
}
.hero-top h2 em {
  font-family: var(--font-s);
  font-style: normal;
  font-weight: 400;
  color: var(--pink);
  font-size: 1.28em;
}
.hero-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}
.hero-tags span {
  font-family: var(--font-b);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 99px;
  background: var(--surface);
}

.stage-wrap {
  position: relative;
}
.stage-glow {
  position: absolute;
  inset: auto 6% -34px 6%;
  height: 120px;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.55;
  background: var(--glowc, #f5a65b);
  transition: background 1s;
  z-index: 0;
}
.stage {
  position: relative;
  z-index: 2;
  height: min(76svh, 660px);
  min-height: 500px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0a101d;
  isolation: isolate;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.slide.active {
  opacity: 1;
  visibility: visible;
}
.slide .bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.slide .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}
.slide.active .bg img {
  animation: kb 8.5s ease-out forwards;
}
@keyframes kb {
  from { transform: scale(1.18); }
  to { transform: scale(1.05); }
}

/* Improved contrast scrim across clouds and twilight photography */
.slide .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.34), rgba(8, 12, 22, 0.25) 45%, rgba(8, 12, 22, 0.62));
}
.slide[data-tone="clouds"] .veil {
  background:
    radial-gradient(circle at 50% 44%, rgba(10, 18, 36, 0.44) 0%, rgba(10, 18, 36, 0.16) 58%, rgba(10, 18, 36, 0.5) 100%),
    linear-gradient(180deg, rgba(8, 14, 28, 0.25), rgba(8, 14, 28, 0.45));
}

.content-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 24px 96px;
  color: #fff;
}
.content-layer.left {
  align-items: flex-start;
  text-align: left;
  justify-content: flex-end;
  padding-left: clamp(24px, 5vw, 56px);
  padding-bottom: 112px;
}
.content-layer.left .sub {
  margin-left: 0;
}
.content-layer.left .cta-row {
  justify-content: flex-start;
}
.content-layer .eyebrow {
  font-family: var(--font-b);
  letter-spacing: 0.38em;
  font-size: 0.72rem;
  text-transform: uppercase;
  opacity: 0.94;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.content-layer h1 {
  margin: 0;
  line-height: 1.04;
}
.content-layer .sub {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  line-height: 1.65;
  opacity: 0.96;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.content-layer .cta-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.h-clouds {
  font-family: var(--font-d);
  font-weight: 500;
  letter-spacing: 0.26em;
  font-size: clamp(1.9rem, 6.2vw, 4.2rem);
  text-transform: uppercase;
  text-shadow: 0 6px 36px rgba(10, 22, 48, 0.65);
}
.h-getaway {
  font-family: var(--font-b);
  font-weight: 800;
  font-size: clamp(2.1rem, 6.6vw, 4.4rem);
  letter-spacing: -0.01em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}
.h-getaway .script {
  display: block;
  font-family: var(--font-s);
  font-weight: 400;
  color: #ff79b8;
  font-size: 1.24em;
  line-height: 0.92;
  text-shadow: 0 6px 26px rgba(100, 0, 50, 0.55);
}
.h-dubai {
  font-family: var(--font-d);
  font-weight: 640;
  font-size: clamp(1.95rem, 5.5vw, 4rem);
  max-width: 880px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.48);
}
.h-dubai .pink {
  color: #ff5ca6;
  font-style: italic;
}
.h-nature {
  font-family: var(--font-b);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  letter-spacing: -0.015em;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.float-card {
  position: absolute;
  z-index: 6;
  display: flex;
  gap: 11px;
  align-items: center;
  text-align: left;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.94);
  color: #14161c;
  border-radius: 16px;
  padding: 9px 14px 9px 9px;
  box-shadow: 0 20px 44px -14px rgba(5, 10, 25, 0.5);
  backdrop-filter: blur(8px);
  max-width: 265px;
  font-family: var(--font-b);
  transition: transform 0.25s ease;
}
.float-card:hover {
  transform: translateY(-3px);
}
.float-card img {
  width: 52px;
  height: 52px;
  border-radius: 11px;
  object-fit: cover;
  flex: none;
}
.float-card b {
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
}
.float-card span {
  font-size: 0.76rem;
  opacity: 0.72;
}
.float-card b.big {
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.05;
}
.fc-bl { left: 22px; bottom: 92px; }
.fc-br { right: 22px; bottom: 92px; }
.fc-tr { right: 22px; top: 28px; }

.stage-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: 18px 22px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.bars {
  display: flex;
  gap: 8px;
  flex: 1;
}
.bar {
  flex: 1;
  height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 18px 0 0;
}
.bar i {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  position: relative;
}
.bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.bar.on i::after {
  animation: fill 6.5s linear forwards;
}
@keyframes fill {
  to { transform: scaleX(1); }
}
.arrows {
  display: flex;
  gap: 9px;
}
.arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(10, 16, 29, 0.36);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  transition: background 0.25s, transform 0.25s;
}
.arrow:hover {
  background: var(--pink);
  border-color: var(--pink);
  transform: scale(1.07);
}
.slide-count {
  font-family: var(--font-b);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  padding-bottom: 12px;
}

/* Search bar */
.searchbar {
  position: relative;
  z-index: 7;
  margin: -18px auto 0;
  max-width: 920px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 6px;
  padding: 10px 12px;
}
.searchbar label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 12px;
}
.searchbar label span {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  opacity: 0.65;
  font-weight: 600;
  text-transform: uppercase;
}
.searchbar select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 4px 0;
  outline: none;
  cursor: pointer;
}
.searchbar select option {
  background: var(--surface);
  color: var(--ink);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  margin-top: 58px;
  padding: 16px 0;
  background: var(--bg-soft);
}
.marquee .track {
  display: flex;
  width: max-content;
  animation: mq 32s linear infinite;
}
.marquee span {
  font-family: var(--font-d);
  font-size: 1.25rem;
  padding: 0 26px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 44px;
}
.marquee b {
  color: var(--pink);
  font-weight: 400;
}
@keyframes mq {
  to { transform: translateX(-50%); }
}

/* ---------- Common Sections ---------- */
section.blk {
  max-width: 1280px;
  margin: 0 auto;
  padding: 102px 22px 10px;
  position: relative;
  z-index: 2;
}
.kicker {
  font-family: var(--font-b);
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--pink);
  font-weight: 700;
}
.sec-title {
  font-family: var(--font-d);
  font-weight: 580;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  margin: 14px 0 0;
}
.sec-title em {
  font-family: var(--font-s);
  font-style: normal;
  color: var(--pink);
  font-size: 1.28em;
  font-weight: 400;
}
.sec-lead {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 620px;
  margin-top: 16px;
}
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}
.img-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-frame.tall {
  aspect-ratio: 4 / 4.4;
}
.mini-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.mini-stats div {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 12px 18px;
}
.mini-stats b {
  font-family: var(--font-b);
  font-size: 1.25rem;
  display: block;
}
.mini-stats span {
  font-size: 0.82rem;
  color: var(--ink-2);
}

/* ---------- Tabs (Contrast-Safe Fixed Progress Fill) ---------- */
.tabs-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}
.tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 12px 24px 14px;
  border-radius: 99px;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  min-width: 145px;
}
.tab.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.tab span.lbl {
  position: relative;
  z-index: 2;
}
.tab .tf {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 1;
}
.tab-panel {
  display: none;
}
.tab-panel.on {
  display: grid;
}
.tab-panel .img-frame {
  aspect-ratio: 16 / 10;
}

.family-strip {
  margin-top: 72px;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.family-strip .ph {
  height: min(60svh, 500px);
  overflow: hidden;
}
.family-strip img {
  width: 100%;
  height: 120%;
  object-fit: cover;
}
.family-strip .quote {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 64px 32px 28px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(6, 10, 20, 0.78));
}
.family-strip .quote p {
  font-family: var(--font-d);
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  margin: 0;
  max-width: 720px;
  line-height: 1.35;
}
.family-strip .quote p em {
  font-family: var(--font-s);
  font-style: normal;
  color: #ff80ba;
  font-size: 1.28em;
}

/* ---------- Collection ---------- */
.collection-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.result-pill {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 99px;
}
.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 26px 0 28px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 99px;
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s;
}
.chip.on {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(233, 30, 127, 0.6);
}
.chip-saved i {
  color: var(--pink);
}
.chip-saved.on i {
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: box-shadow 0.35s, border-color 0.35s;
  transform-style: preserve-3d;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--pink) 38%, var(--line));
}
.card .ph {
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  position: relative;
}
.card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .ph img {
  transform: scale(1.07);
}
.card .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 14, 24, 0.78);
  color: #fff;
  backdrop-filter: blur(6px);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}
.card .fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #d3136c;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s, background 0.2s;
}
.card .fav.loved {
  background: var(--pink);
  color: #fff;
}
.card .fav:hover {
  transform: scale(1.12);
}
.card .bd {
  padding: 18px 20px 20px;
}
.card h3 {
  margin: 0;
  font-family: var(--font-d);
  font-size: 1.28rem;
  font-weight: 620;
}
.card .loc {
  color: var(--ink-2);
  font-size: 0.88rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.card .loc i {
  color: var(--pink);
}
.card .meta {
  display: flex;
  gap: 14px;
  margin-top: 13px;
  font-size: 0.86rem;
  color: var(--ink-2);
  flex-wrap: wrap;
}
.card .meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.card .price {
  font-family: var(--font-b);
  font-weight: 800;
  font-size: 1.24rem;
}
.card .price small {
  font-weight: 500;
  font-size: 0.76rem;
  color: var(--ink-2);
  margin-left: 4px;
}
.card .view {
  background: transparent;
  border: 0;
  color: var(--pink);
  font-family: var(--font-b);
  font-weight: 700;
  cursor: pointer;
  padding: 8px 4px;
  font-size: 0.92rem;
}
.card .view:hover {
  text-decoration: underline;
}

.empty-state {
  text-align: center;
  padding: 56px 22px;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  margin-top: 16px;
}
.empty-state i {
  font-size: 2.2rem;
  color: var(--pink);
}
.empty-state h3 {
  font-family: var(--font-d);
  margin: 12px 0 8px;
  font-size: 1.5rem;
}
.empty-state p {
  color: var(--ink-2);
  max-width: 460px;
  margin: 0 auto 20px;
}

/* ---------- Horizontal Gallery (Viewport-safe pinned height) ---------- */
.hwrap {
  margin-top: 104px;
  background: var(--dark);
  color: #f3efe6;
  overflow: hidden;
  position: relative;
}
.hwrap .h-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 78px 22px 8px;
}
.h-head-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hwrap .sec-lead {
  color: rgba(243, 239, 230, 0.74);
  margin-top: 10px;
}
.h-nav {
  display: flex;
  gap: 10px;
}
.h-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s, border-color 0.25s;
}
.h-arrow:hover {
  background: var(--pink);
  border-color: var(--pink);
}
.h-pin {
  overflow: hidden;
}
.h-track {
  display: flex;
  gap: 22px;
  padding: 28px 22px 58px;
  width: max-content;
}
.h-card {
  width: min(520px, 76vw);
  flex: none;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}
.h-card img {
  width: 100%;
  height: min(50svh, 400px);
  object-fit: cover;
}
.h-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 22px 18px;
  background: linear-gradient(180deg, transparent, rgba(4, 8, 16, 0.82));
  color: #fff;
}
.h-card figcaption b {
  font-family: var(--font-d);
  font-size: 1.28rem;
  display: block;
}
.h-card figcaption span {
  opacity: 0.85;
  font-size: 0.9rem;
}

/* ---------- Dubai Interactive Window ---------- */
.dubai-sec {
  max-width: 1280px;
  margin: 0 auto;
  padding: 106px 22px 10px;
}
.window-stage {
  margin-top: 38px;
  background: linear-gradient(180deg, #fbf7ec, #f3ead9);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 52px);
  position: relative;
  overflow: hidden;
}
html[data-theme="dark"] .window-stage {
  background: linear-gradient(180deg, #171d2c, #101522);
}
.window-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
}
.w-text h3 {
  font-family: var(--font-d);
  font-weight: 640;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  line-height: 1.06;
  margin: 0;
}
.w-text h3 .pink {
  color: var(--pink);
  font-style: italic;
}
.w-text p {
  color: var(--ink-2);
  line-height: 1.7;
  margin-top: 14px;
  font-size: 0.98rem;
}
.w-text.r {
  text-align: right;
}

.vista-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.v-pill {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
}
.v-pill.on {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.win {
  width: min(390px, 74vw);
  aspect-ratio: 3 / 4;
  position: relative;
  perspective: 1100px;
  margin: 0 auto;
}
.win .view {
  position: absolute;
  inset: 0;
  border-radius: 190px 190px 14px 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 10px #2e4a7d, 0 30px 50px -20px rgba(20, 40, 90, 0.5);
}
.win .view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.16);
  transition: transform 0.9s ease, opacity 0.4s ease;
}
.win .arch {
  position: absolute;
  inset: 0;
  border-radius: 190px 190px 14px 14px;
  box-shadow: inset 0 0 0 10px #2e4a7d;
  pointer-events: none;
  z-index: 3;
}
.door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(160deg, #3a5f9e, #274a86 60%, #1d3a6e);
  z-index: 4;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.16), inset -14px 0 26px rgba(0, 0, 0, 0.28);
  transition: transform 1s cubic-bezier(0.6, 0, 0.2, 1);
}
.door::after {
  content: "";
  position: absolute;
  top: 16%;
  left: 14%;
  right: 14%;
  bottom: 12%;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 150px 150px 6px 6px;
}
.door.l { left: 0; border-radius: 190px 8px 8px 14px; transform-origin: left center; }
.door.r { right: 0; border-radius: 8px 190px 14px 8px; transform-origin: right center; }
.door .knob {
  position: absolute;
  top: 52%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f4c95d;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18);
}
.door.l .knob { right: 9px; }
.door.r .knob { left: 9px; }

.win.open .door.l { transform: rotateY(-108deg); }
.win.open .door.r { transform: rotateY(108deg); }
.win.zoomed .view img { transform: scale(1); }

.win-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  white-space: nowrap;
  background: rgba(10, 16, 29, 0.85);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
}

.play-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.play {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  background: var(--pink);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px -10px rgba(233, 30, 127, 0.7);
  position: relative;
  flex: none;
}
.play::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid rgba(233, 30, 127, 0.45);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ---------- Nature Dark Parallax Section ---------- */
.nature {
  margin-top: 110px;
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}
.nature .n-bg {
  position: absolute;
  inset: -12% 0;
}
.nature .n-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nature .n-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 9, 18, 0.86) 0%, rgba(5, 9, 18, 0.56) 54%, rgba(5, 9, 18, 0.2) 100%);
}
.nature .n-in {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) 22px;
}
.nature h2 {
  font-family: var(--font-b);
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 4.1rem);
  line-height: 1.05;
  margin: 14px 0 0;
  letter-spacing: -0.015em;
  max-width: 640px;
}
.nature h2 em {
  font-family: var(--font-s);
  font-style: normal;
  color: #ffb3d4;
  font-weight: 400;
  font-size: 1.22em;
}
.nature p {
  max-width: 520px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 18px;
  font-size: 1.03rem;
}
.counters {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.counter {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 18px 22px;
  min-width: 165px;
}
.counter b {
  font-family: var(--font-b);
  font-size: 2.1rem;
  font-weight: 800;
  display: flex;
  align-items: baseline;
}
.counter b i {
  font-style: normal;
  color: #ff7ab5;
  margin-left: 2px;
}
.counter span {
  font-size: 0.86rem;
  opacity: 0.86;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 38px;
}
.step {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  padding: 24px 20px;
  position: relative;
}
.step .no {
  font-family: var(--font-d);
  font-size: 2.6rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--pink);
  opacity: 0.9;
}
.step h3 {
  margin: 10px 0 8px;
  font-size: 1.12rem;
  font-family: var(--font-d);
}
.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ---------- Visit & Contact ---------- */
.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 5vw, 60px);
  align-items: start;
}
.contact-lines {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.contact-lines .cl {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 18px;
}
.contact-lines .ic {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  background: var(--pink-soft);
  color: var(--pink);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.contact-lines b {
  display: block;
  font-size: 0.98rem;
}
.contact-lines span {
  font-size: 0.86rem;
  color: var(--ink-2);
}
.contact-lines .copy {
  margin-left: auto;
  padding: 8px 16px;
  font-size: 0.84rem;
}

form.book {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.book-title {
  font-family: var(--font-d);
  font-size: 1.38rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
form.book label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
}
form.book input:not([type="checkbox"]), form.book select {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 12px;
  padding: 11px 14px;
  font-family: var(--font-b);
  font-size: 0.96rem;
  width: 100%;
  outline: none;
}
form.book input:focus, form.book select:focus {
  border-color: var(--pink);
}
.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  cursor: pointer;
}
.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
}

/* ---------- Footer ---------- */
footer {
  margin-top: 104px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.foot-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 22px 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.foot-in a {
  color: var(--pink);
  font-weight: 600;
  text-decoration: none;
}
.foot-in a:hover {
  text-decoration: underline;
}
.foot-tagline {
  font-family: var(--font-d);
}
.foot-tagline b {
  color: var(--pink);
  font-weight: 400;
}
.foot-top {
  color: var(--ink) !important;
  font-weight: 700;
}

/* ---------- Modals ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 16, 29, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 36px 80px -20px rgba(0, 0, 0, 0.55);
  max-height: 90svh;
  overflow-y: auto;
  position: relative;
  transform: translateY(14px);
  transition: transform 0.28s ease;
}
.modal-backdrop.open .modal-dialog {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.prop-dialog {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  overflow: hidden;
}
.pm-media {
  position: relative;
  min-height: 320px;
}
.pm-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pm-media .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 14, 24, 0.8);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
}
.pm-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pm-body h3 {
  font-family: var(--font-d);
  font-size: 1.7rem;
  margin: 0;
}
.pm-desc {
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 4px 0;
}
.pm-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 6px 0;
}
.pm-spec-item {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 10px;
  font-size: 0.82rem;
}
.pm-spec-item b {
  display: block;
  font-size: 1rem;
  color: var(--ink);
}
.pm-calc {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 4px;
}
.pm-calc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pm-calc-head span {
  font-weight: 800;
  color: var(--pink);
  font-size: 1.1rem;
}
.pm-calc input[type="range"] {
  width: 100%;
  accent-color: var(--pink);
}
.pm-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.confirm-dialog {
  width: min(440px, 100%);
  padding: 34px 28px;
  text-align: center;
}
.cm-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--pink-soft);
  color: var(--pink);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}
.confirm-dialog h3 {
  font-family: var(--font-d);
  font-size: 1.55rem;
  margin: 0 0 10px;
}
.confirm-dialog p {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 22px;
}

/* ---------- Toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 140%);
  background: #12100d;
  color: #fdf9ef;
  padding: 14px 22px;
  border-radius: 14px;
  z-index: 260;
  font-weight: 600;
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.2);
  max-width: 92vw;
  text-align: center;
}
#toast.show {
  transform: translate(-50%, 0);
}

/* ---------- Fallback Modes ---------- */
body.no-gsap .h-track {
  flex-wrap: wrap;
  width: auto;
}
body.no-gsap .h-card {
  width: calc(50% - 11px);
}

/* ---------- Responsive Media Queries ---------- */
@media (max-width: 1060px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fc-bl, .fc-tr { display: none !important; }
  nav.links a { padding: 8px 10px; font-size: 0.88rem; }
}

@media (max-width: 860px) {
  nav.links { display: none; }
  .nav-cta { display: none; }
  #menuBtn { display: grid; place-items: center; }

  .hero { padding: 84px 12px 18px; }
  .stage { height: 74svh; min-height: 500px; border-radius: 22px; }
  .fc-br { display: none !important; }
  .content-layer { padding-bottom: 100px; }
  .content-layer.left { padding-bottom: 106px; }
  .searchbar { grid-template-columns: 1fr 1fr; margin-top: 12px; }
  .searchbar .btn { grid-column: 1 / -1; }
  .split, .visit, .prop-dialog { grid-template-columns: 1fr; }
  .pm-media { min-height: 220px; }
  .window-grid { grid-template-columns: 1fr; text-align: center; }
  .w-text.r { text-align: center; }
  .w-text p { margin-inline: auto; }
  .vista-pills { justify-content: center; }
  .h-track { flex-direction: column; width: auto; padding-bottom: 54px; }
  .h-card { width: 100%; }
  .h-card img { height: 260px; }
  .h-nav { display: none; }
  section.blk { padding-top: 76px; }
  .slide-count { display: none; }
}

@media (max-width: 580px) {
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .searchbar { grid-template-columns: 1fr; }
  .form-2col { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee .track, .bar.on i::after, .play::after { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}
