/* ═════════════════════════════════════════════════════════
   PERFORMANCE OVERRIDES — Casa Escondida Anilao
   Disables decorative continuous animations to improve
   smoothness, battery life, and GPU usage on all devices.
   Loaded LAST so it wins the cascade.
   ═════════════════════════════════════════════════════════ */

/* ── 1. HIDE decorative ambient elements (DOM still there, but invisible) ── */
.orb-layer,
.orb,
.hero-bubbles,
.hb,
.h-ray {
  display: none !important;
  visibility: hidden !important;
}

/* ── 2. KILL all continuous text/icon shimmer animations ── */
.dv-h1 em,
.hero-h1 em,
.sec-title em {
  animation: none !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--accent) !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
}

/* ── 3. KILL specific looping decorative animations ── */
[class*="diver"],
[class*="aura"],
.eyebrow::before,
.eyebrow::after,
.ap-badge,
.marq,
.marquee-track,
.btn-book::after,
.dv-btn-primary::after,
.pkg-cta::after {
  animation: none !important;
}

/* ── 4. KILL pulse / ping / glow loops ── */
.pulse-dot,
.live-dot,
[class*="pulse"],
[class*="ping"] {
  animation: none !important;
}

/* ── 5. KILL progress bar shimmer ── */
.rb-fill::after,
.progress-shimmer {
  animation: none !important;
}

/* ── 6. REMOVE background-attachment:fixed (causes scroll jank) ── */
html, body, [data-theme="night"], [data-theme="day"], .pad, .hero, .pg, section {
  background-attachment: scroll !important;
}

/* ── 6b. REMOVE only document-level (html/body) background image ── */
/* Hero / booking / photo backgrounds are intentionally kept. */
html, body,
[data-theme="night"]:not(.r-hero):not(.dv-hero):not(.loc-hero):not(.hero):not([class*="-hero"]),
[data-theme="day"]:not(.r-hero):not(.dv-hero):not(.loc-hero):not(.hero):not([class*="-hero"]) {
  background-image: none !important;
}
/* The above pattern means: only kill background-image when the theme attr
   is on the root html/body — not when applied to hero sections themselves. */

/* ── 7. REDUCE backdrop-filter to NAV ONLY (keeps premium nav blur,
       removes GPU-expensive blur from cards and panels) ── */
.card, .svc-card, .rm-card, .rv-card, .di-stat, .di-card,
.bf-info, .bf-thumb, .ap-cta, .ap-toc, .tip-box,
.gal-card, .blog-card, .reviews-card,
.b-form, .booking-form, .filter-bar,
.foot-grid, .foot-bottom, footer.site-footer {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Keep blur on these (premium feel, low cost): */
/* #nav, .mobile-nav, .lb, .modal, .eco-modal — untouched */

/* ── 8. RESPECT prefers-reduced-motion (accessibility) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── 9. Image entrance: keep the fade-in but no extra effects ── */
img { animation: none !important; }

/* ── 10. Hero subtle entrance allowed once via .heroIn (no loop) ── */
.dv-eyebrow, .dv-h1, .dv-sub, .dv-hero-btns, .dv-hero-stats {
  /* Keep entrance fade (runs once via 'forwards') */
}
