@import url("/assets/public-layout-card-system-v230.css?build=1.7.230");
/* Africa.Luxury v1.7.209 — Phase 2: Responsive Cards, Shelves & Navigation.
   Builds on v1.7.208. One responsive shelf and navigation language for
   Stays, Cars and Experiences without changing catalogue/search data. */

:root{
  --al-phase2-shelf-gap:18px;
  --al-phase2-control-size:40px;
  --al-phase2-focus:0 0 0 2px #fff,0 0 0 4px var(--al-gold,#aa792e);
}

/* ------------------------------------------------------------------
   SHARED DESKTOP NAVIGATION
   Keep Stays / Cars / Experiences visually centred while brand and account
   controls remain on the outer columns. The service position is identical
   on all three surfaces.
   ------------------------------------------------------------------ */
@media (min-width:700px){
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header{
    min-height:76px;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-main-header-inner{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    align-items:center!important;
    min-width:0;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-header-brand{
    justify-self:start!important;
    min-width:0;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-primary-nav{
    justify-self:center!important;
    align-self:stretch!important;
    min-width:max-content;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-header-actions{
    justify-self:end!important;
    min-width:0;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-nav-item{
    min-height:44px;
    border-radius:var(--al-radius-pill,999px);
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-service-icon{
    width:24px!important;height:24px!important;stroke-width:1.8!important;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header :is(.al-currency-top,.al-profile-top,.al-menu-toggle){
    min-width:40px;min-height:40px;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header :is(a,button):focus-visible,
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) :is(.al-shelf-prev,.al-shelf-next,.al-service-shelf-arrows button,.al-shelf-save,.al-service-card-save):focus-visible{
    outline:0!important;
    box-shadow:var(--al-phase2-focus)!important;
  }
}

/* Compact desktop: remove secondary account copy before compressing the
   centre navigation. This keeps service positions stable around 1024–1239px. */
@media (min-width:700px) and (max-width:1239px){
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-hello,
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-header-divider{
    display:none!important;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-primary-nav{
    gap:clamp(2px,.65vw,8px)!important;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-nav-item{
    gap:5px!important;padding-inline:clamp(4px,.7vw,8px)!important;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-brand-uploaded{
    max-width:clamp(125px,15vw,180px)!important;
  }
}
@media (min-width:700px) and (max-width:899px){
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header{
    padding-inline:14px!important;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-main-header-inner{
    gap:6px!important;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-brand-uploaded{
    max-width:112px!important;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-nav-item{
    font-size:12px!important;padding-inline:3px!important;gap:3px!important;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-service-icon{
    width:20px!important;height:20px!important;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-currency-top{
    padding-inline:0!important;font-size:12px!important;
  }
}

/* ------------------------------------------------------------------
   ONE RESPONSIVE SHELF GEOMETRY
   Cards are allowed to remain comfortably sized. We progressively increase
   visible slots instead of forcing six undersized cards on compact desktops.
   ------------------------------------------------------------------ */
@media (min-width:700px){
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) :is(.al-shelf-track,.al-service-shelf-track){
    gap:var(--al-phase2-shelf-gap)!important;
    scroll-snap-type:x mandatory!important;
    scroll-padding-inline:1px;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
  }
  body.al-hp-body .al-shelf-card,
  :is(body.al-cars-body,body.al-experiences-body) .al-service-catalog-card{
    scroll-snap-align:start;
    scroll-snap-stop:normal;
  }

  /* Shared card shell: square photography, calm surface and identical motion. */
  body.al-hp-body .al-shelf-photo-frame,
  :is(body.al-cars-body,body.al-experiences-body) .al-service-card-photo{
    aspect-ratio:1/1!important;
    border-radius:var(--al-radius-lg,20px)!important;
    overflow:hidden!important;
    background:var(--al-ds-surface-soft,#f7f8fa)!important;
  }
  body.al-hp-body .al-shelf-image img,
  :is(body.al-cars-body,body.al-experiences-body) .al-service-card-photo img{
    width:100%!important;height:100%!important;object-fit:cover!important;
    transition:transform .22s ease!important;
  }
  @media (hover:hover) and (pointer:fine){
    body.al-hp-body .al-shelf-card:not(.al-shelf-placeholder):hover .al-shelf-image img,
    :is(body.al-cars-body,body.al-experiences-body) .al-service-catalog-card:not(.al-service-placeholder):hover .al-service-card-photo img{
      transform:scale(1.025);
    }
  }

  /* The complete card remains visually quiet; photography and hierarchy lead. */
  :is(body.al-cars-body,body.al-experiences-body) .al-service-catalog-card{
    border:0!important;background:transparent!important;box-shadow:none!important;
  }
  body.al-hp-body .al-shelf-info,
  :is(body.al-cars-body,body.al-experiences-body) .al-service-card-copy{
    min-height:54px;
  }

  /* Same circular controls on every service, with a touch-friendly 40px target. */
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) :is(.al-shelf-prev,.al-shelf-next,.al-service-shelf-arrows button,.al-shelf-save,.al-service-card-save){
    width:var(--al-phase2-control-size)!important;
    height:var(--al-phase2-control-size)!important;
    min-width:var(--al-phase2-control-size)!important;
    min-height:var(--al-phase2-control-size)!important;
    border-radius:50%!important;
    transition:box-shadow .16s ease,transform .16s ease,opacity .16s ease,background-color .16s ease!important;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) :is(.al-shelf-prev,.al-shelf-next,.al-service-shelf-arrows button):disabled{
    opacity:.28!important;cursor:default!important;box-shadow:none!important;
  }
  @media (hover:hover) and (pointer:fine){
    :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) :is(.al-shelf-prev,.al-shelf-next,.al-service-shelf-arrows button):not(:disabled):hover{
      transform:translateY(-1px);box-shadow:var(--al-shadow-2)!important;
    }
  }

  /* Keep heading/action alignment identical across services. */
  body.al-hp-body .al-shelf-heading,
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf-heading{
    min-height:40px;
    align-items:center!important;
    gap:16px!important;
  }
  body.al-hp-body .al-shelf-heading>h2,
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf-heading>div:first-child{
    min-width:0;
  }
}

/* Tablet / very compact desktop: show a deliberate next-card peek. */
@media (min-width:700px) and (max-width:899px){
  body.al-hp-body .al-shelf-track{grid-auto-columns:minmax(210px,42%)!important;gap:14px!important}
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf-track{gap:14px!important}
  :is(body.al-cars-body,body.al-experiences-body) .al-service-catalog-card{flex:0 0 42%!important;width:42%!important}
}

/* Three visible cards. */
@media (min-width:900px) and (max-width:1079px){
  body.al-hp-body .al-shelf-track{grid-auto-columns:calc((100% - 28px)/3)!important;gap:14px!important}
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf-track{gap:14px!important}
  :is(body.al-cars-body,body.al-experiences-body) .al-service-catalog-card{flex:0 0 calc((100% - 28px)/3)!important;width:calc((100% - 28px)/3)!important}
}

/* Four visible cards — includes the ~1157px width called out during review. */
@media (min-width:1080px) and (max-width:1239px){
  body.al-hp-body .al-shelf-track{grid-auto-columns:calc((100% - 48px)/4)!important;gap:16px!important}
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf-track{gap:16px!important}
  :is(body.al-cars-body,body.al-experiences-body) .al-service-catalog-card{flex:0 0 calc((100% - 48px)/4)!important;width:calc((100% - 48px)/4)!important}
}

/* Five visible cards as the regular desktop approaches six-column mode. */
@media (min-width:1240px) and (max-width:1359px){
  body.al-hp-body .al-shelf-track{grid-auto-columns:calc((100% - 64px)/5)!important;gap:16px!important}
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf-track{gap:16px!important}
  :is(body.al-cars-body,body.al-experiences-body) .al-service-catalog-card{flex:0 0 calc((100% - 64px)/5)!important;width:calc((100% - 64px)/5)!important}
}

/* Six-column target retained for the approved regular/wide desktop experience. */
@media (min-width:1360px){
  body.al-hp-body .al-shelf-track{grid-auto-columns:calc((100% - 90px)/6)!important;gap:18px!important}
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf-track{gap:18px!important}
  :is(body.al-cars-body,body.al-experiences-body) .al-service-catalog-card{flex:0 0 calc((100% - 90px)/6)!important;width:calc((100% - 90px)/6)!important}
}
@media (min-width:1900px){
  body.al-hp-body .al-shelf-track{grid-auto-columns:calc((100% - 100px)/6)!important;gap:20px!important}
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf-track{gap:20px!important}
  :is(body.al-cars-body,body.al-experiences-body) .al-service-catalog-card{flex:0 0 calc((100% - 100px)/6)!important;width:calc((100% - 100px)/6)!important}
}

/* Expanded Cars/Experiences shelves use the same responsive card density as
   their collapsed shelf, instead of reverting to the old hard-coded six. */
@media (min-width:700px){
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf.is-expanded .al-service-shelf-track{
    display:flex!important;flex-wrap:wrap!important;overflow:visible!important;scroll-snap-type:none!important;
  }
}
@media (min-width:700px) and (max-width:899px){
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf.is-expanded .al-service-catalog-card{flex-basis:calc((100% - 14px)/2)!important;width:calc((100% - 14px)/2)!important}
}
@media (min-width:900px) and (max-width:1079px){
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf.is-expanded .al-service-catalog-card{flex-basis:calc((100% - 28px)/3)!important;width:calc((100% - 28px)/3)!important}
}
@media (min-width:1080px) and (max-width:1239px){
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf.is-expanded .al-service-catalog-card{flex-basis:calc((100% - 48px)/4)!important;width:calc((100% - 48px)/4)!important}
}
@media (min-width:1240px) and (max-width:1359px){
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf.is-expanded .al-service-catalog-card{flex-basis:calc((100% - 64px)/5)!important;width:calc((100% - 64px)/5)!important}
}
@media (min-width:1360px){
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf.is-expanded .al-service-catalog-card{flex-basis:calc((100% - 90px)/6)!important;width:calc((100% - 90px)/6)!important}
}
@media (min-width:1900px){
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf.is-expanded .al-service-catalog-card{flex-basis:calc((100% - 100px)/6)!important;width:calc((100% - 100px)/6)!important}
}

/* Decorative ghost slots are useful only when the screen is genuinely desktop.
   They remain present at 1024–1359 (including ~1157px), matching the real slot
   count at each breakpoint. */
@media (min-width:1024px){
  body.al-hp-body .al-shelf-placeholder,
  :is(body.al-cars-body,body.al-experiences-body) .al-service-placeholder{
    display:block!important;visibility:visible!important;pointer-events:none!important;
  }
}
@media (max-width:1023px){
  body.al-hp-body .al-shelf-placeholder,
  :is(body.al-cars-body,body.al-experiences-body) .al-service-placeholder{
    display:none!important;
  }
}

/* Mobile car shelves already follow Stay's compact square-card design; keep the
   same scroll affordance and snapping. Experience legacy shelves keep their
   editorial card width but receive the same predictable snap/peek behaviour. */
@media (max-width:699px){
  body.al-cars-body .cp-mobile-shelf-track,
  body.al-experiences-body .ex150-scroll,
  body.al-hp-body .al-shelf-track{
    scroll-snap-type:x mandatory!important;
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch;
  }
  body.al-cars-body .cp-mobile-shelf-card,
  body.al-experiences-body :is(.ex150-card,.ex150-type-tile,.ex150-area-tile),
  body.al-hp-body .al-shelf-card{
    scroll-snap-align:start!important;
  }
}

/* ------------------------------------------------------------------
   MOTION / INTERACTION SAFETY
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion:reduce){
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) :is(.al-shelf-track,.al-service-shelf-track,.cp-mobile-shelf-track,.ex150-scroll){
    scroll-behavior:auto!important;
  }
  body.al-hp-body .al-shelf-image img,
  :is(body.al-cars-body,body.al-experiences-body) .al-service-card-photo img,
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) :is(.al-shelf-prev,.al-shelf-next,.al-service-shelf-arrows button,.al-shelf-save,.al-service-card-save){
    transition:none!important;
  }
}
