/* Africa.Luxury v1.7.316 — Search Stay cards use Home shelf structure.
   Deliberately scoped to Stay Search only: Cars/Experiences and filter/map logic unaffected. */
body.sr-body.sr-stays .sr-results-head{justify-content:flex-end!important;min-height:40px}
body.sr-body.sr-stays .sr-results-head>.sr-result-tools{margin-left:auto}
body.sr-body.sr-stays .sr-grid .sr-card.alx316-home-card{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  min-width:0!important;height:100%!important;padding:0!important;overflow:visible!important;
  border:1px solid #e5e9ec!important;border-radius:16px!important;background:#fff!important;
  box-shadow:0 6px 17px rgba(20,37,65,.06)!important;transition:box-shadow .16s ease,transform .16s ease;
  color:#142541!important;box-sizing:border-box!important;
}
body.sr-body.sr-stays .sr-grid .sr-card.alx316-home-card:hover{box-shadow:0 9px 22px rgba(20,37,65,.1)!important;transform:translateY(-1px)}
body.sr-body.sr-stays .sr-card.alx316-home-card .sr-card-photo.al-shelf-photo-frame{
  position:relative!important;display:block!important;flex:0 0 auto!important;
  width:100%!important;height:auto!important;aspect-ratio:1.06/1!important;
  border-radius:15px 15px 0 0!important;overflow:hidden!important;background:#f0f3f5!important;
}
body.sr-body.sr-stays .sr-card.alx316-home-card .al-shelf-image{display:block!important;width:100%!important;height:100%!important;overflow:hidden!important}
body.sr-body.sr-stays .sr-card.alx316-home-card .sr-card-photo .al-shelf-image img,
body.sr-body.sr-stays .sr-card.alx316-home-card .sr-card-photo .al-shelf-image-empty{
  display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;
  border-radius:0!important;max-height:none!important;margin:0!important;
}
body.sr-body.sr-stays .sr-card.alx316-home-card .al-shelf-image-empty{background:linear-gradient(135deg,#ebeff2,#f5f7f9)!important}
body.sr-body.sr-stays .sr-card.alx316-home-card .sr-photo-nav{z-index:4!important;position:absolute!important;top:50%!important;transform:translateY(-50%)!important;display:grid!important;place-items:center!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;padding:0!important;font-size:19px!important;line-height:1!important;border-radius:50%!important;background:rgba(255,255,255,.92)!important;color:#142541!important;border:0!important}
body.sr-body.sr-stays .sr-card.alx316-home-card .sr-photo-prev{left:8px!important;right:auto!important}
body.sr-body.sr-stays .sr-card.alx316-home-card .sr-photo-next{right:8px!important;left:auto!important}
body.sr-body.sr-stays .sr-card.alx316-home-card .al-shelf-save,
body.sr-body.sr-stays .sr-card.alx316-home-card .al-shelf-share{
  position:absolute!important;z-index:7!important;top:10px!important;display:grid!important;place-items:center!important;
  width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
  max-width:34px!important;max-height:34px!important;padding:0!important;border-radius:50%!important;
  border:1px solid rgba(226,232,238,.98)!important;background:rgba(255,255,255,.96)!important;
  color:#334a64!important;box-shadow:0 2px 8px rgba(0,0,0,.10)!important;
}
body.sr-body.sr-stays .sr-card.alx316-home-card .al-shelf-save{right:10px!important;left:auto!important}
body.sr-body.sr-stays .sr-card.alx316-home-card .al-shelf-share{right:52px!important;left:auto!important}
body.sr-body.sr-stays .sr-card.alx316-home-card .al-shelf-save .al-icon,
body.sr-body.sr-stays .sr-card.alx316-home-card .al-shelf-share .al-icon{width:18px!important;height:18px!important;stroke:currentColor!important;fill:none!important;stroke-width:2!important}
body.sr-body.sr-stays .sr-card.alx316-home-card .al-shelf-save[aria-pressed="true"]{background:#ac792e!important;color:#fff!important;border-color:#ac792e!important}
body.sr-body.sr-stays .sr-card.alx316-home-card .al-shelf-save[aria-pressed="true"] .al-icon{fill:#fff!important;color:#fff!important}
body.sr-body.sr-stays .sr-card.alx316-home-card .alx-google-rating.alx-card-rating-overlay{
  position:absolute!important;z-index:4!important;bottom:10px!important;left:10px!important;top:auto!important;right:auto!important;
  display:inline-flex;align-items:center;gap:5px;border-radius:18px;padding:6px 9px;
  background:rgba(255,255,255,.96);box-shadow:0 2px 7px rgba(0,0,0,.1);font-size:11px;
}
body.sr-body.sr-stays .sr-card.alx316-home-card .sr-card-body.al-room-info{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;flex:1 1 auto!important;
  min-height:124px!important;padding:11px 12px 12px!important;overflow:visible!important;background:#fff!important;border-radius:0 0 15px 15px;
}
body.sr-body.sr-stays .sr-card.alx316-home-card .sr-card-title.al-room-name{
  display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  width:100%!important;min-height:35px!important;max-height:42px!important;overflow:hidden!important;
  color:#142541!important;text-decoration:none!important;letter-spacing:-.012em!important;
  font:500 13px/1.35 var(--al-font-ui,'Poppins',system-ui,sans-serif)!important;
  margin:0!important;padding:0!important;
}
body.sr-body.sr-stays .sr-card.alx316-home-card .alx316-property-line{
  display:flex!important;align-items:center!important;gap:6px!important;width:100%!important;min-height:22px!important;
  margin:5px 0 0!important;font:400 11px/1.35 var(--al-font-body,'Lato',system-ui,sans-serif)!important;color:#69798a!important;
}
body.sr-body.sr-stays .sr-card.alx316-home-card .alx316-property-line .al-icon{
  display:block!important;width:14px!important;height:14px!important;min-width:14px!important;flex:0 0 14px!important;color:#8b959e!important;
}
body.sr-body.sr-stays .sr-card.alx316-home-card .alx316-property-line>span{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.sr-body.sr-stays .sr-card.alx316-home-card .sr-card-foot.al-room-meta{
  width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;
  gap:6px!important;margin-top:auto!important;padding:10px 0 0!important;border:0!important;background:transparent!important;min-height:0!important;
}
body.sr-body.sr-stays .sr-card.alx316-home-card .al-room-price{
  display:flex!important;align-items:baseline!important;flex-wrap:nowrap!important;gap:3px!important;
  white-space:nowrap!important;overflow:visible!important;min-width:0!important;padding:0!important;margin:0!important;
}
body.sr-body.sr-stays .sr-card.alx316-home-card .al-room-price strong{
  color:#142541!important;font:700 clamp(11px,.98vw,15px)/1 var(--al-font-ui,'Poppins',sans-serif)!important;
  letter-spacing:-.03em!important;white-space:nowrap!important;
}
body.sr-body.sr-stays .sr-card.alx316-home-card .al-room-price span{font:400 10px/1.2 var(--al-font-body,'Lato',sans-serif)!important;color:#7a8491!important;white-space:nowrap!important}
body.sr-body.sr-stays .sr-card.alx316-home-card .al-room-checkrates{color:#69798a;font-size:11px}
body.sr-body.sr-stays .sr-card.alx316-home-card .al-room-book{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;flex:0 0 auto!important;
  width:auto!important;min-width:68px!important;min-height:33px!important;height:auto!important;
  margin:0!important;padding:7px 10px!important;border:0!important;border-radius:999px!important;
  background:linear-gradient(180deg,#bd8732 0%,#aa7627 100%)!important;
  box-shadow:0 4px 10px rgba(170,118,39,.18)!important;color:#fff!important;
  text-decoration:none!important;font:600 11px/1 var(--al-font-ui,'Poppins',sans-serif)!important;
}
body.sr-body.sr-stays .sr-card.alx316-home-card .al-room-book:hover{filter:brightness(1.05)}
/* Preserve the legacy list-view choice, with a responsive thumbnail rather than a square card. */
body.sr-body.sr-stays .sr-grid.is-list .sr-card.alx316-home-card,
body.sr-body.sr-stays .sr-grid[data-view="list"] .sr-card.alx316-home-card{display:grid!important;grid-template-columns:minmax(135px,30%) minmax(0,1fr)!important;align-items:stretch!important}
body.sr-body.sr-stays .sr-grid.is-list .sr-card.alx316-home-card .sr-card-photo,
body.sr-body.sr-stays .sr-grid[data-view="list"] .sr-card.alx316-home-card .sr-card-photo{height:100%!important;aspect-ratio:auto!important;border-radius:15px 0 0 15px!important}
@media(max-width:699px){body.sr-body.sr-stays .sr-card.alx316-home-card .sr-card-body.al-room-info{padding:10px!important;min-height:120px!important}body.sr-body.sr-stays .sr-card.alx316-home-card .al-room-book{min-width:61px!important;padding:7px 8px!important}body.sr-body.sr-stays .sr-card.alx316-home-card .al-room-price strong{font-size:12px!important}}
@media(prefers-reduced-motion:reduce){body.sr-body.sr-stays .sr-card.alx316-home-card{transition:none!important}}
/* Stay Map split view keeps its existing horizontal result cards. */
@media(min-width:900px){
 body.sr-body.sr-stays.sr-map-open .sr-grid .sr-card.alx316-home-card{
   display:grid!important;grid-template-columns:minmax(190px,43%) minmax(0,1fr)!important;
   min-height:184px!important;height:auto!important;overflow:hidden!important;
 }
 body.sr-body.sr-stays.sr-map-open .sr-grid .sr-card.alx316-home-card .sr-card-photo.al-shelf-photo-frame{
   height:100%!important;aspect-ratio:auto!important;border-radius:15px 0 0 15px!important;
 }
 body.sr-body.sr-stays.sr-map-open .sr-grid .sr-card.alx316-home-card .sr-card-body.al-room-info{
   min-height:184px!important;justify-content:space-between!important;
 }
}
/* Long official Property names get two compact lines, never the misleading Studio/guest facts. */
body.sr-body.sr-stays .sr-card.alx316-home-card .alx316-property-line{align-items:flex-start!important;min-height:27px!important}
body.sr-body.sr-stays .sr-card.alx316-home-card .alx316-property-line>span{
 display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
 white-space:normal!important;overflow:hidden!important;line-height:1.24!important;
 font-size:10.5px!important;min-height:26px!important;
}
