/* Africa.Luxury v1.7.195 — desktop single-row sticky service header.
   Normal state keeps the approved service header + hero + full search.
   After the hero scrolls away, the search visually docks into the header itself.
   Amenities/category/filter rows remain normal scrolling content. */

@media (min-width:700px){
  :is(body.al-hp-body,body.al-cars-body,body.al-experiences-body) .al-main-header{
    position:sticky!important;
    top:0!important;
    z-index:900!important;
    background:#fff!important;
  }

  /* The large search is NOT a second sticky row in its normal state. */
  body.al-hp-body .al-search-shell,
  body.al-cars-body .cp-search-zone-v173,
  body.al-experiences-body .ex-search-zone-v175{
    top:auto!important;
  }

  /* Refinement/category rows are intentionally never part of the sticky chrome. */
  body.al-hp-body :is(.al-amenities,.al-amenity-row,.al-filter-row),
  body.al-cars-body :is(.cp-filter-row,.cp-category-row,.cp-filters),
  body.al-experiences-body .ex150-filter-row{
    position:relative!important;
    top:auto!important;
  }
}

/* Reference-parity sticky mode is reserved for widths where the complete search
   and account controls can coexist in one row without collapsing the fields. */
@media (min-width:1180px){
  body.al-public-search-compact :is(.al-main-header){
    height:76px!important;
    border-bottom:1px solid #e6e8ed!important;
    box-shadow:0 4px 18px rgba(18,35,60,.055)!important;
    transition:height .18s ease,box-shadow .18s ease!important;
  }

  body.al-public-search-compact .al-main-header .al-main-header-inner{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    align-items:center!important;
    width:100%!important;
    max-width:1900px!important;
    gap:18px!important;
  }
  body.al-public-search-compact .al-main-header .al-header-brand{
    grid-column:1!important;
    justify-self:start!important;
    position:relative!important;
    z-index:2!important;
  }
  body.al-public-search-compact .al-main-header .al-primary-nav{
    display:none!important;
  }
  body.al-public-search-compact .al-main-header .al-header-actions{
    grid-column:2!important;
    justify-self:end!important;
    position:relative!important;
    z-index:2!important;
  }

  /* The service search is visually promoted into the one sticky header row.
     The transparent zone itself does not block logo/account controls. */
  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{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    height:76px!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border:0!important;
    z-index:905!important;
    pointer-events:none!important;
    overflow:visible!important;
  }

  body.al-public-search-compact.al-hp-body .al-search,
  body.al-public-search-compact.al-cars-body .cp-search-v173,
  body.al-public-search-compact.al-experiences-body .ex175-search{
    position:absolute!important;
    top:9px!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    margin:0!important;
    min-height:58px!important;
    height:58px!important;
    padding:5px 7px!important;
    border:1px solid #e0e4ea!important;
    border-radius:999px!important;
    background:#fff!important;
    box-shadow:0 5px 18px rgba(18,35,60,.10)!important;
    overflow:visible!important;
    pointer-events:auto!important;
    transition:width .18s ease,height .18s ease,box-shadow .18s ease!important;
  }

  body.al-public-search-compact.al-hp-body .al-search{
    width:min(760px,calc(100vw - 560px))!important;
    grid-template-columns:1.03fr 1.24fr .78fr 118px!important;
  }
  body.al-public-search-compact.al-cars-body .cp-search-v173,
  body.al-public-search-compact.al-experiences-body .ex175-search{
    width:min(900px,calc(100vw - 540px))!important;
    grid-template-columns:1fr 1.14fr 1fr .84fr 116px!important;
  }

  body.al-public-search-compact :is(.al-search-field,.cp-search-field-v173,.ex175-search-field){
    min-height:46px!important;
    padding:3px 12px!important;
    gap:8px!important;
  }
  body.al-public-search-compact :is(.al-search-field,.cp-search-field-v173,.ex175-search-field)>svg,
  body.al-public-search-compact :is(.al-search-field,.cp-search-field-v173,.ex175-search-field)>.al-icon,
  body.al-public-search-compact :is(.al-search-field,.cp-search-field-v173,.ex175-search-field)>.cp-icon,
  body.al-public-search-compact :is(.al-search-field,.cp-search-field-v173,.ex175-search-field)>.ex-icon{
    width:19px!important;
    height:19px!important;
  }
  body.al-public-search-compact :is(.al-search-field,.cp-search-field-v173,.ex175-search-field) strong{
    font-size:11px!important;
    line-height:1.08!important;
    font-weight:650!important;
  }
  body.al-public-search-compact :is(.al-search-field,.cp-search-field-v173,.ex175-search-field) small{
    margin-top:2px!important;
    font-size:10px!important;
    line-height:1.12!important;
  }
  body.al-public-search-compact :is(.al-search-submit,.cp-search-submit,.ex150-search-submit){
    min-height:46px!important;
    height:46px!important;
    margin-left:5px!important;
    border-radius:999px!important;
    font-size:12px!important;
    gap:7px!important;
  }
  body.al-public-search-compact :is(.al-search-submit,.cp-search-submit,.ex150-search-submit) :is(svg,.al-icon,.cp-icon,.ex-icon){
    width:18px!important;
    height:18px!important;
  }

  /* Search panels still open beneath the compact header instead of inside it. */
  body.al-public-search-compact.al-hp-body .al-search-shell>.al-ds-root,
  body.al-public-search-compact.al-cars-body .cp-search-zone-v173>.al-us-root,
  body.al-public-search-compact.al-experiences-body .ex-search-zone-v175>.al-us-root{
    position:absolute!important;
    top:76px!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    margin:0!important;
    pointer-events:auto!important;
    overflow:visible!important;
  }

  /* Keep every non-form search child interactive when its panel is open. */
  body.al-public-search-compact.al-hp-body .al-search-shell>*:not(.al-search),
  body.al-public-search-compact.al-cars-body .cp-search-zone-v173>*:not(.cp-search-v173),
  body.al-public-search-compact.al-experiences-body .ex-search-zone-v175>*:not(.ex175-search){
    pointer-events:auto!important;
  }
}

/* On narrower desktop/tablet the header remains sticky, but the search scrolls
   normally rather than being forced into a cramped second row. */
@media (min-width:700px) and (max-width:1179px){
  body.al-public-search-compact{--al-sticky-single-row-fallback:1}
}

@media (max-width:699px){
  body.al-public-search-compact{--al-public-search-compact-disabled:1}
}

@media (prefers-reduced-motion:reduce){
  body.al-public-search-compact .al-main-header,
  body.al-public-search-compact :is(.al-search,.cp-search-v173,.ex175-search){
    transition:none!important;
  }
}
