/* ═══════════════════════════════════════════════
   AROMA HOMESTAY — Purple & Pink Glassmorphism
   Pure custom CSS, no DaisyUI/framework conflicts
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

/* ── Tokens ── */
:root {
  --purple-dark:   #5b21b6;
  --purple:        #7C3AED;
  --purple-mid:    #9333EA;
  --purple-light:  #A855F7;
  --pink:          #EC4899;
  --pink-light:    #F472B6;

  --grad:          linear-gradient(135deg, #7C3AED, #9333EA, #EC4899);
  --grad-2:        linear-gradient(135deg, #7C3AED, #EC4899);
  --grad-soft:     linear-gradient(135deg, rgba(124,58,237,.12), rgba(236,72,153,.08));

  --glass:         rgba(255,255,255,.70);
  --glass-border:  rgba(255,255,255,.62);
  --glass-shadow:  0 8px 32px rgba(124,58,237,.13);

  --text:          #1e1b4b;
  --text-muted:    #6b7280;
  --bg:            #f5f3ff;
  --radius-card:   22px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* Momentum scroll on iOS */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  /* NO transform here — transform on body breaks position:fixed children */
  overscroll-behavior-y: none;
}

/* ambient mesh background */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 12%  5%,  rgba(167,139,250,.20) 0%, transparent 60%),
    radial-gradient(ellipse 65% 50% at 88% 88%,  rgba(244,114,182,.16) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 52% 38%,  rgba(196,181,253,.10) 0%, transparent 55%);
  /* NO transform/will-change — these create stacking context and break fixed children */
}
/* z-index stacking handled per-element, not globally */

.font-display { font-family: 'Playfair Display', serif; }

/* gradient text utility */
.grad-text {
  background: var(--grad-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: #a78bfa; border-radius: 4px; }

/* ═══════════════════════════
   LOADING SCREEN
   ═══════════════════════════ */
#loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #ede9fe, #fdf2f8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity .5s ease;
  /* NO transform — keep stacking context clean */
}
#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.logo-spinner {
  display: block;
  text-align: center;
  animation: logoPulse 1.4s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 24px rgba(124,58,237,.5));
  line-height: 1;
}
.logo-spinner img { width: 72px; height: 72px; object-fit: contain; display: block; margin: 0 auto; }
.logo-spinner-fallback { display: none; font-size: 72px; font-style: normal; line-height: 1; }
@keyframes logoPulse {
  from { transform: scale(.88) rotate(-4deg); }
  to   { transform: scale(1.08) rotate( 4deg); }
}
.loading-text {
  font-size: 18px; font-weight: 700; margin-top: 16px;
  background: var(--grad-2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: .06em;
}
.loading-dots { display: flex; gap: 6px; margin-top: 12px; }
.loading-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  animation: dotBounce 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(1) { background: #a78bfa; }
.loading-dots span:nth-child(2) { background: #ec4899; animation-delay: .2s; }
.loading-dots span:nth-child(3) { background: #a78bfa; animation-delay: .4s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40%           { transform: scale(1);  opacity: 1; }
}

/* ═══════════════════════════
   SECTION LOADING OVERLAY
   ═══════════════════════════ */
#section-loading {
  position: fixed; inset: 0;
  background: rgba(245,243,255,.82);
  backdrop-filter: blur(10px);
  z-index: 300; display: none;
  align-items: center; justify-content: center;
}
#section-loading.show { display: flex; }
.spin-logo { font-size: 56px; animation: logoPulse .9s ease-in-out infinite alternate; }

/* ═══════════════════════════
   SECTION PANELS
   ═══════════════════════════ */
.section-panel {
  display: none;
  opacity: 0;
  min-height: calc(100vh - 130px);
  padding-bottom: 110px;
  transition: opacity .3s ease;
  /* NOTE: NO contain:layout here — it traps fixed children (nav, floats) */
}
.section-panel.active {
  display: block;
  opacity: 1;
}

/* ═══════════════════════════
   HEADER
   ═══════════════════════════ */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--glass-border);
  position: sticky; top: 0; z-index: 100;
  padding: 12px 18px;
  box-shadow: 0 2px 20px rgba(124,58,237,.06);
}
.header-inner {
  display: flex; align-items: center; gap: 12px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
.header-brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

.header-logo { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.header-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.header-logo-fallback { display: none; font-size: 32px; line-height: 1; }
.header-name {
  font-size: 1.15rem; font-weight: 700; line-height: 1.1;
  background: var(--grad-2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.header-tagline {
  font-size: .6rem; color: #a78bfa;
  letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500; margin-top: 2px;
}
.header-admin-btn {
  margin-left: auto;
  background: rgba(124,58,237,.1);
  border: 1.5px solid rgba(124,58,237,.2);
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 16px;
  transition: background .2s;
  flex: 0 0 auto;
}
.header-admin-btn:hover { background: rgba(124,58,237,.2); }

/* ═══════════════════════════
   DESKTOP NAVBAR (site-header) — hidden on mobile, shown >=1024px
   Same data-section values as bottom-nav, so JS drives both from one source
   ═══════════════════════════ */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 3px;
  background: rgba(124,58,237,.05);
  border: 1px solid rgba(124,58,237,.10);
  border-radius: 999px;
  padding: 5px;
}
.desktop-nav-item {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  border: none; background: none; cursor: pointer;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px;
  color: #6b7280; white-space: nowrap;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
}
.desktop-nav-item .dn-icon { font-size: 15px; line-height: 1; }
.desktop-nav-item:hover { color: var(--purple); background: rgba(124,58,237,.08); }
.desktop-nav-item.active { color: #fff; background: var(--grad-2); box-shadow: 0 4px 14px rgba(124,58,237,.35); }
.desktop-nav-cta {
  margin-left: 4px;
  background: var(--grad) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(147,51,234,.35);
}
.desktop-nav-cta:hover { color: #fff !important; background: var(--grad) !important; transform: scale(1.04); }
.desktop-nav-cta.active { box-shadow: 0 4px 16px rgba(147,51,234,.5); }

/* ═══════════════════════════
   BOTTOM NAV
   ═══════════════════════════ */
.bottom-nav-wrap {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9000 !important;
  padding: 8px 14px max(12px, env(safe-area-inset-bottom));
  pointer-events: none;
  /* NO transform/isolation — these can interfere with positioning */
}
.bottom-nav {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 26px;
  border: 1.5px solid rgba(255,255,255,.88);
  box-shadow:
    0 6px 24px rgba(124,58,237,.14),
    0 2px 6px  rgba(236,72,153,.08),
    inset 0 1px 0 rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: space-around;
  padding: 8px 10px;
  pointer-events: all;
  /* NO transform on child nav */
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 8px; cursor: pointer;
  border-radius: 16px; border: none; background: none; flex: 1; min-width: 0;
  color: #9ca3af;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  font-family: 'Poppins', sans-serif;
}
.nav-item .nav-icon {
  font-size: 22px; line-height: 1;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.nav-item .nav-label {
  font-size: 9px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.nav-item.active { color: var(--purple); }
.nav-item.active .nav-icon { transform: scale(1.2) translateY(-2px); }
.nav-item.active .nav-label { color: var(--purple); }

/* Tempah special pill */
.nav-tempah {
  background: var(--grad) !important;
  border-radius: 20px !important;
  padding: 8px 14px !important;
  color: white !important;
  box-shadow: 0 6px 22px rgba(147,51,234,.45);
  flex: 0 0 auto !important;
  min-width: 76px !important;
}
.nav-tempah .nav-icon { font-size: 18px !important; transform: none !important; }
.nav-tempah .nav-label { color: white !important; }
.nav-tempah:hover { transform: scale(1.05) !important; }

/* ═══════════════════════════
   GLASS CARD
   ═══════════════════════════ */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-shadow);
}

/* ═══════════════════════════
   MAIN / SECTIONS
   ═══════════════════════════ */
.main-wrap { max-width: 960px; margin: 0 auto; }

.section-head { padding: 20px 16px 4px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.section-sub   { font-size: 11px; color: var(--purple-light); font-weight: 500; margin-top: 3px; letter-spacing: .04em; }
.section-divider {
  height: 2px; margin-top: 10px;
  background: linear-gradient(90deg, var(--purple-light), var(--pink), transparent);
  border-radius: 2px;
}

/* ═══════════════════════════
   HERO SLIDER
   ═══════════════════════════ */
.slider-wrap {
  position: relative; overflow: hidden;
  border-radius: 22px; margin: 14px 16px;
  height: 255px;
  box-shadow: 0 12px 40px rgba(124,58,237,.22);
}
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .9s ease;
}
.slide.active { opacity: 1; }
.slide-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(76,29,149,.65) 0%, rgba(124,58,237,.10) 55%, transparent 100%);
}
.slide-caption {
  position: absolute; bottom: 28px; left: 20px; right: 20px; z-index: 3;
  color: white;
}
.slide-caption h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.slide-caption p { font-size: 12px; color: rgba(255,255,255,.85); margin-top: 4px; }

.slide-indicators {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 5;
}
.slide-indicators input[type="radio"] { display: none; }
.slide-indicators label {
  width: 7px; height: 7px;
  background: rgba(255,255,255,.45);
  border-radius: 50%; cursor: pointer; transition: all .3s;
}
.slide-indicators input:checked + label {
  background: white; width: 22px; border-radius: 4px;
}

/* ═══════════════════════════
   CTA BANNER
   ═══════════════════════════ */
.cta-banner {
  margin: 10px 16px;
  background: var(--grad);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 8px 24px rgba(124,58,237,.30);
}
.cta-banner p { font-size: 13px; font-weight: 600; color: white; }
.cta-btn {
  background: rgba(255,255,255,.22);
  border: 1.5px solid rgba(255,255,255,.45);
  color: white; font-weight: 700; font-size: 12px;
  padding: 7px 16px; border-radius: 20px;
  cursor: pointer; white-space: nowrap;
  font-family: 'Poppins', sans-serif;
  transition: background .2s;
}
.cta-btn:hover { background: rgba(255,255,255,.32); }

/* ═══════════════════════════
   FEATURE CARDS GRID
   ═══════════════════════════ */
.feature-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 10px; padding: 0 16px; margin-top: 12px;
}
.feature-card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--glass-border);
  border-radius: 18px; padding: 16px;
  box-shadow: 0 4px 16px rgba(124,58,237,.08);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(124,58,237,.17); }
.feature-icon { font-size: 26px; margin-bottom: 7px; }
.feature-title { font-size: 13px; font-weight: 700; color: var(--text); }
.feature-desc  { font-size: 11px; color: #8b5cf6; margin-top: 2px; }

/* ═══════════════════════════
   INFO / ABOUT CARD
   ═══════════════════════════ */
.info-card {
  background: var(--glass);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-card); padding: 20px;
  margin: 12px 16px;
  box-shadow: var(--glass-shadow);
}
.purple-divider {
  height: 2px; margin: 12px 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-light), var(--pink), transparent);
}
.amenity-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid rgba(167,139,250,.18);
  font-size: 13px; color: var(--text);
}
.amenity-row:last-child { border-bottom: none; }
.amenity-icon { font-size: 16px; width: 24px; text-align: center; }

/* ═══════════════════════════
   RATING CARD
   ═══════════════════════════ */
.rating-card {
  margin: 10px 16px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--glass-border);
  border-radius: 18px; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--glass-shadow);
}
.rating-stars { display: flex; gap: 2px; }
.star { color: #f59e0b; font-size: 14px; }
.rating-badge {
  margin-left: auto;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.2);
  color: var(--purple);
  font-size: 10px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}

/* ═══════════════════════════
   GALLERY
   ═══════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px; padding: 12px 16px;
}
.gallery-item {
  aspect-ratio: 1; overflow: hidden;
  border-radius: 12px; cursor: pointer; position: relative;
  box-shadow: 0 2px 8px rgba(124,58,237,.1);
}
.gallery-item.span2 { grid-column: span 2; grid-row: span 2; aspect-ratio: unset; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: '⤢'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(76,29,149,0); font-size: 26px; color: white;
  opacity: 0; transition: all .3s;
}
.gallery-item:hover::after { background: rgba(76,29,149,.35); opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,5,30,.96);
  z-index: 1000; display: none;
  align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 95vw; max-height: 80vh;
  object-fit: contain; border-radius: 12px;
  animation: lbFadeIn .3s ease;
  box-shadow: 0 0 60px rgba(124,58,237,.4);
}
@keyframes lbFadeIn { from { opacity:0; transform:scale(.94); } to { opacity:1; transform:scale(1); } }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px); color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.lb-btn:hover { background: rgba(124,58,237,.55); }
#lb-close { top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; font-size: 17px; }
#lb-prev  { top: 50%; left: 14px;  transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; font-size: 20px; }
#lb-next  { top: 50%; right: 14px; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; font-size: 20px; }
.lb-counter { color: rgba(255,255,255,.5); font-size: 12px; margin-top: 14px; }

/* ═══════════════════════════
   VIDEO
   ═══════════════════════════ */
.video-wrap {
  margin: 12px 16px;
  border-radius: 22px; overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: 0 12px 40px rgba(124,58,237,.22);
  border: 2px solid rgba(167,139,250,.3);
  background: #0f0a28;
}
.video-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.video-wrap video { width: 100%; height: 100%; display: block; object-fit: cover; background: #0f0a28; }

/* ═══════════════════════════
   MAP
   ═══════════════════════════ */
.map-wrap {
  margin: 12px 16px;
  border-radius: 22px; overflow: hidden; height: 280px;
  box-shadow: 0 8px 28px rgba(124,58,237,.18);
  border: 2px solid rgba(167,139,250,.3);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.map-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; background: rgba(167,139,250,.08);
}
.map-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px 12px; }
.map-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 10px; border-radius: 18px; border: none;
  cursor: pointer; font-size: 13px; font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-decoration: none; transition: all .25s;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.map-btn:hover { transform: translateY(-3px); }
.btn-gmaps { background: rgba(255,255,255,.82); color: #1a73e8; border: 1.5px solid rgba(255,255,255,.7); backdrop-filter: blur(10px); }
.btn-waze  { background: linear-gradient(135deg,#33CCFF,#00b8d9); color: #0f172a; }

/* ═══════════════════════════
   BOOKING SECTION
   ═══════════════════════════ */

/* Tab switcher */
.booking-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: rgba(167,139,250,.12);
  border-radius: 18px; margin: 0 16px 14px;
}
.booking-tab-btn {
  flex: 1; padding: 9px 6px;
  border: none; border-radius: 14px;
  font-size: 10px; font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer; transition: all .2s;
  color: var(--purple-light); background: transparent;
  letter-spacing: .02em;
}
.booking-tab-btn.active {
  background: var(--grad);
  color: white;
  box-shadow: 0 4px 14px rgba(124,58,237,.35);
}

.booking-tab { display: none; }
.booking-tab.active { display: block; }

/* Calendar card */
.cal-card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 18px 16px; margin: 0 16px;
  box-shadow: var(--glass-shadow);
}
.cal-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.cal-nav-btn {
  width: 34px; height: 34px; border-radius: 12px;
  border: 1.5px solid rgba(167,139,250,.4);
  background: rgba(255,255,255,.7); backdrop-filter: blur(8px);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--purple);
  transition: all .2s;
}
.cal-nav-btn:hover { background: var(--purple); color: white; border-color: var(--purple); }
.cal-month {
  font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700;
  background: var(--grad-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-day-name {
  text-align: center; font-size: 9px; font-weight: 700;
  color: var(--purple-light); padding: 4px 0;
  text-transform: uppercase; letter-spacing: .04em;
}
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 12px; border-radius: 50%; cursor: pointer;
  font-weight: 500; color: var(--text); transition: all .15s;
}
.cal-day:hover:not(.booked):not(.blocked):not(.past) { background: rgba(167,139,250,.22); color: var(--purple); }
.cal-day.today  { border: 2px solid var(--purple-light); font-weight: 700; color: var(--purple); }
.cal-day.selected { background: var(--grad-2); color: white; font-weight: 700; box-shadow: 0 3px 12px rgba(124,58,237,.4); }
.cal-day.in-range   { background: rgba(167,139,250,.18); color: var(--purple); border-radius: 0; }
.cal-day.range-start { border-radius: 50% 0 0 50%; background: var(--grad-2); color: white; }
.cal-day.range-end   { border-radius: 0 50% 50% 0; background: var(--grad-2); color: white; }
.cal-day.booked  { background: rgba(244,114,182,.2);  color: #be185d; cursor: not-allowed; font-size: 10px; }
.cal-day.blocked { background: rgba(156,163,175,.15); color: #9ca3af; cursor: not-allowed; }
.cal-day.past    { opacity: .28; cursor: not-allowed; }
.cal-legend {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid rgba(167,139,250,.18);
}
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #8b5cf6; font-weight: 500; }
.legend-dot  { width: 10px; height: 10px; border-radius: 50%; }

/* Booking form card */
.form-card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 18px 16px; margin: 0 16px;
  box-shadow: var(--glass-shadow);
}
.date-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.date-box {
  background: linear-gradient(135deg,rgba(167,139,250,.15),rgba(244,114,182,.08));
  border: 1.5px solid rgba(167,139,250,.3); border-radius: 16px; padding: 12px;
}
.date-box-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--purple); }
.date-box-val   { font-size: 13px; font-weight: 600; color: var(--text); margin-top: 4px; }

/* Price summary */
.price-box {
  border-radius: 18px; overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(167,139,250,.2);
  box-shadow: 0 4px 14px rgba(124,58,237,.08);
}
.price-box-head {
  background: var(--grad);
  padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.price-box-head span { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .06em; }
.price-nights-badge {
  background: rgba(255,255,255,.2); color: white;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}
.price-body { background: white; padding: 12px 16px; }
.price-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--text); }
.price-sep { height: 1px; background: rgba(167,139,250,.2); margin: 8px 0; border: none; }
.price-total-row { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
.price-total-label { font-size: 13px; font-weight: 700; color: var(--text); }
.price-total-val {
  font-size: 22px; font-weight: 800;
  background: var(--grad-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Form labels + inputs */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 10px; font-weight: 700;
  color: var(--purple); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 7px;
}
.form-input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid rgba(167,139,250,.35); border-radius: 14px;
  font-size: 14px; font-family: 'Poppins', sans-serif; color: var(--text);
  background: rgba(255,255,255,.72); transition: all .2s;
}
.form-input:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12); background: white;
}
.form-input::placeholder { color: #c4b5fd; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 16px; pointer-events: none; }
.input-icon-wrap .form-input { padding-left: 38px; }

/* Voucher row */
.voucher-row { display: flex; gap: 8px; }
.voucher-input { flex: 1; margin-bottom: 0 !important; }
.voucher-apply-btn {
  padding: 0 18px; background: var(--grad-2); color: white;
  border: none; border-radius: 14px; font-size: 12px; font-weight: 700;
  font-family: 'Poppins', sans-serif; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(124,58,237,.35); transition: all .2s;
}
.voucher-apply-btn:hover { opacity: .9; transform: translateY(-1px); }
.voucher-msg { font-size: 11px; margin-top: 5px; min-height: 16px; color: #a78bfa; }

/* Payment options */
.pay-option {
  display: flex; align-items: center; gap: 13px;
  padding: 14px; margin-bottom: 8px;
  border: 2px solid rgba(167,139,250,.25); border-radius: 16px;
  cursor: pointer; transition: all .2s;
  background: rgba(255,255,255,.55);
}
.pay-option.selected {
  border-color: var(--purple);
  background: linear-gradient(135deg,rgba(167,139,250,.12),rgba(236,72,153,.07));
  box-shadow: 0 4px 16px rgba(124,58,237,.15);
}
.pay-option input { display: none; }
.pay-option-icon { font-size: 28px; }
.pay-option-label { font-size: 13px; font-weight: 700; color: var(--text); }
.pay-option-sub   { font-size: 11px; color: #9ca3af; margin-top: 1px; }
.pay-radio {
  margin-left: auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(167,139,250,.4); background: white;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
}
.pay-option.selected .pay-radio { border-color: var(--purple); background: var(--purple); }
.pay-option.selected .pay-radio::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: white; }

/* Book button */
.btn-book {
  width: 100%; padding: 16px; margin-top: 16px;
  background: var(--grad);
  color: white; border: none; border-radius: 18px;
  font-size: 15px; font-weight: 700; font-family: 'Poppins', sans-serif;
  cursor: pointer; letter-spacing: .04em;
  box-shadow: 0 8px 28px rgba(124,58,237,.45);
  transition: all .25s;
}
.btn-book:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(124,58,237,.55); }
.btn-book:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* Trace booking card */
.trace-card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 18px 16px; margin: 0 16px;
  box-shadow: var(--glass-shadow);
}
.trace-row { display: flex; gap: 8px; margin-bottom: 12px; }
.trace-hint {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(167,139,250,.1);
  border: 1px solid rgba(167,139,250,.25);
  border-radius: 12px; padding: 10px 12px;
}
.trace-hint-icon { font-size: 14px; margin-top: 1px; }
.trace-hint p { font-size: 11px; color: var(--purple); font-weight: 500; line-height: 1.5; }

/* ═══════════════════════════
   FLOATING BUTTONS
   ═══════════════════════════ */
.floating-buttons {
  position: fixed !important;
  right: 16px !important;
  bottom: 120px !important;
  z-index: 9001 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: all !important;
  /* NO transform/isolation on container */
}
.float-btn {
  width: 54px; height: 54px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; overflow: hidden; cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.float-btn:hover { transform: scale(1.12); }
.float-btn svg { width: 26px; height: 26px; }
.float-wa   { background: #25D366; box-shadow: 0 6px 24px rgba(37,211,102,.45); }
.float-call { background: var(--grad-2); box-shadow: 0 6px 24px rgba(124,58,237,.4); }

/* ═══════════════════════════
   TOAST
   ═══════════════════════════ */
.toast {
  position: fixed; top: 76px; left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1e1b4b; color: white;
  padding: 11px 22px; border-radius: 50px;
  font-size: 13px; font-weight: 500; z-index: 8000;
  opacity: 0; transition: all .35s ease;
  white-space: nowrap; max-width: 92vw; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: linear-gradient(135deg,#065f46,#047857); }
.toast.error   { background: linear-gradient(135deg,#991b1b,#dc2626); }
.toast.info    { background: var(--grad-2); }

/* ═══════════════════════════
   MODALS
   ═══════════════════════════ */
.result-modal {
  position: fixed; inset: 0;
  background: rgba(15,10,40,.72); backdrop-filter: blur(8px);
  z-index: 500; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.result-modal.open { display: flex; }
.result-card {
  background: white; border-radius: 28px;
  padding: 32px 22px; max-width: 360px; width: 100%;
  text-align: center;
  animation: slideUp .35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 24px 60px rgba(124,58,237,.3);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px) scale(.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.modal-icon  { font-size: 52px; margin-bottom: 12px; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.modal-msg   { font-size: 13px; color: #6b7280; line-height: 1.7; margin-bottom: 8px; }
.modal-ref   {
  font-family: monospace; font-size: 15px; font-weight: 800;
  background: rgba(167,139,250,.12);
  border: 1.5px solid rgba(167,139,250,.35);
  padding: 8px 18px; border-radius: 10px;
  display: inline-block; margin-bottom: 18px;
  color: var(--purple-dark); letter-spacing: .05em;
}
.modal-btns { display: flex; flex-direction: column; gap: 8px; }
.btn-modal {
  padding: 12px 22px; border-radius: 14px; border: none;
  cursor: pointer; font-size: 13px; font-weight: 700;
  font-family: 'Poppins', sans-serif; transition: all .2s;
  text-decoration: none; display: block; text-align: center;
}
.btn-wa-modal    { background: #25D366; color: white; box-shadow: 0 4px 16px rgba(37,211,102,.35); }
.btn-inv-modal   { background: rgba(167,139,250,.12); color: var(--purple); border: 1px solid rgba(167,139,250,.3); }
.btn-close-modal { background: #f5f3ff; color: #9ca3af; font-weight: 500; }
.btn-retry-modal { background: var(--grad-2); color: white; box-shadow: 0 4px 16px rgba(124,58,237,.35); }
.btn-wa-sm       { background: rgba(167,139,250,.1); color: var(--purple); border: 1px solid rgba(167,139,250,.25); }

/* ═══════════════════════════
   FOOTER
   ═══════════════════════════ */
.site-footer {
  background: linear-gradient(180deg, rgba(124,58,237,.04), rgba(236,72,153,.06));
  border-top: 1.5px solid var(--glass-border);
  padding: 28px 20px calc(120px + env(safe-area-inset-bottom));
  margin-top: 8px;
}
.footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { font-size: 26px; line-height: 1; }
.footer-name {
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem;
  background: var(--grad-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-align: left;
}
.footer-tagline { font-size: .62rem; color: #a78bfa; letter-spacing: .1em; text-transform: uppercase; text-align: left; margin-top: 2px; }

.footer-info {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; color: var(--text-muted);
}
.footer-info-item { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.footer-info-item strong { color: var(--purple-dark); }

.footer-links {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.footer-link {
  background: none; border: none; cursor: pointer; padding: 4px 2px;
  font-family: 'Poppins', sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--purple); text-decoration: underline; text-underline-offset: 3px;
}
.footer-link:hover { color: var(--pink); }
.footer-dot { color: #d1c4f7; font-size: 12px; }

.footer-bottom { font-size: 11px; color: #9ca3af; margin-top: 4px; }

/* ═══════════════════════════
   POLICY MODAL
   ═══════════════════════════ */
.policy-modal-wrap .policy-card {
  max-width: 560px;
  max-height: 84vh;
  padding: 28px 22px 22px;
  text-align: left;
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.policy-close {
  position: sticky; top: -6px; float: right;
  margin-left: 12px; margin-bottom: 8px;
  background: rgba(124,58,237,.1); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 14px; color: var(--purple-dark); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.policy-close:hover { background: rgba(124,58,237,.2); }
.policy-title { text-align: left; padding-right: 40px; margin-bottom: 14px; }
.policy-body { font-size: 13px; line-height: 1.75; color: #4b5563; }
.policy-body h4 {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 13.5px;
  color: var(--purple-dark); margin: 16px 0 6px;
}
.policy-body h4:first-child { margin-top: 0; }
.policy-body p { margin-bottom: 8px; }
.policy-body ul { margin: 0 0 8px 18px; padding: 0; }
.policy-body li { margin-bottom: 5px; }
.policy-body strong { color: var(--text); }
.policy-modal-wrap .modal-btns { margin-top: 14px; }

@media (min-width: 640px) {
  .footer-inner { text-align: left; }
  .footer-info-item { justify-content: flex-start; }
}

/* ═══════════════════════════
   RESPONSIVE
   ═══════════════════════════ */
@media (min-width: 640px) {
  .slider-wrap { height: 340px; margin: 14px 24px; }
  .gallery-grid { grid-template-columns: repeat(4,1fr); padding: 14px 24px; }
  .feature-grid { grid-template-columns: repeat(4,1fr); padding: 0 24px; }
  .info-card, .rating-card, .cta-banner { margin-left: 24px; margin-right: 24px; }
  .booking-tabs { margin-left: 24px; margin-right: 24px; }
  .cal-card, .form-card, .trace-card { margin-left: 24px; margin-right: 24px; }
  .map-btns { padding: 0 24px 14px; }
  .map-wrap { margin: 12px 24px; }
  .video-wrap { margin: 12px 24px; }
}
@media (min-width: 1024px) {
  .main-wrap { max-width: 960px; margin: 0 auto; }
  .slider-wrap { height: 450px; }
  .gallery-grid { grid-template-columns: repeat(5,1fr); }

  /* Swap mobile bottom app-nav -> proper desktop top navbar */
  .bottom-nav-wrap { display: none; }
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .desktop-nav { display: flex; justify-self: center; }
  .header-admin-btn { margin-left: 0; justify-self: end; }

  /* No bottom-nav to clear anymore on desktop */
  .section-panel { padding-bottom: 48px; }
  .floating-buttons { bottom: 28px !important; }
}
@media (min-width: 1440px) {
  /* Extra breathing room on very wide screens (1920x1080 etc.) */
  .site-header { padding-top: 14px; padding-bottom: 14px; }
  .desktop-nav-item { padding: 10px 20px; font-size: 13.5px; }
  .header-name { font-size: 1.25rem; }
}
@media (min-width: 1280px) {
  .site-header { padding-left: 48px; padding-right: 48px; }
}

/* ═══════════════════════════
   CALENDAR — Today label & number fixes
   ═══════════════════════════ */

/* Cal day inner structure — flex column for number + today label */
.cal-day {
  flex-direction: column !important;
  gap: 1px;
  line-height: 1;
  padding: 2px 0;
}

.cal-num {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

/* "hari ini" text under the date number */
.cal-today-label {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--purple);
  text-transform: lowercase;
  line-height: 1;
  opacity: .85;
}

/* Today ring — make it taller to accommodate the label */
.cal-day.today {
  border: 2px solid var(--purple-light);
  font-weight: 700;
  color: var(--purple);
  aspect-ratio: unset !important;
  min-height: 36px;
  border-radius: 12px !important;
}

/* Keep selected today looking right */
.cal-day.today.selected .cal-today-label { color: rgba(255,255,255,.85); }
.cal-day.today.selected { border-color: transparent; }

/* Booked days — emoji icon centred */
.cal-day.booked .cal-num { font-size: 14px; }

/* Ensure past days render the number */
.cal-day.past .cal-num { font-size: 12px; }

/* ── Cal day aspect-ratio override for all cells (accommodate today label) ── */
.cal-grid .cal-day {
  aspect-ratio: unset;
  min-height: 34px;
  height: 34px;
}
.cal-grid .cal-day.today {
  height: auto;
  min-height: 38px;
}


/* ── Checkout Boundary ──────────────────────────────────────────
   First booked date after a selected check-in.
   Customer can use this as their check-out (morning departure).
   Shows as pink dashed border — distinct from fully locked (red). */
.cal-day.checkout-boundary {
  background: linear-gradient(135deg, rgba(244,114,182,.15), rgba(236,72,153,.08));
  border: 2px dashed rgba(236,72,153,.55);
  color: #be185d;
  font-weight: 700;
  cursor: pointer;
}
.cal-day.checkout-boundary:hover {
  background: rgba(236,72,153,.22);
  border-color: var(--pink);
  transform: scale(1.08);
}
/* When checkout-boundary is also selected as range-end */
.cal-day.checkout-boundary.selected {
  background: var(--grad-2);
  color: white;
  border: none;
}

/* ═══════════════════════════════════════════
   TESTIMONIAL / FEEDBACK CAROUSEL
   WhatsApp-style conversation bubbles
   ═══════════════════════════════════════════ */

.testimonial-section {
  margin: 14px 0 4px;
  overflow: hidden;
}

/* Header row */
.testi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.testi-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.testi-sub {
  font-size: 11px;
  color: var(--purple-light);
  margin-top: 2px;
  font-weight: 500;
}
.testi-rating-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(245,243,255,.9);
  border: 1.5px solid rgba(167,139,250,.3);
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.testi-star   { color: #f59e0b; font-size: 14px; }
.testi-score  { font-size: 14px; font-weight: 800; color: var(--purple); }
.testi-count  { font-size: 10px; color: #9ca3af; font-weight: 500; }

/* Viewport — horizontal scroll container */
.testi-viewport {
  overflow: hidden;
  padding: 4px 0 8px;
}

.testi-track {
  display: flex;
  gap: 12px;
  padding: 0 16px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Individual card */
.testi-card {
  flex: 0 0 calc(100% - 32px);
  min-width: 0;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 4px 20px rgba(124,58,237,.10),
    0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow 0.2s;
}

/* WA-style top bar */
.testi-wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
  background: linear-gradient(135deg, rgba(37,211,102,.08), rgba(37,211,102,.03));
  border-bottom: 1px solid rgba(37,211,102,.15);
}
.testi-wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.testi-wa-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e1b4b;
  line-height: 1.2;
}
.testi-wa-online {
  font-size: 10px;
  color: #25D366;
  font-weight: 500;
  margin-top: 2px;
}
.testi-wa-logo {
  margin-left: auto;
  opacity: 0.7;
}

/* WA screenshot image (when using real screenshots) */
.testi-wa-img {
  width: 100%;
  display: block;
  max-height: 220px;
  object-fit: cover;
  object-position: top;
}

/* Chat bubble */
.testi-wa-bubble {
  margin: 10px 14px 8px;
  background: white;
  border-radius: 4px 18px 18px 18px;
  padding: 12px 14px 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  position: relative;
}
.testi-wa-bubble::before {
  content: '';
  position: absolute;
  top: 0; left: -8px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 10px 10px 0;
  border-color: transparent white transparent transparent;
}

.testi-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.testi-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.65;
  font-weight: 400;
}

.testi-timestamp {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 6px;
  font-size: 10px;
  color: #9ca3af;
}
.testi-timestamp span:first-child {
  color: #60a5fa; /* WA blue double tick */
  font-size: 11px;
}

/* Stay badge */
.testi-stay-badge {
  margin: 0 14px 12px;
  background: linear-gradient(135deg, rgba(167,139,250,.12), rgba(236,72,153,.07));
  border: 1px solid rgba(167,139,250,.25);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: .02em;
}

/* Dots */
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 4px 0 6px;
}
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(167,139,250,.3);
  cursor: pointer;
  transition: all 0.3s;
}
.testi-dot.active {
  background: var(--purple);
  width: 20px;
  border-radius: 4px;
}

/* Touch/drag cursor */
.testi-viewport { cursor: grab; overflow: hidden; }
.testi-viewport.dragging { cursor: grabbing; }

/* Desktop: show 2 cards side by side */
@media (min-width: 640px) {
  .testi-card { flex: 0 0 calc(50% - 22px); }
}
@media (min-width: 1024px) {
  .testi-card { flex: 0 0 calc(33.333% - 20px); }
}

/* ═══════════════════════════════════════════════════
   SMOOTH SCROLL PERFORMANCE — MOBILE OPTIMISATION
   ═══════════════════════════════════════════════════ */

/* All scrollable containers — native momentum scroll */
html, body {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Prevent accidental horizontal scroll while vertical scrolling */
.main-wrap {
  touch-action: pan-y;
  overscroll-behavior-x: none;
}

/* Cards — contain paint, reduce repaint area */
.glass-card,
.info-card,
.cal-card,
.form-card,
.trace-card,
.feature-card,
.testi-card,
.rating-card {
  /* Remove heavy blur on mobile — replaced with semi-opaque background */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(255,255,255,.88);
}

/* Floating buttons — see main definition above */

/* Images */
img {
  image-rendering: auto;
}

/* Gallery items — contained */
.gallery-item {
  /* No contain/transform on gallery items */
}
.gallery-item img {
  will-change: transform;
}

/* Slider — GPU layer */
.slider-wrap {
  /* No transform/contain on slider wrapper */
}
.slide {
  will-change: opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Testimonial track — GPU accelerated */
.testi-track {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Bottom nav wrap — fixed positioning is enough */
.bottom-nav-wrap {
  /* touch-action: none prevents scroll interference */
  touch-action: none;
}

/* Header — sticky, no transform needed */

/* ── On desktop: restore blur effects (only disabled on mobile above) ── */
@media (min-width: 768px) {
  .glass-card,
  .info-card,
  .cal-card,
  .form-card,
  .trace-card,
  .feature-card,
  .testi-card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255,255,255,.72);
  }

  .site-header {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255,255,255,.88);
  }

  .bottom-nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255,255,255,.94);
  }
}

/* ── Reduce motion for users who prefer it ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .testi-track {
    transition: none !important;
  }
}

/* ── iOS Safari specific smooth scroll fix ── */
@supports (-webkit-touch-callout: none) {
  body {
    /* iOS Safari — enable hardware acceleration */
    -webkit-overflow-scrolling: touch;
  }
  /* section-panel: no transform — would break fixed nav on iOS */
}

/* ═══════════════════════════════════════════════
   SECURITY — Anti-copy & Fixed element guarantee
   ═══════════════════════════════════════════════ */

/* Disable text selection globally */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Re-enable selection in form inputs only */
input, textarea, select,
.form-input, #trace-ref, #input-voucher,
#input-name, #input-phone {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
}

/* Disable image drag */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none; /* also blocks right-click on images */
}
/* But allow gallery click events */
.gallery-item, .gallery-item img {
  pointer-events: all;
}

.main-wrap {
  overflow-x: hidden;
  /* NO transform/contain — must not create stacking context */
}

/* ── Z-index hierarchy (nothing creates stacking context above body) ──
   RULE: Never put transform/will-change/contain on body, html, main-wrap,
         section-panel, or any ancestor of fixed elements.
   #loading-screen : 99999  (top of everything)
   .result-modal   : 50000
   .lightbox       : 40000
   .toast          : 30000
   .floating-buttons: 9001
   .bottom-nav-wrap : 9000
   .site-header     : 100   (sticky, not fixed)
*/
#loading-screen    { z-index: 99999 !important; }
.result-modal      { z-index: 50000 !important; }
.lightbox          { z-index: 40000 !important; }
.toast             { z-index: 30000 !important; }
.floating-buttons  { z-index:  9001 !important; }
.bottom-nav-wrap   { z-index:  9000 !important; }
