/* Africa.Luxury 1.7.504 — mobile-only seamless carousel and short page end. */
@media(max-width:699px){
  /* Remove old outside-the-card indicator bars (and their row of dots).
     Featured autoplay remains fully enabled by the v499 controller. */
  body.al-hp-body #al-featured-properties .al499-guide,
  body.al-hp-body .al-home-shelf .al503-room-guide{display:none!important}

  /* The swipe affordance is part of each card's white surface, not a separate
     raised strip. One position counter replaces all the pagination dots. */
  body.al-hp-body .al-home-shelf .al-shelf-info .al504-card-guide{
    display:flex!important;align-items:center;justify-content:space-between;
    gap:8px;width:100%;min-width:0;box-sizing:border-box;
    margin:9px 0 0!important;padding:9px 0 0!important;
    border-top:1px solid rgba(19,42,62,.055);
    font:500 11px/1.35 var(--al-font-ui,'Poppins',Arial,sans-serif);
    letter-spacing:0;color:#7c8a9d;white-space:nowrap;
    background:transparent!important;box-shadow:none!important;
  }
  body.al-hp-body .al504-card-swipe{display:inline-flex;align-items:center;gap:6px;min-width:0}
  body.al-hp-body .al504-card-arrow{
    font-family:Arial,sans-serif;letter-spacing:-4px;
    font-size:21px;line-height:.65;font-weight:400;color:#b98734;
    display:inline-block;padding-right:3px;transform:translateY(-1px);
  }
  body.al-hp-body .al504-card-count{font-size:12px;letter-spacing:.01em;color:#8390a3;font-weight:600;flex:none}

  /* Property card body and counter now share one uninterrupted surface. */
  body.al-hp-body #al-featured-properties .al-shelf-card.al-shelf-property{
    overflow:hidden!important;background:#fff!important;
    border-radius:21px!important;
    box-shadow:0 6px 20px rgba(18,43,60,.075)!important;
    border:1px solid rgba(231,235,239,.5)!important;
  }
  body.al-hp-body #al-featured-properties .al-shelf-property .al-shelf-info{
    padding:10px 12px 12px!important;background:#fff!important;
  }

  /* Match the same visual treatment on swipeable room cards, so their
     title, price, rating and counter are all a single coherent card. */
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-card.al-shelf-stay{
    background:#fff!important;
    border:1px solid rgba(231,235,239,.5)!important;
    border-radius:20px!important;overflow:hidden!important;
    box-shadow:0 5px 17px rgba(18,43,60,.065)!important;
    padding:0!important;
  }
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al-shelf-photo-frame{
    border-radius:19px 19px 0 0!important;box-shadow:none!important;
  }
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al-shelf-info{
    padding:9px 12px 12px!important;background:#fff!important;
  }
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-stay .al504-card-guide{
    margin-top:8px!important;padding-top:8px!important;
  }
  body.al-hp-body .al-home-shelf .al-shelf-track{
    padding-bottom:7px!important;
  }

  /* The old main, discovery section and body each reserved dock clearance,
     producing the huge empty scroll tail when the normal footer was hidden.
     Reserve clearance ONCE, on body, for the floating 72px dock. */
  body.al-hp-body.al462-service-shell-enabled,
  body.al-hp-body.al464-mobile-nav-page,
  body.al-hp-body:has(.al464-mobile-dock){
    padding-bottom:calc(94px + env(safe-area-inset-bottom,0px))!important;
    min-height:0!important;
  }
  body.al-hp-body #alx-main-content{
    padding-bottom:0!important;min-height:0!important;
  }
  body.al-hp-body .al-discovery{
    padding-bottom:0!important;margin-bottom:0!important;min-height:0!important;
  }
  body.al-hp-body .al-home-shelves{
    padding-bottom:0!important;margin-bottom:0!important;min-height:0!important;
  }
  body.al-hp-body .al-home-shelves .al-home-shelf:last-of-type{
    margin-bottom:0!important;padding-bottom:0!important;
  }
  body.al-hp-body .al-home-footer,
  body.al-hp-body footer.ft412-footer{display:none!important}
}
@media(min-width:700px){.al504-card-guide{display:none!important}}
@media(prefers-reduced-motion:reduce){
  .al504-card-guide,.al504-card-arrow{animation:none!important;transition:none!important}
}
