/* Africa.Luxury v1.7.502 — mobile Stay: refined soft inset UI and one room per swipe.
   This stylesheet intentionally overrides the stronger hard-edged shadows in v501.
   Presentation-only: all room, property, share and wishlist links stay functional.
*/
@media (max-width:699px) {
  /* A seamless tonal surface: no hard grey outlines or directional shadow bands. */
  body.al-hp-body {
    --al502-surface: #fafbfc;
    --al502-navy: #09283e;
    --al502-gold: #be8734;
    --al502-soft-up: 0 8px 20px rgba(21, 43, 60, .085),
                     0 2px 5px rgba(21, 43, 60, .035),
                     -5px -6px 16px rgba(255, 255, 255, .98);
    --al502-soft-inset: inset 3px 4px 8px rgba(18, 40, 58, .17),
                        inset -3px -3px 8px rgba(255, 255, 255, .96);
    background: linear-gradient(180deg, #fff 0%, #fafbfc 310px, #fff 820px) !important;
  }
  body.al-hp-body .al462-mobile-header,
  body.al-hp-body .al462-mobile-home {
    background: transparent !important;
  }

  /* Header controls and destination: matching luminous, diffuse surfaces. */
  body.al-hp-body .al462-mobile-header .al462-notification,
  body.al-hp-body .al462-mobile-header .al496-mobile-avatar {
    background: #fafbfd !important;
    border-color: rgba(223, 230, 235, .40) !important;
    box-shadow: 0 5px 15px rgba(19, 42, 61, .09),
                -4px -5px 12px rgba(255, 255, 255, .96) !important;
  }
  body.al-hp-body .al462-mobile-home .al462-search-row {
    background: #fcfcfd !important;
    border: 1px solid rgba(227, 231, 235, .55) !important;
    box-shadow: 0 9px 22px rgba(21, 42, 62, .075),
                0 2px 6px rgba(21, 42, 62, .03),
                -6px -7px 18px #fff !important;
  }
  body.al-hp-body .al462-mobile-home .al462-search-filter {
    background: #f9fafb !important;
    border: 1px solid rgba(233, 238, 242, .45) !important;
    box-shadow: 0 4px 11px rgba(19, 44, 60, .10),
                -3px -3px 9px rgba(255,255,255,.95) !important;
  }
  body.al-hp-body .al462-mobile-home .al462-search-filter:active,
  body.al-hp-body .al462-mobile-home .al462-search-filter[aria-expanded="true"] {
    background: #f5f7f9 !important;
    box-shadow: var(--al502-soft-inset) !important;
  }

  /* Raised chips have no sharp outline; the selected chip is truly recessed. */
  body.al-hp-body .al462-mobile-home .al462-filter-pill,
  body.al-hp-body .al462-mobile-home .al462-filter-pill:not(.is-active) {
    border: 1px solid rgba(235, 238, 242, .48) !important;
    background: #fafbfc !important;
    color: var(--al502-navy) !important;
    box-shadow: var(--al502-soft-up) !important;
    transform: none !important;
    transition: box-shadow .2s ease, background-color .2s ease, color .2s ease !important;
  }
  body.al-hp-body .al462-mobile-home .al462-filter-pill.is-active,
  body.al-hp-body .al462-mobile-home .al462-filter-pill[aria-pressed="true"] {
    border: 1px solid rgba(8, 33, 52, .12) !important;
    background: #08283f !important;
    color: #fff !important;
    box-shadow: inset 4px 5px 11px rgba(1, 14, 28, .46),
                inset -3px -3px 10px rgba(74, 116, 144, .19) !important;
    transform: none !important;
  }
  body.al-hp-body .al462-mobile-home .al462-filter-pill:active:not(.is-active) {
    background: #f3f6f8 !important;
    box-shadow: var(--al502-soft-inset) !important;
  }

  /* Property carousel: same full-width swipe behaviour, remove redundant CTA.
     Both the photo and title remain clickable links to the property. */
  body.al-hp-body .al-shelf-property .al-property-explore {
    display: none !important;
  }
  body.al-hp-body #al-featured-properties .al-shelf-card.al-shelf-property {
    border: 1px solid rgba(225, 231, 236, .55) !important;
    border-radius: 21px !important;
    box-shadow: 0 10px 25px rgba(17, 43, 63, .085),
                0 2px 7px rgba(17, 43, 63, .03) !important;
    background: #fff !important;
  }
  body.al-hp-body #al-featured-properties .al-shelf-property .al-shelf-info {
    padding: 10px 13px 13px !important;
  }

  /* All location-based room shelves now show exactly one full room per swipe. */
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-track {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 100% !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: 0 !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-card.al-shelf-stay {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  /* Full-width photos should not consume excessive vertical space on phones. */
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al-shelf-photo-frame {
    aspect-ratio: 1.48 / 1 !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 19px !important;
    box-shadow: 0 5px 16px rgba(18, 43, 62, .075) !important;
  }
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al-shelf-info,
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al-room-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 9px 3px 4px !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    gap: 0 !important;
  }
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al-room-name,
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al-shelf-name {
    font-size: 15px !important;
    line-height: 1.28 !important;
    font-weight: 650 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(3 * 1.28em) !important;
    margin: 0 0 4px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    white-space: normal !important;
  }
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al-room-meta {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: baseline !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    font-size: clamp(11px, 3vw, 13px) !important;
    white-space: nowrap !important;
  }
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al-room-price,
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al-room-checkrates,
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al500-guests,
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al467-room-rating {
    font-size: inherit !important;
    line-height: 1.25 !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al-room-price > span {
    display: none !important;
  }
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al-shelf-share,
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al-shelf-save,
  body.al-hp-body #al-featured-properties .al-shelf-property .al-shelf-share,
  body.al-hp-body #al-featured-properties .al-shelf-property .al-shelf-save {
    border: 1px solid rgba(245, 247, 250, .6) !important;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: 0 4px 11px rgba(16, 40, 58, .11) !important;
  }
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al-shelf-save[aria-pressed="true"],
  body.al-hp-body #al-featured-properties .al-shelf-property .al-shelf-save[aria-pressed="true"] {
    background: #bc883b !important;
    color: #fff !important;
    box-shadow: inset 2px 3px 6px rgba(77, 47, 8, .32) !important;
  }

  /* Dock material: reduce the previous thick-edged, high-contrast look.
     v500's transform-based auto-hide remains in effect. */
  body.al-hp-body .al462-mobile-dock.al496-mobile-dock,
  body.al-hp-body .al464-mobile-dock.al496-mobile-dock[data-al464-active] {
    background: #07253b !important;
    border: 1px solid rgba(28, 70, 96, .42) !important;
    box-shadow: 0 10px 25px rgba(8, 31, 50, .19),
                inset 0 1px 2px rgba(255, 255, 255, .10) !important;
  }
  body.al-hp-body .al496-mobile-dock > a.is-active {
    background: #e9b45c !important;
    box-shadow: inset 3px 4px 8px rgba(108, 64, 13, .24),
                inset -2px -2px 8px rgba(255, 236, 182, .30) !important;
  }
}

@media (max-width:360px) {
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al-room-meta {
    gap: 5px !important;
    font-size: 11px !important;
  }
}
@media (prefers-reduced-motion:reduce) {
  body.al-hp-body .al462-filter-pill,
  body.al-hp-body .al-shelf-track,
  body.al-hp-body .al-shelf-save,
  body.al-hp-body .al-shelf-share { scroll-behavior:auto!important;transition:none!important; }
}
