:root {
  --bg: #0c1219;
  --bg-soft: #141c27;
  --bg-card: #1a2433;
  --text: #f4f1eb;
  --text-muted: #a8b0bd;
  --gold: #c8a96e;
  --gold-light: #e2c992;
  --line: rgba(200, 169, 110, 0.25);
  --radius: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 20px;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(12, 18, 25, 0.88);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

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

.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select-wrap {
  display: flex;
}

.lang-select {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c8a96e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--text);
  padding: 8px 34px 8px 14px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  min-width: 72px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

html[lang="zh"] body {
  font-family: "Noto Sans SC", var(--font-body);
}

html[lang="ar"] body {
  font-family: "Noto Sans Arabic", var(--font-body);
}

html[dir="rtl"] .header-inner,
html[dir="rtl"] .footer-inner,
html[dir="rtl"] .apt-detail-head,
html[dir="rtl"] .floor-plans-head,
html[dir="rtl"] .visual-block-head {
  direction: rtl;
}

html[dir="rtl"] .lang-select {
  background-position: left 12px center;
  padding: 8px 14px 8px 34px;
}

html[dir="rtl"] .split.reverse .split-media {
  order: unset;
}

html[dir="rtl"] .split.reverse .split-text {
  order: unset;
}

html[dir="rtl"] .hero-overlay {
  background:
    linear-gradient(180deg, rgba(12, 18, 25, 0.35) 0%, rgba(12, 18, 25, 0.15) 40%, rgba(12, 18, 25, 0.92) 100%),
    linear-gradient(270deg, rgba(12, 18, 25, 0.75) 0%, transparent 55%);
}

html[dir="rtl"] .visual-fullscreen {
  right: auto;
  left: 12px;
}

html[dir="rtl"] .lightbox-close {
  right: auto;
  left: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.btn:hover {
  background: var(--gold);
  color: #1a1208;
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--gold);
  color: #1a1208;
}

.btn-solid:hover {
  background: var(--gold-light);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 18, 25, 0.35) 0%, rgba(12, 18, 25, 0.15) 40%, rgba(12, 18, 25, 0.92) 100%),
    linear-gradient(90deg, rgba(12, 18, 25, 0.75) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.2rem);
  font-weight: 400;
  line-height: 0.95;
  margin: 0 0 24px;
  max-width: 10ch;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stat {
  min-width: 120px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold-light);
  line-height: 1;
}

.stat-value--range {
  font-size: clamp(1.35rem, 3.8vw, 2.15rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split.reverse .split-text {
  order: 1;
}

.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: inherit;
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 169, 110, 0.5);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(200, 169, 110, 0.12);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0 0 10px;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Tax benefits */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}

.benefits-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.benefit-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1;
}

.benefit-text strong {
  display: block;
  margin-bottom: 4px;
}

.benefit-text span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Apartments */
.apartments {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.apt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 28px;
}

.apt-tab {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.apt-tab.is-active,
.apt-tab:hover {
  background: var(--gold);
  color: #1a1208;
  border-color: var(--gold);
}

.apt-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}

.apt-left,
.apt-right {
  display: grid;
  gap: 22px;
}

.apt-detail {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.apt-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.apt-detail-head h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 6px;
}

.apt-detail-floor {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.apt-detail-sale {
  text-align: right;
}

.apt-detail-sale span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.apt-detail-sale strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-light);
}

.apt-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.apt-spec {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

.apt-spec span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.apt-spec strong {
  font-size: 1rem;
}

.apt-detail-note {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.floor-plans-block,
.visual-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.floor-plans-head,
.visual-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.floor-plans-head h4,
.visual-block-head h4 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0;
}

.visual-block-head span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.floor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.floor-tab {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.floor-tab.is-active,
.floor-tab:hover {
  background: rgba(200, 169, 110, 0.15);
  color: var(--gold-light);
}

.floor-plan-viewer {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  min-height: 220px;
  display: grid;
  place-items: center;
  cursor: zoom-in;
}

.floor-plan-viewer img {
  width: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
}

.floor-plan-expand {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
}

.floor-plan-expand:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.floor-plan-caption {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.floor-plan-hint {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Floor plan popup */
.floorplan-modal {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.floorplan-modal.is-open {
  display: flex;
}

.floorplan-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}

.floorplan-dialog {
  position: relative;
  width: min(1200px, 100%);
  max-height: calc(100vh - 32px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.floorplan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.floorplan-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

.floorplan-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.floorplan-tools button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.floorplan-tools button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.floorplan-zoom-level {
  min-width: 52px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.floorplan-stage-wrap {
  position: relative;
  min-height: min(72vh, 720px);
  overflow: hidden;
  background: #f4f2ee;
  cursor: default;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floorplan-stage-wrap.is-loading::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: visual-spin 0.8s linear infinite;
  z-index: 2;
}

.floorplan-stage-wrap.is-grabbable {
  cursor: grab;
}

.floorplan-stage-wrap.is-dragging {
  cursor: grabbing;
}

.floorplan-stage {
  transform-origin: center center;
  will-change: transform;
}

.floorplan-stage img {
  display: block;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  image-rendering: high-quality;
}

.floorplan-hint {
  margin: 0;
  padding: 12px 20px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

html[dir="rtl"] .floorplan-header {
  flex-direction: row-reverse;
}

.visual-viewer {
  display: grid;
  gap: 12px;
}

.tour3d-launch {
  width: 100%;
  margin-top: 4px;
  padding: 16px 24px;
  font-size: 0.82rem;
}

.tour3d-launch-icon {
  font-size: 1rem;
  opacity: 0.85;
}

.tour3d-launch-hint {
  margin: 10px 0 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.tour3d-open-btn {
  width: 100%;
  margin-top: 18px;
}

.visual-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-soft);
}

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

.visual-preview.is-loading .visual-loader {
  opacity: 1;
}

.visual-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12, 18, 25, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.visual-loader::after {
  content: "";
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: visual-spin 0.8s linear infinite;
}

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

.floor-tour-open-btn {
  width: 100%;
  margin-top: 12px;
}

/* Floor plan interior tour */
.floor-tour-modal {
  position: fixed;
  inset: 0;
  z-index: 310;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.floor-tour-modal.is-open {
  display: flex;
}

.floor-tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
}

.floor-tour-dialog {
  position: relative;
  width: min(1180px, 100%);
  max-height: calc(100vh - 32px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.floor-tour-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.floor-tour-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

.floor-tour-room-label {
  margin: 6px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.floor-tour-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.floor-tour-modes {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.floor-tour-mode {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.floor-tour-mode.is-active {
  background: rgba(200, 169, 110, 0.18);
  color: var(--gold);
}

.floor-tour-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.floor-tour-body {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  min-height: min(58vh, 520px);
  background: #06090e;
}

.floor-tour-scene {
  position: relative;
  overflow: hidden;
  background: #05080d;
  --parallax-x: 0px;
  --parallax-y: 0px;
}

.floor-tour-layer {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.85s ease;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.02);
  will-change: transform, opacity;
}

.floor-tour-layer.is-visible {
  opacity: 1;
}

.floor-tour-layer.is-kenburns {
  animation: floorTourKenBurns 7s ease-in-out forwards;
}

@keyframes floorTourKenBurns {
  from { transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.02); }
  to { transform: translate3d(calc(var(--parallax-x) + 1.5%), calc(var(--parallax-y) - 1%), 0) scale(1.1); }
}

.floor-tour-scene-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 22%, transparent 72%, rgba(0, 0, 0, 0.5) 100%),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
}

.floor-tour-map {
  position: relative;
  border-left: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}

.floor-tour-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.92;
}

.floor-tour-hotspots {
  position: absolute;
  inset: 0;
}

.floor-tour-hotspot {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 0;
  border-radius: 50%;
  background: rgba(200, 169, 110, 0.9);
  box-shadow: 0 0 0 4px rgba(200, 169, 110, 0.2);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floor-tour-hotspot:hover,
.floor-tour-hotspot.is-active {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(200, 169, 110, 0.35);
}

.floor-tour-hotspot-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(200, 169, 110, 0.55);
  animation: floorTourPulse 2s ease-out infinite;
}

.floor-tour-hotspot.is-active .floor-tour-hotspot-pulse {
  animation: none;
  border-color: rgba(255, 255, 255, 0.7);
}

@keyframes floorTourPulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.floor-tour-camera {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  z-index: 3;
  pointer-events: none;
  transition: left 1.6s cubic-bezier(0.4, 0, 0.2,  1), top 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.floor-tour-camera.is-flying .floor-tour-camera-ring {
  animation: floorTourDrone 1.6s ease-in-out;
}

.floor-tour-camera-ring {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 18px rgba(200, 169, 110, 0.75), inset 0 0 8px rgba(200, 169, 110, 0.4);
  background: radial-gradient(circle at 35% 35%, #fff 0%, rgba(200, 169, 110, 0.85) 45%, rgba(0, 0, 0, 0.5) 100%);
}

@keyframes floorTourDrone {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.floor-tour-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.floor-tour-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.floor-tour-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.floor-tour-nav button {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.floor-tour-fly-toggle {
  border-color: rgba(200, 169, 110, 0.45) !important;
  color: var(--gold) !important;
}

@media (max-width: 900px) {
  .floor-tour-body {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr minmax(180px, 34vh);
  }

  .floor-tour-map {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* 3D Tour popup */
.tour3d-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tour3d-modal.is-open {
  display: flex;
}

.tour3d-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
}

.tour3d-dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100vh - 40px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
}

.tour3d-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.tour3d-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.tour3d-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.tour3d-video-wrap {
  position: relative;
  min-height: min(62vh, 560px);
  background: #05080d;
  overflow: hidden;
}

#tour3d-video {
  display: block;
  width: 100%;
  height: min(62vh, 560px);
  object-fit: cover;
  background: #05080d;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.tour3d-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}

.tour3d-letterbox {
  position: absolute;
  left: 0;
  right: 0;
  height: 6%;
  background: #000;
  pointer-events: none;
  opacity: 0.85;
}

.tour3d-letterbox--top { top: 0; }
.tour3d-letterbox--bottom { bottom: 0; }

.tour3d-scene-label {
  position: absolute;
  left: 24px;
  bottom: 72px;
  margin: 0;
  padding: 8px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5f0e6;
  background: rgba(0, 0, 0, 0.55);
  border-left: 2px solid var(--gold);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.tour3d-scene-label.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tour3d-video-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
}

.tour3d-video-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.tour3d-video-controls button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.tour3d-loading {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(10, 16, 24, 0.7);
  pointer-events: none;
}

.tour3d-loading.is-active {
  display: grid;
}

.tour3d-loading::after {
  content: "";
  width: 44px;
  height: 44px;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: visual-spin 0.8s linear infinite;
}

.tour3d-controls-hint {
  margin: 0;
  padding: 12px 22px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

.tour3d-video-wrap:fullscreen #tour3d-video {
  height: 100vh;
}

html[dir="rtl"] .tour3d-header {
  flex-direction: row-reverse;
}

.visual-fullscreen {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(12, 18, 25, 0.7);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.visual-label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}

.visual-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.visual-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.visual-thumb.is-active {
  border-color: var(--gold);
}

.visual-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
  margin-top: 40px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(5) {
  grid-column: span 2;
}

/* Contact */
.contact {
  background: var(--bg-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 20px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.contact-list li {
  display: grid;
  gap: 4px;
}

.contact-list span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-list a,
.contact-obf-link {
  color: var(--text);
  transition: color 0.2s;
}

.contact-list a:hover,
.contact-obf-link:hover {
  color: var(--gold-light);
}

.contact-noscript {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.callback-contact-btn {
  width: 100%;
  margin-top: 24px;
}

.callback-open-btn {
  white-space: nowrap;
}

/* Callback modal */
.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.callback-modal.is-open {
  display: flex;
}

.callback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(6px);
}

.callback-dialog {
  position: relative;
  width: min(100%, 480px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.callback-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 0;
}

.callback-header h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.callback-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.callback-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.callback-form {
  padding: 20px 22px 22px;
  display: grid;
  gap: 16px;
}

.callback-field {
  display: grid;
  gap: 8px;
}

.callback-field label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.callback-required {
  color: #e88a8a;
  margin-left: 3px;
  font-weight: 700;
}

.callback-field.is-error label {
  color: #e8a0a0;
}

.callback-field.is-error input,
.callback-field.is-error textarea,
.callback-field.is-error .callback-phone-country,
.callback-field.is-error .callback-phone-wrap input {
  border-color: rgba(232, 138, 138, 0.85);
  box-shadow: 0 0 0 2px rgba(232, 138, 138, 0.12);
}

.callback-field-error {
  font-size: 0.82rem;
  line-height: 1.35;
  color: #e8a0a0;
  margin: -2px 0 0;
}

.callback-field-error[hidden] {
  display: none;
}

.callback-field input,
.callback-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
}

.callback-phone-row {
  display: grid;
  grid-template-columns: minmax(148px, 42%) 1fr;
  gap: 10px;
  align-items: stretch;
}

.callback-phone-country {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  padding: 10px 8px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  min-width: 0;
  text-overflow: ellipsis;
}

.callback-phone-wrap {
  position: relative;
}

.callback-phone-wrap input {
  padding-right: 44px;
}

.callback-phone-wrap input.is-valid {
  border-color: rgba(125, 206, 160, 0.55);
}

.callback-phone-wrap input.is-invalid {
  border-color: rgba(232, 138, 138, 0.55);
}

.callback-phone-status {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
}

.callback-phone-status.is-valid {
  color: #7dcea0;
  border: 1px solid rgba(125, 206, 160, 0.45);
  background: rgba(125, 206, 160, 0.12);
}

.callback-phone-status.is-invalid {
  color: #e88a8a;
  border: 1px solid rgba(232, 138, 138, 0.45);
  background: rgba(232, 138, 138, 0.12);
}

.callback-captcha-field label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.callback-slider {
  position: relative;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.callback-slider-track {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(200, 169, 110, 0.08), transparent 70%);
}

.callback-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(200, 169, 110, 0.22);
  pointer-events: none;
  transition: width 0.05s linear;
}

.callback-slider.is-verified .callback-slider-fill {
  background: rgba(125, 206, 160, 0.28);
}

.callback-slider-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  pointer-events: none;
}

.callback-slider.is-verified .callback-slider-hint,
.callback-slider.is-dragging .callback-slider-hint {
  opacity: 0;
}

.callback-slider-thumb {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--bg-card);
  color: var(--gold-light);
  cursor: grab;
  z-index: 2;
  touch-action: none;
}

.callback-slider.is-dragging .callback-slider-thumb {
  cursor: grabbing;
}

.callback-slider.is-verified .callback-slider-thumb {
  cursor: default;
  border-color: #7dcea0;
  color: #7dcea0;
}

.callback-captcha-done {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #7dcea0;
}

.callback-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.callback-email-wrap {
  position: relative;
}

.callback-email-wrap input {
  padding-right: 44px;
}

.callback-email-status {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
}

.callback-email-status.is-valid {
  color: #7dcea0;
  border: 1px solid rgba(125, 206, 160, 0.45);
  background: rgba(125, 206, 160, 0.12);
}

.callback-email-status.is-invalid {
  color: #e88a8a;
  border: 1px solid rgba(232, 138, 138, 0.45);
  background: rgba(232, 138, 138, 0.12);
}

.callback-email-status.is-warning {
  color: #e8c87a;
  border: 1px solid rgba(232, 200, 122, 0.45);
  background: rgba(232, 200, 122, 0.12);
}

.callback-email-status.is-checking {
  color: var(--text-muted);
  border: 1px solid var(--line);
  animation: visual-spin 0.8s linear infinite;
  font-size: 0.65rem;
}

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

.callback-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.callback-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.88rem;
}

.callback-status.is-success {
  color: #7dcea0;
}

.callback-status.is-error {
  color: #e88a8a;
}

.callback-status.is-pending {
  color: var(--text-muted);
}

.callback-submit {
  width: 100%;
}

.callback-privacy {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.callback-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(12, 18, 25, 0.92);
  color: var(--gold-light);
  box-shadow: var(--shadow);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.2s, background 0.2s;
}

.callback-fab:hover {
  transform: translateY(-2px);
  background: rgba(26, 36, 51, 0.96);
}

.callback-fab-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.callback-fab-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[dir="rtl"] .callback-fab {
  right: auto;
  left: 20px;
}

html[dir="rtl"] .callback-header {
  flex-direction: row-reverse;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* Footer */
.footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1200px, 100%);
  max-height: 90vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  background: rgba(12, 18, 25, 0.97);
  backdrop-filter: blur(12px);
  z-index: 90;
  padding: 32px 24px;
  display: none;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media,
  .split.reverse .split-text {
    order: unset;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apt-layout {
    grid-template-columns: 1fr;
  }

  .apt-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .header .btn:not(.menu-toggle) {
    display: none;
  }

  .callback-fab-label {
    display: none;
  }

  .callback-fab {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .callback-phone-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .features-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .apt-specs,
  .visual-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .apt-detail-head {
    flex-direction: column;
  }

  .apt-detail-sale {
    text-align: left;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .hero-stats {
    gap: 18px;
  }
}
