/* apd394-search-foundation */
/**
 * 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;
  }
}

/* apd394-search-form-reset */
/**
 * APD 387 — Homey/desktop geometry isolation.
 * Sole responsibility: neutralize inherited desktop positioning. Shell sizing/padding is owned by 05-modal-shell.css.
 */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open .apd186-search-portal > #apd5-search,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open .apd186-search-portal > #apd5-search.apd176-ready,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open .apd186-search-portal > form#apd5-search.apd5-search {
    box-sizing: border-box !important;
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    float: none !important;
    clear: both !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    clip-path: none !important;
    mask: none !important;
    -webkit-mask: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    isolation: isolate !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open .apd186-search-portal > #apd5-search::before,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open .apd186-search-portal > #apd5-search::after {
    content: none !important;
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-field],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-panel] {
    box-sizing: border-box !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    float: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    translate: none !important;
    clip-path: none !important;
    mask: none !important;
    -webkit-mask: none !important;
  }

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

/* apd394-search-modal-shell */
/**
 * APD 409 — Modal shell structure with Safari chrome-safe scroll viewport.
 *
 * Sole responsibility: create the fixed iPhone/Safari search viewport.
 * No card/calendar/location/guest/service visuals live here.
 */
@media (max-width: 767px) {
  html.apd186-search-lock,
  html.apd186-search-lock body,
  html body.apd186-search-modal-open {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  html body.apd186-search-modal-open {
    overflow-y: hidden !important;
    overscroll-behavior: none !important;
  }

  html body.apd186-search-modal-open #apd5-header {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html body.apd186-search-modal-open #apd5-search-backdrop,
  html body.apd186-search-modal-open .apd176-search-close,
  html body.apd186-search-modal-open .apd10-mobile-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .apd186-search-topbar[hidden],
  .apd186-search-portal[hidden] {
    display: none !important;
  }

  html body .apd186-search-topbar {
    box-sizing: border-box !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2147483000 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html body .apd186-search-close {
    box-sizing: border-box !important;
    position: absolute !important;
    z-index: 2 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  html body .apd186-search-portal {
    box-sizing: border-box !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    z-index: 2147482000 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: var(--apd186-shell-height, 100dvh) !important;
    min-height: var(--apd186-shell-height, 100dvh) !important;
    overflow: hidden !important;
    background: #f7f7f7 !important;
    transform: translate3d(0,0,0) !important;
    contain: layout paint !important;
  }

  html body.apd186-search-modal-open .apd186-search-portal #apd5-search,
  html body.apd186-search-modal-open .apd186-search-portal #apd5-search.apd176-ready {
    box-sizing: border-box !important;
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: calc(var(--apd186-shell-height, 100dvh) - 80px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 12px calc(112px + env(safe-area-inset-bottom, 0px)) !important;
    background: #f7f7f7 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: auto !important;
    overscroll-behavior: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0,0,0) !important;
  }

  /* APD409: when Safari expands/collapses its bottom toolbar, 100dvh follows
     the actually visible viewport while --apd186-shell-height intentionally
     remains stable. Keep the scrollable form above the fixed action footer.
     During keyboard entry we retain the proven locked height to avoid a sheet
     jump while iOS animates the keyboard. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open:not(.apd186-keyboard-open)
  .apd186-search-portal #apd5-search,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open:not(.apd186-keyboard-open)
  .apd186-search-portal #apd5-search.apd176-ready {
    height: calc(100dvh - 80px) !important;
    max-height: calc(100dvh - 80px) !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search > [data-search-field="guests"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search > [data-search-field="service"] {
    scroll-margin-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* apd394-search-shell-tabs */
/**
 * APD 387 — Search header / category tabs / close button.
 * Single owner for the top chrome. No panel/card rules live here.
 */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical .apd186-search-topbar {
    box-sizing: border-box !important;
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    z-index: 2147483000 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    width: 100% !important;
    height: 80px !important;
    padding: 4px 52px 0 !important;
    background: #f7f7f7 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body.apd380-mobile-search-canonical .apd186-search-topbar[hidden] {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical .apd186-search-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: end !important;
    gap: 5px !important;
    width: min(330px, calc(100vw - 82px)) !important;
    height: 78px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }

  html body.apd380-mobile-search-canonical .apd186-search-tab {
    box-sizing: border-box !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 2px !important;
    min-width: 0 !important;
    height: 76px !important;
    margin: 0 !important;
    padding: 0 0 5px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #717171 !important;
    font-size: 15px !important;
    line-height: 18px !important;
    font-weight: 500 !important;
    letter-spacing: -.025em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  /* APD387 — use the exact APD discovery icons already present in the main header.
     The modal shell clones those spans/SVGs, so there is no emoji replacement layer. */
  html body.apd380-mobile-search-canonical .apd186-search-tab::before {
    content: none !important;
    display: none !important;
  }

  html body.apd380-mobile-search-canonical .apd186-search-tab .apd380-tab-icon {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical .apd186-search-tab > span:not(.apd380-tab-icon) {
    display: grid !important;
    place-items: center !important;
    width: 32px !important;
    height: 30px !important;
    margin: 0 0 2px !important;
    color: inherit !important;
    overflow: visible !important;
  }

  html body.apd380-mobile-search-canonical .apd186-search-tab > span:not(.apd380-tab-icon) .apd15-nav-svg {
    display: block !important;
    width: 31px !important;
    height: 31px !important;
    max-width: none !important;
  }

  html body.apd380-mobile-search-canonical .apd186-search-tab strong {
    font: inherit !important;
  }

  html body.apd380-mobile-search-canonical .apd186-search-tab:is(.is-active,[aria-current="page"],[aria-selected="true"]) {
    color: #222 !important;
    font-weight: 650 !important;
  }

  html body.apd380-mobile-search-canonical .apd186-search-tab::after {
    content: "" !important;
    position: absolute !important;
    left: 17% !important;
    right: 17% !important;
    bottom: 0 !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: transparent !important;
  }

  html body.apd380-mobile-search-canonical .apd186-search-tab:is(.is-active,[aria-current="page"],[aria-selected="true"])::after {
    background: #222 !important;
  }

  html body.apd380-mobile-search-canonical .apd186-search-close {
    box-sizing: border-box !important;
    position: absolute !important;
    top: 24px !important;
    right: 18px !important;
    z-index: 4 !important;
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #222 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #222 !important;
    box-shadow: 0 3px 9px rgba(0,0,0,.06) !important;
    font-size: 0 !important;
  }

  html body.apd380-mobile-search-canonical .apd186-search-close > span {
    display: block !important;
    font-size: 28px !important;
    line-height: 1 !important;
    font-weight: 300 !important;
    transform: translateY(-1px) !important;
  }

  html body.apd380-mobile-search-canonical .apd186-search-close:is(:active,:focus-visible) {
    border-color: #222 !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.10) !important;
    outline: 0 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open .apd186-search-portal {
    padding-top: 80px !important;
  }
}

/* APD401 — active icon lit/raised; inactive icon muted, matching reference behavior. */
@media (max-width:767px){
html body.apd380-mobile-search-canonical .apd186-search-tab>span:not(.apd380-tab-icon){opacity:.66!important;filter:saturate(.58) brightness(.98)!important;transform:translateY(0) scale(.96)!important;transform-origin:50% 80%!important;transition:opacity 160ms ease,filter 160ms ease,transform 160ms ease!important}
html body.apd380-mobile-search-canonical .apd186-search-tab:is(.is-active,[aria-current="page"],[aria-selected="true"])>span:not(.apd380-tab-icon){opacity:1!important;filter:saturate(1.14) contrast(1.03) brightness(1.02)!important;transform:translateY(-1px) scale(1.045)!important}
html body.apd380-mobile-search-canonical .apd186-search-tab:active>span:not(.apd380-tab-icon){transform:translateY(0) scale(.92)!important}
}

/* apd394-search-summary-fields */
/**
 * APD 404 — collapsed summary rows with native engine summaries as the visible owner.
 *
 * The marketplace native strong nodes are the visible summaries because the base
 * engine already updates them synchronously. APD394 spans remain hidden mirrors.
 */
.apd26-compact-summary,
.apd223-location-value,
.apd328-location-summary,
.apd334-location-summary,
.apd335-location-summary,
.apd336-location-summary,
.apd335-date-summary,
.apd381-summary-value,
[data-apd390-summary-slot],
#apd5-search#apd5-search #apd394-location-summary.apd394-summary-owner,
#apd5-search#apd5-search #apd394-date-summary.apd394-summary-owner {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-field] {
    box-sizing: border-box !important;
    position: relative !important;
    inset: auto !important;
    flex: 0 0 64px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 25px !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.055) !important;
    overflow: hidden !important;
    transform: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-field] > button:first-child {
    box-sizing: border-box !important;
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 25px !important;
    background: #fff !important;
    color: #222 !important;
    text-align: left !important;
    overflow: hidden !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-field] > button:first-child > span:first-child {
    display: block !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    color: #717171 !important;
    font-size: 16.5px !important;
    line-height: 1 !important;
    font-weight: 450 !important;
    letter-spacing: -.01em !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-field] > button:first-child > .apd26-search-leading-icon {
    display: none !important;
  }

  /* Lugar + Fechas: canonical visible owners. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search#apd5-search
  :is(#apd5-location-summary,#apd5-date-summary).apd394-native-summary-mirror {
    box-sizing: border-box !important;
    position: static !important;
    inset: auto !important;
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 72% !important;
    height: auto !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    color: #222 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 16px !important;
    line-height: 1.18 !important;
    font-weight: 650 !important;
    letter-spacing: -.02em !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    pointer-events: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search#apd5-search
  :is(#apd5-location-summary,#apd5-date-summary).apd394-native-summary-mirror:empty {
    display: none !important;
  }

  /* Viajeros / ¿Qué? each keep one native semantic summary. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-field="guests"] > button:first-child > #apd5-guest-summary,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-field="service"] > button:first-child > #apd5-service-summary {
    box-sizing: border-box !important;
    position: static !important;
    display: block !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 72% !important;
    height: auto !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    color: #222 !important;
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 16px !important;
    line-height: 1.18 !important;
    font-weight: 650 !important;
    letter-spacing: -.02em !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    pointer-events: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-field="guests"] > button:first-child > #apd5-guest-summary:empty,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-field="service"] > button:first-child > #apd5-service-summary:empty { display:none !important; }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-field].has-value > button:first-child > :is(#apd5-location-summary,#apd5-date-summary,#apd5-guest-summary,#apd5-service-summary) { color:#222 !important; font-weight:650 !important; }
}

/* apd394-search-location */
/**
 * APD 387 — Dónde panel.
 * Single owner for search box, recent searches, suggestions and expanded location search.
 */
@media (max-width: 767px) {
  /* Base card: exact reference geometry. Context-specific height is defined in 90-context-guards.css. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="location"] > .apd5-location-panel {
    position: relative !important;
    padding: 24px 22px 40px !important;
    border-radius: 30px !important;
    overflow: hidden !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="location"] > .apd5-location-panel > .apd5-panel-title {
    display: flex !important;
    min-height: 34px !important;
    margin: 0 0 18px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="location"] > .apd5-location-panel > .apd5-panel-title strong {
    display: block !important;
  }

  /* Search field. One icon only. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-panel-filter {
    box-sizing: border-box !important;
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 1.2px solid #717171 !important;
    border-radius: 15px !important;
    background: #fff !important;
    color: #222 !important;
    overflow: hidden !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-panel-filter::before,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-panel-filter::after,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-panel-filter input::before,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-panel-filter input::after {
    content: none !important;
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-panel-filter > :is(svg,.apd5-icon):not(.apd380-search-icon) {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd380-search-icon {
    display: block !important;
    position: absolute !important;
    left: 20px !important;
    top: 50% !important;
    z-index: 6 !important;
    width: 22px !important;
    height: 22px !important;
    color: #222 !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-panel-filter input {
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 3 !important;
    display: block !important;
    width: 100% !important;
    height: 58px !important;
    margin: 0 !important;
    padding: 0 48px 0 58px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: #222 !important;
    box-shadow: none !important;
    font-size: 17px !important;
    line-height: 58px !important;
    font-weight: 400 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-panel-filter input::placeholder {
    color: #8a8a8a !important;
    opacity: 1 !important;
  }

  /* Section labels + rows. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search :is(.apd26-recent-destinations > strong,.apd26-recent-title,.apd26-destination-section-title) {
    display: block !important;
    margin: 11px 0 9px !important;
    color: #222 !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    letter-spacing: -.01em !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search #apd26-recent-destination-list,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search #apd5-destination-list,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd226-smart-results {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search :is(.apd26-recent-destination,.apd328-recent-search,.apd5-destination-option,.apd219-smart-option) {
    display: grid !important;
    grid-template-columns: 58px minmax(0,1fr) !important;
    align-items: center !important;
    gap: 13px !important;
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 2px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #222 !important;
    text-align: left !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search :is(.apd26-recent-destination,.apd328-recent-search,.apd5-destination-option,.apd219-smart-option) > span:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 16px !important;
    background: #f2f5fa !important;
    color: #5e88cc !important;
    overflow: hidden !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search :is(.apd26-recent-destination,.apd328-recent-search,.apd5-destination-option,.apd219-smart-option) > span:first-child svg {
    width: 34px !important;
    height: 34px !important;
  }


  /* Reference semantic tints: recent = APD/Airbnb pink; nearby = blue;
     canonical Buenos Aires preview = warm destination orange. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search :is(.apd26-recent-destination,.apd328-recent-search) > span:first-child {
    background: #fff0f3 !important;
    color: #ff385c !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search #apd5-destination-list > .apd372-core-suggestion > span:first-child {
    background: #fff5eb !important;
    color: #e58a2e !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search :is(.apd26-recent-destination,.apd328-recent-search,.apd5-destination-option,.apd219-smart-option) strong {
    display: block !important;
    max-width: 100% !important;
    color: #222 !important;
    font-size: 16px !important;
    line-height: 1.15 !important;
    font-weight: 650 !important;
    letter-spacing: -.016em !important;
    white-space: normal !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search :is(.apd26-recent-destination,.apd328-recent-search,.apd5-destination-option,.apd219-smart-option) small {
    display: block !important;
    margin-top: 3px !important;
    color: #717171 !important;
    font-size: 15px !important;
    line-height: 1.18 !important;
    font-weight: 400 !important;
    letter-spacing: -.01em !important;
    white-space: normal !important;
  }


  /* APD387 — hard reset for destination-row copy. Older Homey/APD styles used
     fixed widths/positioning on the row copy container, which made Buenos Aires
     collapse into a 2–3 character column on iPhone. One grid row now owns the
     icon and one unconstrained copy column. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search
  :is(.apd26-recent-destination,.apd328-recent-search,.apd5-destination-option,.apd219-smart-option)
  > :is(div,span):not(:first-child) {
    box-sizing: border-box !important;
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    overflow: visible !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search
  :is(.apd26-recent-destination,.apd328-recent-search,.apd5-destination-option,.apd219-smart-option)
  :is(strong,small) {
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search
  :is(#apd5-destination-list,#apd26-recent-destination-list,.apd226-smart-results) {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

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

  /* Bottom fade / expand chevron in the compact Dónde card. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd370-location-collapse {
    position: absolute !important;
    left: 22px !important;
    right: 22px !important;
    bottom: 0 !important;
    z-index: 8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-top: 1px solid #ebebeb !important;
    background: linear-gradient(to bottom, rgba(255,255,255,.78), #fff 52%) !important;
    color: #5b5b5b !important;
    font-size: 0 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd370-location-collapse::before {
    content: "" !important;
    width: 9px !important;
    height: 9px !important;
    border-right: 1.8px solid currentColor !important;
    border-bottom: 1.8px solid currentColor !important;
    transform: rotate(45deg) translate(-2px,-2px) !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd370-location-collapse > .apd384-location-chevron {
    display: grid !important;
    place-items: center !important;
    width: 24px !important;
    height: 24px !important;
    color: #5b5b5b !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd370-location-collapse > .apd384-location-chevron svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd370-location-collapse::before {
    display: none !important;
  }

  /* Expanded destination search. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search.apd176-ready {
    height: var(--apd186-shell-height,100dvh) !important;
    padding: 8px 12px calc(26px + env(safe-area-inset-bottom,0px)) !important;
    overflow: hidden !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search > [data-search-field],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search > [data-search-panel]:not(.apd5-location-panel) {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search > .apd5-location-panel {
    height: calc(var(--apd186-shell-height,100dvh) - 104px) !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 14px 22px 24px !important;
    border-radius: 28px 28px 0 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

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

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

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search .apd5-panel-filter {
    height: 60px !important;
    min-height: 60px !important;
    margin: 0 0 16px !important;
    border: 1.45px solid #222 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open .apd328-location-back,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open .apd328-location-clear {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded .apd328-location-back {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    z-index: 8 !important;
    display: grid !important;
    place-items: center !important;
    width: 36px !important;
    height: 42px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #222 !important;
    transform: translateY(-50%) !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded .apd328-location-back svg {
    width: 24px !important;
    height: 24px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded .apd328-location-clear {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    z-index: 8 !important;
    display: grid !important;
    place-items: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #f2f2f2 !important;
    color: #222 !important;
    font-size: 25px !important;
    line-height: 1 !important;
    font-weight: 300 !important;
    transform: translateY(-50%) !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search .apd370-extra-row {
    display: grid !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search .apd370-location-collapse {
    display: none !important;
  }


  /* APD387 — Alojamientos compact Dónde always keeps the reference recent
     block visible when the user is not typing, then shows only En la zona +
     Buenos Aires before the fade/chevron. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open:not(.apd370-location-expanded)
  #apd5-search.apd380-context-stays[data-active-panel="location"] #apd26-recent-destinations:not(.apd384-typing-hidden) {
    display: block !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open:not(.apd370-location-expanded)
  #apd5-search.apd380-context-stays[data-active-panel="location"] #apd5-destination-list > .apd370-extra-row {
    display: none !important;
  }

  /* APD387 — Experiencias/Servicios compact Dónde matches the reference:
     search field + divider + chevron only. Destination rows appear after expand. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open:not(.apd370-location-expanded)
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)[data-active-panel="location"]
  .apd5-location-panel :is(
    #apd26-recent-destinations,
    .apd26-destination-section-title,
    #apd5-destination-list,
    .apd226-smart-results
  ) {
    display: none !important;
  }



  html body.apd380-mobile-search-canonical.apd186-search-modal-open:not(.apd370-location-expanded)
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)[data-active-panel="location"]
  > .apd5-location-panel > .apd5-destination-option.is-nearby {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="location"] > .apd5-location-panel > .apd370-location-collapse {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}


/* APD387 — approved Airbnb-like expanded destination sheet + typing state. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded .apd186-search-topbar {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded .apd186-search-portal {
    padding-top: 0 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search.apd176-ready {
    padding: 10px 0 0 !important;
    background: #f7f7f7 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search > .apd5-location-panel {
    width: 100% !important;
    height: var(--apd186-shell-height,100dvh) !important;
    min-height: var(--apd186-shell-height,100dvh) !important;
    padding: 24px 24px calc(34px + env(safe-area-inset-bottom,0px)) !important;
    border: 0 !important;
    border-radius: 28px 28px 0 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search .apd5-panel-filter {
    height: 58px !important;
    min-height: 58px !important;
    margin-bottom: 16px !important;
    border: 1.5px solid #222 !important;
    border-radius: 14px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search .apd380-search-icon {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search .apd5-panel-filter input {
    height: 58px !important;
    padding: 0 48px 0 56px !important;
    font-size: 17px !important;
    line-height: 58px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded .apd328-location-clear[hidden] {
    display: none !important;
  }

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

  html body.apd380-mobile-search-canonical.apd186-search-modal-open:not(.apd370-location-expanded)
  #apd5-search #apd26-recent-destination-list > .apd370-extra-row {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded
  #apd5-search :is(.apd26-recent-destination,.apd328-recent-search,.apd5-destination-option,.apd219-smart-option) {
    min-height: 66px !important;
    grid-template-columns: 58px minmax(0,1fr) !important;
    gap: 16px !important;
    padding: 4px 0 !important;
  }



  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded
  #apd5-search :is(.apd26-recent-destination,.apd328-recent-search,.apd5-destination-option,.apd219-smart-option)
  > :is(div,span):not(:first-child) {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded
  #apd5-search .apd226-smart-results {
    margin: 4px 0 0 !important;
    padding: 0 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd386-location-typing
  #apd5-search :is(#apd26-recent-destinations,.apd26-destination-section-title,#apd5-destination-list) {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd386-location-typing
  #apd5-search .apd226-smart-results {
    display: block !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd386-location-typing
  #apd5-search .apd226-smart-results .apd219-smart-option > span:first-child {
    background: #f5f5f5 !important;
    color: #222 !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search .apd386-reference-suggestion.apd386-tone-orange > span:first-child {
    background: #fff6ed !important; color: #df8c36 !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search .apd386-reference-suggestion.apd386-tone-blue > span:first-child {
    background: #f1f6fc !important; color: #4c84c6 !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search .apd386-reference-suggestion.apd386-tone-rose > span:first-child {
    background: #fbf5f5 !important; color: #9f6767 !important;
  }

}

/* APD400 — X inside the expanded Lugar editor when a destination is selected. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search .apd5-panel-filter .apd400-location-selection-clear {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    z-index: 12 !important;
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 0 2px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #f2f2f2 !important;
    color: #222 !important;
    font: 300 27px/1 -apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",Arial,sans-serif !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
    -webkit-tap-highlight-color: transparent !important;
    cursor: pointer !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search .apd5-panel-filter .apd400-location-selection-clear[hidden] {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search .apd5-panel-filter input {
    padding-right: 56px !important;
  }
}

/* APD401 — exactly one destination result owner while typing. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open:is(.apd392-location-typing,.apd386-location-typing)
  #apd5-search [data-search-panel="location"] > :is(#apd26-recent-destinations,.apd26-destination-section-title,[data-nearby],#apd5-destination-list) {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open:is(.apd392-location-typing,.apd386-location-typing)
  #apd5-search .apd392-location-results {
    display: block !important;
  }
}

/* APD401 — reusable recent-search cards, matching the reference hierarchy. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd401-real-recent {
    display: grid !important;
    grid-template-columns: 58px minmax(0,1fr) !important;
    align-items: center !important;
    column-gap: 16px !important;
    width: 100% !important;
    min-height: 72px !important;
    padding: 4px 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: left !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd401-real-recent .apd401-recent-icon {
    display: grid !important;
    place-items: center !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 15px !important;
    background: #f2f6fb !important;
    color: #5b8bc7 !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd401-real-recent:nth-child(2n) .apd401-recent-icon {
    background: #fbf6ef !important;
    color: #dc944b !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd401-real-recent .apd401-recent-icon svg {
    width: 32px !important;
    height: 32px !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd401-real-recent div {
    min-width: 0 !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd401-real-recent strong {
    display: block !important;
    color: #222 !important;
    font-size: 16px !important;
    line-height: 1.18 !important;
    font-weight: 650 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd401-real-recent small {
    display: block !important;
    margin-top: 4px !important;
    color: #717171 !important;
    font-size: 14px !important;
    line-height: 1.16 !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}


/* APD 507 — expanded destination editor + services compact parity. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search > [data-search-field],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search > .apd5-search-separator,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded #apd5-search > .apd5-search-submit {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open:not(.apd370-location-expanded)
  #apd5-search.apd380-context-services[data-active-panel="location"] > .apd5-location-panel {
    flex-basis: 370px !important;
    height: 370px !important;
    min-height: 370px !important;
    max-height: 370px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-services[data-active-panel="location"] #apd5-date-summary:empty::before {
    content: "Agregá fechas" !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-services[data-active-panel="location"] #apd5-service-summary:empty::before,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-services[data-active-panel="location"] .apd26-compact-summary[data-summary-for="service"]:empty::before {
    content: "Agregá un servicio" !important;
  }
}

/* apd394-search-dates */
/**
 * APD 404 — Date panels; APD403 geometry preserved with flexible/experience/service parity.
 * Single owner for stays range calendar, flexible mode and single-day experience/service calendar.
 */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="dates"] > .apd5-date-panel {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 22px 20px 0 !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    transform: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="dates"] .apd15-date-panel-heading {
    margin: 0 !important;
  }

  /* Fechas / Flexible segmented control for Alojamientos. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="dates"] .apd15-date-mode {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    margin: 18px 0 12px !important;
    padding: 4px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #ededed !important;
    overflow: hidden !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="dates"] .apd15-date-mode > button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #222 !important;
    box-shadow: none !important;
    font-size: 17px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="dates"] .apd15-date-mode > button:is(.is-active,[aria-selected="true"]) {
    background: #fff !important;
    box-shadow: 0 2px 7px rgba(0,0,0,.12) !important;
  }

  /* APD410 — the exact-date DOM is now shared by all three categories so an
     in-modal category switch never depends on the page that rendered first.
     Alojamientos owns Fechas/Flexible; quick cards remain exclusive to the
     Experiencias/Servicios presentation. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-apd370-context="stays"][data-active-panel="dates"] .apd141-date-shortcuts {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"]
  .apd15-date-view[data-apd-date-view="exact"] {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"]
  .apd15-date-view[data-apd-date-view="flexible"] {
    display: none !important;
  }

  /* APD387 — explicit state contract for iOS. The selected segment and the
     visible view are both driven by the same canonical data attribute. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-apd370-context="stays"][data-active-panel="dates"][data-apd380-date-mode="exact"]
  .apd15-date-view[data-apd-date-view="exact"] {
    display: block !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-apd370-context="stays"][data-active-panel="dates"][data-apd380-date-mode="exact"]
  .apd15-date-view[data-apd-date-view="flexible"] {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-apd370-context="stays"][data-active-panel="dates"][data-apd380-date-mode="flexible"]
  .apd15-date-view[data-apd-date-view="exact"] {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-apd370-context="stays"][data-active-panel="dates"][data-apd380-date-mode="flexible"]
  .apd15-date-view[data-apd-date-view="flexible"] {
    display: block !important;
  }

  /* Shared calendar primitives. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-calendar-nav {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-calendar-months,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search #apd5-calendar-months {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
  }

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

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-calendar-month {
    contain: layout paint style !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
    border: 0 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-calendar-month h3 {
    order: 2 !important;
    margin: 12px 0 12px !important;
    padding: 0 !important;
    color: #222 !important;
    font-size: 20px !important;
    line-height: 1.18 !important;
    font-weight: 650 !important;
    letter-spacing: -.02em !important;
    text-transform: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-calendar-weekdays {
    order: 1 !important;
    display: grid !important;
    grid-template-columns: repeat(7,minmax(0,1fr)) !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-calendar-weekdays span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 28px !important;
    color: #717171 !important;
    font-size: 14.5px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-calendar-days {
    order: 3 !important;
    position: relative !important;
    display: grid !important;
    grid-template-columns: repeat(7,minmax(0,1fr)) !important;
    grid-auto-rows: 42px !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    isolation: isolate !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-calendar-days > span {
    width: 100% !important;
    height: 42px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-calendar-days > button {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #222 !important;
    box-shadow: none !important;
    font-size: 16.5px !important;
    line-height: 1 !important;
    font-weight: 450 !important;
    overflow: visible !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-calendar-days > button[disabled] {
    color: #d0d0d0 !important;
    opacity: 1 !important;
  }

  /* Alojamientos exact range. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-apd370-context="stays"][data-active-panel="dates"] > .apd5-date-panel {
    height: 466px !important;
    min-height: 466px !important;
    max-height: 466px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-apd370-context="stays"][data-active-panel="dates"] .apd15-date-view[data-apd-date-view="exact"] {
    position: static !important;
    display: block !important;
    height: 318px !important;
    min-height: 318px !important;
    padding: 0 0 58px !important;
    overflow: hidden !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-apd370-context="stays"][data-active-panel="dates"] #apd5-calendar-months {
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-apd370-context="stays"] .apd5-calendar-days > button.is-in-range:not(.is-start):not(.is-end) {
    background: #f1f1f1 !important;
    color: #222 !important;
    border-radius: 0 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-apd370-context="stays"] .apd5-calendar-days > button:is(.is-start,.is-end) {
    z-index: 4 !important;
    color: #fff !important;
    background: transparent !important;
    border-radius: 0 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-apd370-context="stays"] .apd5-calendar-days > button:is(.is-start,.is-end)::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    z-index: -1 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #222 !important;
    transform: translate(-50%,-50%) !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-apd370-context="stays"] .apd5-calendar-days > button.is-start:not(.is-end)::before,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-apd370-context="stays"] .apd5-calendar-days > button.is-end:not(.is-start)::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: -2 !important;
    width: 56% !important;
    background: #f1f1f1 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-apd370-context="stays"] .apd5-calendar-days > button.is-start:not(.is-end)::before {
    right: -4px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-apd370-context="stays"] .apd5-calendar-days > button.is-end:not(.is-start)::before {
    left: -4px !important;
  }

  /* Date tolerance rail is permanently visible inside the card. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-apd370-context="stays"][data-active-panel="dates"] .apd15-date-flexibility {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 12 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 8px 22px !important;
    border-top: 1px solid #e7e7e7 !important;
    background: #fff !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

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

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd15-date-flexibility > button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: max-content !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid #d6d6d6 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd15-date-flexibility > button.is-active {
    border: 2px solid #222 !important;
  }

  /* Flexible stays. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-apd370-context="stays"][data-active-panel="dates"] .apd15-date-view[data-apd-date-view="flexible"] {
    display: block !important;
    height: 364px !important;
    min-height: 364px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd15-flexible-section {
    margin: 0 !important;
    padding: 14px 0 16px !important;
    border-top: 1px solid #e8e8e8 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd15-flexible-section h3 {
    margin: 0 0 14px !important;
    color: #222 !important;
    font-size: 18px !important;
    line-height: 1.18 !important;
    font-weight: 650 !important;
    letter-spacing: -.025em !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search :is(.apd15-flexible-duration,.apd15-flex-duration-options) {
    display: grid !important;
    grid-template-columns: 1.35fr .9fr .72fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search :is(.apd15-flexible-duration,.apd15-flex-duration-options) > button {
    min-width: 0 !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search :is(.apd15-flexible-duration,.apd15-flex-duration-options) > button.is-active {
    border: 2px solid #222 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search :is(.apd15-flexible-months,.apd15-flex-months) {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search :is(.apd15-flexible-months,.apd15-flex-months)::-webkit-scrollbar {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search :is(.apd15-flexible-months,.apd15-flex-months) [data-apd-flex-month],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd15-flex-months > button {
    flex: 0 0 31.5% !important;
    min-width: 108px !important;
    height: 112px !important;
    padding: 12px 8px !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 20px !important;
    background: #fff !important;
    color: #222 !important;
    text-align: center !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search [data-apd-flex-month]:is(.is-active,[aria-pressed="true"]) {
    border: 2px solid #222 !important;
  }

  /* Experiences + Services single-day calendar. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"] > .apd5-date-panel {
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
    padding: 24px 22px 18px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"] .apd15-date-mode,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"] .apd15-date-flexibility {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"] .apd141-date-shortcuts {
    display: grid !important;
    grid-template-columns: .86fr 1.08fr 1.72fr !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 20px 0 12px !important;
    padding: 0 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"] .apd141-date-shortcuts > button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 82px !important;
    min-height: 82px !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    border: 1px solid #d8d8d8 !important;
    border-radius: 18px !important;
    background: #fff !important;
    color: #222 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"] .apd141-date-shortcuts > button:is(.is-selected,.is-active,[aria-pressed="true"]) {
    border: 2px solid #222 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"] .apd141-date-shortcuts > button strong {
    display: block !important;
    max-width: 100% !important;
    color: #222 !important;
    font-size: 15px !important;
    line-height: 1.12 !important;
    font-weight: 650 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  /* APD387: subtitle real en el DOM. Evita que Safari muestre las tarjetas
     Hoy / Mañana / Este fin de semana sin la fecha secundaria. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"] .apd141-date-shortcuts > button small {
    display: block !important;
    min-height: 14px !important;
    margin-top: 7px !important;
    color: #717171 !important;
    font-size: 13px !important;
    line-height: 1.05 !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"] .apd141-date-shortcuts > button::after {
    content: none !important;
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"] :is(.apd141-single-date-layout,.apd15-date-view.apd228-experience-exact-view,.apd141-single-calendar,.apd410-shared-calendar) {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"]
  :is(.apd141-single-calendar,.apd410-shared-calendar) {
    border-top: 1px solid #ececec !important;
    padding-top: 10px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"] #apd5-calendar-months {
    height: 278px !important;
    min-height: 278px !important;
    max-height: 278px !important;
    overflow: hidden !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"]) .apd5-calendar-days > button:is(.is-start,.is-end,.is-selected) {
    z-index: 4 !important;
    color: #fff !important;
    background: transparent !important;
    border-radius: 0 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"]) .apd5-calendar-days > button:is(.is-start,.is-end,.is-selected)::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    z-index: -1 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #222 !important;
    transform: translate(-50%,-50%) !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"]) .apd5-calendar-days > button.is-in-range:not(.is-start):not(.is-end):not(.is-selected) {
    background: transparent !important;
  }


  /* APD387 — reference ordering: weekday rail precedes month title. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="dates"] .apd5-calendar-weekdays {
    margin: 0 0 8px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="dates"] .apd5-calendar-month h3 {
    margin: 8px 0 14px !important;
  }

  /* Quick cards: one-line title where possible + guaranteed secondary date. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"]
  .apd141-date-shortcuts > button:nth-child(3) strong {
    white-space: nowrap !important;
    font-size: 14px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"]
  .apd141-date-shortcuts > button small {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* APD401 — future-month scrolling and range rendering in all contexts. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="dates"] #apd5-calendar-months { overflow-y:auto !important; overscroll-behavior-y:contain !important; -webkit-overflow-scrolling:touch !important; touch-action:pan-y !important; scrollbar-width:none !important; }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is(.apd380-context-experiences,.apd380-context-services)[data-active-panel="dates"] #apd5-calendar-months { height:300px !important; min-height:300px !important; max-height:300px !important; overflow-y:auto !important; }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is(.apd380-context-experiences,.apd380-context-services) .apd5-calendar-days > button.is-in-range:not(.is-start):not(.is-end) { background:#f1f1f1 !important; color:#222 !important; border-radius:0 !important; }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is(.apd380-context-experiences,.apd380-context-services) .apd5-calendar-days > button:is(.is-start,.is-end) { position:relative !important; z-index:4 !important; color:#fff !important; background:transparent !important; }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is(.apd380-context-experiences,.apd380-context-services) .apd5-calendar-days > button:is(.is-start,.is-end)::after { content:"" !important; position:absolute !important; left:50% !important; top:50% !important; z-index:-1 !important; width:42px !important; height:42px !important; border-radius:50% !important; background:#222 !important; transform:translate(-50%,-50%) !important; }
}


/* APD403 — iPhone/Safari scroll performance. Visual selection geometry unchanged. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search #apd5-calendar-months {
    scroll-behavior: auto !important;
  }
}


/* APD404 — missing Flexible month cards, range parity and compact non-stay cards. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-apd370-context="stays"][data-active-panel="dates"]
  .apd15-date-view[data-apd-date-view="flexible"] {
    height: 364px !important;
    min-height: 364px !important;
    overflow: hidden !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd15-flexible-months {
    min-height: 120px !important;
    padding: 0 1px 4px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd15-flexible-months > button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd15-flexible-months > button > strong {
    display: block !important;
    margin-top: 4px !important;
    color: #222 !important;
    font-size: 15px !important;
    line-height: 1.05 !important;
    font-weight: 650 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd15-flexible-months > button > small {
    display: block !important;
    color: #222 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 450 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd15-month-calendar {
    box-sizing: border-box !important;
    position: relative !important;
    display: block !important;
    width: 30px !important;
    height: 28px !important;
    border: 2px solid #717171 !important;
    border-radius: 4px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd15-month-calendar::before {
    content: "" !important;
    position: absolute !important;
    left: -2px !important;
    right: -2px !important;
    top: 6px !important;
    height: 2px !important;
    background: #717171 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd15-month-calendar > i {
    position: absolute !important;
    top: -5px !important;
    width: 2px !important;
    height: 7px !important;
    border-radius: 2px !important;
    background: #717171 !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd15-month-calendar > i:first-child { left: 6px !important; }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd15-month-calendar > i:nth-child(2) { right: 6px !important; }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd15-month-calendar > b { display: none !important; }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search [data-apd-flex-month]:is(.is-active,[aria-pressed="true"]) .apd15-month-calendar {
    border-color: #222 !important;
  }

  /* Experiences/Services use the exact same gray bridge under the endpoint circles as Alojamientos. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)
  .apd5-calendar-days > button.is-start:not(.is-end)::before,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)
  .apd5-calendar-days > button.is-end:not(.is-start)::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: -2 !important;
    width: 56% !important;
    background: #f1f1f1 !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)
  .apd5-calendar-days > button.is-start:not(.is-end)::before { right: -4px !important; }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)
  .apd5-calendar-days > button.is-end:not(.is-start)::before { left: -4px !important; }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)[data-active-panel="dates"] > .apd5-date-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 18px !important;
    border-radius: 29px !important;
    overflow: hidden !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)[data-active-panel="dates"] #apd5-calendar-months {
    height: 306px !important;
    min-height: 306px !important;
    max-height: 306px !important;
  }
}

/* APD404 final range bridge override: wins the retired single-day rule without touching stays. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])
  .apd5-calendar-days > button.is-in-range:not(.is-start):not(.is-end):not(.is-selected) {
    background: #f1f1f1 !important;
    color: #222 !important;
    border-radius: 0 !important;
  }
}

/* apd394-search-guests */
/**
 * APD 404 — Guest panel; compact content-height card.
 * Single owner for Adultos / Niños / Bebés / Mascotas rows and counters.
 */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="guests"] > .apd5-guests-panel {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 22px 22px 12px !important;
    border-radius: 29px !important;
    overflow: hidden !important;
    transform: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="guests"] > .apd5-guests-panel > .apd5-panel-title {
    margin-bottom: 10px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-guest-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 9px 0 !important;
    border-bottom: 1px solid #ececec !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-guest-row:last-child {
    border-bottom: 0 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-guest-row strong {
    display: block !important;
    color: #222 !important;
    font-size: 16.5px !important;
    line-height: 1.15 !important;
    font-weight: 650 !important;
    letter-spacing: -.015em !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-guest-row span {
    display: block !important;
    margin-top: 3px !important;
    color: #717171 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-guest-row > div:last-child {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-guest-row [data-counter] {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #b7b7b7 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #222 !important;
    font-size: 25px !important;
    line-height: 1 !important;
    font-weight: 300 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-guest-row [data-counter]:disabled {
    border-color: transparent !important;
    background: #f3f3f3 !important;
    color: #b8b8b8 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd5-guest-row output {
    width: 20px !important;
    min-width: 20px !important;
    color: #222 !important;
    font-size: 17px !important;
    line-height: 1 !important;
    font-weight: 450 !important;
    text-align: center !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search.apd380-context-experiences [data-guest-row="pets"] {
    display: none !important;
  }


  /* APD387 — Experiencias reference shows compact labels only (no age subtitles). */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-experiences[data-active-panel="guests"]
  .apd5-guest-row > div:first-child > span {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-experiences[data-active-panel="guests"]
  .apd5-guest-row {
    min-height: 74px !important;
  }
}


/* APD404 — the card ends after its rows instead of stretching toward the fixed footer. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="guests"] > .apd5-guests-panel {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 18px !important;
    border-radius: 29px !important;
    overflow: hidden !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="guests"] > .apd5-guests-panel > .apd5-panel-footer {
    display: none !important;
  }
}

/* apd394-search-services */
/**
 * APD 404 — Service type selector; compact content-height card.
 * Single owner for the service chips and their icon geometry.
 */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="service"] > .apd5-service-panel {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 22px 20px 20px !important;
    border-radius: 29px !important;
    overflow: hidden !important;
    transform: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd218-service-title {
    display: block !important;
    margin: 0 0 18px !important;
    color: #222 !important;
    font-size: 29px !important;
    line-height: 1.04 !important;
    font-weight: 700 !important;
    letter-spacing: -.04em !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd218-service-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 8px !important;
    width: 100% !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd218-service-option {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #d7d7d7 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #222 !important;
    box-shadow: none !important;
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd218-service-option:is(.is-selected,[aria-pressed="true"]) {
    border: 2px solid #222 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search :is(.apd218-service-icon,.apd218-service-icon svg) {
    width: 19px !important;
    height: 19px !important;
  }
}


/* APD404 — compact rounded service card, independent from viewport/footer height. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="service"] > .apd5-service-panel {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 22px !important;
    border-radius: 29px !important;
    overflow: hidden !important;
  }
}

/* apd394-search-footer */
/**
 * APD 403 — Sticky action footer; opaque composited surface for smooth iPhone scrolling.
 */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical .apd176-mobile-footer {
    box-sizing: border-box !important;
    position: fixed !important;
    inset: auto 0 0 0 !important;
    z-index: 2147483500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
    min-height: 82px !important;
    margin: 0 !important;
    padding: 10px 24px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    border: 0 !important;
    background: #fff !important;
    box-shadow: 0 -1px 0 rgba(0,0,0,.04) !important;
    /* Backdrop blur on a fixed bar forces Safari to re-raster the page on every scroll frame. */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html body.apd380-mobile-search-canonical .apd176-mobile-footer[hidden],
  html body.apd380-mobile-search-canonical:not(.apd186-search-modal-open) .apd176-mobile-footer {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded .apd176-mobile-footer {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical .apd176-mobile-footer button {
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 0 !important;
  }

  html body.apd380-mobile-search-canonical .apd176-mobile-footer .apd176-footer-reset {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #222 !important;
    font-size: 17px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
  }

  html body.apd380-mobile-search-canonical .apd176-mobile-footer .apd176-footer-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 128px !important;
    height: 56px !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 0 23px !important;
    border-radius: 18px !important;
    background: #222 !important;
    color: #fff !important;
    box-shadow: none !important;
    opacity: 1 !important;
    font-size: 17px !important;
    line-height: 1 !important;
    font-weight: 650 !important;
  }

  html body.apd380-mobile-search-canonical .apd176-mobile-footer .apd176-footer-primary.apd370-primary-search {
    background: #d52b55 !important;
  }

  html body.apd380-mobile-search-canonical .apd176-mobile-footer .apd328-footer-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 22px !important;
    width: 22px !important;
    height: 22px !important;
  }

  html body.apd380-mobile-search-canonical .apd176-mobile-footer .apd328-footer-icon:empty {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical .apd176-mobile-footer .apd328-footer-icon svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
  }
  /* APD402: label and color come from the same state machine/class. APD401
     forced guests/service black by step, contradicting a valid red Buscar. */
  html body.apd380-mobile-search-canonical .apd176-mobile-footer .apd176-footer-primary.apd370-primary-next {
    background: #222 !important;
  }
  html body.apd380-mobile-search-canonical .apd176-mobile-footer .apd176-footer-primary.apd370-primary-search {
    background: #d52b55 !important;
  }

}

/* apd394-search-context-guards */
/**
 * APD 401 — Context + step visibility contract.
 * This is the only module that decides which cards are visible and their order.
 */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-field="location"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-panel="location"] { order: 10 !important; }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-field="dates"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-panel="dates"] { order: 20 !important; }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-field="guests"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-panel="guests"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-field="service"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search > [data-search-panel="service"] { order: 30 !important; }

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

  /* Expanded panel for the active step. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="location"] > [data-search-panel="location"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="dates"] > [data-search-panel="dates"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="guests"] > [data-search-panel="guests"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="service"] > [data-search-panel="service"] {
    display: block !important;
  }

  /* Collapsed summaries around the active panel. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="location"] > [data-search-field="dates"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search.apd380-context-stays[data-active-panel="location"] > [data-search-field="guests"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search.apd380-context-experiences[data-active-panel="location"] > [data-search-field="guests"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search.apd380-context-services[data-active-panel="location"] > [data-search-field="service"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="dates"] > [data-search-field="location"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="guests"] > [data-search-field="location"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="guests"] > [data-search-field="dates"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="service"] > [data-search-field="location"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search[data-active-panel="service"] > [data-search-field="dates"] {
    display: block !important;
  }

  /* Context-specific exclusions. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search.apd380-context-services > [data-search-field="guests"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search.apd380-context-services > [data-search-panel="guests"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search.apd380-context-stays > [data-search-field="service"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search.apd380-context-stays > [data-search-panel="service"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search.apd380-context-experiences > [data-search-field="service"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search.apd380-context-experiences > [data-search-panel="service"] {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search.apd380-context-experiences [data-guest-row="pets"] {
    display: none !important;
  }

  /* Approved compact Dónde heights. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search.apd380-context-stays[data-active-panel="location"] > .apd5-location-panel {
    height: 414px !important;
    min-height: 414px !important;
    max-height: 414px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search:is(.apd380-context-experiences,.apd380-context-services)[data-active-panel="location"] > .apd5-location-panel {
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    padding: 24px 22px 34px !important;
  }

  /* Compact preview content by context. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open:not(.apd370-location-expanded)
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)[data-active-panel="location"] #apd26-recent-destinations,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open:not(.apd370-location-expanded)
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)[data-active-panel="location"] .apd26-destination-section-title,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open:not(.apd370-location-expanded)
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)[data-active-panel="location"] #apd5-destination-list > * {
    display: none !important;
  }

}

/* APD401: smart live results only while typing; native recents/suggestions own compact Dónde. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open:not(.apd392-location-typing):not(.apd386-location-typing) #apd5-search .apd392-location-results { display:none !important; }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd392-location-typing #apd5-search .apd392-location-results,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd386-location-typing #apd5-search .apd392-location-results { display:block !important; }
}

/* apd394-location-summary */
/**
 * APD 404 — Lugar presentation owner: native marketplace summary is visible.
 *
 * #apd5-location-summary is both the engine-owned state mirror and the visual
 * summary, eliminating the second render path that could stay blank.
 */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field="location"] > button:first-child {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field="location"] > button:first-child::after {
    content:none !important;
    display:none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search #apd5-location-summary.apd394-native-summary-mirror {
    box-sizing:border-box !important;
    position:static !important;
    inset:auto !important;
    display:block !important;
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:72% !important;
    height:auto !important;
    margin:0 0 0 auto !important;
    padding:0 !important;
    color:#222 !important;
    opacity:1 !important;
    visibility:visible !important;
    font-size:16px !important;
    line-height:1.18 !important;
    font-weight:650 !important;
    letter-spacing:-.02em !important;
    text-align:right !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    pointer-events:none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search #apd5-location-summary.apd394-native-summary-mirror:empty {
    display:none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search #apd394-location-summary.apd394-summary-owner {
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }
}

/* apd394-location-results */
/** APD 393 — canonical destination result geometry + keyboard-safe expanded sheet. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search
  :is(#apd5-destination-list,#apd26-recent-destination-list,.apd226-smart-results,.apd392-location-results) {
    box-sizing: border-box !important;
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search
  :is(.apd5-destination-option,.apd26-recent-destination,.apd219-smart-option,.apd392-location-option) {
    box-sizing: border-box !important;
    position: static !important;
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    align-items: center !important;
    column-gap: 14px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 70px !important;
    margin: 0 !important;
    padding: 5px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #222 !important;
    text-align: left !important;
    transform: none !important;
    overflow: visible !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search
  .apd392-location-option-icon {
    display: grid !important;
    place-items: center !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 16px !important;
    background: #f5f5f5 !important;
    color: #222 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search
  .apd392-location-option.is-nearby .apd392-location-option-icon { background: #f2f6fc !important; color: #5f86cb !important; }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search
  .apd392-location-option.is-region .apd392-location-option-icon { background: #f3f5fa !important; color: #587fc4 !important; }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search
  .apd392-location-option.is-country .apd392-location-option-icon { background: #f4f5f8 !important; color: #587fc4 !important; }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search
  .apd392-location-option-icon svg {
    width: 34px !important;
    height: 34px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search
  :is(.apd5-destination-option,.apd26-recent-destination,.apd219-smart-option) > :is(div,.apd219-smart-copy,span):not(:first-child),
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd392-location-option-copy {
    box-sizing: border-box !important;
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    overflow: visible !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search
  :is(.apd5-destination-option,.apd26-recent-destination,.apd219-smart-option,.apd392-location-option) :is(strong,small) {
    box-sizing: border-box !important;
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    hyphens: none !important;
    transform: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd392-location-option strong {
    font-size: 16px !important;
    line-height: 1.2 !important;
    font-weight: 650 !important;
    letter-spacing: -.01em !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd392-location-option small {
    margin-top: 3px !important;
    color: #717171 !important;
    font-size: 14px !important;
    line-height: 1.24 !important;
    font-weight: 400 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd392-location-results-title {
    display: block !important;
    margin: 16px 0 8px !important;
    color: #222 !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open #apd5-search .apd392-location-empty {
    margin: 22px 0 8px !important;
    color: #717171 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

  /* The 180px Experience/Service preview is only valid before the user opens Lugar. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open:is(.apd370-location-expanded,.apd392-location-expanded)
  #apd5-search:is(.apd380-context-stays,.apd380-context-experiences,.apd380-context-services)[data-active-panel="location"] > .apd5-location-panel {
    height: max(360px, calc(var(--apd392-visible-height, 100vh) - 28px)) !important;
    min-height: 360px !important;
    max-height: max(360px, calc(var(--apd392-visible-height, 100vh) - 28px)) !important;
    padding: 24px 24px 34px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* During live typing there is exactly one results owner. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd392-location-typing #apd5-search
  :is(#apd26-recent-destinations,.apd26-destination-section-title,#apd5-destination-list,.apd226-smart-results) {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd392-location-typing #apd5-search .apd392-location-results {
    display: block !important;
    margin-top: 16px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open:is(.apd370-location-expanded,.apd392-location-expanded):not(.apd392-location-typing)
  #apd5-search #apd5-destination-list {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open:is(.apd370-location-expanded,.apd392-location-expanded):not(.apd392-location-typing)
  #apd5-search .apd392-location-results {
    display: block !important;
  }
}

/* APD394 — preview and expanded sheets have exactly one destination list owner. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open:not(.apd392-location-expanded):not(.apd392-location-typing)
  #apd5-search .apd392-location-results {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open:is(.apd392-location-expanded,.apd392-location-typing)
  #apd5-search :is(#apd5-destination-list,.apd226-smart-results) {
    display: none !important;
  }
}

/* apd394-date-summary */
/**
 * APD 404 — Fechas presentation owner: native marketplace summary is visible.
 *
 * Exact/flexible selections render from #apd5-date-summary, the same node the
 * marketplace calendar updates. APD394 span remains a hidden compatibility mirror.
 */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field="dates"] > button:first-child {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field="dates"] > button:first-child::after {
    content:none !important;
    display:none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search #apd5-date-summary.apd394-native-summary-mirror {
    box-sizing:border-box !important;
    position:static !important;
    inset:auto !important;
    display:block !important;
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:72% !important;
    height:auto !important;
    margin:0 0 0 auto !important;
    padding:0 !important;
    color:#222 !important;
    opacity:1 !important;
    visibility:visible !important;
    font-size:16px !important;
    line-height:1.18 !important;
    font-weight:650 !important;
    letter-spacing:-.02em !important;
    text-align:right !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    pointer-events:none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search #apd5-date-summary.apd394-native-summary-mirror:empty {
    display:none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search #apd394-date-summary.apd394-summary-owner {
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }
}

/* apd409-final-contract */
/** APD534 — final mobile reference lock. */
@media (max-width: 767px) {
  /*
   * One deterministic visible summary.
   * The native summary nodes live inside the real #apd5-search form and are also
   * updated by the working marketplace engine.  They are the only painted nodes;
   * APD394 spans remain hidden compatibility mirrors.
   */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field="location"] > button:first-child,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field="dates"] > button:first-child {
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
  }

  /* Paint the engine-owned nodes.  This is the same state that is submitted. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field="location"] > button:first-child > #apd5-location-summary,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field="dates"] > button:first-child > #apd5-date-summary {
    display:block !important;
    position:static !important;
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:72% !important;
    height:auto !important;
    margin:0 0 0 auto !important;
    padding:0 !important;
    color:#222 !important;
    opacity:1 !important;
    visibility:visible !important;
    font-size:16px !important;
    line-height:1.18 !important;
    font-weight:650 !important;
    letter-spacing:-.02em !important;
    text-align:right !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    pointer-events:none !important;
  }

  /* Compatibility mirrors are kept for integrations, never as a second layer. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field="location"] > button:first-child > #apd394-location-summary,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field="dates"] > button:first-child > #apd394-date-summary {
    display:none !important;
    visibility:hidden !important;
    width:0 !important;
    max-width:0 !important;
    height:0 !important;
    overflow:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }

  /* Disable the retired pseudo summary completely. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field="location"] > button:first-child::after,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field="dates"] > button:first-child::after {
    content:none !important;
    display:none !important;
  }

  /* Flexible: the month rail always exists in Alojamientos and is visibly scrollable. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-stays[data-active-panel="dates"]
  .apd15-date-view[data-apd-date-view="flexible"] {
    display:block !important;
    height:364px !important;
    min-height:364px !important;
    overflow:hidden !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-stays .apd15-flexible-months {
    display:flex !important;
    gap:10px !important;
    width:100% !important;
    min-height:122px !important;
    padding:0 1px 4px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    touch-action:pan-x !important;
    scrollbar-width:none !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-stays .apd15-flexible-months > button {
    display:flex !important;
    flex:0 0 31.5% !important;
    min-width:108px !important;
    height:112px !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:3px !important;
    padding:12px 8px !important;
    border:1px solid #d7d7d7 !important;
    border-radius:20px !important;
    background:#fff !important;
    color:#222 !important;
  }

  /* Experiences + Services: exact same range language as Alojamientos. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)
  .apd5-calendar-days > button.is-in-range:not(.is-start):not(.is-end) {
    background:#f1f1f1 !important;
    color:#222 !important;
    border-radius:0 !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)
  .apd5-calendar-days > button:is(.is-start,.is-end) {
    position:relative !important;
    z-index:4 !important;
    color:#fff !important;
    background:transparent !important;
    border-radius:0 !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)
  .apd5-calendar-days > button:is(.is-start,.is-end)::after {
    content:"" !important;
    position:absolute !important;
    left:50% !important;
    top:50% !important;
    z-index:-1 !important;
    width:42px !important;
    height:42px !important;
    border-radius:50% !important;
    background:#222 !important;
    transform:translate(-50%,-50%) !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)
  .apd5-calendar-days > button.is-start:not(.is-end)::before,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)
  .apd5-calendar-days > button.is-end:not(.is-start)::before {
    content:"" !important;
    position:absolute !important;
    top:0 !important;
    bottom:0 !important;
    z-index:-2 !important;
    width:56% !important;
    background:#f1f1f1 !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)
  .apd5-calendar-days > button.is-start:not(.is-end)::before { right:-4px !important; }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)
  .apd5-calendar-days > button.is-end:not(.is-start)::before { left:-4px !important; }

  /* Dynamic quick-date subtitles must never be suppressed by old presentation rules. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is(.apd380-context-experiences,.apd380-context-services)[data-active-panel="dates"]
  .apd141-date-shortcuts > button small {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    min-height:14px !important;
  }

  /* Natural-height rounded cards; never visually touch the fixed footer. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-experiences[data-active-panel="guests"] > .apd5-guests-panel,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-services[data-active-panel="service"] > .apd5-service-panel {
    flex:0 0 auto !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin-bottom:18px !important;
    border-radius:29px !important;
    overflow:hidden !important;
  }
}


/* APD407 — Flexible choices stay physically tappable and visibly selected on iOS. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search .apd15-flexible-duration > button,
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search .apd15-flexible-months > button {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search .apd15-flexible-duration > button:is(.is-active,[aria-pressed="true"]),
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search .apd15-flexible-months > button:is(.is-active,[aria-pressed="true"]) {
    border: 2px solid #222 !important;
    color: #222 !important;
    background: #fff !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search .apd15-flexible-duration > button:not(.is-active):not([aria-pressed="true"]),
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search .apd15-flexible-months > button:not(.is-active):not([aria-pressed="true"]) {
    border: 1px solid #d7d7d7 !important;
  }
}


/* APD407 responsive safety contract. The mobile controller intentionally ends at
   767px; tablets and desktop retain the proven marketplace/desktop engine. These
   guards only prevent overflow/touch collisions and do not restyle those layouts. */
@media (min-width: 768px) {
  body.apd-marketplace-ui #apd5-search,
  body.apd-marketplace-ui #apd5-search * { box-sizing:border-box; }
  body.apd-marketplace-ui #apd5-search { min-width:0; }
  body.apd-marketplace-ui #apd5-search .apd5-search-panel {
    max-width:min(760px, calc(100vw - 32px));
  }
}
@media (min-width: 768px) and (max-width: 1024px) and (pointer: coarse) {
  body.apd-marketplace-ui #apd5-search button,
  body.apd-marketplace-ui #apd5-search input,
  body.apd-marketplace-ui #apd5-search [role="button"] {
    touch-action:manipulation;
  }
}

/* APD410 — desktop preservation for the context-agnostic date DOM.
   The correction is mobile-first, but the server now emits one complete date
   structure so mobile tabs can switch in place. These rules reproduce the
   previous desktop markup behavior without changing the desktop interaction. */
@media (min-width: 768px) {
  body.apd141-manual-ui .apd141-date-panel.is-stays .apd141-date-shortcuts {
    display: none !important;
  }

  body.apd141-manual-ui .apd141-date-panel:not(.is-stays) .apd15-date-mode,
  body.apd141-manual-ui .apd141-date-panel:not(.is-stays) .apd15-date-flexibility,
  body.apd141-manual-ui .apd141-date-panel:not(.is-stays) .apd15-date-view[data-apd-date-view="flexible"] {
    display: none !important;
  }

  body.apd141-manual-ui .apd141-date-panel:not(.is-stays) .apd15-date-view[data-apd-date-view="exact"] {
    display: grid !important;
    grid-template-columns: 145px minmax(0,1fr) !important;
    gap: 24px !important;
    align-items: start !important;
  }

  body.apd141-manual-ui .apd141-date-panel:not(.is-stays) .apd410-shared-calendar {
    position: relative !important;
    min-height: 285px !important;
  }

  body.apd141-manual-ui .apd141-date-panel:not(.is-stays) .apd410-shared-calendar .apd5-calendar-nav {
    position: absolute !important;
    top: -5px !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    z-index: 2 !important;
  }

  body.apd141-manual-ui .apd141-date-panel:not(.is-stays) .apd410-shared-calendar .apd5-calendar-months {
    display: block !important;
  }

  body.apd141-manual-ui .apd141-date-panel:not(.is-stays) .apd410-shared-calendar .apd5-calendar-month h3 {
    margin: 0 0 14px !important;
  }

  body.apd141-manual-ui .apd141-date-panel:not(.is-stays) .apd410-shared-calendar .apd5-calendar-days > span,
  body.apd141-manual-ui .apd141-date-panel:not(.is-stays) .apd410-shared-calendar .apd5-calendar-days button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }
}

/* APD434 — canonical Dónde contract. No APD411/APD425 geometry remains below this point. */
@media (max-width: 767px) {
  /* The current step is a normal flex card, never a viewport-sized blank sheet. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="location"] > .apd5-location-panel {
    box-sizing: border-box !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 22px 38px !important;
    border-radius: 30px !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  /* Collapsed rows below Dónde are part of the location step, not hidden siblings. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="location"] > [data-search-field="dates"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-stays[data-active-panel="location"] > [data-search-field="guests"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-experiences[data-active-panel="location"] > [data-search-field="guests"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-services[data-active-panel="location"] > [data-search-field="service"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
  }

  /* Compact geometry is keyed only by the form-owned APD434 state. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:not([data-apd-location-mode="expanded"]).apd380-context-stays[data-active-panel="location"] > .apd5-location-panel {
    flex: 0 0 414px !important;
    height: 414px !important;
    min-height: 414px !important;
    max-height: 414px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:not([data-apd-location-mode="expanded"]).apd380-context-experiences[data-active-panel="location"] > .apd5-location-panel {
    flex: 0 0 180px !important;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:not([data-apd-location-mode="expanded"]).apd380-context-services[data-active-panel="location"] > .apd5-location-panel {
    flex: 0 0 370px !important;
    height: 370px !important;
    min-height: 370px !important;
    max-height: 370px !important;
  }

  /* First-paint fallback before JS adds data-apd-location-mode. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-stays[data-active-panel="location"]:not([data-apd-location-mode]) > .apd5-location-panel {
    height: 414px !important; min-height: 414px !important; max-height: 414px !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-experiences[data-active-panel="location"]:not([data-apd-location-mode]) > .apd5-location-panel {
    height: 180px !important; min-height: 180px !important; max-height: 180px !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-services[data-active-panel="location"]:not([data-apd-location-mode]) > .apd5-location-panel {
    height: 370px !important; min-height: 370px !important; max-height: 370px !important;
  }

  /* Compact content by context. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:not([data-apd-location-mode="expanded"]).apd380-context-stays[data-active-panel="location"]
  #apd26-recent-destination-list > *:nth-child(n+3) { display: none !important; }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:not([data-apd-location-mode="expanded"]).apd380-context-stays[data-active-panel="location"]
  #apd5-destination-list { display: none !important; }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:not([data-apd-location-mode="expanded"]).apd380-context-experiences[data-active-panel="location"]
  :is(#apd26-recent-destinations,.apd26-destination-section-title,[data-nearby],#apd5-destination-list,.apd226-smart-results) {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:not([data-apd-location-mode="expanded"]).apd380-context-services[data-active-panel="location"]
  #apd26-recent-destination-list > *:nth-child(n+3) { display: none !important; }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:not([data-apd-location-mode="expanded"]).apd380-context-services[data-active-panel="location"]
  :is(.apd26-destination-section-title,[data-nearby],#apd5-destination-list,.apd226-smart-results) {
    display: none !important;
  }

  /* One real expand control. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="location"] .apd370-location-collapse {
    box-sizing: border-box !important;
    position: absolute !important;
    left: 22px !important;
    right: 22px !important;
    bottom: 0 !important;
    z-index: 20 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: auto !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-top: 1px solid #ebebeb !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-apd-location-mode="expanded"][data-active-panel="location"] > .apd5-location-panel {
    position: fixed !important;
    inset: 88px 12px calc(92px + env(safe-area-inset-bottom,0px)) 12px !important;
    z-index: 12002 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 22px 22px 44px !important;
    border-radius: 28px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #fff !important;
    box-shadow: 0 18px 56px rgba(15,23,42,.14) !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-apd-location-mode="expanded"][data-active-panel="location"] .apd370-location-collapse {
    position: sticky !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -1px !important;
    width: 100% !important;
    margin-top: 8px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-apd-location-mode="expanded"][data-active-panel="location"] .apd384-location-chevron {
    transform: rotate(180deg) !important;
  }

  /* Empty state copy on the right of the summary rows. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="location"] #apd5-date-summary:empty::after {
    content: "Agregá fechas" !important;
  }
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="location"] #apd5-date-summary:empty {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    max-width: 72% !important;
    height: auto !important;
  }
}

/* APD 531 — terminal closed-state quarantine.
   The canonical search form is portaled while open. When X closes it and the
   form returns to the discovery header, ONLY the compact "Empezá tu búsqueda"
   trigger may remain visible. This prevents stale Fechas/Viajeros/¿Qué? summary
   rows from leaking over the category chips even if an older observer mutates
   their inline styles after the canonical close cycle. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd531-search-closed #apd5-search > *:not(.apd10-mobile-search-trigger):not(input[type="hidden"]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body.apd380-mobile-search-canonical.apd531-search-closed #apd5-search > .apd10-mobile-search-trigger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html body.apd380-mobile-search-canonical.apd531-search-closed .apd186-search-portal,
  html body.apd380-mobile-search-canonical.apd531-search-closed .apd186-search-topbar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* The close path must restore the discovery page to the exact horizontal
     origin and never leave a hidden search surface affecting layout geometry. */
  html body.apd380-mobile-search-canonical.apd531-search-closed #apd5-search {
    overflow: visible !important;
    transform: none !important;
    zoom: 1 !important;
  }
}


/* APD 532 — form-local terminal close lock.
   Body classes can be changed by historical context observers after the X tap.
   The canonical form therefore carries its own closed flag. This is deliberately
   visual-only: it does not clear any confirmed search data or alter category logic. */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical #apd5-search[data-apd532-closed="1"] > *:not(.apd10-mobile-search-trigger):not(input[type="hidden"]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body.apd380-mobile-search-canonical #apd5-search[data-apd532-closed="1"] > .apd10-mobile-search-trigger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html body.apd380-mobile-search-canonical #apd5-search[data-apd532-closed="1"] {
    overflow: visible !important;
    transform: none !important;
    zoom: 1 !important;
  }
}

/* apd435-location-layout-lock */
/**
 * APD 435 — hard layout owner for the first Dónde step.
 *
 * Why this file exists:
 * several historical rules still set flex growth/min-height on the location
 * panel.  The old rules can survive through plugin/theme output even after the
 * legacy APD stylesheet handle is dequeued.  This file therefore does not
 * depend on body generation classes; it keys only off the canonical form.
 */
@media (max-width: 767px) {
  /* The active Dónde panel never participates as a flex-grow blank sheet. */
  #apd5-search[data-active-panel="location"][data-apd-location-mode="compact"] > .apd5-location-panel {
    box-sizing: border-box !important;
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }

  #apd5-search.apd380-context-stays[data-active-panel="location"][data-apd-location-mode="compact"] > .apd5-location-panel {
    flex-basis: 414px !important;
    height: 414px !important;
    min-height: 414px !important;
    max-height: 414px !important;
  }

  #apd5-search.apd380-context-experiences[data-active-panel="location"][data-apd-location-mode="compact"] > .apd5-location-panel {
    flex-basis: 180px !important;
    height: 180px !important;
    min-height: 180px !important;
    max-height: 180px !important;
  }

  #apd5-search.apd380-context-services[data-active-panel="location"][data-apd-location-mode="compact"] > .apd5-location-panel {
    flex-basis: 370px !important;
    height: 370px !important;
    min-height: 370px !important;
    max-height: 370px !important;
  }

  /* Fechas + Viajeros / ¿Qué? are genuine siblings under Dónde. */
  #apd5-search[data-active-panel="location"] > [data-search-field="dates"],
  #apd5-search.apd380-context-stays[data-active-panel="location"] > [data-search-field="guests"],
  #apd5-search.apd380-context-experiences[data-active-panel="location"] > [data-search-field="guests"],
  #apd5-search.apd380-context-services[data-active-panel="location"] > [data-search-field="service"] {
    box-sizing: border-box !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    flex: 0 0 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    overflow: visible !important;
  }

  #apd5-search.apd380-context-stays[data-active-panel="location"] > [data-search-field="service"],
  #apd5-search.apd380-context-experiences[data-active-panel="location"] > [data-search-field="service"],
  #apd5-search.apd380-context-services[data-active-panel="location"] > [data-search-field="guests"] {
    display: none !important;
  }

  /* Empty row labels are visible on first paint, exactly like the reference. */
  #apd5-search[data-active-panel="location"] > [data-search-field="dates"] > button:first-child,
  #apd5-search[data-active-panel="location"] > [data-search-field="guests"] > button:first-child,
  #apd5-search[data-active-panel="location"] > [data-search-field="service"] > button:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 64px !important;
  }

  #apd5-search[data-active-panel="location"] > [data-search-field="guests"] #apd5-guest-summary,
  #apd5-search[data-active-panel="location"] > [data-search-field="service"] #apd5-service-summary,
  #apd5-search[data-active-panel="location"] > [data-search-field="dates"] #apd5-date-summary {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Compact content contract. */
  #apd5-search.apd380-context-experiences[data-active-panel="location"][data-apd-location-mode="compact"]
  .apd5-location-panel :is(#apd26-recent-destinations,.apd26-destination-section-title,[data-nearby],#apd5-destination-list,.apd226-smart-results) {
    display: none !important;
  }

  #apd5-search.apd380-context-services[data-active-panel="location"][data-apd-location-mode="compact"]
  .apd5-location-panel :is(.apd26-destination-section-title,[data-nearby],#apd5-destination-list,.apd226-smart-results) {
    display: none !important;
  }

  #apd5-search.apd380-context-stays[data-active-panel="location"][data-apd-location-mode="compact"]
  #apd5-destination-list {
    display: none !important;
  }
}

/* apd436-row-summary-owner */
/**
 * APD 534 — definitive right-hand summaries for the compact Dónde step.
 *
 * Values are real DOM text inside the submitted #apd5-search form.  No ::after
 * copy is used: the APD436 version read attr(data-apd-canonical-value) from the
 * field even though that attribute lives on its child button, so selected rows
 * became visually blank while the hidden query remained correct.
 */
@media (max-width: 767px) {
  #apd5-search[data-active-panel="location"] > [data-search-field="dates"] > button:first-child,
  #apd5-search[data-active-panel="location"] > [data-search-field="guests"] > button:first-child,
  #apd5-search[data-active-panel="location"] > [data-search-field="service"] > button:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    padding: 0 22px !important;
    overflow: hidden !important;
  }

  #apd5-search[data-active-panel="location"] > [data-search-field="dates"] > button:first-child > #apd5-date-summary,
  #apd5-search[data-active-panel="location"] > [data-search-field="guests"] > button:first-child > #apd5-guest-summary,
  #apd5-search[data-active-panel="location"] > [data-search-field="service"] > button:first-child > #apd5-service-summary {
    display: block !important;
    visibility: visible !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 68% !important;
    margin-left: auto !important;
    color: #222 !important;
    opacity: 1 !important;
    font-size: 16px !important;
    line-height: 1.18 !important;
    font-weight: 650 !important;
    letter-spacing: -.02em !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    pointer-events: none !important;
  }

  /* Retire the broken field-level pseudo copy completely. */
  #apd5-search[data-active-panel="location"] > [data-search-field="dates"] > button:first-child::after,
  #apd5-search[data-active-panel="location"] > [data-search-field="guests"] > button:first-child::after,
  #apd5-search[data-active-panel="location"] > [data-search-field="service"] > button:first-child::after {
    content: none !important;
    display: none !important;
  }

  /* Left labels retain the softer Airbnb-like inactive tone. */
  #apd5-search[data-active-panel="location"] > [data-search-field="dates"] > button:first-child > span:first-child,
  #apd5-search[data-active-panel="location"] > [data-search-field="guests"] > button:first-child > span:first-child,
  #apd5-search[data-active-panel="location"] > [data-search-field="service"] > button:first-child > span:first-child {
    flex: 0 0 auto !important;
    color: #717171 !important;
    font-size: 16.5px !important;
    line-height: 1 !important;
    font-weight: 450 !important;
    letter-spacing: -.01em !important;
  }
}

/* apd437-recent-priority */
/**
 * APD 437 — recent search cap + live typing priority.
 * Maximum two recent searches. When typing, only live destination matches
 * appear in the result area; recent history cannot paint above them.
 */
@media (max-width: 767px) {
  #apd5-search #apd26-recent-destination-list > *:nth-child(n+3) {
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open:is(.apd392-location-typing,.apd386-location-typing)
  #apd5-search #apd26-recent-destinations {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open:is(.apd392-location-typing,.apd386-location-typing)
  #apd5-search .apd392-location-results {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    order: -1 !important;
  }
}

/* apd438-sticky-weekday-calendar */
/**
 * APD 438 — Airbnb-style mobile exact-date calendar.
 * One fixed weekday rail (L M X J V S D) lives above the independently scrolling
 * month list. Month-owned weekday rows are hidden on mobile so the rail never
 * repeats or jumps while the traveller scrolls August → September → October…
 */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="dates"] .apd410-shared-calendar {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  /* The weekday legend never participates in the month scroll. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="dates"] .apd438-calendar-weekdays-fixed {
    position: relative !important;
    z-index: 30 !important;
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    flex: 0 0 30px !important;
    width: 100% !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0) !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="dates"] .apd438-calendar-weekdays-fixed > span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #717171 !important;
    font-size: 14.5px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
  }

  /* Retire the repeated weekday strip generated inside every month. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="dates"] .apd5-calendar-month > .apd5-calendar-weekdays {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* Sticky descendants and Safari scrolling are more reliable without paint containment. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="dates"] .apd5-calendar-month {
    contain: none !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 0 14px !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="dates"] .apd5-calendar-month > h3 {
    order: 1 !important;
    margin: 10px 0 14px !important;
    padding: 0 !important;
    color: #222 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 650 !important;
    letter-spacing: -.025em !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="dates"] .apd5-calendar-month > h3::first-letter {
    text-transform: uppercase !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="dates"] .apd5-calendar-month > .apd5-calendar-days {
    order: 2 !important;
  }

  /* Keep the card geometry identical while dedicating 30 px to the fixed rail. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-apd370-context="stays"][data-active-panel="dates"] #apd5-calendar-months {
    flex: 1 1 auto !important;
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    scrollbar-width: none !important;
    scroll-behavior: auto !important;
    background: #fff !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-apd370-context="stays"][data-active-panel="dates"] #apd5-calendar-months::-webkit-scrollbar {
    display: none !important;
  }

  /* Exact-date view owns a fixed legend + the month scroller + tolerance rail. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-apd370-context="stays"][data-active-panel="dates"]
  .apd15-date-view[data-apd-date-view="exact"] {
    height: 318px !important;
    min-height: 318px !important;
    padding: 0 0 58px !important;
    overflow: hidden !important;
  }

  /* The same fixed weekday language is shared by Experiencias / Servicios. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search:is([data-apd370-context="experiences"],[data-apd370-context="services"])[data-active-panel="dates"]
  #apd5-calendar-months {
    height: 270px !important;
    min-height: 270px !important;
    max-height: 270px !important;
    overflow-y: auto !important;
  }

  /* APD502 — native iPhone calendar scrolling, single gesture owner.
     The previous APD495 fallback accidentally left touch-action:none in this
     canonical sheet. That cancels Safari's vertical pan before the later fix can
     reliably take ownership. Keep one native momentum scroller instead. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="dates"] #apd5-calendar-months {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: none !important;
    overscroll-behavior-y: contain !important;
    touch-action: pan-y !important;
    scroll-behavior: auto !important;
    scroll-snap-type: none !important;
    overflow-anchor: none !important;
    pointer-events: auto !important;
  }

  /* Old global precision CSS hid the second generated month. The canonical
     calendar owns all 12 generated months on mobile, so every month must stay
     in normal document flow and contribute to scrollHeight. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="dates"] #apd5-calendar-months > .apd5-calendar-month {
    display: block !important;
    width: 100% !important;
    touch-action: pan-y !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="dates"] #apd5-calendar-months :is(.apd5-calendar-days,.apd5-calendar-days > span) {
    touch-action: pan-y !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="dates"] #apd5-calendar-months .apd5-calendar-days > button {
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="dates"] #apd5-calendar-months .apd5-calendar-days > button[disabled] {
    pointer-events: none !important;
  }

}

/* apd439-viewport-safe-location-stack */
/**
 * APD 439 — viewport-safe first-step stack.
 *
 * Safari can expand its bottom browser chrome after the search modal is already
 * open. The fixed APD action footer then rises while the compact Dónde card
 * keeps its previous height, which can visually cover the Viajeros / ¿Qué? row.
 * APD439 lets the runtime shrink ONLY the active compact Dónde card by the exact
 * overlap amount. When the browser chrome collapses again, the original APD435
 * geometry is restored.
 */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="location"][data-apd-location-mode="compact"] > .apd5-location-panel {
    flex-basis: var(--apd439-location-safe-height, var(--apd439-location-base-height, 414px)) !important;
    height: var(--apd439-location-safe-height, var(--apd439-location-base-height, 414px)) !important;
    min-height: var(--apd439-location-safe-height, var(--apd439-location-base-height, 414px)) !important;
    max-height: var(--apd439-location-safe-height, var(--apd439-location-base-height, 414px)) !important;
    transition: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-stays[data-active-panel="location"][data-apd-location-mode="compact"] {
    --apd439-location-base-height: 414px;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-experiences[data-active-panel="location"][data-apd-location-mode="compact"] {
    --apd439-location-base-height: 180px;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-services[data-active-panel="location"][data-apd-location-mode="compact"] {
    --apd439-location-base-height: 370px;
  }

  /* The final collapsed row must remain a real visible sibling. This is a hard
     safety lock against stale legacy rules that may try to pull it behind the
     fixed footer after Safari changes viewport height. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search[data-active-panel="location"] > [data-search-field="dates"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-stays[data-active-panel="location"] > [data-search-field="guests"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-experiences[data-active-panel="location"] > [data-search-field="guests"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search.apd380-context-services[data-active-panel="location"] > [data-search-field="service"] {
    position: relative !important;
    z-index: 2 !important;
    flex-shrink: 0 !important;
  }
}

/* apd535-canonical-visible-summaries */
/**
 * APD 535 — one immutable visual owner for collapsed search values.
 *
 * data-apd380-summary lives on the real opener button and is maintained by the
 * same state that submits the query.  Painting that attribute avoids every
 * historical child-node display/text collision without adding another field.
 */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field] > button:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    overflow: hidden !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field] > button:first-child::after {
    content: attr(data-apd380-summary) !important;
    display: block !important;
    visibility: visible !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 70% !important;
    height: auto !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #222 !important;
    opacity: 1 !important;
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.18 !important;
    font-weight: 650 !important;
    letter-spacing: -.02em !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    pointer-events: none !important;
  }

  /* Compatibility/native children remain in the submitted form but never
     compete visually with the button attribute above. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field] > button:first-child
  > :is(#apd5-location-summary,#apd394-location-summary,#apd5-date-summary,#apd394-date-summary,#apd5-guest-summary,#apd5-service-summary,.apd26-compact-summary) {
    display: none !important;
    visibility: hidden !important;
    position: static !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  /* The label column mirrors the Airbnb references supplied by the user. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field] > button:first-child > span:first-child {
    flex: 0 0 auto !important;
    color: #717171 !important;
    font-family: inherit !important;
    font-size: 16.5px !important;
    line-height: 1 !important;
    font-weight: 450 !important;
    letter-spacing: -.01em !important;
  }

  /* Absolute context exclusivity.  The JS layout owner removes any stale
     inline !important declaration; these guards then remain the final cascade. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search.apd380-context-stays > [data-search-field="service"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search.apd380-context-experiences > [data-search-field="service"],
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search.apd380-context-services > [data-search-field="guests"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* Full destination browsing owns the surface; no old collapsed sibling may
     remain above it after having been revealed in compact mode. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search[data-active-panel="location"][data-apd-location-mode="expanded"] > [data-search-field] {
    display: none !important;
    visibility: hidden !important;
  }
}

/* apd536-real-visible-summaries */
/**
 * APD 536 — iOS-safe real summary nodes.
 *
 * Generated content on native buttons is not a reliable visual surface in
 * Safari. The server now renders one <output> and the terminal JS projector
 * keeps it synchronized with the same canonical values submitted by the form.
 */
@media (max-width: 767px) {
  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field] > button:first-child::after {
    content: none !important;
    display: none !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open
  #apd5-search#apd5-search > [data-search-field] > button:first-child > .apd536-row-value {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    inset: auto !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 70% !important;
    height: auto !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #222 !important;
    opacity: 1 !important;
    font-family: inherit !important;
    font-size: 16px !important;
    line-height: 1.18 !important;
    font-weight: 650 !important;
    letter-spacing: -.02em !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    pointer-events: none !important;
  }

  /* Expanded Dónde keeps the native heading/nearby pair and the canonical
     result rows. The runtime no longer creates a second heading or nearby row. */
  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded:not(.apd392-location-typing):not(.apd386-location-typing)
  #apd5-search#apd5-search[data-active-panel="location"]
  > .apd5-location-panel > :is(.apd26-destination-section-title,.apd5-destination-option.is-nearby) {
    display: block !important;
    visibility: visible !important;
  }

  html body.apd380-mobile-search-canonical.apd186-search-modal-open.apd370-location-expanded:not(.apd392-location-typing):not(.apd386-location-typing)
  #apd5-search#apd5-search[data-active-panel="location"]
  > .apd5-location-panel > .apd5-destination-option.is-nearby {
    display: grid !important;
  }
}
