/* ============================================================
   Flowing — Design tokens (defaults)
   Cada proyecto puede sobrescribir en proyectos/{slug}/branding.css.
   Estructura en tres capas:
     1) Brand    → varía por proyecto (bg, text, accent, fonts)
     2) CTA      → varía por proyecto (botones primarios)
     3) Status   → universal: disponibilidad de unidades
   La fuente (@import Google Fonts o @font-face) vive en el branding
   del proyecto para no cargar tipografías que no se usan.
   ============================================================ */
:root {
  /* --- 1. Brand (per project) --- */
  --brand-bg:          #000;
  --brand-text:        #fff;
  --brand-text-muted:  #777;
  --brand-accent:      #41d16f;
  --brand-accent-text: #fff;
  --brand-title-font:  system-ui, sans-serif;
  --brand-body-font:   system-ui, sans-serif;

  /* --- 2. CTA (per project) --- */
  --cta-bg:            #333;
  --cta-text:          #fff;
  --cta-border:        #333;
  --cta-bg-hover:      transparent;
  --cta-text-hover:    #333;

  /* --- 3. Status (universal — no cambia por proyecto) --- */
  --status-available:         #41d16f;
  --status-available-rgb:     76, 217, 100;   /* para rgba() en bordes/glows */
  --status-reserved:          #ff9f1a;
  --status-reserved-rgb:      255, 159, 26;
  --status-sold:              #ff4d4f;
  --status-sold-rgb:          255, 95, 86;
  --status-unavailable:       #9ca3af;
  --status-unavailable-rgb:   156, 163, 175;
}

.fill {
  object-fit: cover;
  object-position: middle center;
}
.cover {
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.shad {
  text-shadow: 0 -1px 0 rgba(128, 128, 128, 0.5);
}
.upper {
  text-transform: uppercase;
}
.thin {
  font-weight: 100;
}
.light {
  font-weight: 300;
}
.regular {
  font-weight: 400;
}
.medium {
  font-weight: 500;
}
.semi {
  font-weight: 600;
}
.bold {
  font-weight: 700;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
body,
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: var(--brand-body-font);
  font-optical-sizing: auto;
}
a,
a:hover {
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;
  text-decoration: none;
}
hr.clear {
  background: none;
  border: 0;
  clear: both;
  display: block;
  float: none;
  font-size: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  visibility: hidden;
  width: 0;
  height: 0;
}
html, body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
body {
  background: var(--brand-bg);
  color: var(--brand-text);
}
/* Chrome iOS en landscape no soporta viewport-fit=cover: los safe areas laterales
   muestran el body background. Hacemos que coincida con el fondo del panel activo
   para que las barras sean invisibles. */
body.scene-project,
body.scene-progress  { background: #f1f1f1; }
body.scene-amenities { background: #080808; }
body.scene-gallery,
body.scene-location,
body.scene-contact   { background: #000; }
.video-hero {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0; /* modern shorthand */
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-transform: translateZ(0); /* force GPU layer on iOS */
}
.video-hero .logo-hero {
  position: absolute;
  top: 20px;
  text-align: center;
  z-index: 888;
  right: 0;
  left: 0;
}
.video-hero .logo-hero img {
  width: 100px;
}
.video-hero .hero-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 888;
  right: 0;
  left: 0;
}
.video-hero .hero-text h1 {
  color: #FFF;
  margin: 0;
  font-weight: 100;
  font-size: 160px;
  line-height: 1em;
  text-align: center;
  letter-spacing: -0.05em;
}
@media (max-width: 1023px) {
  .video-hero .hero-text h1 {
    font-size: 46px;
    font-weight: 300;
  }
}
.video-hero .hero-text h6 {
  text-transform: uppercase;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.5em;
  color: #FFF;
  text-align: center;
  margin: 0;
}
@media (max-width: 1023px) {
  .video-hero .hero-text h6 {
    font-size: 13px;
    letter-spacing: 0.2em;
    max-width: 90%;
    margin: 0 auto;
  }
}
.video-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: middle center;
  opacity: 0.8;
}
.page-step1.animate-in .hero-text h6 {
  opacity: 0;
  transform: translateY(-90px);
  transition: all 1.6s ease;
  transition-delay: 0.1s;
}
.page-step1.animate-in .hero-text h1 {
  opacity: 0;
  transform: translateY(-80px);
  transition: all 2s ease;
  transition-delay: 0.2s;
}
.hero-still {
  position: absolute;
  inset: 0;
  z-index: 3;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  pointer-events: none !important;
  transition: none;
}
.hero-still-a {
  z-index: 3;
}
.hero-still-b {
  z-index: 4;
}
.hero-still.is-active {
  opacity: 1;
}
.hero-still.is-floor-switching {
  opacity: .35 !important;
}
.scene-hotspots {
  position: absolute;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}
.scene-hotspots-imgrect {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.scene-hotspots-imgrect > .hotspot,
.scene-hotspots-imgrect > .hotspot-unit {
  pointer-events: auto;
}
.scene-hotspots-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.scene-hotspots-svg .hotspot-poly {
  fill: transparent;
  stroke: transparent;
  stroke-width: 1.5;
  transition: fill 180ms ease, stroke 180ms ease;
  pointer-events: auto;
  cursor: pointer;
}
.scene-hotspots-svg .hotspot-poly.is-sold,
.scene-hotspots-svg .hotspot-poly.is-unavailable {
  cursor: default;
}
.scene-hotspots-svg .hotspot-poly.is-active.is-available {
  fill: rgba(76, 217, 100, 0.22);
  stroke: rgba(76, 217, 100, 0.95);
}
.scene-hotspots-svg .hotspot-poly.is-active.is-reserved {
  fill: rgba(255, 159, 26, 0.22);
  stroke: rgba(255, 159, 26, 0.95);
}
.scene-hotspots-svg .hotspot-poly.is-active.is-sold {
  fill: rgba(255, 95, 86, 0.18);
  stroke: rgba(255, 95, 86, 0.85);
}
.scene-hotspots-svg .hotspot-poly.is-active.is-unavailable {
  fill: rgba(156, 163, 175, 0.18);
  stroke: rgba(156, 163, 175, 0.85);
}
.scene-hotspots .hotspot {
  position: absolute;
  display: block;
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transition: opacity .35s ease;
}
.scene-hotspots .hotspot::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  background: #fff;
}
.scene-hotspots .hotspot.is-visible {
  opacity: 1;
  animation: hotspotPulse 2s infinite;
}
.scene-hotspots .hotspot-unit.is-available {
  border-color: rgba(var(--status-available-rgb), 0.9);
  box-shadow: 0 0 0 0 rgba(var(--status-available-rgb), 0.28);
}
.scene-hotspots .hotspot-unit.is-available::after {
  background: #fff;
}
.scene-hotspots .hotspot-unit.is-reserved {
  border-color: rgba(var(--status-reserved-rgb), 0.9);
  box-shadow: 0 0 0 0 rgba(var(--status-reserved-rgb), 0.28);
}
.scene-hotspots .hotspot-unit.is-reserved::after {
  background: #fff;
}
.scene-hotspots .hotspot-unit.is-sold {
  border-color: rgba(var(--status-sold-rgb), 0.75);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  opacity: .82;
  animation: none !important;
}
.scene-hotspots .hotspot-unit.is-sold::after {
  background: rgba(255, 255, 255, 0.72);
  inset: 12px;
}
.scene-hotspots .hotspot-unit.is-unavailable {
  border-color: rgba(var(--status-unavailable-rgb), 0.75);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  opacity: .82;
  animation: none !important;
}
.scene-hotspots .hotspot-unit.is-unavailable::after {
  background: rgba(255, 255, 255, 0.72);
  inset: 12px;
}
.scene-hotspots .hotspot-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(110%);
  transform: translateX(-50%) translateY(6px);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.scene-hotspots .hotspot-unit:hover .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.scene-hotspots .hotspot-tooltip-status {
  color: #fff;
}
.scene-hotspots .hotspot-unit.is-available .hotspot-tooltip-status {
  color: var(--status-available);
}
.scene-hotspots .hotspot-unit.is-reserved .hotspot-tooltip-status {
  color: var(--status-reserved);
}
.scene-hotspots .hotspot-unit.is-sold .hotspot-tooltip-status {
  color: var(--status-sold);
}
.scene-hotspots .hotspot-unit.is-unavailable .hotspot-tooltip-status {
  color: var(--status-unavailable);
}
@keyframes hotspotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}
.hero-text {
  transition: opacity .7s ease, transform .7s ease;
}
.hero-text.is-hidden {
  opacity: 0;
  transform: translateY(-30px);
}
.video-hero video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none;
}
.logo-hero,
.hero-text {
  position: relative;
  z-index: 3;
  pointer-events: none;
}
.hero-text {
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-wrap {
  position: fixed;
  bottom: 10px;
  left: 0;
  width: 100%;
  z-index: 8888;
  pointer-events: none;
  text-align: center;
}
@media (max-width: 1023px) {
  .nav-wrap nav { display: none !important; }
}
.nav-wrap {
  transition: opacity .25s ease, transform .25s ease;
}
body.scene-gallery .nav-wrap.is-ui-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.nav-inner {
  position: relative;
  display: inline-block;
  pointer-events: auto;
}
nav {
  background: rgba(0, 0, 0, 0.7);
  display: block;
  padding: 5px 7px;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  border-radius: 30px;
  z-index: 8888;
  backdrop-filter: blur(10px);
  border: 1px solid #333;
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  margin: 0;
  width: auto;
}
@media (max-width: 1023px) {
  nav {
    padding: 3px 5px;
  }
}
nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
}
nav ul li {
  text-align: left;
}
nav ul li a,
nav ul li span.btn-nav-arrow {
  border: 1px solid rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0);
  display: inline-block;
  padding: 10px;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  border-radius: 30px;
  color: #FFF;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
nav ul li a .bi,
nav ul li span.btn-nav-arrow .bi {
  font-size: 22px;
  vertical-align: middle;
  line-height: 1em;
}
@media (max-width: 1023px) {
  nav ul li a,
  nav ul li span.btn-nav-arrow {
    padding: 8px 10px;
    font-size: 14px;
  }
  nav ul li a .bi,
  nav ul li span.btn-nav-arrow .bi {
    font-size: 18px;
  }
}
nav ul li a:hover {
  color: #FFF;
  background: rgba(0, 0, 0, 0.5);
}
nav ul li .btn-nav-arrow.is-disabled {
  opacity: .28;
  pointer-events: none;
}
.nav-wrap nav ul {
  width: fit-content;
  transition: width 0.62s cubic-bezier(0.34, 1.56, 0.64, 1), padding 0.45s ease, gap 0.45s ease, background-color 0.45s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  will-change: width, transform, opacity;
  transform-origin: center center;
}
.nav-wrap nav ul.is-switching-out {
  opacity: .65;
  transform: scale(0.975) translateY(3px);
}
.nav-wrap nav ul.is-transitioning {
  pointer-events: none;
}
.nav-wrap nav ul li {
  transition: opacity 0.3s ease, transform 0.52s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.28s ease;
}
.nav-wrap nav ul li.nav-item-enter {
  opacity: 0;
  transform: translateY(16px) scale(0.86);
  filter: blur(6px);
}
.nav-wrap nav ul li.nav-item-enter.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
/* ══════════════════════════════════════════
   Menú desplegable — two-column redesign
   ══════════════════════════════════════════ */
#mob {
  /* Hidden state — toggled with .is-open */
  display: flex;
  position: fixed;       /* viewport-relative so JS can center over pill easily */
  bottom: 68px;
  /* horizontal position set by JS centerMenuOverPill() */
  left: 50%;
  transform-origin: bottom center;
  width: 580px;
  z-index: 8888;
  pointer-events: auto;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.97);
  transform-origin: bottom center;
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.22s;
}
#mob.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
@media (max-width: 1023px) {
  #mob {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    border-radius: 0 !important;
    flex-direction: row;
    transform-origin: top right;
    transform: scale(0.96);
    z-index: 8889;
    background: rgba(6, 6, 6, 0.97) !important;
    align-items: stretch !important;
  }
  #mob.is-open {
    transform: scale(1);
  }
}

/* ── Left column ── */
.mob-left {
  width: 196px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 24px 32px 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
}
@media (max-width: 1023px) {
  /* Brand column: RIGHT side */
  .mob-left {
    order: 2;
    width: clamp(150px, 42%, 200px) !important;
    flex-shrink: 0 !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    padding: calc(env(safe-area-inset-top, 0px) + 64px) 20px calc(env(safe-area-inset-bottom, 0px) + 24px) 16px !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  .mob-left-head { flex: 0 0 auto; width: 100%; text-align: right; }
  .mob-nav-rail,
  .mob-nav-indicator { display: none !important; }
  .mob-left-foot {
    position: static !important;
    background: none !important;
    border-top: none !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    padding: 0 !important;
    margin-top: auto !important;
    gap: 8px !important;
    width: 100%;
  }
  .mob-legal-text { display: block !important; font-size: 11px !important; text-align: right !important; }
  .mob-wa-btn { display: none !important; }
  .mob-footer-brand { justify-content: flex-end !important; }
  .mob-flowing-logo { width: 52px !important; }
}

/* Logo + name + address */
.mob-left-head {
  flex-shrink: 0;
}
.mob-project-logo {
  display: block;
  max-width: 100px;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
@media (max-width: 1023px) {
  .mob-project-logo { max-width: 80px; max-height: 28px; margin-bottom: 10px; }
}
.mob-project-name {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 2px;
  letter-spacing: 0.01em;
  text-align: left;
}
.mob-project-address {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.32);
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: left;
}
@media (max-width: 1023px) {
  .mob-project-logo {
    max-width: 100px !important;
    max-height: 36px !important;
    margin-bottom: 10px !important;
    object-position: right center !important;
  }
  .mob-project-name { font-size: 12px !important; margin-bottom: 4px !important; text-align: right !important; }
  .mob-project-address { display: block !important; font-size: 11px !important; text-align: right !important; }
}

/* Rail — sits at the right edge of .mob-left, flush with the column separator */
.mob-nav-rail {
  position: absolute;
  right: -3px;   /* overlap the 1px border so pill straddles it */
  top: 0;
  bottom: 0;
  width: 6px;
  pointer-events: none;
  z-index: 2;
}
/* Wider moving indicator pill */
.mob-nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.92;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
@media (max-width: 1023px) {
  .mob-nav-rail { display: none !important; }
}

/* Bottom: WA + Flowing + legal */
.mob-left-foot {
  flex-shrink: 0;
  margin-top: auto;     /* push to bottom since rail is now position:absolute */
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* mobile .mob-left-foot overridden in the .mob-left block above */

/* WhatsApp CTA */
.mob-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  align-self: flex-start;  /* don't stretch full width */
}
.mob-wa-btn .bi-whatsapp {
  font-size: 15px;
  color: #25d366;
}
.mob-wa-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
@media (max-width: 1023px) {
  .mob-wa-btn { font-size: 11px; padding: 7px 11px 7px 9px; gap: 5px; }
  .mob-wa-btn .bi-whatsapp { font-size: 13px; }
  .mob-wa-btn span { display: inline; }
}

/* Flowing logo + legal */
.mob-footer-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.mob-poweredby {
  font-size: 8px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
}
.mob-flowing-logo {
  display: block;
  width: 52px;
  opacity: 0.35;
  transition: opacity 0.18s;
}
.mob-footer-brand:hover .mob-flowing-logo {
  opacity: 0.6;
}
@media (max-width: 1023px) {
  .mob-footer-brand { display: flex; }
  .mob-flowing-logo { width: 40px; }
}
.mob-legal-text {
  font-size: 9px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.22);
  margin: 0;
  text-align: left;
}
.mob-legal-link {
  color: rgba(255, 255, 255, 0.38);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.mob-legal-link:hover {
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 1023px) {
  .mob-legal-text {
    display: block; /* show inline in the left col, like desktop */
    position: static;
    font-size: 8px;
  }
}

/* ── Right column: nav items ── */
.mob-nav-col {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 36px 40px 36px 32px;
}
@media (max-width: 1023px) {
  /* Nav column: LEFT side */
  .mob-nav-col {
    order: 1;
    flex: 1 !important;
    width: auto !important;
    padding: calc(env(safe-area-inset-top, 0px) + 64px) 28px calc(env(safe-area-inset-bottom, 0px) + 28px) 28px !important;
    overflow-y: auto;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
  }
}
#mob ul {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}
#mob li {
  display: block;
  text-align: left;
  padding: 0;
}
#mob li a {
  display: block;
  border: none;
  font-size: 22px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  padding: 7px 0;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.18s;
  letter-spacing: -0.01em;
}
#mob li a:hover,
#mob li.is-active a {
  color: #fff;
}
@media (max-width: 1023px) {
  #mob li a {
    font-size: 18px !important;
    padding: 5px 0 !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: -0.01em !important;
    color: rgba(255, 255, 255, 0.28) !important;
  }
  #mob li.is-active a,
  #mob li a:active {
    color: #fff !important;
    font-weight: 500 !important;
  }
}

/* ══════════════════════════════════════════
   Modal de legales
   ══════════════════════════════════════════ */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.legal-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.legal-modal-dialog {
  position: relative;
  z-index: 1;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  width: min(640px, 92vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.legal-modal.is-open .legal-modal-dialog {
  transform: translateY(0) scale(1);
}
.legal-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.legal-modal-close:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}
.legal-modal-body {
  padding: 40px 40px 40px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.75;
}
.legal-modal-body h2 {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.legal-modal-body h2:not(:first-child) {
  margin-top: 28px;
}
.legal-modal-body p {
  margin: 0 0 8px;
}
.legal-modal-body::-webkit-scrollbar { width: 4px; }
.legal-modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.floor-select {
  border: 1px solid rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0);
  color: #FFF;
  padding: 10px 52px 10px 14px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}
.floor-select:hover {
  background: rgba(0, 0, 0, 0.5);
}
.floor-select option {
  color: #000;
}
.floor-select-wrap {
  position: relative;
  display: inline-block;
}
.floor-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  opacity: .9;
}
/* UNIT NAV */
.unit-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 0 8px;
}
.unit-chip-label {
  color: #fff;
}
.unit-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  background: #999;
}
.unit-chip.is-available .unit-chip-dot {
  background: var(--status-available);
}
.unit-chip.is-reserved .unit-chip-dot {
  background: var(--status-reserved);
}
.unit-chip.is-sold .unit-chip-dot {
  background: var(--status-sold);
}
.unit-chip.is-unavailable .unit-chip-dot {
  background: var(--status-unavailable);
}
.btn-nav-icon.is-active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}
/* UNIT INFO PANEL */
.unit-panel {
  position: fixed;
  inset: 0;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}
.unit-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.unit-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.unit-panel-card {
  position: absolute;
  box-sizing: border-box;
}
.unit-panel-card--editorial {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 32px)) scale(0.97);
  width: 720px;
  max-height: 82vh;
  /* Flex column so actions pin to bottom */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(18, 18, 18, 0.82);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  z-index: 100002;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}
.unit-panel.is-open .unit-panel-card--editorial {
  transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 1023px) {
  .unit-panel-card--editorial {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-height: none !important;
    min-height: 0 !important;
    transform: translateY(32px) scale(0.97) !important;
    border-radius: 0 !important;
    border: none !important;
    background: rgba(10, 10, 10, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    padding: calc(env(safe-area-inset-top, 0px) + 20px) 24px 0 !important;
  }
  .unit-panel.is-open .unit-panel-card--editorial {
    transform: translateY(0) scale(1) !important;
  }
  .unit-panel-card--editorial .unit-panel-title {
    font-size: 26px;
  }
  .unit-panel-card--editorial .unit-panel-spec-row {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    align-items: center;
  }
  .unit-panel-card--editorial .unit-panel-actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  }
}
.unit-panel-scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 32px 40px 24px 40px;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.unit-panel-scroll-area::-webkit-scrollbar {
  width: 4px;
}
.unit-panel-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}
.unit-panel-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}
.unit-panel-specs {
  margin-bottom: 24px;
}
.unit-panel-description {
  flex: 0 0 auto;
}
.unit-panel-actions {
  /* Pinned to bottom — outside scroll area */
  flex-shrink: 0;
  padding: 16px 40px 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(14, 14, 14, 0.6);
  margin-top: 0;
}
@media (max-width: 1023px) {
  .unit-panel-scroll-area { padding: 16px 0 10px 0; }
  .unit-panel-actions { padding: 10px 0 14px; }
}
.unit-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  z-index: 10;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.unit-panel-close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.unit-panel-content {
  display: block;
  width: 100%;
}
.unit-panel-head,
.unit-panel-specs,
.unit-panel-description,
.unit-panel-actions,
.unit-panel-section-title {
  width: 100%;
}
.unit-panel-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 10px;
  padding-right: 48px; /* clearance for close button */
}
.unit-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.unit-panel-title {
  margin: 0;
  font-size: 36px;
  line-height: .95;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #fff;
}
.unit-panel-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  flex-shrink: 0;
}
.unit-panel-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.unit-panel-status.is-available {
  background: rgba(var(--status-available-rgb), 0.15);
  color: var(--status-available);
}
.unit-panel-status.is-reserved {
  background: rgba(var(--status-reserved-rgb), 0.15);
  color: var(--status-reserved);
}
.unit-panel-status.is-sold {
  background: rgba(var(--status-sold-rgb), 0.15);
  color: var(--status-sold);
}
.unit-panel-status.is-unavailable {
  background: rgba(var(--status-unavailable-rgb), 0.15);
  color: var(--status-unavailable);
}
@media (max-width: 1023px) {
  .unit-panel-status {
    font-size: 10px;
  }
}
.unit-panel-meta {
  display: none;
}
.unit-panel-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
}
.unit-panel-spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
}
.unit-panel-spec-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1em;
  text-transform: uppercase;
}
@media (max-width: 1023px) {
  .unit-panel-spec-label { font-size: 10px; }
}
.unit-panel-spec-value {
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  line-height: 1em;
}
@media (max-width: 1023px) {
  .unit-panel-spec-value { font-size: 18px; }
}
.unit-panel-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
@media (max-width: 1023px) {
  .unit-panel-section-title {
    font-size: 12px;
  }
}
.unit-panel-description {
  font-size: 16px;
  line-height: 1.45;
  color: #fff;
}
@media (max-width: 1023px) {
  .unit-panel-description {
    font-size: 14px;
  }
}
.unit-panel-description strong {
  display: none;
}
.unit-panel-description br + br {
  display: block;
  content: "";
  margin-top: 14px;
}
.unit-panel-description p {
  margin: 0 0 18px 0;
}
.unit-panel-description ul {
  margin: 0;
  padding-left: 22px;
}
.unit-panel-description li {
  margin: 0 0 6px 0;
  font-size: 14px;
}
.unit-panel-actions {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.unit-panel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
}
.unit-panel-action-brochure {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.2);
  white-space: nowrap;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.unit-panel-action-brochure:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.4);
}
.unit-panel-action-whatsapp {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 22px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.unit-panel-action-whatsapp:hover {
  color: #38DF4A;
  border-color: #38DF4A;
}

/* ── Unit panel CTA: 3 in a single row ── */
.unit-panel-actions {
  flex-direction: row;
  gap: 10px;
  align-items: center;
}
.unit-panel-cta-interest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.35s ease, color 0.35s ease, transform 0.2s ease;
}
.unit-panel-cta-interest i {
  font-size: 15px;
  transition: transform 0.3s ease;
}
.unit-panel-cta-interest:hover {
  background: #e8d9c0;
  color: #000;
  transform: translateY(-1px);
}
.unit-panel-cta-interest:hover i {
  transform: translateX(3px);
}
@media (max-width: 1023px) {
  .unit-panel-actions { flex-direction: row; gap: 8px; padding: 10px 22px 14px; }
  .unit-panel-cta-interest { flex: 1; height: 40px; font-size: 12px; }
  .unit-panel-action-brochure { height: 40px; font-size: 12px; padding: 0 14px; }
  .unit-panel-action-whatsapp { width: 40px; height: 40px; font-size: 19px; }
}

/* ── Interest modal ── */
.unit-interest-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.unit-interest-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.unit-interest-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.unit-interest-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 16px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.unit-interest-modal.is-open .unit-interest-modal-dialog {
  transform: translateY(0) scale(1);
}
.unit-interest-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2;
}
.unit-interest-modal-close:hover {
  background: rgba(255,255,255,0.16);
}
.unit-interest-modal-body {
  padding: 40px 32px 36px;
}
.unit-interest-modal-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c8a96e;
  margin-bottom: 8px;
}
.unit-interest-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}
.unit-interest-modal-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
  line-height: 1.5;
}
/* Dark-themed form fields inside the modal */
.unit-interest-modal .form-floating > label {
  color: rgba(255,255,255,0.4);
}
.unit-interest-modal .form-control {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 10px;
}
.unit-interest-modal .form-control:focus {
  background: rgba(255,255,255,0.09);
  border-color: rgba(200,169,110,0.6);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
  color: #fff;
}
.unit-interest-modal .form-control.is-invalid {
  border-color: #e05c5c;
  background: rgba(224,92,92,0.06);
}
.unit-interest-modal .form-floating > .form-control:focus ~ label,
.unit-interest-modal .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: rgba(200,169,110,0.8);
}
.unit-interest-modal .invalid-feedback {
  color: #e05c5c;
  font-size: 11px;
}
.unit-interest-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 8px;
}
.unit-interest-submit-btn:hover {
  background: #e8d9c0;
  transform: translateY(-1px);
}
.unit-interest-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.unit-interest-submit-btn.is-loading .interest-submit-label::after {
  content: '...';
}

/* OLD MODAL INFRASTRUCTURE - kept for compatibility */
.unit-mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}
.unit-mode-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.unit-mode-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.unit-mode-frame {
  position: absolute;
  inset: 24px 24px 110px 24px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}
.unit-mode-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
#unit-vr-iframe {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}
.unit-mode-frame-plan {
  background: #1a1a1a;
}
.unit-plan-toolbar {
  position: absolute;
  top: 14px;
  right: 64px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.unit-plan-toolbar button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.unit-plan-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px;
}
#unit-plan-image {
  max-width: 100%;
  max-height: 100%;
  display: block;
  transform-origin: center center;
  transition: transform .2s ease;
}
/* UNIT INLINE VR */
.unit-inline-vr {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
  background: #000;
}
.unit-inline-vr.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2000;
}
#unit-inline-vr-iframe {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  pointer-events: auto;
}
/* UNIT INLINE PLAN */
.unit-inline-plan {
  position: absolute;
  inset: 0;
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
  background: #FFF;
}
.unit-inline-plan.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.unit-inline-plan .unit-plan-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 50;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.unit-inline-plan .unit-plan-toolbar button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
  color: #111;
  pointer-events: auto;
}
.unit-inline-plan .unit-plan-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px;
  z-index: 10;
  pointer-events: auto;
}
#unit-inline-plan-image {
  max-width: 100%;
  max-height: 100%;
  display: block;
  transform-origin: center center;
  transition: transform .12s ease;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
#unit-inline-plan-image.is-dragging {
  cursor: grabbing;
}
.unit-plan-toolbar,
.unit-3d-toolbar {
  display: none !important;
}
/* UNIT INLINE 3D */
.unit-inline-3d {
  position: absolute;
  inset: 0;
  z-index: 19;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
  background: #fff;
}
.unit-inline-3d.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.unit-inline-3d .unit-3d-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 50;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.unit-inline-3d .unit-3d-toolbar button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.08);
  color: #111;
  pointer-events: auto;
}
.unit-inline-3d .unit-3d-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px;
  z-index: 10;
  pointer-events: auto;
}
#unit-inline-3d-image {
  max-width: 100%;
  max-height: 100%;
  display: block;
  transform-origin: center center;
  transition: transform .12s ease;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
#unit-inline-3d-image.is-dragging {
  cursor: grabbing;
}
body.scene-top .hero-still {
  transition: opacity .28s ease;
}
/* ── Amenities: editorial alternating layout ── */
.amenities-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: #080808;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
body.scene-amenities .amenities-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Compact dark header — eyebrow + subtitle only, page is mostly the editorial sections */
.amenities-dark-header {
  background: #080808;
  padding: 100px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
/* Client logo inside the header — flows with content, not fixed/absolute */
.amenities-client-logo {
  display: block;
  max-height: 40px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  margin-bottom: 32px;
}
.amenities-header-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 20px;
}
.amenities-header-title {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 100;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin: 0 0 18px;
}
.amenities-header-subtitle {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
  max-width: 520px;
  margin: 0;
}

/* ── Editorial sections wrapper ── */
.amenities-editorial-wrap {
  display: block;
}

/* ── Each amenity: full-width editorial section ── */
.amenity-editorial {
  display: flex;
  min-height: 85vh;
  position: relative;
}
/* Even items: flip order (image right, text left) */
.amenity-editorial:nth-child(even) {
  flex-direction: row-reverse;
}
/* Thin separator */
.amenity-editorial + .amenity-editorial {
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Image column — 55% */
.amenity-editorial-image {
  flex: 0 0 55%;
  position: relative;
  overflow: hidden;
  background: #111;
}
.amenity-editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
  /* Start slightly zoomed so parallax motion reads cleanly */
  transform: scale(1.06);
  opacity: 0.82;
}

/* Text column — 45% */
.amenity-editorial-text {
  flex: 1;
  background: #080808;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px 60px 64px;
  position: relative;
  z-index: 2;
  /* overflow visible so title can bleed over image */
  overflow: visible;
}

/* Number — top corner of text column */
.amenity-editorial-number {
  position: absolute;
  top: 40px;
  right: 48px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
.amenity-editorial:nth-child(even) .amenity-editorial-number {
  right: auto;
  left: 48px;
}

/* Title — large, bleeds into image area */
.amenity-editorial-title {
  font-size: clamp(56px, 7vw, 112px);
  font-weight: 100;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #fff;
  margin: 0 0 32px;
  will-change: transform;
  position: relative;
  /* Odd: title bleeds LEFT into image */
  margin-left: -32%;
}
.amenity-editorial:nth-child(even) .amenity-editorial-title {
  /* Even: title bleeds RIGHT into image */
  margin-left: 0;
  margin-right: -32%;
  text-align: right;
}

/* Description */
.amenity-editorial-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.45);
  max-width: 300px;
  margin: 0;
  will-change: transform;
}
.amenity-editorial:nth-child(even) .amenity-editorial-desc {
  align-self: flex-end;
  text-align: right;
}

/* Accent line above description */
.amenity-editorial-desc::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: #b8965a;
  margin-bottom: 16px;
}
.amenity-editorial:nth-child(even) .amenity-editorial-desc::before {
  margin-left: auto;
}

.btn-nav-label {
  display: inline-block;
  padding: 10px 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .amenities-dark-header { padding: 80px 0 44px; }
  .amenities-header-title { font-size: 36px; }
  .amenity-editorial,
  .amenity-editorial:nth-child(even) { flex-direction: column; min-height: auto; }
  .amenity-editorial-image { flex: none; height: 56vw; min-height: 240px; }
  .amenity-editorial-text { padding: 36px 24px 48px; overflow: hidden; }
  .amenity-editorial-title,
  .amenity-editorial:nth-child(even) .amenity-editorial-title {
    font-size: clamp(40px, 10vw, 60px);
    margin-left: 0; margin-right: 0; text-align: left;
  }
  .amenity-editorial-number { top: 24px; right: 24px; }
  .amenity-editorial:nth-child(even) .amenity-editorial-number { left: 24px; right: auto; }
  .amenity-editorial:nth-child(even) .amenity-editorial-desc { align-self: flex-start; text-align: left; }
  .amenity-editorial:nth-child(even) .amenity-editorial-desc::before { margin-left: 0; }
  .btn-nav-label { font-size: 14px; }
}
/* ══════════════════════════════════════════
   Custom cursor — premium dot + ring
   ══════════════════════════════════════════ */
body { cursor: none; }
input, textarea, select { cursor: text; }
.cursor-dot,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999999;
  transform: translate(-50%, -50%);
  will-change: left, top;
}
.cursor-dot {
  width: 5px;
  height: 5px;
  background: #fff;
  mix-blend-mode: difference;
  transition: width 0.18s, height 0.18s, opacity 0.3s;
}
.cursor-ring {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  transition: width 0.25s cubic-bezier(0.22,1,.36,1), height 0.25s cubic-bezier(0.22,1,.36,1), border-color 0.25s, opacity 0.3s;
}
body.cursor-on-interactive .cursor-dot {
  width: 0;
  height: 0;
  opacity: 0;
}
body.cursor-on-interactive .cursor-ring {
  width: 46px;
  height: 46px;
  border-color: rgba(255, 255, 255, 0.85);
}
body.cursor-hidden .cursor-dot,
body.cursor-hidden .cursor-ring { opacity: 0; }
/* Disable cursor inside VR iframes — Kuula captures mouse */
body.cursor-in-vr { cursor: auto; }
body.cursor-in-vr .cursor-dot,
body.cursor-in-vr .cursor-ring { opacity: 0; pointer-events: none; }

/* ── Project VR tour panel ── */
.project-vr-panel {
  position: fixed;
  inset: 0;
  z-index: 5500;
  background: #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.project-vr-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.project-vr-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Splat viewer (POC) ── */
.splat-panel {
  position: fixed;
  inset: 0;
  z-index: 5500;
  background: #050505;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.splat-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#splat-canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#splat-canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.splat-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}
.splat-back {
  pointer-events: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background .2s ease, border-color .2s ease;
}
.splat-back:hover {
  background: rgba(0,0,0,0.75);
  border-color: rgba(255,255,255,0.25);
}
.splat-back i { font-size: 14px; }
.splat-hint {
  pointer-events: none;
  align-self: center;
  padding: 10px 16px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  letter-spacing: 0.01em;
}
.splat-hint-row { display: inline-flex; align-items: center; gap: 8px; }
.splat-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  pointer-events: none;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  transition: opacity .25s ease;
}
.splat-panel.is-loaded .splat-loader {
  opacity: 0;
  pointer-events: none;
}
.splat-loader-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.85);
  animation: splat-spin 0.9s linear infinite;
}
@keyframes splat-spin {
  to { transform: rotate(360deg); }
}
@media (max-width: 640px) {
  .splat-overlay { padding: 16px; }
  .splat-back span { display: none; }
  .splat-back { padding: 10px; }
  .splat-hint { font-size: 11px; padding: 8px 12px; }
}

/* ── Home nav: Showroom + VR buttons ── */
.btn-showroom-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 2px;
  margin-top: -2px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.fullscreen-toggle {
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 999999;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  opacity: 1 !important;
  visibility: visible !important;
  isolation: isolate;
}
.fullscreen-toggle .bi {
  font-size: 11px;
  line-height: 1;
}
.fullscreen-toggle:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
}
body.is-fullscreen .fullscreen-toggle {
  background: rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
  .fullscreen-toggle {
    left: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}
/* ── Availability panel — full-bleed dark editorial ── */
.availability-panel {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: #000;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.scene-availability .availability-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Header ── */
.avail-header {
  padding: 120px 80px 56px;
  position: relative;
}
.avail-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 20px;
}
.availability-panel-title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 100;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #fff;
  margin: 0 0 22px;
}
.availability-panel-subtitle {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
  max-width: 480px;
  margin: 0;
}

/* ── List ── */
.avail-list-wrap {
  padding: 0 80px 100px;
}

/* Shared grid — 7 columns */
.avail-list-head,
.avail-row {
  display: grid;
  grid-template-columns: 1.4fr 0.55fr 0.55fr 1.1fr 1.7fr 1.5fr 44px;
  align-items: center;
  gap: 0 16px;
}

/* Column headers */
.avail-list-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
  margin-bottom: 2px;
}
.avail-list-head span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.50);
}

/* Each row */
.avail-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 22px 0;
  transition: background 0.18s;
  cursor: default;
}
.avail-row:hover {
  background: rgba(255, 255, 255, 0.03);
  padding-left: 12px;
  padding-right: 12px;
  margin-left: -12px;
  margin-right: -12px;
}

/* Cells */
.avail-cell {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}
.avail-unit {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
}
.avail-price {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
}

/* Status — dot + label */
.avail-status-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.avail-dot.is-available   { background: var(--status-available); }
.avail-dot.is-reserved    { background: var(--status-reserved); }
.avail-dot.is-sold        { background: var(--status-sold); }
.avail-dot.is-unavailable { background: var(--status-unavailable); }
.avail-status-text {
  font-size: 13px;
}
.avail-status-text.is-available   { color: var(--status-available); }
.avail-status-text.is-reserved    { color: var(--status-reserved); }
.avail-status-text.is-sold        { color: var(--status-sold); }
.avail-status-text.is-unavailable { color: var(--status-unavailable); }

/* Action — circular arrow button */
.avail-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}
.avail-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Scrollbar */
.availability-panel::-webkit-scrollbar { width: 6px; }
.availability-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 999px; }
.availability-panel::-webkit-scrollbar-track { background: transparent; }

/* ── Mobile ── */
@media (max-width: 1023px) {
  .avail-header { padding: 80px 24px 36px; }
  .avail-list-wrap { padding: 0 24px 80px; }
  .avail-list-head { display: none; }
  .avail-row {
    grid-template-columns: 1fr auto 40px;
    grid-template-rows: auto auto auto;
    row-gap: 2px;
    padding: 18px 0;
  }
  .avail-unit         { grid-column: 1;     grid-row: 1; font-size: 14px; }
  .avail-price        { grid-column: 2;     grid-row: 1; text-align: right; padding-left: 8px; }
  .avail-action       { grid-column: 3;     grid-row: 1 / 4; align-self: center; }
  .avail-floor,
  .avail-rooms,
  .avail-area         { display: none; }
  .avail-meta {
    grid-column: 1 / 3; grid-row: 2;
    font-size: 12px; color: rgba(255,255,255,0.32);
    display: flex; gap: 10px; margin-top: 4px;
  }
  .avail-status-wrap  { grid-column: 1 / 3; grid-row: 3; margin-top: 2px; }
  .avail-status-text  { font-size: 12px; }
}
@media (min-width: 768px) {
  .avail-meta { display: none; }
}
/* gallery viejo*/
.gallery-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 1023px) {
  .gallery-panel {
    inset: 0;
    bottom: 0;
  }
}
body.scene-gallery .gallery-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.gallery-panel-inner {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0c0c0c;
}

.gallery-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-right: 6px;
  grid-auto-flow: dense;
}
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
.gallery-item {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gallery-item-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}
.gallery-item.is-vertical {
  grid-row: span 2;
}
.gallery-item.is-horizontal .gallery-item-media {
  aspect-ratio: 1.88235294;
}
.gallery-item.is-vertical .gallery-item-media {
  aspect-ratio: 0.86956522;
}
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  -webkit-transition: transform 0.4s ease;
  -moz-transition: transform 0.4s ease;
  -o-transition: transform 0.4s ease;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-item-play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.gallery-item-play .bi {
  font-size: 22px;
  line-height: 1;
}
.gallery-grid::-webkit-scrollbar {
  width: 8px;
}
.gallery-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}
.gallery-grid::-webkit-scrollbar-track {
  background: transparent;
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gallery-lightbox-inner {
  position: absolute;
  inset: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-lightbox-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#gallery-lightbox-image,
#gallery-lightbox-video {
  max-width: 100%;
  max-height: 100%;
  display: none;
  border-radius: 18px;
}
@media (max-width: 768px) {
  .gallery-lightbox-inner {
    inset: 16px;
  }
}
/*gallery nuevo */
.gallery-viewer {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.gallery-viewer-stage {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#gallery-viewer-image,
#gallery-viewer-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: none;
  object-fit: contain;
}
#gallery-viewer-image,
#gallery-viewer-video {
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
}
#gallery-viewer-image.is-visible,
#gallery-viewer-video.is-visible {
  opacity: 1!important;
  visibility: visible!important;
}
.gallery-viewer-counter {
  margin: 0;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
/* ubicacion */
.location-map {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.scene-location .location-map {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#location-gmap {
  width: 100%;
  height: 100%;
}
/* Reducir padding interno de los InfoWindow de Google Maps */
#location-gmap .gm-style-iw-c,
#location-gmap .gm-style-iw {
  padding: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22) !important;
}
#location-gmap .gm-style-iw-d {
  overflow: hidden !important;
  padding: 0 !important;
}
#location-gmap .gm-style-iw-tc::after { background: #fff; }
.location-route-info {
  position: absolute;
  bottom: 32px;
  right: 20px;
  z-index: 40;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.location-route-info.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.location-route-info-sep {
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}
.location-route-info-duration {
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}
.location-route-info-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding: 0 0 0 4px;
  line-height: 1;
}
.location-route-info-close:hover { color: #fff; }
.location-panel {
  position: absolute;
  left: 5px;
  top: 5px;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.scene-location .location-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.location-panel-inner {
  position: relative;
  width: 420px;
  padding: 28px 30px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}
.location-panel-head {
  padding-right: 0;
}
.location-panel-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}
.location-panel-action {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.location-panel-action .bi {
  font-size: 20px;
  line-height: 1;
}
.location-panel-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.location-panel-title {
  margin: 0 0 10px 0;
  font-size: 32px;
  line-height: .95;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: #fff;
}
.location-panel-address {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 768px) {
  .location-panel {
    right: 16px;
    bottom: 100px;
  }
  .location-panel-inner {
    width: 320px;
    max-width: calc(68vw);
    padding: 22px 22px;
    border-radius: 22px;
  }
  .location-panel-title {
    font-size: 32px;
  }
  .location-panel-address {
    font-size: 16px;
  }
}
@media (max-width: 1023px) {
  .location-panel-inner {
    display: none;
  }
}
.about-section {
  background: #f1f1f1;
  padding: 80px 0;
}
.about-section .btn-fill {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 700;
  font-size: 13px;
  padding: 15px 45px;
  display: inline-block;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  border: 1px solid var(--cta-border);
}
.about-section .btn-fill:hover {
  background: var(--cta-bg-hover);
  color: var(--cta-text-hover);
}
.about-section h6 {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  color: #333333;
}
.about-section h1 {
  font-size: 72px;
  font-weight: 300;
  color: #333333;
}
@media (max-width: 1023px) {
  .about-section h1 {
    font-size: 36px;
    margin-bottom: 40px;
  }
}
.about-section .lead {
  font-size: 28px;
  font-weight: 500;
  color: #333333;
  line-height: 1.3em;
  margin-bottom: 60px;
}
@media (max-width: 1023px) {
  .about-section .lead {
    font-size: 18px;
    margin-bottom: 30px;
  }
}
.about-section .ficha {
  margin: 80px 0;
}
.about-section .ficha article {
  border-bottom: 1px solid #CCC;
  padding: 20px 0;
}
.about-section .ficha article .tit {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  color: #333333;
  line-height: 1em;
}
@media (max-width: 1023px) {
  .about-section .ficha article .tit {
    margin-bottom: 10px;
  }
}
.about-section .ficha article .value {
  font-weight: 300;
  color: #333333;
  font-size: 28px;
  line-height: 1em;
}
@media (max-width: 1023px) {
  .about-section .ficha article .value {
    font-size: 21px;
  }
}
@media (max-width: 1023px) {
  .about-section .ficha {
    margin: 40px 0;
  }
}
.about-section .ficha-team article {
  border-bottom: 1px solid #CCC;
  padding: 20px 0;
}
.about-section .ficha-team article .tit {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  color: #555;
  line-height: 1em;
  margin-bottom: 20px;
}
.about-section .ficha-team article .value {
  font-weight: 300;
  color: #333333;
  font-size: 22px;
  line-height: 1em;
}
@media (max-width: 1023px) {
  .about-section .ficha-team article .value {
    font-size: 16px;
  }
}
.about-section .parallaximg {
  position: relative;
  background: #000;
}
.about-section .parallaximg .imagen {
  width: 100%;
  height: 560px;
  overflow: hidden;
  position: relative;
}
@media (max-width: 1023px) {
  .about-section .parallaximg .imagen {
    height: 400px;
  }
}
.about-section .parallaximg .imagen img {
  width: 100%;
  height: calc(220%);
  position: absolute;
  left: 0;
  top: -60px;
  object-fit: cover;
  opacity: 0.7;
  will-change: transform;
}
.about-section .parallaximg .txt {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
@media (max-width: 1023px) {
  .about-section .parallaximg .txt {
    right: 0;
    left: 0;
  }
}
.about-section .parallaximg .txt h3 {
  font-size: 72px;
  font-weight: 300;
  color: #FFF;
}
@media (max-width: 1023px) {
  .about-section .parallaximg .txt h3 {
    font-size: 32px;
    text-align: center;
  }
}
.about-section .descripcion {
  padding: 120px 0;
}
@media (max-width: 1023px) {
  .about-section .descripcion {
    padding: 60px 0;
  }
}
.about-section .descripcion h2 {
  font-size: 36px;
  font-weight: 400;
  color: #333333;
  letter-spacing: -0.05em;
}
@media (max-width: 1023px) {
  .about-section .descripcion h2 {
    font-size: 26px;
    margin-bottom: 20px;
  }
}
.about-section .imagenes .flotante {
  width: 50%;
  text-align: right;
}
.about-section .imagenes .direccion {
  font-size: 14px;
  color: #333333;
  font-weight: 700;
  padding: 20px;
}
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger child reveals inside a container */
.reveal-up:nth-child(2) { transition-delay: 0.08s; }
.reveal-up:nth-child(3) { transition-delay: 0.16s; }
.reveal-up:nth-child(4) { transition-delay: 0.24s; }
.reveal-up:nth-child(5) { transition-delay: 0.32s; }
.project-panel {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  background: #f1f1f1;
}
body.scene-project .project-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.project-panel-inner {
  min-height: 100%;
}
.progress-panel {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  background: #f1f1f1;
}
body.scene-progress .progress-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.progress-panel-inner {
  min-height: 100%;
}
.avance-section {
  background: #f1f1f1;
  padding: 80px 0;
}
.avance-section h6 {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  color: #333333;
  margin-bottom: 60px;
}
.avance-section h1 {
  font-size: 72px;
  font-weight: 300;
  color: #333333;
}
@media (max-width: 1023px) {
  .avance-section h1 {
    font-size: 36px;
    margin-bottom: 40px;
  }
}
.avance-section .ficha-avance article {
  border-bottom: 1px solid #CCC;
  padding: 20px 0;
}
.avance-section .ficha-avance article .fecha {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  color: #555;
  line-height: 1em;
  margin-bottom: 20px;
}
.avance-section .ficha-avance article .trabajo {
  display: block;
  font-weight: 400;
  color: #333333;
  font-size: 16px;
  line-height: 1.6em;
}
.avance-section .ficha-avance article .image {
  width: 100%;
  aspect-ratio: 1.77777778;
  overflow: hidden;
  position: relative;
  background: #000;
}
@media (max-width: 1023px) {
  .avance-section .ficha-avance article .image {
    margin-top: 30px;
  }
}
.avance-section .ficha-avance article .image img {
  width: 100%;
  height: calc(150%);
  position: absolute;
  left: 0;
  top: -20px;
  object-fit: cover;
  opacity: 1;
  will-change: transform;
}
.avance-section .ficha-avance article .image.is-vertical {
  aspect-ratio: 0.75;
}
.avance-section .ficha-avance article .image.is-vertical img {
  width: 100%;
  height: calc(110%);
  top: -50px;
  object-fit: contain;
  background: #e9e9e9;
}
/*contacto*/
.contacto {
  background: #f1f1f1;
  padding: 80px 0;
}
.contacto h6 {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  color: #333333;
  margin-bottom: 60px;
}
@media (max-width: 1023px) {
  .contacto h6 {
    margin-bottom: 30px;
  }
}
.contacto h1 {
  font-size: 72px;
  font-weight: 300;
  color: #333333;
}
@media (max-width: 1023px) {
  .contacto h1 {
    font-size: 36px;
    margin-bottom: 40px;
  }
}
.contacto .contact-info {
  width: 100%;
  padding: 40px;
  margin-bottom: 30px;
}
.contacto .contact-info h3 {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  color: #333333;
}
@media (max-width: 1023px) {
  .contacto .contact-info {
    padding: 20px 0;
  }
}
.contacto .contact-info .contact-item {
  width: 100%;
  border-bottom: 1px solid #CCC;
  padding: 10px 0;
}
.contacto .contact-info .contact-item:last-child {
  border-bottom: none;
}
.contacto .contact-info .contact-item .icon {
  color: #333333;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}
.contacto .contact-info .contact-item .icon .bi {
  font-size: 14px;
  margin-right: 10px;
}
.contacto .contact-info .contact-item a {
  font-size: 16px;
  font-weight: 400;
  color: #333333;
}
.contacto .contact-info .contact-item a:hover {
  color: #888;
}
.contacto .contact-form {
  width: 100%;
  padding: 40px;
  background: #FFF;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  border-radius: 30px;
  margin-bottom: 30px;
}
.contacto .contact-form .btn-fill {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 700;
  font-size: 13px;
  padding: 15px 45px;
  display: block;
  width: 100%;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  border: 1px solid var(--cta-border);
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
.contacto .contact-form .btn-fill:hover {
  background: var(--cta-bg-hover);
  color: var(--cta-text-hover);
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;
}
@media (max-width: 1023px) {
  .contacto .contact-form {
    padding: 20px;
  }
}
.contact-panel {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  background: #f1f1f1;
}
body.scene-contact .contact-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.contact-panel-inner {
  min-height: 100%;
}
/* Contact form: el panel tiene fondo claro (#f1f1f1), pero el body hereda
   color: var(--brand-text) = blanco. Restauramos los colores de Bootstrap
   para los campos del form scoped al panel. */
.contact-panel .form-floating > label {
  color: rgba(0, 0, 0, 0.65);
}
.contact-panel .form-control,
.contact-panel .form-select {
  color: #212529;
  background-color: #fff;
  border-color: #ced4da;
}
.contact-panel .form-control:focus,
.contact-panel .form-select:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.contact-panel .form-control.is-invalid,
.contact-panel .form-select.is-invalid {
  border-color: #dc3545;
}
.contact-panel .invalid-feedback {
  color: #dc3545;
}
/* gestos FP*/
#unit-inline-plan-image,
#unit-inline-3d-image {
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
.burger {
  display: block;
  position: relative;
  z-index: 9999;
}
#nav-icon3 {
  width: 30px;
  height: 25px;
  position: relative;
  margin: 5px 5px 2px 5px;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  cursor: pointer;
}
#nav-icon3 span {
  display: block;
  position: absolute;
  height: 1px;
  width: 100%;
  background: #FFF;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.25s ease-in-out;
  -moz-transition: 0.25s ease-in-out;
  -o-transition: 0.25s ease-in-out;
  transition: 0.25s ease-in-out;
}
#nav-icon3 span:nth-child(1) {
  top: 0px;
}
#nav-icon3 span:nth-child(2),
#nav-icon3 span:nth-child(3) {
  top: 10px;
}
#nav-icon3 span:nth-child(4) {
  top: 20px;
}
#nav-icon3.open span:nth-child(1) {
  top: 18px;
  width: 0%;
  left: 50%;
}
#nav-icon3.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}
#nav-icon3.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
#nav-icon3.open span:nth-child(4) {
  top: 18px;
  width: 0%;
  left: 50%;
}

/* Rotate prompt — visible en portrait mobile, oculto en landscape y desktop */
.rotate-prompt { display: none; }
@media (max-width: 767px) and (orientation: portrait) {
  .rotate-prompt {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(6, 6, 6, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
  }
}
.rotate-prompt-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 32px;
  text-align: center;
}
.rotate-prompt-icon {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.6);
  animation: rotate-hint 1.8s ease-in-out infinite;
}
@keyframes rotate-hint {
  0%, 100% { transform: rotate(0deg); }
  40%       { transform: rotate(90deg); }
  60%       { transform: rotate(90deg); }
}
.rotate-prompt-title {
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}
.rotate-prompt-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   Scene stage: pool de videos + loader overlay
   ============================================================ */
/* Stage: contenedor del pool de videos. Ocupa exactamente el espacio
   de la escena. Cada pool video se monta como <video class="scene-video">.
   Solo el .is-active tiene opacity 1. Nada de display:none: el navegador
   debe poder mantener los buffers vivos.
   Uso !important como defensa explícita: hay reglas legacy
   ".video-hero video" con igual o mayor orden en cascada que intentan
   imponer position:relative / opacity:0.8. No las borramos por si
   algún fallback las usa; el important es el escudo. */
#scene-stage {
  position: absolute !important;
  inset: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
#scene-stage .scene-video {
  position: absolute !important;
  inset: 0;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity .28s ease;
  will-change: opacity;
  z-index: 1;
}
#scene-stage .scene-video.is-active {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Mientras el body está "booteando" (loader visible), escondemos
   hero-text y hotspots para que el fade-in sea limpio. */
body.flowing-booting .hero-text,
body.flowing-booting .scene-hotspots {
  opacity: 0 !important;
}

/* Loader overlay */
.flowing-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--brand-bg, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .45s ease;
}
.flowing-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.flowing-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 320px;
  padding: 0 20px;
  text-align: center;
}
.flowing-loader-logo {
  width: 140px;
  height: 140px;
  background-image: var(--flowing-loader-logo, none);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: .92;
  animation: flowingLoaderPulse 2.2s ease-in-out infinite;
}
.flowing-loader-progress {
  width: 180px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}
.flowing-loader-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--brand-text, #fff);
  transition: width .25s ease;
}
@keyframes flowingLoaderPulse {
  0%, 100% { opacity: .75; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.02); }
}

/* ============================================================
   Toasts (feedback no-bloqueante)
   ============================================================ */
.flowing-toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 48px));
}
.flowing-toast {
  pointer-events: auto;
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  font-family: var(--brand-body-font, system-ui, sans-serif);
  font-size: 0.875rem;
  line-height: 1.4;
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--brand-accent, #41d16f);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .25s ease, transform .25s ease;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.flowing-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.flowing-toast.is-error {
  border-left-color: var(--status-sold, #d64545);
}
.flowing-toast .flowing-toast-icon {
  flex: 0 0 auto;
  opacity: 0.85;
}
.flowing-toast .flowing-toast-msg {
  flex: 1 1 auto;
}

/* Submit loading spinner (BS-friendly) */
.contact-submit-btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.75;
}
.contact-submit-btn.is-loading > i,
.contact-submit-btn.is-loading > span {
  visibility: hidden;
}
.contact-submit-btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: flowingSpinner .7s linear infinite;
}
@keyframes flowingSpinner {
  to { transform: rotate(360deg); }
}

/* ============================================================
   PROJECT PAGE — dark hero + stats bar + improved sections
   ============================================================ */

/* Panel base: white body, nav bar at bottom */
.project-panel {
  background: #fff;
}

/* Dark hero: full viewport height, brand-dark, project name */
.project-dark-hero {
  position: relative;
  min-height: 100vh;
  background: #080808;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 80px 0;
  overflow: hidden;
}
/* Background building image — set via JS using --hero-bg-img */
.project-dark-hero::before {
  content: '';
  position: absolute;
  inset: -15% 0;          /* extra vertical room for parallax travel */
  background-image: var(--hero-bg-img, none);
  background-size: cover;
  background-position: center top;
  opacity: 0.2;
  z-index: 0;
  will-change: transform;
  transform: translateY(var(--hero-bg-parallax-y, 0px));
}
.project-dark-hero .container,
.project-dark-hero-scroll-hint {
  position: relative;
  z-index: 2;
}
.project-dark-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 24px 0;
}
.project-dark-hero-title {
  font-size: clamp(56px, 10vw, 130px);
  font-weight: 100;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #fff;
  margin: 0 0 36px 0;
}
.project-dark-hero-lead {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.48);
  max-width: 620px;
  margin: 0;
}
/* Scroll hint: centered bottom, above nav pill */
.project-dark-hero-scroll-hint {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
  z-index: 2;
  animation: scrollHintBounce 2.4s ease-in-out infinite;
}
.project-dark-hero-scroll-hint .bi {
  font-size: 14px;
}
@keyframes scrollHintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.22; }
  55% { transform: translateX(-50%) translateY(5px); opacity: 0.5; }
}
@media (max-width: 1023px) {
  .project-dark-hero { padding-bottom: 56px; }
}

/* Stats: 4-column grid desktop, 2-column mobile */
.project-stats-bar {
  background: #fff;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  padding: 0;
}
.project-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.project-stat-row {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  border-right: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  gap: 8px;
}
.project-stat-row:nth-child(4n) {
  border-right: none;
}
.project-stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bbb;
  line-height: 1;
}
.project-stat-value {
  font-size: 23px;
  font-weight: 300;
  color: #111;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
@media (max-width: 1024px) {
  .project-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .project-stat-row:nth-child(4n) { border-right: 1px solid #f0f0f0; }
  .project-stat-row:nth-child(3n) { border-right: none; }
}
@media (max-width: 1023px) {
  .project-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .project-stat-row:nth-child(3n) { border-right: 1px solid #f0f0f0; }
  .project-stat-row:nth-child(2n) { border-right: none; }
  .project-stat-row { padding: 18px 14px; }
  .project-stat-value { font-size: 19px; }
}

/* Keep about-section white and clean; reset text color from dark body */
.about-section {
  background: #fff;
  color: #333;
}
.about-section p,
.about-section li,
.about-section .project-description-text {
  color: #444;
}
.about-section .parallaximg .txt h3 {
  font-size: clamp(38px, 6vw, 72px);
  color: #fff; /* over dark image — keep white */
}

/* Brochure button in project page */
.project-brochure-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}
.project-brochure-btn:hover {
  background: #333;
  color: #fff;
}

/* ============================================================
   CONTACT PAGE — split layout
   ============================================================ */
.contact-panel {
  background: #fff;
}
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
@media (max-width: 1023px) {
  .contact-split {
    grid-template-columns: 1fr;
  }
}

/* Left: dark side */
.contact-split-left {
  background: #080808;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  padding: 0;
}
@media (max-width: 1023px) {
  .contact-split-left {
    min-height: auto;
    padding-bottom: 40px;
  }
}
.contact-split-left-inner {
  padding: 72px 52px 56px;
}
@media (max-width: 1200px) {
  .contact-split-left-inner { padding: 56px 36px 48px; }
}
@media (max-width: 1023px) {
  .contact-split-left-inner { padding: 48px 24px 36px; }
}
.contact-split-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 20px 0;
}
.contact-split-title {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 0.93;
  color: #fff;
  margin: 0 0 48px 0;
}

/* Contact groups inside dark panel */
.contact-split-left .contact-groups {
  margin: 0 0 40px 0;
}
.contact-group-dark {
  margin-bottom: 36px;
}
.contact-group-dark:last-child { margin-bottom: 0; }
.contact-group-dark-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0 14px 0;
}
.contact-item-dark {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.contact-item-dark:last-child { border-bottom: none; }
.contact-item-dark-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  flex-shrink: 0;
}
.contact-item-dark-content {
  flex: 1;
  min-width: 0;
}
.contact-item-dark-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
  margin-bottom: 3px;
}
.contact-item-dark a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  transition: color 0.2s ease;
}
.contact-item-dark a:hover { color: #fff; }

/* WhatsApp CTA button */
.contact-split-whatsapp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.2s ease;
  width: fit-content;
}
.contact-split-whatsapp:hover {
  background: #1da851;
  color: #fff;
  transform: translateY(-2px);
}
.contact-split-whatsapp .bi { font-size: 18px; }
.contact-split-whatsapp.is-hidden { display: none; }

/* Right: form side */
.contact-split-right {
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  min-height: 100vh;
}
@media (max-width: 1200px) {
  .contact-split-right { padding: 48px 32px; }
}
@media (max-width: 1023px) {
  .contact-split-right { padding: 40px 24px; min-height: auto; }
}
.contact-split-form-wrap {
  width: 100%;
  max-width: 480px;
}
.contact-split-form-title {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #111;
  margin: 0 0 32px 0;
}
/* Light form overrides (already in .contact-panel scope) */
.contact-split-right .form-control,
.contact-split-right .form-select {
  background: #fff;
  border-radius: 10px;
}
.contact-split-right .btn-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.contact-split-right .btn-fill:hover {
  background: #333;
  transform: translateY(-1px);
}

/* ============================================================
   PROGRESS PAGE — timeline redesign
   ============================================================ */
.progress-panel {
  background: #fff;
}
.progress-dark-header {
  background: #080808;
  padding: 80px 0 56px;
}
.progress-dark-header-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 20px 0;
}
.progress-dark-header-title {
  font-size: clamp(42px, 7vw, 96px);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 0.93;
  color: #fff;
  margin: 0 0 36px 0;
}
/* Progress bar */
.progress-meter-wrap {
  max-width: 480px;
}
.progress-meter-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.progress-meter-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.progress-meter-pct {
  font-size: 32px;
  font-weight: 200;
  letter-spacing: -0.03em;
  color: #fff;
}
.progress-meter-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
}
.progress-meter-fill {
  height: 100%;
  background: #fff;
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.progress-last-update {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 12px;
}

/* Timeline section */
.progress-timeline-section {
  padding: 80px 0;
}
.progress-timeline {
  position: relative;
  padding-left: 36px;
}
/* Vertical line */
.progress-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #e0e0e0;
}
.progress-timeline-item {
  position: relative;
  margin-bottom: 72px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-timeline-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.progress-timeline-item:last-child { margin-bottom: 0; }

/* Dot on the line */
.progress-timeline-dot {
  position: absolute;
  left: -36px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #111;
  z-index: 1;
}
.progress-timeline-item:first-child .progress-timeline-dot {
  background: #111;
}
.progress-timeline-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 10px;
}
.progress-timeline-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 24px;
  max-width: 560px;
}
.progress-timeline-image {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 14px;
  background: #f0f0f0;
}
.progress-timeline-image.is-vertical {
  aspect-ratio: 3/4;
  max-width: 360px;
}
.progress-timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.progress-timeline-image:hover img {
  transform: scale(1.03);
}
@media (max-width: 1023px) {
  .progress-timeline { padding-left: 24px; }
  .progress-timeline-dot { left: -24px; }
  .progress-timeline-text { font-size: 14px; }
  .progress-timeline-image { border-radius: 10px; }
  .progress-dark-header { padding: 60px 0 40px; }
}


/* ============================================================
   MOBILE NAV REDESIGN — burger standalone + touch-to-reveal
   ============================================================ */

/* ── Burger standalone top-right (mobile only) ── */
.mob-top-burger {
  display: none;
}
@media (max-width: 1023px) {
  .mob-top-burger {
    display: flex;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: 16px;
    z-index: 8890;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    border: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
    transition: background 0.2s;
  }
  .mob-top-burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
    pointer-events: none;
  }
  /* X when menu open */
  body.mob-menu-open .mob-top-burger { background: rgba(255,255,255,0.12); }
  body.mob-menu-open .mob-top-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.mob-menu-open .mob-top-burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  body.mob-menu-open .mob-top-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

}

/* ===== MOBILE SCENE CONTROLS ===== */
#mob-home-ctrls,
#mob-gallery-ctrls,
#mob-exterior-ctrls,
#mob-floor-select-wrap,
#mob-floor-arrows,
#mob-unit-left,
#mob-unit-right { display: none; }

/* Shared icon button */
@media (max-width: 1023px) {
  .mob-icon-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.52);
    border: none;
    color: #fff;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }
  .mob-icon-btn:focus,
  .mob-icon-btn:focus-visible { outline: none; }
  .mob-icon-btn:focus:not(.is-active),
  .mob-icon-btn:active:not(.is-active) { background: rgba(0,0,0,0.65); color: #fff; }
  .mob-icon-btn.is-active {
    background: rgba(255,255,255,0.92);
    color: #111;
  }
  .mob-icon-btn.is-disabled {
    color: rgba(255,255,255,0.2);
    pointer-events: none;
  }

  /* HOME: Showroom + VR at bottom center */
  #mob-home-ctrls {
    display: none;
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 8800;
    gap: 10px;
    align-items: center;
    justify-content: center;
  }
  body.scene-home #mob-home-ctrls { display: flex; }
  .mob-home-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
    height: 42px;
    border-radius: 21px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
  }
  .mob-home-btn-icon {
    width: 14px;
    height: auto;
    opacity: 0.85;
    filter: invert(1);
  }

  /* GALLERY: prev / counter / next at bottom */
  #mob-gallery-ctrls {
    display: none;
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
    left: 0; right: 0;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 8800;
  }
  body.scene-gallery #mob-gallery-ctrls { display: flex; }
  .mob-gallery-count {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.08em;
    font-weight: 300;
  }

  /* EXTERIOR: arrows at screen mid-height edges */
  #mob-exterior-ctrls {
    display: none;
    position: fixed;
    top: 50%; left: 0; right: 0;
    transform: translateY(-50%);
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 8800;
    pointer-events: none;
  }
  body.scene-exterior-center #mob-exterior-ctrls,
  body.scene-exterior-left #mob-exterior-ctrls,
  body.scene-exterior-right #mob-exterior-ctrls {
    display: flex;
  }
  body.is-scene-transitioning #mob-exterior-ctrls {
    display: none !important;
    pointer-events: auto;
  }
  #mob-ext-left,
  #mob-ext-right {
    pointer-events: auto;
  }
  #mob-ext-left.is-hidden,
  #mob-ext-right.is-hidden {
    visibility: hidden;
    pointer-events: none;
  }

  /* FLOOR: select top-left, arrows top-right below burger */
  #mob-floor-select-wrap {
    display: none;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    left: 16px;
    z-index: 8800;
    align-items: center;
  }
  body.scene-top #mob-floor-select-wrap { display: flex; }
  .mob-floor-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0,0,0,0.52);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0 14px;
    height: 38px;
    cursor: pointer;
    outline: none;
  }
  .mob-floor-select option { background: #111; color: #fff; }

  #mob-floor-arrows {
    display: none;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px + 44px + 6px);
    right: 16px;
    z-index: 8800;
    flex-direction: column;
    gap: 6px;
  }
  body.scene-top #mob-floor-arrows { display: flex; }

  /* UNIT: info pill top-left, view buttons top-right below burger */
  #mob-unit-left {
    display: none;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    left: 16px;
    z-index: 8800;
    align-items: center;
    gap: 8px;
  }
  body.scene-unit #mob-unit-left { display: flex; }
  .mob-unit-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px 0 10px;
    height: 38px;
    background: rgba(0,0,0,0.52);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 19px;
    border: 1px solid rgba(255,255,255,0.1);
  }
  .mob-unit-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255,255,255,0.4);
  }
  .mob-unit-dot.is-available   { background: #22c55e; }
  .mob-unit-dot.is-reserved    { background: #f59e0b; }
  .mob-unit-dot.is-sold        { background: #ef4444; }
  .mob-unit-dot.is-unavailable { background: #9ca3af; }
  .mob-unit-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    white-space: nowrap;
  }

  #mob-unit-right {
    display: none;
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px + 44px + 6px);
    right: 16px;
    z-index: 8800;
    flex-direction: column;
    gap: 6px;
  }
  body.scene-unit #mob-unit-right { display: flex; }
}
