/* ==========================================================================
   Vila3D | Property Dossier Stylesheet (v/styles.css)
   Aesthetic: Ultra-Luxury Obsidian, Champagne Gold (#e5b869) & Emerald (#10b981)
   ========================================================================== */

/* ==========================================================================
   Full-page Dossier Preloader (Prevents FOUC & Stale Data Flash)
   ========================================================================== */
.dossier-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-deep, #07090e);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  pointer-events: all;
}

.dossier-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dossier-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  padding: 2rem;
}

.dossier-loader-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(229, 184, 105, 0.18), rgba(229, 184, 105, 0.04));
  border: 1px solid rgba(229, 184, 105, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold, #e5b869);
  animation: logoPulse 1.8s infinite ease-in-out;
}

.dossier-loader-icon svg {
  width: 30px;
  height: 30px;
}

.dossier-loader-spinner {
  width: 34px;
  height: 34px;
  border: 2.5px solid rgba(229, 184, 105, 0.15);
  border-top-color: var(--accent-gold, #e5b869);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.dossier-loader-text {
  font-size: 0.88rem;
  color: var(--text-secondary, #94a3b8);
  font-weight: 500;
  letter-spacing: 0.01em;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(229, 184, 105, 0.1);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 35px rgba(229, 184, 105, 0.25);
  }
}

:root {
  --bg-deep: #07090e;
  --bg-surface: #0e121b;
  --bg-card: rgba(18, 23, 35, 0.75);
  --bg-card-hover: rgba(26, 33, 49, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(229, 184, 105, 0.35);
  --accent-gold: #e5b869;
  --accent-gold-hover: #f3cb85;
  --accent-emerald: #10b981;
  --accent-crimson: #ef4444;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --font-fa: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-en: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-card: 0 16px 40px -12px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 35px rgba(229, 184, 105, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

#section-3d-tour,
#section-specs,
#section-about,
#section-amenities,
#section-photos,
#section-plan,
#section-map,
#section-booking {
  scroll-margin-top: 85px;
}

html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-fa);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden !important;
  position: relative;
  direction: rtl;
}

/* RTL / LTR Language Engine */
html[dir="ltr"] body {
  font-family: var(--font-en);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
  padding-top: max(0.85rem, env(safe-area-inset-top));
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.2rem 0;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-menu-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-menu-link:hover {
  color: var(--accent-gold);
  background: rgba(229, 184, 105, 0.08);
}

.nav-menu-link-cta {
  color: var(--accent-gold);
  border: 1px solid rgba(229, 184, 105, 0.35);
  background: rgba(229, 184, 105, 0.08);
  font-weight: 600;
}

.nav-menu-link-cta:hover {
  background: var(--accent-gold);
  color: #07090e;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(229, 184, 105, 0.18), rgba(16, 185, 129, 0.18));
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
}

.brand-name {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 40%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.code-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.code-badge strong {
  color: var(--accent-gold);
  font-family: var(--font-en);
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Language Switcher - Compact Single Toggle & Legacy Pills */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
}

.lang-toggle-btn:hover {
  background: rgba(229, 184, 105, 0.15);
  box-shadow: 0 2px 10px rgba(229, 184, 105, 0.25);
  transform: translateY(-1px);
}

.lang-toggle-btn:active {
  transform: scale(0.96);
}

.lang-globe-icon {
  width: 14px;
  height: 14px;
  stroke: var(--accent-gold);
  flex-shrink: 0;
}

.lang-pills {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: rgba(229, 184, 105, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(229, 184, 105, 0.3);
}

.btn-nav-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-gold), #c49847);
  color: #07090e;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.btn-nav-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(229, 184, 105, 0.3);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 3.5rem 1.5rem 2.5rem;
  background: radial-gradient(circle at 50% -20%, rgba(229, 184, 105, 0.12) 0%, rgba(7, 9, 14, 0) 70%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.price-container {
  background: rgba(229, 184, 105, 0.1);
  border: 1px solid var(--border-gold);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
}

.price-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 60%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.hero-location svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.builder-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229, 184, 105, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #c49847 100%);
  color: #07090e;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(229, 184, 105, 0.3);
  transition: all 0.25s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(229, 184, 105, 0.45);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-social-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-hero-social {
  height: 48px;
  padding: 0 1.15rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-hero-wa {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.btn-hero-wa:hover {
  background: rgba(16, 185, 129, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.btn-hero-tg {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
}

.btn-hero-tg:hover {
  background: rgba(14, 165, 233, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

.btn-hero-bale {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.btn-hero-bale:hover {
  background: rgba(34, 197, 94, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
}

.booking-alt-messengers {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.alt-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.alt-buttons-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-alt-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-alt-tg {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #38bdf8;
}

.btn-alt-tg:hover {
  background: rgba(14, 165, 233, 0.25);
  transform: translateY(-2px);
}

.btn-alt-bale {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.btn-alt-bale:hover {
  background: rgba(34, 197, 94, 0.25);
  transform: translateY(-2px);
}

/* ==========================================================================
   Shared Content Layout
   ========================================================================== */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
}

html[dir="ltr"] .section-title::after {
  right: auto;
  left: 0;
}

/* ==========================================================================
   Photo Gallery Grid
   ========================================================================== */
.section-gallery {
  padding: 3rem 0;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: 16/10;
}

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

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 9, 14, 0.7) 100%);
  pointer-events: none;
}

/* Lightbox Modal Slider */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  touch-action: pan-y;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-stage {
  position: relative;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-toolbar {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 2020;
}

.lightbox-tool-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 22, 33, 0.85);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 700;
  font-size: 0.85rem;
}

.lightbox-tool-btn:hover {
  background: rgba(200, 169, 126, 0.35);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: scale(1.08);
}

.lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: transform 0.15s ease-out;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-origin: center center;
}

.lightbox-img.is-zoomed {
  cursor: grab;
}

.lightbox-img.is-grabbing {
  cursor: grabbing;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
  border: 1px solid var(--border-subtle);
  transition: background 0.2s, transform 0.2s;
  z-index: 2020;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(18, 22, 33, 0.8);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  z-index: 2010;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
  background: rgba(200, 169, 126, 0.35);
  border-color: var(--accent-gold);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  right: 1.5rem;
}

.lightbox-next {
  left: 1.5rem;
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 42px;
    height: 42px;
  }
  .lightbox-prev {
    right: 0.5rem;
  }
  .lightbox-next {
    left: 0.5rem;
  }
}

.lightbox-counter {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(15, 18, 26, 0.75);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Core Specifications Bar
   ========================================================================== */
.section-specs {
  padding: 1.5rem 0 3rem;
}

.specs-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-card);
}

.spec-col {
  text-align: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.spec-col:hover {
  background: rgba(229, 184, 105, 0.05);
  border-color: rgba(229, 184, 105, 0.2);
}

.spec-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.spec-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.spec-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.toilet-val-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
}

.toilet-gold {
  color: var(--accent-gold);
  font-weight: 700;
}

.toilet-green {
  color: #10b981;
  font-weight: 700;
}

.toilet-plus {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  font-size: 0.9rem;
  margin: 0 0.1rem;
}

/* ==========================================================================
   Description Section
   ========================================================================== */
.section-description {
  padding: 0 0 3rem;
}

.desc-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.desc-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-gold);
}

.desc-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ==========================================================================
   Amenities & Utilities Checklist
   ========================================================================== */
.section-amenities {
  padding: 0 0 3.5rem;
}

/* ==========================================================================
   Amenities Checklist - Luxury Interactive Accordion Dropdowns Underneath Title
   ========================================================================== */
.amenities-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.amenity-accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.amenity-accordion-item:hover,
.amenity-accordion-item.is-open {
  border-color: rgba(229, 184, 105, 0.35);
  background: rgba(22, 28, 42, 0.7);
}

.amenity-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: inherit;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: background 0.2s ease;
}

.amenity-header-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.amenity-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.amenity-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.amenity-chevron-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, color 0.2s ease;
}

.amenity-accordion-item.is-open .amenity-chevron-icon {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.amenity-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
  padding: 0 1.15rem;
}

.amenity-accordion-item.is-open .amenity-accordion-body {
  max-height: 300px;
  padding: 0.2rem 1.15rem 1rem;
}

.amenity-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.amenity-dropdown-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(229, 184, 105, 0.08);
  border: 1px solid rgba(229, 184, 105, 0.25);
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   Architectural Floor Plan
   ========================================================================== */
.section-plan {
  padding: 0 0 3.5rem;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 1.25rem;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 169, 126, 0.5);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(200, 169, 126, 0.15);
}

.plan-card img {
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: transform 0.3s ease;
}

.plan-card:hover img {
  transform: scale(1.015);
}

.plan-card-overlay {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background: rgba(18, 22, 33, 0.85);
  border: 1px solid rgba(200, 169, 126, 0.4);
  border-radius: 9999px;
  color: var(--accent-gold);
  font-size: 0.84rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.plan-card:hover .plan-card-overlay {
  background: rgba(200, 169, 126, 0.2);
  border-color: var(--accent-gold);
  color: #fff;
}

/* ==========================================================================
   THE 3D SPATIAL TOUR SECTION
   ========================================================================== */
.section-3d {
  padding: 0 0 4rem;
}

.tour-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tour-header h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #fff 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tour-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.btn-fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.btn-fullscreen:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Spaces Navigation Switcher (Horizontal Pills) */
.spaces-switcher-wrapper {
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.5rem;
}

.spaces-switcher-wrapper::-webkit-scrollbar {
  height: 4px;
}

.spaces-switcher-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-full);
}

.spaces-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}

.space-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.space-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(229, 184, 105, 0.3);
}

.space-pill.active {
  background: linear-gradient(135deg, rgba(229, 184, 105, 0.2), rgba(16, 185, 129, 0.15));
  border: 1px solid var(--accent-gold);
  color: #fff;
  box-shadow: 0 4px 15px rgba(229, 184, 105, 0.2);
}

.space-pill-icon {
  font-size: 1.1rem;
}

/* 3D Viewer Canvas Container */
.viewer-wrapper {
  position: relative;
  width: 100%;
  height: 680px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #030406;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

#viewer-canvas-host {
  width: 100%;
  height: 100%;
  position: relative;
}

/* 3D Loading Overlay */
.tour-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.tour-loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tour-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(229, 184, 105, 0.15);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.tour-loading-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tour-loading-progress {
  font-family: var(--font-en);
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 700;
}

/* Floating Space Detail HUD Overlay (Luxury Card on top of 3D) */
.space-hud-card {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  max-width: 360px;
  background: rgba(14, 18, 27, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  z-index: 50;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  transition: all 0.3s ease;
}

html[dir="ltr"] .space-hud-card {
  right: auto;
  left: 1.5rem;
}

.space-hud-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.space-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.space-hud-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.btn-toggle-hud {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: auto;
  transition: transform 0.25s ease, color 0.2s ease;
}

html[dir="ltr"] .btn-toggle-hud {
  margin-right: 0;
  margin-left: auto;
}

.btn-toggle-hud:hover {
  color: #fff;
}

.space-hud-card.collapsed .btn-toggle-hud svg {
  transform: rotate(180deg);
}

@media (min-width: 769px) {
  .btn-toggle-hud {
    display: none;
  }
}

.space-hud-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Touch Controls Hint Overlay */
.tour-controls-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 50;
  white-space: nowrap;
}

/* Viewer Bottom Controls Bar & Actions */
.viewer-bottom-bar {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 50;
}

html[dir="ltr"] .viewer-bottom-bar {
  left: auto;
  right: 1.25rem;
}

.btn-reset-cam,
.btn-expand-tour-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(18, 22, 33, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-fa);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-expand-tour-inline {
  border-color: rgba(229, 184, 105, 0.4);
  color: var(--accent-gold);
}

.btn-reset-cam:hover {
  background: rgba(200, 169, 126, 0.3);
  border-color: var(--accent-gold);
  color: #fff;
  transform: translateY(-2px);
}

.btn-expand-tour-inline:hover {
  background: rgba(229, 184, 105, 0.25);
  border-color: var(--accent-gold);
  color: #fff;
  transform: translateY(-2px);
}

/* Simulated CSS Fullscreen Mode (100% Reliable across iOS Safari, iPadOS & Android) */
.viewer-wrapper.fullscreen-active {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-height: none !important;
  z-index: 999999 !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.viewer-wrapper.fullscreen-active #viewer-canvas-host {
  width: 100vw !important;
  height: 100dvh !important;
}

body.fullscreen-lock {
  overflow: hidden !important;
}

.btn-exit-fullscreen {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 1rem));
  left: max(1rem, env(safe-area-inset-left, 1rem));
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 99999 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-exit-fullscreen span {
  display: none;
}

html[dir="ltr"] .btn-exit-fullscreen {
  left: auto;
  right: max(1rem, env(safe-area-inset-right, 1rem));
}

.btn-exit-fullscreen:hover,
.btn-exit-fullscreen:active {
  background: #ef4444;
  transform: scale(1.08);
}

/* ==========================================================================
   Interactive Geo Map Section (Leaflet Dark Style)
   ========================================================================== */
.section-map {
  padding: 0 0 3.5rem;
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 420px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.map-container {
  width: 100%;
  height: 100%;
  background: #11141d;
}

/* Leaflet Dark Custom Filter */
.leaflet-tile-pane {
  filter: brightness(0.65) invert(1) contrast(3) hue-rotate(200deg) saturate(0.35);
}

/* ==========================================================================
   VIP Visit / Inspection Booking Form
   ========================================================================== */
.section-booking {
  padding: 0 0 4rem;
}

.booking-card {
  background: linear-gradient(135deg, rgba(22, 28, 42, 0.85) 0%, rgba(14, 18, 27, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.booking-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(229, 184, 105, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.booking-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(229, 184, 105, 0.1);
  border: 1px solid var(--border-gold);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.booking-header h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.booking-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input {
  background: rgba(7, 9, 14, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.25s ease;
}

.form-group input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(229, 184, 105, 0.2);
  outline: none;
}

/* ==========================================================================
   Shamsi (Jalali) Calendar & Time Slot Picker
   ========================================================================== */
.booking-date-wrapper {
  position: relative;
}

.cal-input-trigger {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.cal-input-trigger input {
  width: 100%;
  cursor: pointer;
  padding-left: 2.75rem;
}

.cal-trigger-icon {
  position: absolute;
  left: 0.9rem;
  font-size: 1.15rem;
  pointer-events: none;
  opacity: 0.85;
}

html[dir="ltr"] .cal-input-trigger input {
  padding-left: 1.15rem;
  padding-right: 2.75rem;
}

html[dir="ltr"] .cal-trigger-icon {
  left: auto;
  right: 0.9rem;
}

.cal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: calModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.shamsi-calendar-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(145deg, rgba(20, 26, 38, 0.99) 0%, rgba(10, 14, 22, 0.99) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 35px rgba(229, 184, 105, 0.18);
  padding: 0.95rem 1.1rem;
  animation: calCardScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden !important;
  box-sizing: border-box;
}

@keyframes calCardScaleIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.cal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cal-modal-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.cal-modal-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.cal-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.cal-modal-close:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
  color: #ef4444;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  padding: 0 0.25rem;
}

.cal-month-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.cal-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cal-nav-btn:hover {
  background: rgba(229, 184, 105, 0.18);
  border-color: var(--border-gold);
  color: var(--accent-gold);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-weekdays .cal-friday {
  color: #fb7185;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.55rem;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cal-day:hover:not(.is-past) {
  background: rgba(229, 184, 105, 0.18);
  border-color: rgba(229, 184, 105, 0.4);
  color: var(--accent-gold);
}

.cal-day.is-today {
  border-color: rgba(229, 184, 105, 0.6);
  color: var(--accent-gold);
}

.cal-day.is-selected {
  background: linear-gradient(135deg, #e5b869 0%, #b8860b 100%) !important;
  color: #07090e !important;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(229, 184, 105, 0.4);
}

.cal-day.is-selected::after {
  background: #07090e !important;
}

.cal-day.is-friday,
.cal-day.is-holiday {
  color: #fb7185;
}

.cal-day.is-holiday {
  font-weight: 700;
  position: relative;
}

.cal-day.is-holiday::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  background: #fb7185;
  border-radius: 50%;
}

.cal-day.is-holiday:hover:not(.is-past),
.cal-day.is-friday:hover:not(.is-past) {
  background: rgba(251, 113, 133, 0.15);
  border-color: rgba(251, 113, 133, 0.4);
  color: #fda4af;
}

.cal-day.is-past {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.cal-day-empty {
  pointer-events: none;
}

.cal-time-section {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.5rem;
}

.cal-time-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
}

.cal-time-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
}

.time-slot-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.38rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.time-slot-btn:hover {
  background: rgba(229, 184, 105, 0.1);
  border-color: rgba(229, 184, 105, 0.3);
  color: #fff;
}

.time-slot-btn.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #34d399;
  font-weight: 700;
}

.cal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cal-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cal-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-cal-confirm {
  background: linear-gradient(135deg, #e5b869 0%, #b8860b 100%);
  border: none;
  color: #07090e;
  padding: 0.48rem 1.15rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}

.btn-cal-confirm:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================================
   Booking Channels Side-by-Side Action Row
   ========================================================================== */
.booking-channels-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.btn-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-channel-wa {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-channel-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-channel-tg {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
}

.btn-channel-tg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
}

.btn-channel-bale {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.25);
}

.btn-channel-bale:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

@media (max-width: 768px) {
  .booking-channels-bar {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.75rem 0 2rem;
  background: rgba(7, 9, 14, 0.95);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-content p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-developer {
  font-family: var(--font-en, 'Outfit', sans-serif);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-top: 0.2rem;
}

.footer-developer a {
  color: var(--accent-gold);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-developer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Toast Notification Capsule
   ========================================================================== */
.toast-capsule {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(14, 18, 27, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-capsule.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* PWA Mobile Bottom Navigation Dock (Tab Bar) - Base Desktop Hidden */
.mobile-bottom-dock {
  display: none;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-container {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
  .nav-menu {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .specs-bar {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 1.5rem;
  }
  .spec-col:nth-child(3) {
    border-left: none;
  }
  html[dir="ltr"] .spec-col:nth-child(3) {
    border-right: none;
  }
}

/* ==========================================================================
   Mobile Overhaul (max-width: 768px) - Authentic PWA App Experience
   ========================================================================== */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 12px));
  }

  /* PWA Mobile Bottom Navigation Dock (Tab Bar) */
  .mobile-bottom-dock {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(8, 11, 18, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
    z-index: 2500;
  }

  .dock-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .dock-tab-icon {
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  .dock-tab-label {
    font-size: 0.68rem;
    font-weight: 500;
  }

  .dock-tab-btn:active .dock-tab-icon {
    transform: scale(0.9);
  }

  .dock-tab-btn.active {
    color: var(--accent-gold);
  }

  .dock-tab-btn.active .dock-tab-label {
    font-weight: 700;
  }

  .dock-tab-cta {
    position: relative;
  }

  .dock-tab-cta::after {
    content: '';
    position: absolute;
    top: 5px;
    right: calc(50% - 14px);
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-gold);
  }

  /* Compact Native Single-Row Header */
  .navbar {
    padding: 0.5rem 0.85rem;
    min-height: 52px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .nav-menu {
    display: none !important;
  }

  .nav-right .btn-nav-call {
    display: none !important;
  }

  .lang-toggle-btn {
    padding: 0.28rem 0.55rem;
    font-size: 0.74rem;
    gap: 0.3rem;
  }

  .lang-globe-icon {
    width: 13px;
    height: 13px;
  }

  .lang-switch {
    padding: 2px;
  }

  .lang-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  .nav-code-badge {
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
  }

  /* GPU Scroll & Compositor Optimization (Silky 60fps Scrolling) */
  .specs-bar,
  .spec-col,
  .desc-card,
  .amenity-accordion-item,
  .booking-card,
  .gallery-item,
  .map-wrapper {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(14, 18, 27, 0.96) !important;
  }

  .section-gallery,
  .section-plan,
  .section-map,
  .section-booking {
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
  }

  /* Hero Section Mobile Refinements */
  .hero-section {
    padding: 2rem 1rem 1.5rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .hero-social-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    width: 100%;
    box-sizing: border-box;
  }

  .btn-hero-social {
    padding: 0.65rem 0.25rem;
    font-size: 0.8rem;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
  }

  /* Specifications Grid - Micro-Icons & Gold Values */
  .section-specs {
    padding: 1rem 0 2rem;
  }

  .specs-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    padding: 0.85rem;
    border-radius: var(--radius-md);
  }

  .spec-col {
    padding: 0.65rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
  }

  .spec-icon {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
  }

  .spec-label {
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
  }

  .spec-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--accent-gold);
  }

  .toilet-val-row {
    font-size: 0.82rem;
  }

  /* Amenities & Utilities - Accordion Dropdowns Underneath Title */
  .section-amenities {
    padding: 0 0 2.5rem;
  }

  .amenities-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    box-sizing: border-box;
  }

  .amenity-accordion-item {
    width: 100%;
    box-sizing: border-box;
  }

  .amenity-accordion-header {
    padding: 0.75rem 0.95rem;
  }

  .amenity-title-text {
    font-size: 0.88rem;
  }

  .amenity-dropdown-chip {
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
  }

  /* 3D Spatial Viewer - Clean Viewport & Collapsible Capsule HUD */
  .section-3d {
    padding: 0 0 2.5rem;
  }

  .viewer-wrapper {
    height: 62dvh;
    min-height: 480px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
  }

  .tour-header {
    margin-bottom: 0.75rem;
  }

  .tour-header h2 {
    font-size: 1.3rem;
  }

  .btn-fullscreen {
    display: none; /* Mobile uses inline expand button in viewer-bottom-bar */
  }

  .spaces-switcher-wrapper {
    margin-bottom: 0.75rem;
  }

  .space-pill {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }

  .space-hud-card {
    top: 0.65rem;
    right: 0.65rem;
    left: auto;
    bottom: auto;
    max-width: calc(100% - 65px) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
  }

  html[dir="ltr"] .space-hud-card {
    right: auto;
    left: 0.65rem;
  }

  /* Option A: Collapsed State (Default) - Sleek Floating Capsule */
  .space-hud-card.collapsed {
    padding: 0.45rem 0.85rem;
    border-radius: 30px;
    background: rgba(10, 13, 20, 0.88);
    border: 1px solid rgba(229, 184, 105, 0.35);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    cursor: pointer;
  }

  .space-hud-card.collapsed .space-hud-header {
    margin-bottom: 0;
  }

  .space-hud-card.collapsed h4 {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
  }

  .space-hud-card.collapsed p {
    display: none;
  }

  /* Expanded State on Mobile */
  .space-hud-card:not(.collapsed) {
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
    background: rgba(10, 13, 20, 0.96);
    border: 1px solid var(--border-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
    width: calc(100% - 65px);
    max-width: 360px;
    z-index: 100;
  }

  .space-hud-card:not(.collapsed) p {
    display: block;
    font-size: 0.82rem;
    line-height: 1.55;
    margin-top: 0.45rem;
  }

  .btn-exit-fullscreen {
    top: max(0.65rem, env(safe-area-inset-top, 0.65rem)) !important;
    left: max(0.65rem, env(safe-area-inset-left, 0.65rem)) !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
    background: #dc2626 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
  }

  html[dir="ltr"] .btn-exit-fullscreen {
    left: auto !important;
    right: max(0.65rem, env(safe-area-inset-right, 0.65rem)) !important;
  }

  .tour-controls-hint {
    bottom: 3.5rem;
    font-size: 0.72rem;
    padding: 0.35rem 0.85rem;
    max-width: 90%;
    text-align: center;
    white-space: normal;
  }

  .viewer-bottom-bar {
    bottom: 0.75rem;
    left: 0.75rem;
    gap: 0.45rem;
  }

  html[dir="ltr"] .viewer-bottom-bar {
    left: auto;
    right: 0.75rem;
  }

  .btn-reset-cam,
  .btn-expand-tour-inline {
    font-size: 0.76rem;
    padding: 0.4rem 0.75rem;
  }

  /* Booking & Maps on Mobile */
  .section-map {
    padding: 0 0 2.5rem;
  }

  .map-wrapper {
    height: 320px;
  }

  .section-booking {
    padding: 0 0 3rem;
  }

  .booking-card {
    padding: 1.25rem 1rem !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-md) !important;
  }

  .booking-header h3 {
    font-size: 1.25rem !important;
    line-height: 1.35;
    margin-bottom: 0.35rem;
  }

  .booking-header p {
    font-size: 0.82rem !important;
    margin-bottom: 1.15rem;
  }

  .form-group label {
    font-size: 0.8rem !important;
  }

  .form-group input {
    padding: 0.7rem 0.85rem !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }

  .booking-channels-bar {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.45rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 1rem !important;
  }

  .btn-channel {
    padding: 0.75rem 0.2rem !important;
    font-size: 0.78rem !important;
    gap: 0.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    border-radius: 10px !important;
    text-align: center !important;
  }

  .btn-channel svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .cal-modal-backdrop {
    padding: 0.5rem;
  }

  .shamsi-calendar-card {
    padding: 0.85rem 0.9rem !important;
    max-width: calc(100vw - 1rem) !important;
    max-height: 96dvh !important;
    overflow: hidden !important;
  }

  .cal-days-grid {
    gap: 0.18rem !important;
    margin-bottom: 0.45rem !important;
  }

  .cal-day {
    font-size: 0.8rem !important;
    border-radius: 6px !important;
  }

  .cal-time-slots {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.35rem !important;
  }

  .time-slot-btn {
    padding: 0.35rem 0.4rem !important;
    font-size: 0.72rem !important;
  }

  .toast-capsule {
    bottom: calc(72px + env(safe-area-inset-bottom, 12px));
    font-size: 0.85rem;
    padding: 0.6rem 1.3rem;
  }
}

/* ==========================================================================
   Matterport-Style 360 Panorama Tour & Hotspot Overlay Styles
   ========================================================================== */
#pannellum-viewer-box {
  width: 100% !important;
  height: 100% !important;
  background: #030406;
  direction: ltr !important;
}

.pnlm-load-box {
  display: none !important;
}

.pnlm-container {
  background: #030406 !important;
  font-family: inherit !important;
  direction: ltr !important;
}

.pnlm-hotspot-base {
  left: 0 !important;
  top: 0 !important;
}

/* Matterport Luxury Hotspot Markers */
.matterport-hotspot-marker {
  width: 48px;
  height: 48px;
  position: absolute;
  cursor: pointer;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: auto;
}

.mp-hotspot-pulse {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(229, 184, 105, 0.75);
  background: rgba(229, 184, 105, 0.2);
  animation: mpHotspotPulse 2s infinite ease-out;
  pointer-events: none;
}

.mp-hotspot-core {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7d58b 0%, #d4a04e 100%);
  border: 2px solid #ffffff;
  box-shadow: 0 0 16px rgba(229, 184, 105, 0.95), 0 4px 10px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #07090e;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.matterport-hotspot-marker:hover .mp-hotspot-core,
.matterport-hotspot-marker:active .mp-hotspot-core {
  transform: scale(1.2);
  box-shadow: 0 0 25px rgba(229, 184, 105, 1), 0 6px 14px rgba(0, 0, 0, 0.8);
}

.mp-hotspot-tooltip {
  position: absolute;
  bottom: -32px;
  white-space: nowrap;
  background: rgba(11, 15, 23, 0.94);
  color: #f8fafc;
  border: 1px solid rgba(229, 184, 105, 0.6);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  pointer-events: auto !important;
  cursor: pointer !important;
  opacity: 0.95;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.mp-hotspot-tooltip:hover {
  transform: scale(1.08);
  background: rgba(20, 28, 45, 0.98);
  border-color: #f7d58b;
  box-shadow: 0 0 16px rgba(229, 184, 105, 0.65);
  color: #ffffff;
}

.matterport-hotspot-marker:hover .mp-hotspot-tooltip {
  border-color: #f7d58b;
}

@keyframes mpHotspotPulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

