/* BAXARA Hybrid Navigation 3.3.1 — mobile search reliability fix */
.baxara-mobile-search-panel {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}

.baxara-mobile-search-panel.is-open {
  display: flex;
  pointer-events: auto;
}

.baxara-mobile-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 31, 58, .58);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.baxara-mobile-search-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: min(82vh, 720px);
  overflow: visible;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 50px rgba(2, 31, 58, .22);
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
}

.baxara-mobile-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: #062f57;
}

.baxara-mobile-search-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #062f57;
  font: inherit;
  font-size: 30px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}

.baxara-mobile-search-form {
  position: relative;
  z-index: 2;
}

.baxara-mobile-search-form form {
  position: relative;
  margin: 0;
}

.baxara-mobile-search-form input[type="search"],
.baxara-mobile-search-form input[name="s"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  border: 1px solid #cdd9e5;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 16px; /* prevents iOS auto zoom */
}

.baxara-mobile-search-form .bx-smart-results {
  z-index: 9999999;
  max-height: min(46vh, 390px);
}

.baxara-mobile-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.baxara-mobile-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d8e2eb;
  border-radius: 999px;
  color: #062f57;
  text-decoration: none;
  background: #fff;
}

html.baxara-mobile-search-open,
body.baxara-mobile-search-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.baxara-mobile-search-trigger {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 769px) {
  .baxara-mobile-search-panel {
    display: none !important;
  }
}
