/* 
  Premium Design System for Bright Properties Portal
  Focus: Clarity, Elegance, and Luxury
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;600;700&display=swap');

:root {
  --primary: #c4a45e; /* Gold/Champagne */
  --primary-dark: #a68b4c;
  --secondary: #1a1a1a; /* Rich Black */
  --accent: #f8f9fa;
  --text-main: #333333;
  --text-muted: #666666;
  --bg-main: #ffffff;
  --bg-soft: #f4f4f4;
  --glass: rgba(255, 255, 255, 0.8);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  position: relative;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
}

h1, h2, h3, h4, .premium-title {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-up { animation: fadeInUp 0.8s ease forwards; }
.animate-fade { animation: fadeIn 1.2s ease forwards; }

/* Global Preloader */
#site-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#site-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 120px;
  height: auto;
  margin-bottom: 2rem;
  animation: logoPulse 1.5s ease-in-out infinite;
}

@keyframes logoPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 15px rgba(196, 164, 94, 0.3)); }
  100% { transform: scale(1); opacity: 0.8; }
}

.loader-line {
  width: 150px;
  height: 2px;
  background: #eee;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.loader-line::after {
  content: '';
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary);
  animation: lineMove 2s infinite linear;
}

@keyframes lineMove {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Nav Logo Styling */
.nav-logo-img {
  height: 45px;
  width: auto;
  transition: var(--transition);
}

.logo:hover .nav-logo-img {
  transform: scale(1.05);
}

.footer-logo-img {
  height: 40px;
  width: auto;
  margin-bottom: 1.5rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196, 164, 94, 0.1);
  transition: var(--transition);
}

nav.scrolled {
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.logo:hover {
  letter-spacing: 0.05rem;
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  /* Cursor-reactive vars, driven by initHeroParallax() in app.js.
     --cx/--cy: normalized cursor position [-1, 1]; --px/--py: cursor as % of hero;
     --glow: light intensity, fades in while the cursor is over the hero. */
  --cx: 0;
  --cy: 0;
  --px: 50%;
  --py: 38%;
  --glow: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10%;
  position: relative;
  overflow: hidden;
  color: white;
  margin-top: 0;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 34%, rgba(196, 164, 94, 0.48), transparent 38%),
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.2), transparent 28%),
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.13), transparent 30%),
    linear-gradient(145deg, #111111 0%, #1c1a16 45%, #3a2e19 100%);
}

.hero-walkthrough-stage {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.hero-walkthrough-stage::before,
.hero-walkthrough-stage::after {
  content: '';
  position: absolute;
  inset: -16%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.hero-walkthrough-stage::before {
  background:
    linear-gradient(104deg, transparent 12%, rgba(196, 164, 94, 0.28) 49%, transparent 67%),
    linear-gradient(76deg, transparent 18%, rgba(255, 255, 255, 0.2) 48%, transparent 62%);
  transform: translate3d(-10%, 0, -360px) rotateZ(-7deg);
  animation: heroLightSweep 7.6s ease-in-out infinite;
}

.hero-walkthrough-stage::after {
  background: radial-gradient(circle at 50% 43%, rgba(255, 255, 255, 0.34), transparent 24%);
  transform: translate3d(0, 0, -240px);
  animation: heroImpactGlow 3.8s ease-in-out infinite;
}

.hero-depth-grid {
  position: absolute;
  left: 50%;
  bottom: -22%;
  width: 140vw;
  height: 64vh;
  transform: translateX(calc(-50% + var(--cx) * 28px)) rotateX(68deg) translateZ(-260px);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(196, 164, 94, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 164, 94, 0.22) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: 0.45;
  mask-image: linear-gradient(to top, black 15%, transparent 78%);
  animation: heroGridDrift 3.8s linear infinite;
}

.hero-cursor-light {
  position: absolute;
  inset: -10%;
  z-index: 1;
  pointer-events: none;
  opacity: var(--glow);
  background:
    radial-gradient(38vw 38vw at var(--px) var(--py), rgba(196, 164, 94, 0.20), transparent 62%),
    radial-gradient(16vw 16vw at var(--px) var(--py), rgba(255, 244, 214, 0.14), transparent 70%);
  mix-blend-mode: screen;
  transition: opacity 0.6s ease;
  will-change: opacity;
}

.hero-ghost-text {
  position: absolute;
  top: 47%;
  left: 50%;
  /* Deep layer: drifts opposite the cursor for parallax depth */
  transform: translate3d(calc(-50% + var(--cx) * 46px), calc(-50% + var(--cy) * 30px), -540px) scale(1.35);
  font-family: var(--font-heading);
  font-size: clamp(7rem, 22vw, 20rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.085);
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 70px rgba(196, 164, 94, 0.18);
}

.hero-ghost-text::before {
  content: attr(data-front);
  position: absolute;
  left: 50%;
  top: 74%;
  transform: translateX(-50%);
  color: rgba(196, 164, 94, 0.12);
  font-size: 0.54em;
}

.hero-orbit {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  /* Camera pan: the whole 3D stage leans toward the cursor. Smoothing happens
     in JS (lerp), so no CSS transition — keeps it tight and lag-free. */
  transform:
    rotateY(calc(var(--cx) * 8deg))
    rotateX(calc(var(--cy) * -5.5deg))
    translate3d(calc(var(--cx) * -20px), calc(var(--cy) * -14px), 0);
  will-change: transform;
}

.hero-property-panel {
  position: absolute;
  top: 39%;
  left: 50%;
  width: clamp(310px, 39vw, 690px);
  aspect-ratio: 16 / 10;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background-image: var(--image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.44), 0 0 74px rgba(196, 164, 94, 0.18);
  opacity: 0;
  filter: saturate(1.02) brightness(1) contrast(1.03);
  transform: translate3d(-50%, -50%, -620px) rotateY(0deg) scale(0.38);
  transform-origin: center center;
  backface-visibility: hidden;
  image-rendering: auto;
  transition:
    transform 1.15s cubic-bezier(0.17, 0.89, 0.22, 1.2),
    opacity 0.9s ease,
    filter 0.9s ease;
  will-change: transform, opacity, filter;
}

.hero-property-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0) 64%),
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.3), transparent 38%);
}

.hero-property-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  box-shadow: inset 0 0 32px rgba(255, 255, 255, 0.08);
  /* Glass glare that tracks the cursor, like light catching a window */
  background: radial-gradient(
    60% 80% at var(--px) var(--py),
    rgba(255, 252, 240, calc(var(--glow) * 0.17)),
    rgba(196, 164, 94, calc(var(--glow) * 0.07)) 38%,
    transparent 64%
  );
}

.hero-property-panel span,
.hero-property-panel strong {
  position: relative;
  z-index: 1;
}

.hero-property-panel span {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-property-panel strong {
  margin-top: 0.35rem;
  color: white;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  font-weight: 600;
}

.hero-property-panel.is-active {
  z-index: 8;
  opacity: 1;
  filter: saturate(1.2) brightness(1.18) contrast(1.08);
  transform: translate3d(-50%, -50%, 220px) rotateY(0deg) scale(1);
  animation: heroPanelBreathe 3.8s ease-in-out infinite;
  /* Window effect: the photo pans against the cursor, as if looking around
     inside the place. Slight zoom leaves overflow for the pan; percentage
     positions stay within [0,100] so no gaps regardless of image aspect. */
  background-size: 115% auto;
  background-position:
    calc(50% + var(--cx) * -6%)
    calc(50% + var(--cy) * -6%);
}

.hero-property-panel.is-active::before {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0) 66%),
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.4), transparent 38%);
}

.hero-property-panel.is-punch {
  animation: heroPanelPunch 1.05s cubic-bezier(0.17, 0.89, 0.22, 1.2), heroPanelBreathe 3.8s ease-in-out 1.05s infinite;
}

.hero-property-panel.is-next {
  z-index: 6;
  opacity: 0.68;
  filter: saturate(1.02) brightness(1) contrast(1.04);
  transform: translate3d(calc(-50% + 34vw), -50%, -90px) rotateY(-34deg) scale(0.72);
}

.hero-property-panel.is-prev {
  z-index: 6;
  opacity: 0.68;
  filter: saturate(1.02) brightness(1) contrast(1.04);
  transform: translate3d(calc(-50% - 34vw), -50%, -90px) rotateY(34deg) scale(0.72);
}

.hero-property-panel.is-far-next {
  z-index: 3;
  opacity: 0.3;
  transform: translate3d(calc(-50% + 62vw), -42%, -390px) rotateY(-56deg) scale(0.48);
}

.hero-property-panel.is-far-prev {
  z-index: 3;
  opacity: 0.3;
  transform: translate3d(calc(-50% - 62vw), -42%, -390px) rotateY(56deg) scale(0.48);
}

.hero-property-panel.is-back {
  z-index: 2;
  opacity: 0.16;
  transform: translate3d(-50%, -28%, -720px) scale(0.36);
}

.hero-current-property {
  position: absolute;
  left: 5%;
  bottom: 7%;
  z-index: 7;
  width: min(310px, 86vw);
  padding: 1rem 1.1rem;
  text-align: left;
  border: 1px solid rgba(196, 164, 94, 0.36);
  border-radius: 14px;
  background: rgba(12, 10, 7, 0.62);
  color: white;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.hero-current-kicker,
.hero-current-property small {
  display: block;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-current-property strong {
  display: block;
  margin-top: 0.32rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.1;
}

.hero-current-location {
  display: block;
  margin: 0.2rem 0 0.55rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 34%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28) 58%, rgba(0, 0, 0, 0.58) 88%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.02) 50%, rgba(0, 0, 0, 0.44)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.12) 46%, rgba(0, 0, 0, 0.62));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 960px;
  margin-top: 28vh;
}

.hero h1 {
  font-size: 5.5rem;
  margin-bottom: 1.5rem;
  max-width: 1000px;
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.4rem;
  max-width: 700px;
  opacity: 0.95;
  margin-bottom: 3rem;
  font-weight: 300;
  text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@keyframes heroPanelBreathe {
  0%, 100% { transform: translate3d(-50%, -50%, 220px) rotateY(0deg) scale(1); }
  50% { transform: translate3d(-50%, -51.5%, 245px) rotateY(0deg) scale(1.025); }
}

@keyframes heroPanelPunch {
  0% {
    opacity: 0;
    filter: saturate(0.9) brightness(0.9);
    transform: translate3d(-50%, -48%, -760px) rotateY(-18deg) scale(0.42);
  }
  58% {
    opacity: 1;
    filter: saturate(1.22) brightness(1.18);
    transform: translate3d(-50%, -51.5%, 270px) rotateY(1deg) scale(1.045);
  }
  100% {
    opacity: 1;
    filter: saturate(1.2) brightness(1.18);
    transform: translate3d(-50%, -50%, 220px) rotateY(0deg) scale(1);
  }
}

@keyframes heroGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 84px, 84px 0; }
}

@keyframes heroLightSweep {
  0%, 100% { transform: translate3d(-13%, 0, -360px) rotateZ(-7deg); opacity: 0.36; }
  45% { transform: translate3d(13%, -2%, -360px) rotateZ(-7deg); opacity: 0.62; }
}

@keyframes heroImpactGlow {
  0%, 100% { opacity: 0.18; transform: translate3d(0, 0, -240px) scale(0.88); }
  16% { opacity: 0.52; transform: translate3d(0, 0, -190px) scale(1.08); }
  44% { opacity: 0.22; transform: translate3d(0, 0, -240px) scale(0.94); }
}

.btn-primary {
  padding: 1.2rem 3rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 2px;
  transition: var(--transition);
  border: 1px solid var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: transparent;
  backdrop-filter: blur(10px);
  color: var(--primary);
}

/* Property Grid */
.listing-section {
  padding: 6rem 5%;
  background: var(--bg-soft);
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

.property-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.property-img {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.property-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.property-content {
  padding: 1.5rem;
}

.property-price {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.property-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.property-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.property-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.property-meta div i {
  color: var(--primary);
  font-size: 0.9rem;
}

.property-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
}

.property-card:hover {
  transform: translateY(-15px) rotateX(2deg) rotateY(2deg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.property-card:hover .property-img {
  transform: scale(1.05);
}

.property-img {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

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

.gallery-hero-img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.property-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.btn-video {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-video:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.btn-video i {
  color: var(--primary);
  transition: var(--transition);
}

.btn-video:hover i {
  color: white;
}

.btn-enquire {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem;
  border: 1px solid #ddd;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-enquire:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(196, 164, 94, 0.05);
}

.property-video-container {
  margin-top: 1.5rem;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: none; /* Controlled by JS */
}

.property-video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

/* Single Property Page Styles */
.page-hero {
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;
}

.page-hero .hero-content {
  max-width: 800px;
  padding: 2rem;
  z-index: 2;
}

.page-hero h1 {
  font-size: 4rem;
  margin: 1rem 0;
}

.page-hero .badge {
  background: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

.page-content {
  padding: 5rem 0;
  background: #fdfdfd;
}

.page-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.gallery-section {
  margin-bottom: 4rem;
}

.gallery-hero {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.strip-thumb {
  aspect-ratio: 1;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
  border: 2px solid transparent;
  overflow: hidden;
  padding: 0;
  background: transparent;
}

.strip-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.strip-thumb:hover, .strip-thumb.active {
  opacity: 1;
  border-color: var(--primary);
  transform: translateY(-5px);
}

.description-section h3, .video-section h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

.description-section p {
  line-height: 2;
  color: #555;
  font-size: 1.1rem;
}

.video-section {
  margin-top: 4rem;
}

.video-player {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-player iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
}

/* Sidebar */
.page-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  border: 1px solid #eee;
}

.pricing-card {
  background: var(--secondary);
  color: white;
}

.price-tag {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--primary);
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}

.spec-item i {
  color: var(--primary);
  font-size: 1.2rem;
  width: 25px;
}

.amenity-list {
  list-style: none;
  padding: 0;
}

.amenity-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #555;
}

.amenity-list li i {
  color: var(--primary);
}

.related-section {
  padding: 5rem 0;
  background: white;
  border-top: 1px solid #eee;
}

@media (max-width: 992px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 2.5rem;
  }
}

/* Info Section */
.info-section {
  padding: 6rem 10%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.info-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.info-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.info-item h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.info-item p {
  font-size: 0.9rem;
}

.info-image {
  width: 100%;
  height: 500px;
  background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1000&q=80');
  background-size: cover;
  background-position: center;
  border-radius: 20px;
}

/* Footer */
footer {
  background: var(--secondary);
  color: white;
  padding: 5rem 5% 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.footer-brand h3 span { color: var(--primary); }

.footer-brand p {
  color: #aaa;
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  color: #666;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .hero-content {
    margin-top: 30vh;
  }
  .hero-property-panel {
    top: 37%;
    width: clamp(300px, 54vw, 520px);
  }
  .hero-property-panel.is-active {
    transform: translate3d(-50%, -50%, 210px) rotateY(0deg) scale(1);
    animation: none;
  }
  .hero-property-panel.is-next {
    transform: translate3d(calc(-50% + 46vw), -50%, -150px) rotateY(-36deg) scale(0.62);
  }
  .hero-property-panel.is-prev {
    transform: translate3d(calc(-50% - 46vw), -50%, -150px) rotateY(36deg) scale(0.62);
  }
  .hero-current-property {
    left: 2rem;
    bottom: 2rem;
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .info-section { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .hero {
    padding: 0 1.3rem;
    justify-content: flex-end;
    padding-bottom: 9rem;
  }
  .hero-content {
    margin-top: 0;
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .hero-property-panel {
    top: 32%;
    width: min(88vw, 410px);
    border-radius: 16px;
  }
  .hero-property-panel.is-active {
    transform: translate3d(-50%, -50%, 120px) rotateY(0deg) scale(1.02);
    animation: none;
  }
  .hero-property-panel.is-next {
    opacity: 0.42;
    transform: translate3d(calc(-50% + 58vw), -48%, -180px) rotateY(-42deg) scale(0.6);
  }
  .hero-property-panel.is-prev {
    opacity: 0.42;
    transform: translate3d(calc(-50% - 58vw), -48%, -180px) rotateY(42deg) scale(0.6);
  }
  .hero-property-panel.is-far-next,
  .hero-property-panel.is-far-prev,
  .hero-property-panel.is-back {
    opacity: 0;
  }
  .hero-current-property {
    left: 1rem;
    right: 1rem;
    bottom: calc(75px + max(0.85rem, env(safe-area-inset-bottom))) !important;
    width: auto;
    padding: 0.75rem 0.85rem;
    z-index: 20 !important;
  }
  .hero-current-property strong {
    font-size: 1.18rem;
  }
  .hero-ghost-text {
    top: 29%;
    font-size: clamp(5rem, 28vw, 9rem);
  }
  .btn-primary {
    padding: 1rem 1.6rem;
  }
  .nav-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-depth-grid,
  .hero-walkthrough-stage::before,
  .hero-walkthrough-stage::after,
  .hero-property-panel.is-active {
    animation: none;
  }
  .hero-property-panel {
    transition: none;
  }
}
/* Floating Communication Widgets */
.contact-widgets {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 9999;
}

.widget-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  position: relative;
  border: none;
  cursor: pointer;
}

.widget-btn:hover {
  transform: scale(1.1) translateY(-5px);
}

.widget-btn.whatsapp { background: #25D366; }
.widget-btn.video-call { background: var(--primary); }
.widget-btn.direct-call {
  background: #111111;
  border: 1px solid rgba(209, 178, 99, 0.55);
}

.widget-label {
  position: absolute;
  right: 80px;
  background: white;
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: var(--transition);
}

.widget-btn:hover .widget-label {
  opacity: 1;
  transform: translateX(0);
}

/* Visit Booking Form */
.visit-booking-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.visit-booking-card h4 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(196, 164, 94, 0.02);
}

.booking-success {
  text-align: center;
  padding: 2rem;
  display: none;
}

.booking-success i {
  font-size: 3rem;
  color: #25D366;
  margin-bottom: 1rem;
}

.calendar-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-calendar {
  flex: 1;
  padding: 0.8rem;
  background: #f0f0f0;
  color: var(--secondary);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-calendar:hover {
  background: var(--secondary);
  color: white;
}

/* Video Call Modal */
.video-call-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.modal-content {
  background: white;
  padding: 3rem;
  border-radius: 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.pulse-circle {
  width: 100px;
  height: 100px;
  background: var(--primary);
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(196, 164, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(196, 164, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(196, 164, 94, 0); }
}

.live-room-body {
  margin: 0;
  min-height: 100vh;
  background: #080808;
}

.bright-live-room {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 15% 10%, rgba(209, 178, 99, 0.24), transparent 32rem),
    linear-gradient(135deg, #080808, #181818 55%, #2d2411);
}

.live-room-shell {
  width: min(1120px, 100%);
  display: grid;
  gap: 1rem;
  color: #f8f5ec;
}

.live-room-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.live-room-header img {
  width: 88px;
  height: auto;
  padding: 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.live-room-header span {
  display: block;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.live-room-header h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.7rem, 4vw, 3.5rem);
  letter-spacing: 0;
}

.live-room-stage {
  position: relative;
  min-height: min(68vh, 680px);
  border: 1px solid rgba(209, 178, 99, 0.28);
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.live-room-stage video {
  background: #050505;
}

#remoteVideo {
  width: 100%;
  height: 100%;
  min-height: min(68vh, 680px);
  object-fit: cover;
  display: block;
}

#localVideo {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(260px, 34vw);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 2px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.room-empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(circle, rgba(209, 178, 99, 0.18), rgba(0, 0, 0, 0.18));
}

.room-empty-state strong {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
}

.room-empty-state span,
.live-room-status {
  color: rgba(248, 245, 236, 0.72);
}

.ai-agent-avatar {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: min(360px, calc(100% - 2rem));
  border: 1px solid rgba(209, 178, 99, 0.45);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  z-index: 4;
}

.ai-avatar-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem;
}

.ai-avatar-portrait {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(209, 178, 99, 0.78) 38%, rgba(88, 63, 18, 0.92));
  border: 1px solid rgba(255, 229, 164, 0.8);
  animation: aiPulse 2.4s ease-in-out infinite;
}

.ai-avatar-face {
  position: relative;
  width: 42px;
  height: 44px;
  border-radius: 48% 48% 42% 42%;
  background: rgba(12, 12, 12, 0.9);
}

.ai-avatar-eye {
  position: absolute;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f8f5ec;
  box-shadow: 0 0 12px rgba(255, 233, 178, 0.9);
}

.ai-avatar-eye.left { left: 10px; }
.ai-avatar-eye.right { right: 10px; }

.ai-avatar-mouth {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 18px;
  height: 6px;
  border-radius: 0 0 16px 16px;
  border-bottom: 2px solid #f8f5ec;
  transform: translateX(-50%);
}

.ai-audio-bars {
  position: absolute;
  right: -4px;
  bottom: 8px;
  display: flex;
  gap: 2px;
  align-items: end;
}

.ai-audio-bars span {
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: #f8d66d;
  opacity: 0.4;
}

.ai-agent-avatar.is-speaking .ai-audio-bars span {
  animation: voiceBars 0.72s ease-in-out infinite;
}

.ai-agent-avatar.is-speaking .ai-audio-bars span:nth-child(2) { animation-delay: 0.1s; }
.ai-agent-avatar.is-speaking .ai-audio-bars span:nth-child(3) { animation-delay: 0.18s; }
.ai-agent-avatar.is-speaking .ai-audio-bars span:nth-child(4) { animation-delay: 0.26s; }

.ai-agent-avatar.is-listening .ai-avatar-eye {
  animation: aiBlink 3.8s ease-in-out infinite;
}

.ai-agent-avatar small {
  display: block;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-agent-avatar strong,
.ai-agent-panel strong {
  color: #fff;
}

.ai-agent-avatar span,
.ai-agent-panel span,
.ai-agent-panel p {
  color: rgba(248, 245, 236, 0.72);
}

.ai-agent-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(209, 178, 99, 0.35);
  border-radius: 14px;
  background: rgba(15, 15, 15, 0.86);
}

.ai-agent-panel span {
  display: block;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-agent-panel p {
  margin: 0.35rem 0 0;
}

.ai-agent-panel button {
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #090909;
  font-weight: 800;
  cursor: pointer;
}

.supervisor-panel {
  border-color: rgba(86, 148, 236, 0.35);
}

.supervisor-panel span {
  color: #8cb8ff;
}

.supervisor-panel button {
  background: #f8f5ec;
  color: #090909;
}

.live-room-body.is-supervisor #localVideo {
  display: none;
}

.live-room-body.is-supervisor .live-room-actions button:not(:last-child) {
  display: none;
}

@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(209, 178, 99, 0.32); }
  50% { box-shadow: 0 0 0 18px rgba(209, 178, 99, 0); }
}

@keyframes voiceBars {
  0%, 100% { height: 7px; opacity: 0.4; }
  50% { height: 22px; opacity: 1; }
}

@keyframes aiBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.12); }
}

.live-room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.live-room-actions button {
  min-height: 46px;
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.live-room-actions button:last-child {
  background: #d14343;
}

@media (max-width: 640px) {
  .live-room-stage,
  #remoteVideo {
    min-height: 62vh;
  }

  #localVideo {
    width: 42vw;
  }

  .ai-agent-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ==========================================================================
   Progressive Web App (PWA) Custom Install Banners & Overlays
   ========================================================================== */

/* Generic PWA transition state */
.pwa-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(100px);
}

.pwa-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}

/* 1. Android/Chrome Install Banner (Bottom Drawer style) */
.pwa-banner-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.5s;
}

.pwa-banner-card {
  width: 100%;
  max-width: 500px;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(196, 164, 94, 0.25);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 
              0 0 30px rgba(196, 164, 94, 0.1);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

/* Close button on card */
.pwa-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.pwa-close-btn:hover {
  color: var(--primary);
}

/* Card Content layout */
.pwa-banner-content {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.pwa-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #111111;
  border: 1px solid rgba(196, 164, 94, 0.3);
  padding: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.pwa-app-icon.small {
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: 8px;
}

.pwa-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pwa-app-details h3 {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
  font-family: var(--font-heading);
}

.pwa-app-details p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin: 0;
}

/* Action Buttons */
.pwa-banner-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.btn-pwa-dismiss {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.7rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-pwa-dismiss:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-pwa-install {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #ffffff;
  padding: 0.7rem 1.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: none;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(196, 164, 94, 0.2);
}

.btn-pwa-install:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 164, 94, 0.3);
}

/* 2. iOS Safari Install Overlay (Tooltip Guide) */
.pwa-ios-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: 90%;
  max-width: 380px;
  z-index: 10001;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.5s;
}

.pwa-ios-container.pwa-visible {
  transform: translateX(-50%) translateY(0);
}

.pwa-ios-card {
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(196, 164, 94, 0.3);
  border-radius: 22px;
  padding: 1.5rem;
  color: #ffffff;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6),
              0 0 25px rgba(196, 164, 94, 0.15);
  position: relative;
}

.pwa-ios-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem;
}

.pwa-ios-close:hover {
  color: var(--primary);
}

.pwa-ios-header {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.pwa-ios-header h3 {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  color: #ffffff;
  margin: 0;
}

.pwa-ios-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.pwa-ios-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.pwa-ios-steps li {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.8rem;
}

.pwa-ios-steps li:last-child {
  margin-bottom: 0;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ios-icon {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  color: var(--primary);
  font-size: 0.9rem;
  margin-left: 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ios-ok {
  width: 100%;
  background: var(--primary);
  border: 1px solid var(--primary);
  color: white;
  padding: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-ios-ok:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Bottom Pointer Arrow for Safari Navigation Bar */
.pwa-ios-arrow {
  width: 20px;
  height: 20px;
  background: rgba(20, 20, 20, 0.95);
  border-right: 1px solid rgba(196, 164, 94, 0.3);
  border-bottom: 1px solid rgba(196, 164, 94, 0.3);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  animation: arrowBounce 1.5s infinite alternate ease-in-out;
}

@keyframes arrowBounce {
  0% { transform: translateX(-50%) rotate(45deg) translateY(0); }
  100% { transform: translateX(-50%) rotate(45deg) translateY(4px); }
}

/* Responsive adjust for tablets & desktops */
@media (min-width: 641px) {
  .pwa-banner-container {
    bottom: 20px;
    left: 20px;
    width: auto;
    padding: 0;
    justify-content: flex-start;
  }
  
  .pwa-ios-container {
    left: auto;
    right: 30px;
    transform: translateY(100px);
  }
  
  .pwa-ios-container.pwa-visible {
    transform: translateY(0);
  }
  
  .pwa-ios-arrow {
    display: none; /* No bottom arrow needed on desktop/tablet */
  }
}

/* SEO Guide & Content Section */
.seo-guide-section {
  padding: 5rem 2rem;
  background-color: var(--bg-soft);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.seo-guide-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.seo-main-heading {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: var(--font-heading);
}

.seo-intro-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 900px;
  margin: 0 auto 3.5rem auto;
  text-align: center;
  line-height: 1.8;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.seo-card {
  background: var(--bg-main);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.seo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(196, 164, 94, 0.08);
  border-color: rgba(196, 164, 94, 0.15);
}

.seo-card h3 {
  font-size: 1.35rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.seo-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.seo-expanded-content {
  margin-bottom: 4rem;
}

.seo-expanded-content h2, .seo-faq-block h2 {
  font-size: 1.85rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  text-align: center;
  font-family: var(--font-heading);
}

.location-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.location-link-btn {
  display: block;
  text-align: center;
  padding: 1rem;
  background: var(--bg-main);
  border: 1px solid rgba(196, 164, 94, 0.2);
  border-radius: 8px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.location-link-btn:hover {
  background: var(--primary);
  color: var(--bg-main);
  border-color: var(--primary);
  transform: scale(1.03);
}

.seo-faq-block {
  background: var(--bg-main);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.seo-faq-block .faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.seo-faq-block details {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 1rem;
}

.seo-faq-block details[open] {
  padding-bottom: 1.5rem;
}

.seo-faq-block summary {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  outline: none;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.seo-faq-block summary::-webkit-details-marker {
  display: none;
}

.seo-faq-block summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.seo-faq-block details[open] summary::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.seo-faq-block details p {
  margin-top: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .seo-main-heading { font-size: 2rem; }
  .seo-guide-section { padding: 3rem 1rem; }
  .seo-faq-block { padding: 1.5rem; }
}

/* Rich Property SEO Content Styles */
.rich-seo-content {
  margin-top: 2rem;
}

.rich-seo-content h2 {
  font-size: 1.75rem;
  color: var(--secondary);
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  font-family: var(--font-heading);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.rich-seo-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.rich-seo-content ul {
  margin-bottom: 1.8rem;
  padding-left: 1.5rem;
}

.rich-seo-content li {
  margin-bottom: 0.6rem;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

.seo-amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.amenity-detail-item {
  background: var(--bg-soft);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.amenity-detail-item h3 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.amenity-detail-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.faq-accordion {
  margin-top: 1.5rem;
}

.faq-card {
  background: var(--bg-soft);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.faq-card h3 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.faq-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ====================================================================
   SITE-WIDE ANIMATIONS — driven by /animations.js.
   Every rule is scoped to html.js-anim, which the script adds at boot:
   without JS (crawlers, reduced-motion users) content stays visible.
   ==================================================================== */

/* --- Scroll reveal ------------------------------------------------- */
html.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.75s ease var(--reveal-delay, 0s),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

html.js-anim [data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* Directional variants */
html.js-anim .page-sidebar .sidebar-card[data-reveal] {
  transform: translateX(40px);
}

html.js-anim .location-link-btn[data-reveal],
html.js-anim .strip-thumb[data-reveal] {
  transform: translateY(16px) scale(0.92);
}

html.js-anim .page-hero .hero-content[data-reveal] {
  transform: translateY(44px);
  transition-duration: 1s, 1.2s;
}

/* --- 3D cursor tilt + gold sheen on cards (set by animations.js) --- */
html.js-anim .tilt-card.in-view,
html.js-anim .tilt-card:not([data-reveal]) {
  transform:
    perspective(950px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s ease;
}

html.js-anim .property-card.tilt-card:hover {
  transform:
    perspective(950px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(-12px)
    scale(1.015);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.14),
    0 0 44px rgba(196, 164, 94, 0.12);
}

html.js-anim .property-card.tilt-card:hover .property-img {
  transform: scale(1.07);
}

/* Sheen that follows the cursor across the card */
html.js-anim .property-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    460px circle at var(--shx, 50%) var(--shy, 50%),
    rgba(255, 255, 255, 0.22),
    rgba(196, 164, 94, 0.07) 42%,
    transparent 68%
  );
  transition: opacity 0.45s ease;
}

html.js-anim .property-card:hover::after {
  opacity: 1;
}

/* --- Buttons: light sweep on hover --------------------------------- */
html.js-anim .btn-primary {
  position: relative;
  overflow: hidden;
}

html.js-anim .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -85%;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-22deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

html.js-anim .btn-primary:hover::before {
  left: 135%;
}

/* --- Property page hero: scroll parallax --------------------------- */
html.js-anim .page-hero {
  background-position: center calc(50% + var(--par, 0px));
}

/* --- Gallery: dip-to-dim crossfade + thumb hover lift --------------- */
html.js-anim .gallery-hero-img {
  transition: opacity 0.4s ease;
}

html.js-anim .gallery-hero-img.img-swap {
  opacity: 0.12;
}

html.js-anim .strip-thumb {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

html.js-anim .strip-thumb:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* --- Touch / small screens: keep reveals, skip heavy tilt ----------- */
@media (hover: none), (pointer: coarse) {
  html.js-anim .tilt-card.in-view,
  html.js-anim .tilt-card:not([data-reveal]) {
    transform: none;
  }
}

/* ====================================================================
   ARCHITECTURAL BLUEPRINT BACKDROP — Featured Properties section.
   Static drawing without JS; animations.js adds .lines-on when the
   section scrolls into view, which triggers the draw-in sequence.
   ==================================================================== */

.listing-section {
  position: relative;
  /* clip (not hidden): hidden creates a scroll container, which would
     break the sticky positioning of .arch-sticky */
  overflow: clip;
}

.listing-section .section-header,
.listing-section .property-grid {
  position: relative;
  z-index: 1;
}

.arch-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Keeps the skyline pinned in the viewport while the long grid scrolls */
.arch-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* Survey grid paper */
.arch-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 164, 94, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 164, 94, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent 2%, black 30%, black 86%, transparent);
}

/* Warm light that sweeps across the skyline */
.arch-glow {
  position: absolute;
  bottom: 0;
  left: 4%;
  width: 46%;
  height: 75%;
  background: radial-gradient(ellipse at 50% 80%, rgba(196, 164, 94, 0.13), transparent 64%);
  filter: blur(34px);
}

.arch-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 72vh;
  transform: translateY(var(--bgy, 0px));
  will-change: transform;
}

/* Stroke styles */
.arch-line {
  stroke: rgba(44, 58, 77, 0.30);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arch-fine {
  stroke: rgba(44, 58, 77, 0.15);
  stroke-width: 1;
  stroke-linecap: round;
}

.arch-gold {
  stroke: rgba(196, 164, 94, 0.55);
}

.arch-fine.arch-gold {
  stroke: rgba(196, 164, 94, 0.38);
}

.arch-text {
  fill: rgba(196, 164, 94, 0.55);
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: 0.32em;
}

.arch-window {
  fill: rgba(196, 164, 94, 0);
}

/* --- JS-on: hide strokes until the section is reached, then draw --- */
html.js-anim .arch-line,
html.js-anim .arch-fine {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

html.js-anim .arch-text {
  opacity: 0;
  transition: opacity 1.4s ease 1.2s;
}

html.js-anim .arch-backdrop.lines-on .arch-line,
html.js-anim .arch-backdrop.lines-on .arch-fine {
  animation: archDraw 2.4s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

html.js-anim .arch-backdrop.lines-on .arch-text {
  opacity: 1;
}

/* Stagger: buildings rise left to right */
.arch-backdrop.lines-on .arch-d1 { animation-delay: 0s; }
.arch-backdrop.lines-on .arch-d2 { animation-delay: 0.15s; }
.arch-backdrop.lines-on .arch-d3 { animation-delay: 0.35s; }
.arch-backdrop.lines-on .arch-d4 { animation-delay: 0.55s; }
.arch-backdrop.lines-on .arch-d5 { animation-delay: 0.75s; }
.arch-backdrop.lines-on .arch-d6 { animation-delay: 0.95s; }
.arch-backdrop.lines-on .arch-d7 { animation-delay: 1.15s; }
.arch-backdrop.lines-on .arch-d8 { animation-delay: 1.35s; }

@keyframes archDraw {
  to { stroke-dashoffset: 0; }
}

/* Windows light up after the drawing, then twinkle gently */
html.js-anim .arch-backdrop.lines-on .arch-window {
  animation:
    archWindowOn 0.9s ease forwards,
    archTwinkle 7s ease-in-out infinite;
  animation-delay: inherit;
}

@keyframes archWindowOn {
  to { fill: rgba(196, 164, 94, 0.5); }
}

@keyframes archTwinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Ambient motion once drawn */
html.js-anim .arch-backdrop.lines-on .arch-skyline {
  animation: archFloat 14s ease-in-out infinite alternate;
}

html.js-anim .arch-backdrop.lines-on .arch-glow {
  animation: archGlowSweep 16s ease-in-out infinite alternate;
}

html.js-anim .arch-backdrop.lines-on .arch-compass-needle {
  transform-origin: 1330px 120px;
  transform-box: view-box;
  animation: archCompassSpin 36s linear infinite;
}

@keyframes archFloat {
  from { transform: translateY(var(--bgy, 0px)); }
  to { transform: translateY(calc(var(--bgy, 0px) - 12px)); }
}

@keyframes archGlowSweep {
  from { left: 4%; opacity: 0.8; }
  to { left: 52%; opacity: 1; }
}

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

/* Gold underline flourish under the section title */
html.js-anim .listing-section .section-header h2 {
  display: inline-block;
  position: relative;
}

html.js-anim .listing-section .section-header h2::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

html.js-anim .listing-section .section-header.in-view h2::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .arch-skyline { height: 70%; }
  .arch-text { font-size: 22px; }
}

/* ====================================================================
   CINEMATIC KAMPALA ONE HERO — Higgsfield-animated walkthrough clips
   played in sequence behind the headline. Driven by initHeroCinema()
   in app.js. Two stacked <video> layers crossfade between stages.
   ==================================================================== */

.hero-cinema {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden !important;
  background: #000000;
  width: 100%;
  max-width: 100%;
}

.hero-cinema-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.77vh;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  opacity: 0.9;
  z-index: 1;
}

.hero-cinema-layer.is-front {
  opacity: 1;
}

/* Cinematic vignette + film grain feel */
.hero-cinema-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 52%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.32), transparent 30%, transparent 62%, rgba(0, 0, 0, 0.62));
}

/* Journey caption (reuses .hero-current-property base styling) */
.hero-cinema-caption {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-cinema-caption.swap {
  opacity: 0;
  transform: translateY(10px);
}

/* Journey progress bars */
.hero-cinema-progress {
  position: absolute;
  bottom: 7.5%;
  right: 5%;
  z-index: 7;
  display: flex;
  gap: 0.45rem;
}

.hero-cinema-progress span {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  position: relative;
}

.hero-cinema-progress span.active {
  background: rgba(255, 255, 255, 0.32);
}

/* Inner fill bar — scaleX set by JS (scrub mode) or by .active (auto mode) */
.hero-cinema-progress span i {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--primary);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.2s linear;
}

.hero-cinema-progress span.active i {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-cinema-layer { transition: none; transform: none; }
}

@media (max-width: 768px) {
  .hero-cinema-progress { bottom: 5%; right: 4%; }
  .hero-cinema-progress span { width: 18px; }
}

/* ====================================================================
   SCROLL-SCRUBBED HERO JOURNEY — the hero pins while scrolling scrubs
   through the Kampala One walkthrough clips. Enabled only when
   initHeroCinema() adds html.has-journey (desktop, fine pointer, motion
   allowed). Otherwise the hero stays a normal 100vh autoplay sequence.
   ==================================================================== */

html.has-journey .hero-scroll-track {
  position: relative;
}

html.has-journey #home.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 0;
}

/* Scrub mode controls layer opacity directly per scroll frame — no fade lag */
html.has-journey .hero-cinema-layer {
  transition: none;
}

/* Scroll cue */
.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 3.2%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: opacity 0.5s ease;
}

.hero-scroll-hint.is-hidden {
  opacity: 0;
}

.hero-scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--primary);
  animation: heroScrollDot 1.6s ease-in-out infinite;
}

@keyframes heroScrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-mouse::before { animation: none; }
  .hero-scroll-hint { display: none; }
}

/* ====================================================================
   HERO INTRO — headline + subtext moved below the cinematic journey.
   Smaller than the old full-screen hero type; sits above the listings.
   ==================================================================== */

.hero-intro {
  text-align: center;
  padding: 5rem 8% 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-intro h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  margin: 0 auto 1.1rem;
  max-width: 900px;
  color: var(--secondary);
}

.hero-intro p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-intro .btn-primary {
  display: inline-block;
}

@media (max-width: 768px) {
  .hero-intro { padding: 3.5rem 6% 0.5rem; }
}

/* ====================================================================
   REGISTER YOUR INTEREST POPUP
   ==================================================================== */
.ri-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(12, 10, 7, 0.62);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ri-overlay[hidden] { display: none; }
.ri-overlay.is-open { opacity: 1; }

.ri-modal {
  position: relative;
  width: min(460px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.ri-overlay.is-open .ri-modal { transform: none; opacity: 1; }

.ri-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}
.ri-close:hover { background: rgba(0, 0, 0, 0.6); transform: rotate(90deg); }

.ri-header {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 18px 18px 0 0;
  display: flex;
  align-items: flex-end;
}
.ri-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.15) 70%);
  border-radius: inherit;
}
.ri-header-text {
  position: relative;
  padding: 1.3rem 1.6rem;
  color: #fff;
}
.ri-kicker {
  display: block;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.ri-header-text h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  line-height: 1.1;
  margin: 0 0 0.35rem;
  color: #fff;
}
.ri-header-text p { font-size: 0.86rem; opacity: 0.9; margin: 0; }

.ri-body { padding: 1.5rem 1.6rem 1.7rem; }
.ri-form { display: flex; flex-direction: column; gap: 0.8rem; }
.ri-form .form-control {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}
.ri-form .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196, 164, 94, 0.18);
}
.ri-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 1rem;
  margin-top: 0.2rem;
}
.ri-submit[disabled] { opacity: 0.6; cursor: progress; }
.ri-status { font-size: 0.85rem; margin: 0.2rem 0 0; min-height: 1em; text-align: center; }
.ri-status.is-error { color: #c0392b; }

.ri-success { text-align: center; padding: 0.5rem 0 0.3rem; }
.ri-success i { color: #2e9e5b; font-size: 2.6rem; margin-bottom: 0.6rem; }
.ri-success h3 { font-family: var(--font-heading); margin: 0 0 0.4rem; color: var(--secondary); }
.ri-success p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.ri-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.3rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.ri-divider::before, .ri-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ececec;
}
.ri-actions { display: flex; gap: 0.6rem; }
.ri-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: var(--transition);
}
.ri-action:hover { transform: translateY(-3px); filter: brightness(1.05); }
.ri-call { background: var(--secondary); }
.ri-email { background: var(--primary); }
.ri-wa { background: #25d366; }

@media (max-width: 480px) {
  .ri-header { height: 140px; }
  .ri-header-text h2 { font-size: 1.4rem; }
  .ri-action { flex-direction: column; gap: 0.25rem; font-size: 0.78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ri-overlay, .ri-modal { transition: opacity 0.2s ease; }
  .ri-modal { transform: none; }
  .ri-close:hover { transform: none; }
}

/* ==========================================================================
   Floating Mobile Navigation Bar & Drawer Modal (Adapted for 95% Mobile Users)
   ========================================================================== */

@media (min-width: 1025px) {
  .mobile-floating-bar, .mobile-drawer-overlay {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  body {
    padding-bottom: calc(75px + max(1rem, env(safe-area-inset-bottom))) !important;
  }

  .mobile-floating-bar {
    position: fixed !important;
    bottom: max(0.85rem, env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 1.5rem) !important;
    max-width: 440px !important;
    height: 64px !important;
    z-index: 999999 !important;
    background: rgba(13, 19, 31, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 22px !important;
    padding: 0 8px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(196, 164, 94, 0.25) !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: space-around !important;
  }

  .contact-widgets {
    bottom: calc(165px + max(0.85rem, env(safe-area-inset-bottom))) !important;
    right: 1rem !important;
    z-index: 9999 !important;
  }

  /* Elevated Circular Liquid Indicator Bubble */
  .mobile-nav-pill {
    position: absolute;
    top: -20px;
    left: 8px;
    width: calc((100% - 16px) / 5);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .mobile-nav-pill::before {
    content: '';
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c4a45e, #f3e5ab);
    border-radius: 50%;
    border: 4px solid #0d131f;
    box-shadow: 0 10px 25px rgba(196, 164, 94, 0.6), 0 0 15px rgba(255, 255, 255, 0.3);
  }

  .mobile-nav-item {
    position: relative;
    z-index: 20;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-item i {
    font-size: 1.25rem;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
  }

  .mobile-nav-item span {
    transition: transform 0.3s ease, color 0.3s ease;
    margin-top: 1px;
  }

  /* Active Liquid State: Icon elevates INTO the gold bubble */
  .mobile-nav-item.active i {
    transform: translateY(-25px);
    color: #0b0f19 !important;
    font-size: 1.35rem;
  }

  .mobile-nav-item.active span {
    transform: translateY(4px);
    color: var(--primary, #c4a45e);
    font-weight: 700;
  }

  .mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    overflow-y: auto;
    background: #0d131f;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px 24px 0 0;
    padding: 1.5rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.8);
  }

  .mobile-drawer-overlay.is-open .mobile-drawer-sheet {
    transform: translateY(0);
  }

  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .mobile-drawer-logo {
    height: 38px;
    width: auto;
  }

  .mobile-drawer-brand strong {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 0.05em;
  }

  .mobile-drawer-brand small {
    display: block;
    font-size: 0.72rem;
    color: var(--primary, #c4a45e);
  }

  .mobile-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile-drawer-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary, #c4a45e);
    margin-bottom: 0.6rem;
    font-weight: 700;
  }

  .mobile-drawer-nav {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mobile-drawer-link:hover, .mobile-drawer-link:active {
    background: rgba(196, 164, 94, 0.18);
    color: #fff;
  }

  .mobile-drawer-link i {
    color: var(--primary, #c4a45e);
    width: 20px;
    text-align: center;
  }

  .mobile-drawer-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
  }
}
