/* Public scroll smoothness hardening. Keep scrolling stable and avoid motion that can feel like jitter. */
html {
  scroll-behavior: auto;
  overflow-x: hidden;
}

body {
  overflow-x: visible;
  overscroll-behavior-y: auto;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

.site-header {
  transform: none !important;
  backface-visibility: visible !important;
  will-change: auto !important;
}

.site-header.site-header-desktop,
.site-header.site-header-mobile {
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.08) !important;
}

.hero-media-img,
.header-support-links a.hero-support-link {
  transform: none !important;
  will-change: auto !important;
}

html.js .reveal,
html.js .reveal.is-visible,
html.js .why-book.reveal .why-book__card,
html.js .why-book.reveal.is-visible .why-book__card {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

.site-trust-section .tbar::after,
.site-trust-section .tbar-cell,
.trust-badge {
  animation: none !important;
}

@media (max-width: 900px), (pointer: coarse) {
  .site-header,
  .home-category-card,
  .home-event-card,
  .event-row-card,
  .destination-tile,
  .explore-city-card,
  .platform-review-card,
  .why-book__card,
  .site-trust-section .tbar,
  .site-trust-section .tbar-cell {
    transform: none !important;
    backface-visibility: visible !important;
    will-change: auto !important;
  }

  .site-header.site-header-desktop,
  .site-header.site-header-mobile {
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.08) !important;
  }

  .home-category-card:hover,
  .home-event-card:hover,
  .event-row-card:hover,
  .destination-tile:hover,
  .explore-city-card:hover,
  .platform-review-card:hover,
  .why-book__card:hover,
  .site-trust-section .tbar-cell:hover {
    transform: none !important;
  }

  .card-icon,
  .event-showcase-count,
  .tv-cart-backdrop,
  .tv-lightbox {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .chat-widget-loader-toggle,
  .chat-toggle,
  .header-support-links a.hero-support-link {
    transform: none !important;
    transition: box-shadow 120ms ease, background-color 120ms ease, opacity 120ms ease !important;
    will-change: auto !important;
  }

  .chat-widget-loader-toggle:hover,
  .chat-toggle:hover,
  .header-support-links a.hero-support-link:hover {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
