/* v4.11.0 — Smoothness layer: instant taps, GPU-only motion, skip off-screen work, respect reduced motion. */

/* Instant taps: no 300 ms double-tap wait, no grey flash */
a, button, summary, label, [role="button"], input[type="checkbox"], input[type="radio"], select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* Press feedback that feels native (transform only — runs on the compositor) */
:where(.tx-book, .sx-ab, .sx-wr, .s3-pick, .tv4-hbtn, .htl-fav, .sv4-ab, .thp-report, .s3-tog button, .s3-seg button):active { transform: scale(.97); }
:where(.tx-book, .sx-ab, .sx-wr, .s3-pick, .tv4-hbtn, .htl-fav, .sv4-ab, .s3-tog button, .s3-seg button) { transition: transform .12s cubic-bezier(.2,.8,.2,1), background-color .15s, border-color .15s, color .15s; }

/* "transition: all" animates layout properties and stutters — limit it to cheap ones */
.ar-filter, .ar-chip, .th-chip, .th-tab, .th-filter-btn, .th-view-btn, .cl-btn, .sv4-lu, .td-chip, .td-btn { transition-property: color, background-color, border-color, opacity, transform, box-shadow !important; }

/* Skip rendering work for long sections until they come near the screen */
@supports (content-visibility: auto) {
  .site-footer, #site-footer, footer.ht-footer,
  .sv4-rate, .htqa, .ht-qa, #ht-qa,
  .th-gallery, .th-section.th-reviews, #th-tab-reviews, .th-nearby, .th-related {
    content-visibility: auto; contain-intrinsic-size: auto 700px;
  }
}

/* Horizontal scrollers: momentum + snapping, never fight the page scroll */
.tb-chips, .sx-tabs, .hm-row, .v4-row, .gr-feed, .th-chips { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }

/* Live blur is the most expensive effect while scrolling on phones: keep it only where nothing scrolls beneath */
@media (max-width: 759px) and (pointer: coarse) {
  .sx-back, .sx-cr, .sx-rt, .s3-glass, .mh-bc, .mh-cr { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .sx-back, .sx-cr, .s3-glass { background: rgba(10, 10, 12, .78) !important; }
  .sx-rt { background: rgba(40, 28, 10, .82) !important; }
}

/* People who ask for less motion get none */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
