/* APD 226 — fast/persistent mobile Lugar across Alojamientos/Experiencias/Servicios */
@media (max-width: 767px) {
  /* APD 213 used to intentionally hide destination suggestions in the two
     non-stay contexts. APD 226 gives all three tabs the same Lugar step. */
  html body.apd226-mobile-destination.apd186-search-modal-open .apd186-search-portal #apd5-search[data-active-panel="location"][data-context="experiences"] .apd26-destination-section-title:not([hidden]),
  html body.apd226-mobile-destination.apd186-search-modal-open .apd186-search-portal #apd5-search[data-active-panel="location"][data-context="services"] .apd26-destination-section-title:not([hidden]) {
    display: block !important;
  }

  html body.apd226-mobile-destination.apd186-search-modal-open .apd186-search-portal #apd5-search[data-active-panel="location"][data-context="experiences"] #apd5-destination-list:not([hidden]),
  html body.apd226-mobile-destination.apd186-search-modal-open .apd186-search-portal #apd5-search[data-active-panel="location"][data-context="services"] #apd5-destination-list:not([hidden]),
  html body.apd226-mobile-destination.apd186-search-modal-open .apd186-search-portal #apd5-search[data-active-panel="location"][data-context="experiences"] #apd26-recent-destinations:not([hidden]),
  html body.apd226-mobile-destination.apd186-search-modal-open .apd186-search-portal #apd5-search[data-active-panel="location"][data-context="services"] #apd26-recent-destinations:not([hidden]) {
    display: block !important;
  }

  html body.apd226-mobile-destination.apd186-search-modal-open .apd186-search-portal #apd5-search[data-active-panel="location"][data-context="experiences"] [data-nearby]:not([hidden]),
  html body.apd226-mobile-destination.apd186-search-modal-open .apd186-search-portal #apd5-search[data-active-panel="location"][data-context="services"] [data-nearby]:not([hidden]) {
    display: grid !important;
  }

  /* While typing, the single APD 226 results stack is authoritative in all
     contexts. This overrides the static parity rules above without layout jump. */
  html body.apd226-mobile-destination.apd219-location-typing .apd186-search-portal #apd5-search .apd26-destination-section-title,
  html body.apd226-mobile-destination.apd219-location-typing .apd186-search-portal #apd5-search [data-nearby],
  html body.apd226-mobile-destination.apd219-location-typing .apd186-search-portal #apd5-search #apd5-destination-list,
  html body.apd226-mobile-destination.apd219-location-typing .apd186-search-portal #apd5-search #apd26-recent-destinations {
    display: none !important;
  }

  html body.apd226-mobile-destination .apd186-search-portal #apd5-search .apd226-smart-results {
    contain: layout style;
  }

  html body.apd226-mobile-destination .apd186-search-portal #apd5-search .apd226-status {
    min-height: 54px;
    display: flex;
    align-items: center;
  }

  /* The selected place always wins in the collapsed Lugar row. */
  html body.apd226-mobile-destination .apd186-search-portal #apd5-search [data-search-field="location"].apd226-has-location .apd223-location-value,
  html body.apd226-mobile-destination .apd186-search-portal #apd5-search [data-search-field="location"].apd223-has-location .apd223-location-value {
    display: block !important;
  }
}
