/* Africa.Luxury 1.7.497 — mobile-only carousel and card density refinement.
   Loaded AFTER mobile-stay-ref496.css; no desktop rules are changed. */
@media (max-width:699px) {
  /* Featured property shelf: one entire property card in the visible viewport.
     Retains horizontal swipe and snap navigation used by existing shelves. */
  body.al-hp-body #al-featured-properties .al-shelf-track {
    grid-auto-columns:100%!important;
    grid-template-columns:none!important;
    gap:12px!important;
    scroll-snap-type:x mandatory!important;
    scroll-padding-inline:0!important;
  }
  body.al-hp-body #al-featured-properties .al-shelf-card.al-shelf-property {
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    align-self:start!important;
    scroll-snap-align:start!important;
    scroll-snap-stop:always!important;
  }
  /* Keep the full-width feature from turning into an over-tall square. */
  body.al-hp-body #al-featured-properties .al-shelf-property .al-shelf-photo-frame {
    aspect-ratio:1.5 / 1!important;
    height:auto!important;
    min-height:0!important;
  }
  body.al-hp-body #al-featured-properties .al-shelf-property .al-shelf-info {
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
    padding:10px 13px 12px!important;
  }
  /* All other Stay-at-location shelves remain exactly two cards visible. */
  body.al-hp-body .al-home-shelf:not(#al-featured-properties) .al-shelf-track {
    grid-auto-columns:calc((100% - var(--al466-gap,12px))/2)!important;
  }
  /* Room cards: undo reserved desktop title/body heights that leave a large
     empty band between names and night price at phone widths. */
  body.al-hp-body .al-home-shelf .al-shelf-card.al-shelf-stay,
  body.al-hp-body .al-home-shelf .al-shelf-stay .al-room-info,
  body.al-hp-body .al-home-shelf .al-shelf-stay .al-shelf-info {
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    flex-grow:0!important;
    flex-basis:auto!important;
    align-self:start!important;
  }
  body.al-hp-body .al-home-shelf .al-shelf-stay .al-room-info,
  body.al-hp-body .al-home-shelf .al-shelf-stay .al-shelf-info {
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:0!important;
    padding:6px 2px 2px!important;
    margin:0!important;
  }
  body.al-hp-body .al-home-shelf .al-shelf-stay .al-room-name,
  body.al-hp-body .al-home-shelf .al-shelf-stay .al-shelf-name {
    display:block!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0 0 3px!important;
    padding:0!important;
    line-height:1.24!important;
    -webkit-line-clamp:unset!important;
    overflow-wrap:break-word!important;
  }
  body.al-hp-body .al-home-shelf .al-shelf-stay .al-room-meta {
    display:flex!important;
    justify-content:flex-start!important;
    align-content:flex-start!important;
    align-items:baseline!important;
    position:static!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    flex:0 0 auto!important;
    gap:3px!important;
    margin:0!important;
    padding:0!important;
  }
  body.al-hp-body .al-home-shelf .al-shelf-stay .al-room-price,
  body.al-hp-body .al-home-shelf .al-shelf-stay .al-room-checkrates,
  body.al-hp-body .al-home-shelf .al-shelf-stay .al467-room-rating {
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    line-height:1.22!important;
  }
}
