/* Africa.Luxury v1.7.466 — mobile Stay catalogue refinement.
   Desktop remains unchanged. Mobile uses one Amenities popup and two-card shelves. */
@media(max-width:699px){
  :root{--al466-gap:12px;--al466-navy:#071f34;--al466-gold:#cf9a4b}

  /* The old amenity carousel/tiles no longer occupy the Stay home content area. */
  body.al-hp-body .al-mobile-amenities,
  body.al-hp-body .al-stay-mobile-amenity-bar{display:none!important}
  body.al-hp-body .al-discovery{padding-top:2px!important}

  /* Amenities pill opens the existing filter engine focused only on real active amenities. */
  #al-mobile-filters.al466-amenities-only .al-mf-group:not(.al-mf-amenities-group),
  #al-mobile-filters.al466-amenities-only .al-mf-disclaimer,
  #al-mobile-filters.al466-amenities-only .al-mf-reset-all,
  #al-mobile-filters.al466-amenities-only #al-mf-clear{display:none!important}
  #al-mobile-filters.al466-amenities-only .al-mf-amenities-group{display:block!important;margin-top:0!important;padding-top:4px!important;border-top:0!important}
  #al-mobile-filters.al466-amenities-only .al-mf-scroll{padding-top:8px!important}
  #al-mobile-filters.al466-amenities-only .al-mf-footer{justify-content:flex-end!important}
  #al-mobile-filters.al466-amenities-only .al-mf-submit{min-width:132px!important}

  /* Airbnb-like density: the shelf viewport shows exactly two real cards at once. */
  body.al-hp-body .al-home-shelf{overflow:hidden!important}
  body.al-hp-body .al-home-shelf .al-shelf-track{
    display:grid!important;
    grid-auto-flow:column!important;
    grid-auto-columns:calc((100% - var(--al466-gap))/2)!important;
    gap:var(--al466-gap)!important;
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    margin:0!important;
    overflow-x:auto!important;
    overflow-y:visible!important;
    scroll-snap-type:x mandatory!important;
    scroll-padding-inline:0!important;
    overscroll-behavior-x:contain!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.al-hp-body .al-home-shelf .al-shelf-track::-webkit-scrollbar{display:none!important}
  body.al-hp-body .al-home-shelf .al-shelf-card{
    box-sizing:border-box!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    scroll-snap-align:start!important;
    scroll-snap-stop:always!important;
  }
  body.al-hp-body .al-home-shelf .al-shelf-placeholder{display:none!important}

  /* Featured Property cards: image-only, title on image, share only. */
  body.al-hp-body .al-shelf-property{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    border-radius:18px!important;
    overflow:visible!important;
  }
  body.al-hp-body .al-shelf-property .al-shelf-photo-frame{
    position:relative!important;
    width:100%!important;
    aspect-ratio:1 / 1!important;
    height:auto!important;
    min-height:0!important;
    overflow:hidden!important;
    border-radius:18px!important;
    background:#eef1f4!important;
    box-shadow:none!important;
  }
  body.al-hp-body .al-shelf-property .al-shelf-image{
    display:block!important;
    width:100%!important;
    height:100%!important;
    border-radius:inherit!important;
    overflow:hidden!important;
  }
  body.al-hp-body .al-shelf-property .al-shelf-image img,
  body.al-hp-body .al-shelf-property .al-shelf-image .al-shelf-image-empty{
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    border-radius:inherit!important;
  }
  body.al-hp-body .al-shelf-property .al-shelf-photo-frame::before{
    content:""!important;
    position:absolute!important;
    z-index:2!important;
    left:0!important;right:0!important;bottom:0!important;
    height:54%!important;
    pointer-events:none!important;
    background:linear-gradient(180deg,rgba(4,20,34,0) 0%,rgba(4,20,34,.16) 38%,rgba(4,20,34,.78) 100%)!important;
  }
  body.al-hp-body .al-shelf-property .al-shelf-photo-frame::after{
    content:attr(data-al466-mobile-title)!important;
    position:absolute!important;
    z-index:3!important;
    left:11px!important;right:11px!important;bottom:11px!important;
    color:#fff!important;
    font:600 13.5px/1.25 var(--al-font-ui,'Poppins',sans-serif)!important;
    letter-spacing:-.018em!important;
    text-shadow:0 1px 3px rgba(0,0,0,.42)!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    pointer-events:none!important;
  }
  body.al-hp-body .al-shelf-property .al-shelf-info,
  body.al-hp-body .al-shelf-property .al-shelf-save,
  body.al-hp-body .al-shelf-property .alx-card-rating,
  body.al-hp-body .al-shelf-property [data-alx-google-rating]{display:none!important}
  body.al-hp-body .al-shelf-property .al-shelf-share{
    display:grid!important;
    place-items:center!important;
    position:absolute!important;
    z-index:5!important;
    top:9px!important;
    right:9px!important;
    left:auto!important;
    bottom:auto!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    max-width:38px!important;
    max-height:38px!important;
    padding:0!important;
    margin:0!important;
    border:1px solid rgba(255,255,255,.72)!important;
    border-radius:50%!important;
    background:rgba(255,255,255,.94)!important;
    color:var(--al466-navy)!important;
    box-shadow:0 4px 12px rgba(7,31,52,.16)!important;
    opacity:1!important;
    visibility:visible!important;
  }
  body.al-hp-body .al-shelf-property .al-shelf-share svg{
    width:19px!important;height:19px!important;
    fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;
  }

  /* Room cards deliberately retain their current information/actions; only density changes. */
  body.al-hp-body .al-shelf-stay .al-shelf-info{min-width:0!important}
  body.al-hp-body .al-shelf-stay .al-shelf-name,
  body.al-hp-body .al-shelf-stay .al-room-facts,
  body.al-hp-body .al-shelf-stay .al-room-meta{max-width:100%!important}
}
@media(max-width:370px){
  :root{--al466-gap:10px}
  body.al-hp-body .al-shelf-property .al-shelf-photo-frame::after{left:9px!important;right:9px!important;bottom:9px!important;font-size:12.5px!important}
  body.al-hp-body .al-shelf-property .al-shelf-share{top:7px!important;right:7px!important;width:35px!important;height:35px!important;min-width:35px!important;min-height:35px!important;max-width:35px!important;max-height:35px!important}
}

/* Africa.Luxury v1.7.467 — mobile property-name + Airbnb-like Stay card refinement. */
@media(max-width:699px){
  /* Property image cards retain the v466 composition, but the complete property name is readable. */
  body.al-hp-body .al-shelf-property .al-shelf-photo-frame::before{
    height:72%!important;
    background:linear-gradient(180deg,rgba(4,20,34,0) 0%,rgba(4,20,34,.10) 24%,rgba(4,20,34,.86) 100%)!important;
  }
  body.al-hp-body .al-shelf-property .al-shelf-photo-frame::after{
    display:block!important;
    -webkit-line-clamp:unset!important;
    -webkit-box-orient:initial!important;
    overflow:visible!important;
    white-space:normal!important;
    text-overflow:clip!important;
    max-height:none!important;
    word-break:normal!important;
    overflow-wrap:anywhere!important;
    font-size:13px!important;
    line-height:1.22!important;
  }

  /* Stay/Room cards: clean Airbnb-like image + title + price/rating, with actions only on the image. */
  body.al-hp-body .al-shelf-stay{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    border-radius:0!important;
    overflow:visible!important;
  }
  body.al-hp-body .al-shelf-stay .al-shelf-photo-frame{
    position:relative!important;
    width:100%!important;
    aspect-ratio:1 / 1!important;
    height:auto!important;
    min-height:0!important;
    overflow:hidden!important;
    border-radius:18px!important;
    background:#eef1f4!important;
    box-shadow:none!important;
  }
  body.al-hp-body .al-shelf-stay .al-shelf-image,
  body.al-hp-body .al-shelf-stay .al-shelf-image img,
  body.al-hp-body .al-shelf-stay .al-shelf-image .al-shelf-image-empty{
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    object-fit:cover!important;
    border-radius:inherit!important;
  }
  body.al-hp-body .al-shelf-stay .al-shelf-photo-frame > .alx-card-rating,
  body.al-hp-body .al-shelf-stay .al-shelf-photo-frame > [data-alx-google-rating]{display:none!important}

  body.al-hp-body .al-shelf-stay .al-shelf-share,
  body.al-hp-body .al-shelf-stay .al-shelf-save{
    display:grid!important;
    place-items:center!important;
    position:absolute!important;
    z-index:6!important;
    top:9px!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    max-width:38px!important;
    max-height:38px!important;
    padding:0!important;
    margin:0!important;
    border-radius:50%!important;
    border:1px solid rgba(255,255,255,.78)!important;
    background:rgba(255,255,255,.94)!important;
    color:var(--al466-navy,#071f34)!important;
    box-shadow:0 4px 12px rgba(7,31,52,.15)!important;
    opacity:1!important;
    visibility:visible!important;
  }
  body.al-hp-body .al-shelf-stay .al-shelf-save{right:9px!important;left:auto!important}
  body.al-hp-body .al-shelf-stay .al-shelf-share{right:55px!important;left:auto!important}
  body.al-hp-body .al-shelf-stay .al-shelf-share svg,
  body.al-hp-body .al-shelf-stay .al-shelf-save svg{width:19px!important;height:19px!important}
  body.al-hp-body .al-shelf-stay .al-shelf-save[aria-pressed="true"]{
    background:var(--al466-gold,#cf9a4b)!important;
    color:#fff!important;
    border-color:var(--al466-gold,#cf9a4b)!important;
  }

  body.al-hp-body .al-shelf-stay .al-shelf-info{
    display:block!important;
    padding:8px 2px 0!important;
    margin:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    min-width:0!important;
  }
  body.al-hp-body .al-shelf-stay .al-shelf-name{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 0 3px!important;
    padding:0!important;
    color:var(--al466-navy,#071f34)!important;
    font-family:var(--al-font-ui,'Poppins',sans-serif)!important;
    font-size:14px!important;
    font-weight:600!important;
    line-height:1.28!important;
    letter-spacing:-.012em!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    -webkit-line-clamp:unset!important;
    max-height:none!important;
    text-decoration:none!important;
  }
  body.al-hp-body .al-shelf-stay .al-room-facts{display:none!important}
  body.al-hp-body .al-shelf-stay .al-room-meta{
    display:flex!important;
    align-items:baseline!important;
    gap:5px!important;
    flex-wrap:wrap!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    min-height:0!important;
  }
  body.al-hp-body .al-shelf-stay .al-room-price,
  body.al-hp-body .al-shelf-stay .al-room-checkrates{
    display:inline-flex!important;
    align-items:baseline!important;
    gap:2px!important;
    margin:0!important;
    padding:0!important;
    color:#6b7280!important;
    font-family:var(--al-font-body,'Lato',sans-serif)!important;
    font-size:12.5px!important;
    line-height:1.3!important;
    background:transparent!important;
    border:0!important;
  }
  body.al-hp-body .al-shelf-stay .al-room-price strong{
    color:#4b5563!important;
    font-size:12.5px!important;
    font-weight:500!important;
  }
  body.al-hp-body .al-shelf-stay .al467-room-rating{
    display:inline-flex!important;
    align-items:center!important;
    gap:2px!important;
    margin:0!important;
    padding:0!important;
    color:#6b7280!important;
    font-family:var(--al-font-body,'Lato',sans-serif)!important;
    font-size:12.5px!important;
    line-height:1.3!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    position:static!important;
    width:auto!important;
    height:auto!important;
    min-width:0!important;
  }
  body.al-hp-body .al-shelf-stay .al467-room-rating::before{content:"·";margin-right:2px;color:#6b7280}
  body.al-hp-body .al-shelf-stay .al467-room-rating .alx-google-rating-star{color:#6b7280!important;font-size:12px!important}
  body.al-hp-body .al-shelf-stay .al467-room-rating strong{color:#6b7280!important;font-size:12.5px!important;font-weight:500!important}
  body.al-hp-body .al-shelf-stay .al467-room-rating .alx-google-rating-context{display:none!important}
  body.al-hp-body .al-shelf-stay .al-room-book{display:none!important}
}
@media(max-width:370px){
  body.al-hp-body .al-shelf-stay .al-shelf-share,
  body.al-hp-body .al-shelf-stay .al-shelf-save{
    top:7px!important;width:35px!important;height:35px!important;min-width:35px!important;min-height:35px!important;max-width:35px!important;max-height:35px!important
  }
  body.al-hp-body .al-shelf-stay .al-shelf-save{right:7px!important}
  body.al-hp-body .al-shelf-stay .al-shelf-share{right:49px!important}
  body.al-hp-body .al-shelf-stay .al-shelf-name{font-size:13px!important}
  body.al-hp-body .al-shelf-stay .al-room-price,
  body.al-hp-body .al-shelf-stay .al-room-price strong,
  body.al-hp-body .al-shelf-stay .al-room-checkrates,
  body.al-hp-body .al-shelf-stay .al467-room-rating,
  body.al-hp-body .al-shelf-stay .al467-room-rating strong{font-size:11.8px!important}
}

/* Africa.Luxury v1.7.468 — compact mobile room cards after action removal. */
@media(max-width:699px){
  /* Grid items must size to their own content instead of stretching to the tallest legacy card. */
  body.al-hp-body .al-home-shelf .al-shelf-track{
    align-items:start!important;
  }
  body.al-hp-body .al-home-shelf .al-shelf-card.al-shelf-stay{
    align-self:start!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding-bottom:0!important;
  }
  body.al-hp-body .al-shelf-stay .al-shelf-info,
  body.al-hp-body .al-shelf-stay .al-room-info{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:8px 2px 2px!important;
    margin:0!important;
  }
  body.al-hp-body .al-shelf-stay .al-shelf-name{
    margin-bottom:4px!important;
  }
  body.al-hp-body .al-shelf-stay .al-room-meta{
    margin:0!important;
    padding:0!important;
    min-height:0!important;
  }
}
