/**
 * BandstandHub — iOS WKWebView / iPad touch fixes (all site pages).
 * Loaded from footer.php; active when html.bsh-ios-wk is set.
 */

/* Blockers from legacy header/footer */
html.bsh-ios-wk .preloader-bg,
html.bsh-ios-wk #preloader {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

html.bsh-ios-wk #overlay:not(.bsh-force-show) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.bsh-ios-wk .popupevent-recomendpop,
html.bsh-ios-wk .popupevent-recomendpop2 {
  box-shadow: none !important;
}

/* Off-screen fixed nav drawer still hit-tests on iPad WKWebView */
@media screen and (max-width: 992px) {
  html.bsh-ios-wk navigation.sticky2 #check:not(:checked) ~ ul,
  html.bsh-ios-wk navigation.sticky2 #check:not(:checked) ~ ul.homebtnmenuehover,
  html.bsh-ios-wk navigation.sticky2 #check:not(:checked) ~ .homebtnmenuehover {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    left: auto !important;
    width: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    z-index: -1 !important;
    opacity: 0 !important;
    clip-path: inset(100%) !important;
    box-shadow: none !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 1366px) {
  html.bsh-ios-wk navigation.sticky2 #check:not(:checked) ~ ul.homebtnmenuehover,
  html.bsh-ios-wk navigation.sticky2 #check:not(:checked) ~ .homebtnmenuehover {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    z-index: -1 !important;
    clip-path: inset(100%) !important;
  }
}

html.bsh-ios-wk navigation.sticky2 ul.homebtnmenuehover[hidden] {
  display: none !important;
  pointer-events: none !important;
}

/* Sticky header scroll class causes overlay bugs */
html.bsh-ios-wk navigation.sticky2.fixed2 {
  position: relative !important;
  top: auto !important;
  z-index: auto !important;
}

html.bsh-ios-wk .sticky-placeholder {
  display: none !important;
  height: 0 !important;
}

/* Interactive targets — dashboard, profile, wocms pages */
html.bsh-ios-wk a,
html.bsh-ios-wk button,
html.bsh-ios-wk input,
html.bsh-ios-wk select,
html.bsh-ios-wk textarea,
html.bsh-ios-wk label,
html.bsh-ios-wk [role="button"],
html.bsh-ios-wk .btn,
html.bsh-ios-wk .nav-link,
html.bsh-ios-wk [onclick],
html.bsh-ios-wk input[type="file"] + label,
html.bsh-ios-wk .file-upload,
html.bsh-ios-wk .upload-btn {
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: rgba(16, 175, 239, 0.25);
  pointer-events: auto !important;
  cursor: pointer;
}

html.bsh-ios-wk input[type="file"] {
  touch-action: manipulation !important;
  pointer-events: auto !important;
}

/* In-app shell: dark page + transparent site header behind JOIN US / LOG IN */
html.bsh-ios-wk.bsh-native-app-shell body.bsh-home-page {
  background: #000 !important;
}

html.bsh-ios-wk.bsh-native-app-shell body.bsh-home-page > .container-fluid,
html.bsh-ios-wk.bsh-native-app-shell body.bsh-home-page > .container-fluid > .row,
html.bsh-ios-wk.bsh-native-app-shell body.bsh-home-page > .container-fluid > .row > [class*="col-"] {
  background: transparent !important;
}

html.bsh-ios-wk.bsh-native-app-shell body.bsh-home-page .btnresponsiveclass,
html.bsh-ios-wk.bsh-native-app-shell body.bsh-home-page .regbtnh,
html.bsh-ios-wk.bsh-native-app-shell body.bsh-home-page .signinbtnh {
  background: transparent !important;
}

/* Full-screen invisible layers that block taps */
html.bsh-ios-wk .bsh-ios-blocker-killed {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
