/* ============================================================================
   SIBU SIBU VILLA — CUSTOM DESIGN SYSTEM & LAYOUT CSS
   ============================================================================ */

/* CSS Variables & Tokens */
:root {
  --bg-dark: #201F22;
  --bg-light: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-dark: rgba(32, 31, 34, 0.1);
  
  --text-primary: #FFFFFF;
  --text-secondary: #858585;
  --text-muted: #707070;
  
  --accent-gold: #C5A880;
  --accent-gold-glow: rgba(197, 168, 128, 0.15);
  --accent-gold-dark: #A48960;
  
  --font-display: 'Inter', ui-rounded, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s ease;
  
  --container-max-width: 1440px;
  --header-height: 80px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #3a393d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Common Layout Elements */
.section-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 4rem;
  width: 100%;
}

.section-num {
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ============================================================================
   1. MAIN HEADER & NAVIGATION
   ============================================================================ */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  background: rgba(32, 31, 34, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  background: rgba(32, 31, 34, 0.9);
  height: 70px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 4rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  z-index: 1001;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-gold);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.header-nav {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 999px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 999px;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.reserve-cta-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--bg-dark);
  background-color: var(--text-primary);
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.reserve-cta-btn:hover {
  transform: translateY(-2px);
  background-color: var(--accent-gold);
  box-shadow: 0 8px 20px var(--accent-gold-glow);
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* Mobile Nav Menu */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-dark);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav-link {
  font-size: 2rem;
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 300;
  transition: var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--text-primary);
  transform: scale(1.05);
}

.mobile-reserve-btn {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bg-dark);
  background-color: var(--text-primary);
  border: none;
  padding: 16px 36px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 1rem;
}

/* ============================================================================
   2. HERO SCROLL-WORLD CONTAINER
   ============================================================================ */
.hero-world-wrapper {
  position: relative;
  z-index: 1;
  background-color: var(--bg-dark);
}

/* ============================================================================
   3. ABOUT SIBU SIBU SECTION
   ============================================================================ */
.about-section {
  padding: 10rem 0;
  background-color: var(--bg-dark);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 6rem;
  align-items: start;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 2rem;
  max-width: 36ch;
}

.philosophy-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.15); /* Base semi-transparent state */
  letter-spacing: -0.01em;
}

.philosophy-text .reveal-word {
  display: inline-block;
  white-space: nowrap;
}

.philosophy-text .reveal-char {
  display: inline-block;
  color: #FFFFFF;
  opacity: 0.15; /* Base opacity to be changed by JS scroll reveal */
  transition: opacity 0.1s ease; /* smooth fallback if scroll jumps */
}

.explore-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 4rem;
  padding: 14px 28px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.explore-pill-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-dark);
  border-color: var(--text-primary);
}

.explore-pill-btn:hover .pill-arrow {
  transform: translateX(4px);
}

.pill-arrow {
  transition: transform 0.25s ease;
}

/* ============================================================================
   4. INTERACTIVE SPACES & GALLERY SLIDER
   ============================================================================ */
.spaces-section {
  padding: 8rem 0;
  background-color: var(--bg-dark);
  position: relative;
  z-index: 2;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.slider-controls {
  display: flex;
  gap: 12px;
}

.slider-arrow-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.slider-arrow-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-dark);
  border-color: var(--text-primary);
}

.gallery-slider-wrapper {
  padding-left: 4rem;
  padding-right: 4rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-slider-wrapper::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  gap: 32px;
}

.gallery-card {
  min-width: 440px;
  width: 440px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  transition: var(--transition-smooth);
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: var(--text-secondary);
}

.card-image-box {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  cursor: pointer;
}

.card-image-box img.card-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-card:hover .card-image-box img.card-main-img {
  transform: scale(1.05);
}

.card-photo-count-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(18, 20, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* In-card micro-thumbnails */
.card-thumbs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.card-thumb-btn {
  width: 52px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.card-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.card-thumb-btn:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.card-thumb-btn.active {
  opacity: 1;
  border-color: #ffffff;
  box-shadow: none;
  transform: translateY(-2px);
}

.card-year {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background-color: rgba(32, 31, 34, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================================================
   SPACES LUXURY LIGHTBOX MODAL
   ============================================================================ */
.spaces-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
}

.spaces-lightbox.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 6, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  cursor: pointer;
  animation: backdropFadeIn 0.3s ease forwards;
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 92vw;
  max-width: 1160px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.spaces-lightbox.active .lightbox-dialog {
  transform: scale(1);
}

.lightbox-close-btn {
  position: fixed;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 1000000;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
  color: #ffffff;
  transform: scale(1.08) rotate(90deg);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 20;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: none;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav-btn.prev-btn {
  left: -24px;
}

.lightbox-nav-btn.next-btn {
  right: -24px;
}

.lightbox-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.lightbox-image-stage {
  width: 100%;
  height: 60vh;
  max-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(12, 14, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}

.lightbox-stage-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.lightbox-details-panel {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.lightbox-tag-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2px;
}

.lightbox-badge {
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 3px 12px;
  border-radius: 999px;
}

.lightbox-counter {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.lightbox-title {
  font-size: 1.55rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.lightbox-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 680px;
  line-height: 1.55;
  margin: 0;
}

.lightbox-thumb-strip {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  justify-content: center;
  flex-wrap: wrap;
}

.lightbox-thumb-item {
  width: 64px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.lightbox-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-thumb-item:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.6);
}

.lightbox-thumb-item.active {
  opacity: 1;
  border-color: #ffffff;
  box-shadow: none;
  transform: scale(1.05);
}

/* ============================================================================
   5. AVAILABILITY CALENDAR & DIRECT BOOKING
   ============================================================================ */
.booking-section {
  padding: 8rem 0;
  background-color: var(--bg-dark);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-light);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1.12fr 1.88fr;
  gap: 6rem;
  align-items: start;
}

.booking-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 3rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #55efc4;
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(85, 239, 196, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(85, 239, 196, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(85, 239, 196, 0); }
}

.status-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.selected-dates-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 1.5rem;
}

.summary-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-field .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.summary-field .value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.summary-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border-light);
}

.enquire-now-btn {
  width: 100%;
  padding: 18px;
  border-radius: 12px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  background-color: var(--text-primary);
  color: var(--bg-dark);
}

.enquire-now-btn:disabled {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: not-allowed;
}

.enquire-now-btn:not(:disabled):hover {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* Calendar Element Layout */
.calendar-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.calendar-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.calendar-nav-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-dark);
}

.current-month-label {
  font-size: 1.3rem;
  font-weight: 500;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 2rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
  color: var(--text-primary);
  border: 1px solid transparent;
}

.calendar-day:hover:not(.empty):not(.booked) {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--border-light);
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day.booked {
  color: rgba(255, 255, 255, 0.25);
  text-decoration: line-through;
  text-decoration-color: rgba(197, 168, 128, 0.45);
  background-color: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.03);
  cursor: not-allowed;
  opacity: 0.55;
}

.calendar-day.selected {
  background-color: var(--text-primary);
  color: var(--bg-dark);
  font-weight: 700;
}

.calendar-day.in-range {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
}

.calendar-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.available { background-color: var(--text-secondary); }
.legend-dot.booked { background-color: var(--text-muted); text-decoration: line-through; }
.legend-dot.selected { background-color: var(--text-primary); }

/* ============================================================================
   6. GUEST TESTIMONIALS CAROUSEL
   ============================================================================ */
.reviews-section {
  padding: 10rem 0;
  background: linear-gradient(rgba(32, 31, 34, 0.75), rgba(32, 31, 34, 0.75)), url('../scene/bg-reviews.webp');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  z-index: 2;
}

@media (hover: none) and (pointer: coarse), (max-width: 860px) {
  .reviews-section {
    background-attachment: scroll;
    background-position: center center;
  }
}

.reviews-header {
  margin-bottom: 5rem;
}

.testimonials-slider {
  position: relative;
  max-width: 900px;
}

.testimonials-track {
  position: relative;
  height: 240px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(20px);
}

.testimonial-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.review-quote {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.author-loc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.testimonials-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 4rem;
}

.review-nav-btn {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.review-nav-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-dark);
}

.review-counter {
  font-size: 0.9rem;
  font-family: monospace;
  color: var(--text-secondary);
}

/* ============================================================================
   7. FAQ ACCORDION SECTION
   ============================================================================ */
.faq-section {
  padding: 8rem 0;
  background-color: var(--bg-dark);
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-light);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1.12fr 1.88fr;
  gap: 6rem;
}

.faq-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 2rem;
  max-width: 30ch;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-light);
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-trigger {
  width: 100%;
  padding: 32px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-trigger:hover {
  color: var(--accent-gold);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.4s ease;
  color: var(--text-secondary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--text-primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content p {
  padding-bottom: 32px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 55ch;
}

/* ============================================================================
   8. MINIMALIST LUXURY FOOTER
   ============================================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 8rem 0;
  z-index: 2;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(32, 31, 34, 0.75), rgba(32, 31, 34, 0.75)), url('../scene/bg-cta.webp') no-repeat center;
  background-size: cover;
  z-index: -1;
  transform: scale(1.0) translateY(0px); /* Base scale 1.0, will zoom dynamically in JS */
  will-change: transform;
  pointer-events: none;
}

@media (hover: none) and (pointer: coarse), (max-width: 860px) {
  .cta-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.10) !important; /* Keep static 10% zoom on mobile */
  }
}

.main-footer {
  padding: 8rem 0 4rem;
  background-color: var(--bg-dark);
  position: relative;
  z-index: 2;
}

.footer-cta-block {
  margin-bottom: 8rem;
}

.footer-big-cta {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.footer-btn-span {
  display: inline-block;
  vertical-align: middle;
}

.footer-contact-pill-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--bg-dark);
  background-color: var(--text-primary);
  border: none;
  padding: 20px 48px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-fast);
  margin: 0 16px;
}

.footer-contact-pill-btn:hover {
  background-color: var(--accent-gold);
  transform: scale(1.05);
}

.footer-meta-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  border-top: 1px solid var(--border-light);
  padding-top: 4rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 24px;
}

.footer-link {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: var(--transition-fast);
  width: fit-content;
}

.footer-link:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.location-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.coords {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================================
   9. BOOKING INQUIRY MODAL
   ============================================================================ */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.booking-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(20, 20, 22, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background-color: #272629;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  width: 100%;
  max-width: 580px;
  padding: 48px;
  z-index: 1;
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

.booking-modal.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 32px;
  right: 32px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-title {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.04);
}

.submit-modal-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--bg-dark);
  background-color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
  margin-top: 10px;
}

.submit-modal-btn:hover {
  background-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Smoobu Modal Enhancements */
.modal-content-wide {
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 40px;
}

.modal-header-row {
  margin-bottom: 20px;
}

.modal-tabs {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.modal-tab-btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-tab-btn.active {
  background: var(--accent-gold);
  color: var(--bg-dark);
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.25);
}

.modal-tab-pane {
  display: none;
}

.modal-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.smoobu-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.trust-badge {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-gold);
  background: rgba(197, 168, 128, 0.08);
  border: 1px solid rgba(197, 168, 128, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
}

.smoobu-iframe-container {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #ffffff;
  min-height: 520px;
}

.smoobu-loading-spinner {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #201F22;
  color: var(--accent-gold);
  font-size: 0.85rem;
  z-index: 2;
}

.spinner-dot {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(197, 168, 128, 0.2);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.smoobu-modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.direct-smoobu-link {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.direct-smoobu-link:hover {
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .modal-content-wide {
    padding: 24px 20px;
    max-height: 95vh;
  }
  .modal-tabs {
    flex-direction: column;
    gap: 6px;
  }
  .modal-tab-btn {
    padding: 10px;
    font-size: 0.8rem;
  }
  .smoobu-iframe-container {
    min-height: 480px;
  }
}

/* ============================================================================
   10. RESPONSIVE MEDIA QUERIES
   ============================================================================ */
@media (max-width: 1200px) {
  .section-container {
    padding: 0 2.5rem;
  }
  .header-container {
    padding: 0 2.5rem;
  }
  .about-grid {
    gap: 4rem;
  }
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-description {
    max-width: none;
  }
  .booking-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .booking-info-box {
    display: contents;
  }
  .booking-header-block {
    order: 1;
    width: 100%;
  }
  .calendar-wrapper {
    order: 2;
    width: 100%;
    margin-top: 0;
  }
  .booking-actions-block {
    order: 3;
    width: 100%;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .footer-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
  .section-container {
    padding: 0 1.25rem;
  }
  .header-container {
    padding: 0 1.25rem;
    gap: 8px;
  }
  
  /* 1. Header Navigation & Sleek Compact Reserve CTA Button */
  .header-nav {
    display: none;
  }
  .header-logo .logo-text {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
  }
  .reserve-cta-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    padding: 6px 12px !important;
    height: 30px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
    margin-left: auto !important;
    margin-right: 6px !important;
  }
  .mobile-menu-toggle {
    display: flex;
    width: 22px;
    height: 14px;
    flex-shrink: 0;
  }
  
  /* 2. The Spaces Slider — Compact 2-Card Layout on Mobile */
  .spaces-header {
    margin-bottom: 1.5rem;
  }
  .gallery-slider-wrapper {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    cursor: auto;
  }
  .gallery-slider-wrapper::-webkit-scrollbar {
    display: none !important;
  }
  .gallery-track {
    gap: 10px !important;
  }
  .gallery-card {
    min-width: calc(47vw - 12px) !important;
    width: calc(47vw - 12px) !important;
    max-width: 200px !important;
    padding: 8px !important;
    border-radius: 12px !important;
    scroll-snap-align: start !important;
    flex-shrink: 0 !important;
  }
  .card-image-box {
    height: 115px !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
  }
  .card-year {
    bottom: 5px !important;
    right: 5px !important;
    font-size: 0.52rem !important;
    padding: 2px 6px !important;
  }
  .card-photo-count-badge {
    top: 5px !important;
    left: 5px !important;
    font-size: 0.52rem !important;
    padding: 2px 5px !important;
  }
  .card-thumbs-row {
    gap: 4px !important;
    margin-bottom: 6px !important;
  }
  .card-thumb-btn {
    width: 32px !important;
    height: 22px !important;
    border-radius: 3px !important;
  }
  .card-title {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    margin-bottom: 3px !important;
    line-height: 1.2 !important;
  }
  .card-desc {
    font-size: 0.65rem !important;
    line-height: 1.3 !important;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Mobile Lightbox overrides */
  .spaces-lightbox .lightbox-dialog {
    width: 95vw !important;
    max-height: 94vh !important;
  }
  .lightbox-close-btn {
    top: -42px !important;
    right: 4px !important;
    width: 36px !important;
    height: 36px !important;
  }
  .lightbox-nav-btn {
    width: 38px !important;
    height: 38px !important;
  }
  .lightbox-nav-btn.prev-btn {
    left: 4px !important;
  }
  .lightbox-nav-btn.next-btn {
    right: 4px !important;
  }
  .lightbox-image-stage {
    height: 45vh !important;
    max-height: 320px !important;
    border-radius: 12px !important;
  }
  .lightbox-title {
    font-size: 1.15rem !important;
  }
  .lightbox-desc {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }
  .lightbox-thumb-item {
    width: 48px !important;
    height: 34px !important;
    border-radius: 5px !important;
  }
  
  /* 3. Live Availability Calendar above Check-In / Check-Out on Mobile */
  .booking-desc {
    margin-bottom: 1rem !important;
    font-size: 0.95rem !important;
  }
  .sync-status {
    margin-bottom: 1.25rem !important;
    padding: 6px 14px !important;
  }
  .calendar-wrapper {
    padding: 20px 16px !important;
    border-radius: 16px !important;
  }
  .calendar-header {
    margin-bottom: 14px !important;
  }
  .calendar-nav-btn {
    width: 34px !important;
    height: 34px !important;
  }
  .current-month-label {
    font-size: 1.02rem !important;
  }
  .calendar-weekdays {
    margin-bottom: 8px !important;
    font-size: 0.72rem !important;
  }
  .calendar-days-grid {
    gap: 4px !important;
  }
  .calendar-day {
    height: 36px !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
  }
  .selected-dates-summary {
    padding: 16px !important;
    margin-top: 0.5rem !important;
    margin-bottom: 1rem !important;
    border-radius: 14px !important;
  }
  .summary-field .value {
    font-size: 0.95rem !important;
  }
  .enquire-now-btn {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 0.82rem !important;
  }
  
  /* Footer */
  .footer-big-cta {
    font-size: 3rem;
  }
  .footer-contact-pill-btn {
    margin: 16px 0 0 0;
    width: 100%;
  }
  .footer-meta-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  /* Modal */
  .modal-content {
    padding: 28px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .header-logo .logo-text {
    font-size: 0.78rem;
  }
  .reserve-cta-btn {
    font-size: 0.6rem !important;
    padding: 5px 9px !important;
    height: 28px !important;
  }
  .gallery-card {
    min-width: calc(50vw - 16px) !important;
    width: calc(50vw - 16px) !important;
    padding: 7px !important;
  }
  .card-image-box {
    height: 105px !important;
  }
  .calendar-day {
    height: 33px !important;
    font-size: 0.78rem !important;
  }
}

/* ============================================================================
   PREMIUM OVERRIDES FOR SCROLL-WORLD HUD ELEMENTS (GLASSMORPHISM)
   ============================================================================ */

/* Sleek Dark Glassmorphism for Navigation Labels */
.sw-route__label {
  background: rgba(32, 31, 34, 0.65) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  color: var(--text-primary, #FFFFFF) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  font-family: var(--font-display) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 8px 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Premium Gold accents for the Scroll Dots and Active State */
.sw-route__dot i {
  background: rgba(255, 255, 255, 0.25) !important;
  width: 8px !important;
  height: 8px !important;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease !important;
}

.sw-route__dot:hover i {
  background: var(--accent-gold) !important;
  transform: scale(1.3) !important;
}

.sw-route__dot.is-active i {
  background: var(--accent-gold) !important;
  transform: scale(1.5) !important;
  animation: sw-active-dot-pulse 2s infinite ease-in-out !important;
}

/* Align active indicator line with gold accents */
.sw-route::before {
  background: var(--accent-gold) !important;
  opacity: 0.2 !important;
}

/* Premium Unified Glassmorphic Tags Bar */
.sw-copy__tags {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  background: rgba(32, 31, 34, 0.6) !important; /* Sleek dark glassmorphism container */
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px !important; /* Elegant subtle rounded corners matching the reference */
  padding: 0 !important;
  margin: 24px 0 0 0 !important;
  width: max-content !important;
  list-style: none !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
  overflow-y: hidden !important; /* Allow horizontal overflow; only clip vertically */
}

.sw-copy__tags li {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #FFFFFF !important; /* Pure White text */
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  font-size: 0.74rem !important;
  text-transform: uppercase !important;
  padding: 10px 20px !important;
  margin: 0 !important;
}

/* Thin vertical line divider between inline tags */
.sw-copy__tags li:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Pulsing glow animation for active navigation dot */
@keyframes sw-active-dot-pulse {
  0% {
    box-shadow: 0 0 0 0px rgba(197, 168, 128, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(197, 168, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0px rgba(197, 168, 128, 0);
  }
}

/* Typewriter Cursor styling removed: replaced with scroll reveal */

/* ============================================================================
   SCROLL-WORLD OVERRIDES (UNLAYERED OVERRIDES TO BYPASS CASCADE RESET)
   ============================================================================ */
.sw-copy {
  pointer-events: auto !important;
}

/* Remove white text shadows from copy texts */
.sw-copy__title,
.sw-copy__body,
.sw-copy__num,
.sw-copy__eyebrow {
  text-shadow: none !important;
}

.sw-copy__cta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 32px !important; /* Space below the tags bar */
  pointer-events: auto !important;
  width: 100% !important;
}

.sw-btn {
  display: inline-block !important;
  text-decoration: none !important;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  padding: 14px 28px !important;
  border-radius: 4px !important; /* Matches unified tags bar corners */
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease !important;
  text-align: center !important;
}

.sw-btn--primary {
  color: #201F22 !important; /* Dark slate text */
  background: var(--accent-gold) !important; /* Signature luxury gold */
  border: 1px solid var(--accent-gold) !important;
}

.sw-btn--primary:hover {
  transform: translateY(-3px) !important;
  background: #FFFFFF !important;
  border-color: #FFFFFF !important;
}

.sw-btn--ghost {
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.sw-btn--ghost:hover {
  transform: translateY(-3px) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Desktop-specific overlay: thinner and more transparent gradient to avoid covering background video */
@media (min-width: 861px) {
  .sw-copylayer::before {
    background: linear-gradient(90deg, 
      var(--sw-bg) 0%, 
      color-mix(in srgb, var(--sw-bg) 45%, transparent) 25%, 
      color-mix(in srgb, var(--sw-bg) 15%, transparent) 60%, 
      transparent 100%
    ) !important;
  }
}

/* ============================================================================
   MOBILE RESPONSIVENESS OVERRIDES FOR SCROLL-WORLD (IPHONE 11 PRO / SHORT SCREENS)
   ============================================================================ */
@media (max-width: 860px) {
  /* Lift the copy text container higher to avoid overlapping with Safari floating address bar */
  .sw-copy {
    bottom: calc(clamp(70px, 14dvh, 120px) + env(safe-area-inset-bottom)) !important;
    overflow: hidden !important; /* Clip anything that escapes the right boundary */
  }

  /* Make sure scroll indicator is tucked neatly at the bottom edge */
  .sw-hint {
    bottom: calc(15px + env(safe-area-inset-bottom)) !important;
  }

  /* Tags bar: compact sizing so 3 tags always fit within ~340px */
  .sw-copy__tags {
    display: flex !important;
    flex-wrap: nowrap !important;          /* Keep on one line */
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;           /* Clip cleanly at right boundary */
    padding: 0 !important;
    margin: 16px 0 0 0 !important;
    box-sizing: border-box !important;
  }

  /* Compact individual tags — smaller font so ALL text always fits fully */
  .sw-copy__tags li {
    padding: 6px 8px !important;           /* Tight but breathable padding */
    font-size: 0.58rem !important;         /* Small enough for longest tags to show */
    letter-spacing: 0.04em !important;
    flex: 1 1 0 !important;               /* Equal-width flex columns */
    text-align: center !important;
    flex-shrink: 1 !important;
    white-space: nowrap !important;        /* Keep single-line */
    min-width: 0 !important;              /* Allow flex to compress */
  }

  /* Remove right border on last tag */
  .sw-copy__tags li:last-child {
    border-right: none !important;
  }

  /* Adjust line heights and margins for mobile titles to save vertical space */
  .sw-copy__title {
    margin-top: 8px !important;
    font-size: clamp(1.8rem, 6.5vw, 2.4rem) !important;
    line-height: 1.1 !important;
  }

  .sw-copy__body {
    margin-top: 12px !important;
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
  }

  .sw-copy__cta {
    margin-top: 20px !important;
    gap: 8px !important;
  }

  .sw-btn {
    padding: 12px 22px !important;
    font-size: 0.82rem !important;
  }
}



