/* Africa.Luxury v1.7.501 — mobile Soft UI / debossed refinements.
 * Presentation only. Scoped to the shared mobile shell; does not change
 * searches, booking state, carousel sizing, pricing, or mobile dock logic.
 * Loads AFTER v1.7.500; supports reduced-motion and keyboard navigation.
 */
@media (max-width: 699px) {
  :root {
    --al501-surface: #f8f9fb;
    --al501-paper: #ffffff;
    --al501-ink: #08283e;
    --al501-gold: #bd8530;
    --al501-raised: 5px 7px 13px rgba(17, 37, 56, .15),
                     -4px -4px 10px rgba(255, 255, 255, .98),
                     inset 0 1px 1px rgba(255, 255, 255, .92);
    --al501-pressed: inset 3px 4px 8px rgba(20, 39, 56, .19),
                      inset -3px -3px 7px rgba(255, 255, 255, .95);
  }

  /* Keep the compact v498 top layout; avoid adding vertical space. */
  body.al-hp-body,
  body.al-cars-body,
  body.al-experiences-body {
    background: linear-gradient(180deg, #fff 0, #fafbfc 330px, #fff 820px) !important;
  }
  .al462-mobile-header {
    background: transparent !important;
  }
  .al462-mobile-home {
    background: transparent !important;
  }

  /* Matching raised circular header controls. */
  .al462-mobile-header .al462-notification,
  .al462-mobile-header .al496-mobile-avatar {
    background: linear-gradient(145deg, #fff, #f0f3f6) !important;
    color: var(--al501-ink) !important;
    border: 1px solid #edf0f3 !important;
    box-shadow: var(--al501-raised) !important;
    transition: box-shadow .16s ease, background-color .16s ease !important;
  }
  .al462-mobile-header .al462-notification:active,
  .al462-mobile-header .al496-mobile-avatar:active {
    box-shadow: var(--al501-pressed) !important;
    background: #f0f3f6 !important;
  }
  .al462-mobile-header .al462-notification:focus-visible,
  .al462-mobile-header .al496-mobile-avatar:focus-visible {
    outline: 2px solid var(--al501-gold) !important;
    outline-offset: 3px !important;
  }

  /* The full search field is softly raised; the filter control is raised
     until tapped, when it depresses. Retain its real search click handler. */
  .al462-mobile-home .al462-search-row {
    border: 1px solid #e7ebef !important;
    background: linear-gradient(145deg, #fff, #f8f9fa) !important;
    border-radius: 999px !important;
    box-shadow: 7px 8px 17px rgba(24, 41, 56, .13),
               -5px -5px 15px #fff,
               inset 0 1px 2px #fff !important;
  }
  .al462-mobile-home .al462-search-main {
    color: var(--al501-ink) !important;
  }
  .al462-mobile-home .al462-search-main span {
    color: #718096 !important;
  }
  .al462-mobile-home .al462-search-filter {
    background: linear-gradient(145deg, #fff, #edf1f5) !important;
    border: 1px solid #e9edf1 !important;
    box-shadow: 3px 4px 8px rgba(25, 43, 59, .17),
               -3px -3px 7px #fff !important;
    transition: box-shadow .14s ease, background .14s ease !important;
  }
  .al462-mobile-home .al462-search-filter:active,
  .al462-mobile-home .al462-search-filter[aria-expanded="true"] {
    background: #eef2f5 !important;
    box-shadow: inset 3px 3px 6px rgba(18, 42, 61, .22),
                inset -3px -3px 7px #fff !important;
  }

  /* The reference's physical push-button effect: raised inactive filters,
     visibly SUNKEN active filter; no layout/transform shift on selection. */
  .al462-mobile-home .al462-filter-pill,
  .al462-mobile-home .al462-filter-pill:not(.is-active) {
    transform: none !important;
    border: 1px solid #e9edf1 !important;
    color: var(--al501-ink) !important;
    background: linear-gradient(145deg, #fff, #f3f5f7) !important;
    box-shadow: var(--al501-raised) !important;
    transition: box-shadow .16s ease, background .16s ease,
                border-color .16s ease !important;
  }
  .al462-mobile-home .al462-filter-pill.is-active,
  .al462-mobile-home .al462-filter-pill[aria-pressed="true"] {
    transform: none !important;
    border: 1px solid #0c2a40 !important;
    color: #fff !important;
    background: linear-gradient(145deg, #092c45, #061e32) !important;
    box-shadow: inset 4px 5px 9px rgba(0, 0, 0, .55),
                inset -3px -3px 7px rgba(98, 131, 154, .2),
                0 2px 3px rgba(7, 31, 52, .10) !important;
  }
  .al462-mobile-home .al462-filter-pill:active {
    transform: none !important;
    box-shadow: inset 3px 4px 8px rgba(18, 42, 61, .24),
                inset -2px -2px 6px #fff !important;
  }
  .al462-mobile-home .al462-filter-pill.is-active:active,
  .al462-mobile-home .al462-filter-pill[aria-pressed="true"]:active {
    box-shadow: inset 5px 6px 11px rgba(0, 0, 0, .59),
                inset -2px -2px 5px rgba(129, 154, 172, .17) !important;
  }
  .al462-mobile-home .al462-filter-pill:focus-visible,
  .al462-mobile-home .al462-search-filter:focus-visible,
  .al462-mobile-home .al462-search-main:focus-visible {
    outline: 2px solid var(--al501-gold) !important;
    outline-offset: 3px !important;
  }

  /* Premium raised property surface. The existing one-property-per-swipe
     dimensions and real card actions are left intact. */
  body.al-hp-body #al-featured-properties .al-shelf-property {
    border: 1px solid #e6e9ed !important;
    border-radius: 21px !important;
    background: var(--al501-paper) !important;
    box-shadow: 7px 10px 20px rgba(19, 43, 60, .12),
               -4px -4px 12px rgba(255, 255, 255, .98) !important;
  }
  body.al-hp-body #al-featured-properties .al-shelf-property .al-shelf-info {
    background: #fff !important;
  }
  body.al-hp-body #al-featured-properties .al-shelf-property .al-shelf-save,
  body.al-hp-body #al-featured-properties .al-shelf-property .al-shelf-share,
  body.al-hp-body .al-shelf-stay .al-shelf-save,
  body.al-hp-body .al-shelf-stay .al-shelf-share {
    background: linear-gradient(145deg, #fff, #f1f4f6) !important;
    border: 1px solid rgba(255,255,255,.94) !important;
    box-shadow: 3px 5px 9px rgba(6, 26, 43, .19),
               inset 0 1px 1px rgba(255,255,255,.95) !important;
    transition: box-shadow .15s ease, background-color .15s ease !important;
  }
  body.al-hp-body #al-featured-properties .al-shelf-property .al-shelf-save[aria-pressed="true"],
  body.al-hp-body .al-shelf-stay .al-shelf-save[aria-pressed="true"] {
    background: linear-gradient(145deg, #d7a34e, #b77c25) !important;
    color: #fff !important;
    border-color: #b78331 !important;
    box-shadow: inset 3px 4px 7px rgba(87, 50, 9, .45),
                inset -1px -1px 5px rgba(255, 221, 163, .24) !important;
  }
  body.al-hp-body #al-featured-properties .al-shelf-property .al-shelf-save:active,
  body.al-hp-body #al-featured-properties .al-shelf-property .al-shelf-share:active,
  body.al-hp-body .al-shelf-stay .al-shelf-save:active,
  body.al-hp-body .al-shelf-stay .al-shelf-share:active {
    box-shadow: inset 3px 4px 8px rgba(20, 40, 56, .27),
                inset -2px -2px 6px rgba(255, 255, 255, .90) !important;
  }
  /* Preserve the short, clean information line and 2-up room grid. */
  body.al-hp-body .al-shelf-stay .al-shelf-photo-frame {
    box-shadow: 2px 4px 10px rgba(16, 34, 52, .10) !important;
  }

  /* Swipe indicator and current page are gently recessed, not new buttons. */
  body.al-hp-body #al-featured-properties .al499-dot.is-current::after {
    background: #b98734 !important;
    box-shadow: inset 1px 1px 2px rgba(101, 61, 14, .32),
                0 0 0 2px #f4e9d5 !important;
  }

  /* Same soft material system in the mobile Stay / Cars / Experiences dock.
     Keep v500's scroll-hide transform and pointer behaviour untouched. */
  .al462-mobile-dock.al496-mobile-dock,
  .al464-mobile-dock.al496-mobile-dock[data-al464-active] {
    background: linear-gradient(155deg, #092f48, #061c30) !important;
    border: 1px solid #153d54 !important;
    box-shadow: 0 9px 22px rgba(6, 26, 42, .27),
                inset 0 2px 4px rgba(0,0,0,.30),
                inset 0 -1px 1px rgba(102, 141, 164, .15) !important;
  }
  .al496-mobile-dock > a.is-active {
    background: linear-gradient(150deg, #f6c56e, #d79a36) !important;
    box-shadow: inset 3px 4px 7px rgba(125, 71, 7, .40),
                inset -2px -2px 5px rgba(255, 230, 171, .42),
                0 0 0 1px rgba(244, 198, 121, .32) !important;
  }
  .al496-mobile-dock > a:not(.is-active):active {
    background: rgba(255,255,255,.08) !important;
    box-shadow: inset 2px 3px 6px rgba(0,0,0,.30) !important;
  }
  .al496-mobile-dock > a:focus-visible,
  body.al-hp-body .al-shelf-save:focus-visible,
  body.al-hp-body .al-shelf-share:focus-visible {
    outline: 2px solid #dcb66d !important;
    outline-offset: 2px !important;
  }
}

/* Touch devices should keep the pressed visual feedback without animations
   when the guest asks the OS to reduce motion. */
@media (prefers-reduced-motion: reduce) {
  .al462-mobile-home .al462-filter-pill,
  .al462-mobile-home .al462-search-filter,
  .al462-mobile-header .al462-notification,
  .al462-mobile-header .al496-mobile-avatar,
  body.al-hp-body .al-shelf-share,
  body.al-hp-body .al-shelf-save { transition: none !important; }
}
