/* Africa.Luxury v1.7.206 — unified desktop layout tracks.
   Regular desktop: 1440px content system.
   Wide desktop: 1920px content system.
   Mobile/tablet geometry remains unchanged. */

@media (min-width:700px){
  :root{
    --al-public-layout-track:1440px;
    --al-public-search-track:1180px;
    --al-public-edge-gutter:24px;
  }

  /* One desktop track for the shared public header on Stays, Cars and Experiences. */
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header{
    padding-inline:var(--al-public-edge-gutter)!important;
  }
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header .al-main-header-inner{
    width:100%!important;
    max-width:var(--al-public-layout-track)!important;
    margin-inline:auto!important;
  }

  /* Main browse/catalogue content uses the same centred desktop width. */
  body.al-hp-body .al-discovery,
  body.al-cars-body .al-service-desktop-catalog,
  body.al-experiences-body .al-service-desktop-catalog,
  body.al-experiences-body .ex150-results{
    width:min(calc(100% - (2 * var(--al-public-edge-gutter))),var(--al-public-layout-track))!important;
    max-width:var(--al-public-layout-track)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  /* Keep all three hero captions anchored to the same content track. */
  body.al-hp-body .al-static-service-hero.al-hero .al-hero-copy,
  body.al-cars-body .al-static-service-hero.cp-hero .cp-hero-copy,
  body.al-experiences-body .al-static-service-hero.ex150-hero .ex150-hero-copy,
  body.al-hp-body .al-hero-slide .al-hero-copy{
    margin-left:max(var(--al-public-edge-gutter),calc((100vw - var(--al-public-layout-track))/2))!important;
  }
  body.al-hp-body .al-static-service-hero.al-hero .al-hero-script,
  body.al-cars-body .al-static-service-hero.cp-hero .cp-hero-script,
  body.al-experiences-body .al-static-service-hero.ex150-hero .ex150-hero-script,
  body.al-hp-body .al-hero .al-hero-script{
    right:max(var(--al-public-edge-gutter),calc((100vw - var(--al-public-layout-track))/2))!important;
  }

  /* Search grows with the desktop system without becoming full-width. */
  body.al-hp-body .al-search-shell,
  body.al-cars-body .cp-search-zone-v173,
  body.al-experiences-body .ex150-search,
  body.al-experiences-body .ex-search-zone-v175{
    width:min(calc(100% - (2 * var(--al-public-edge-gutter))),var(--al-public-search-track))!important;
    max-width:var(--al-public-search-track)!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  /* Expanded shelves retain six visible desktop slots and their existing spacing. */
  body.al-hp-body .al-shelf-track,
  :is(body.al-cars-body,body.al-experiences-body) .al-service-shelf-track{
    width:100%!important;
  }
}

/* A 1900px+ viewport is treated as wide desktop. The track may reach a true
   1920px on ultrawide displays while retaining a safe 24px viewport gutter. */
@media (min-width:1900px){
  :root{
    --al-public-layout-track:1920px;
    --al-public-search-track:1360px;
  }
}

/* Preserve the approved compact sticky search dimensions/centering. The layout
   track still governs the surrounding header, but the sticky pill must remain
   compact enough to coexist with brand and account controls. */
@media (min-width:1180px){
  body.al-public-search-compact.al-hp-body .al-search-shell,
  body.al-public-search-compact.al-cars-body .cp-search-zone-v173,
  body.al-public-search-compact.al-experiences-body .ex-search-zone-v175{
    width:100%!important;
    max-width:none!important;
  }
}
