/**
 * APD 387 — Mobile-search foundation.
 * Only global typography, page background, generic card geometry and native-control retirement live here.
 * Location, dates, guests, services, tabs, summaries and footer are owned by their dedicated modules.
 */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical,
  html body.apd380-mobile-search-canonical button,
  html body.apd380-mobile-search-canonical input,
  html body.apd380-mobile-search-canonical output {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open,
  html body.apd380-mobile-search-canonical.apd5-search-open {
    background: #f7f7f7 !important;
    overflow: hidden !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open .apd10-mobile-nav,
  html body.apd380-mobile-search-canonical.apd5-search-open .apd10-mobile-nav {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search::-webkit-scrollbar {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search :is(
    .apd10-mobile-search-trigger,
    .apd5-search-submit,
    .apd5-search-separator,
    [data-panel-close],
    .apd5-panel-footer,
    .apd16-guests-reset,
    .apd26-field-clear,
    .apd28-date-clear,
    .apd16-search-clear
  ) {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-panel] {
    box-sizing: border-box !important;
    position: relative !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 29px !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.075) !important;
    overflow: hidden !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-panel][hidden] {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-panel-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-panel-title strong {
    color: #222 !important;
    font-size: 30px !important;
    line-height: 1.04 !important;
    font-weight: 700 !important;
    letter-spacing: -.045em !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-panel-title small {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd370-fallback-recent > span:first-child,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd328-recent-icon {
    background: #fff2f4 !important;
    color: #e94f70 !important;
  }
}
