/* =========================================================
   NATIVE iOS SAFARI PULL-TO-REFRESH RESTORE - 2026-05-16
   Restores document-level scrolling so Safari can expose its
   native pull-down refresh gesture, while preserving the sticky
   app header and existing modal overlays.
========================================================= */

html,
body {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
}

body {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  padding-bottom: env(safe-area-inset-bottom) !important;
}

#app.app-shell {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  height: auto !important;
  display: block !important;
  overflow: visible !important;
  background: var(--paper);
}

#app.app-shell > .app-header {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  z-index: 1000 !important;
  transform: translateZ(0);
}

#app.app-shell > .main {
  overflow: visible !important;
  min-height: auto !important;
  height: auto !important;
  -webkit-overflow-scrolling: auto !important;
  overscroll-behavior-y: auto !important;
}

.detail-backdrop,
.trip-map-backdrop,
.nearby-concierge-backdrop,
.tier1-backdrop {
  position: fixed !important;
  inset: 0 !important;
}
