/* HomeLynx V8.0.160 — Header Glass Lock.
   Parent: V8.0.159.
   Chrome/viewport presentation only: pure-white fixed header, stable safe-area
   geometry, Neo/header lock, and expanded-sheet clearance beneath the header.
   No map/PSET/Worth/hopper/source-book/owner/photo/search-routing changes. */

:root{
  --hlx-stable-safe-top:env(safe-area-inset-top,0px);
  --hlx-fixed-header-height:132px;
  --hlx-header-sheet-gap:8px;
}

/* One material at the top of the glass: true white, no warm/tan fade and no
   translucency that lets the provider map tint the header. */
.hlx-v8-head{
  position:fixed!important;
  top:0!important;
  z-index:30!important;
  background:#FFFFFF!important;
  background-image:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

/* Keep the app's top chrome geometry independent from Safari's changing
   visual viewport after focus/search/sheet interaction. The pixel value is
   captured once by the 8.0.160 helper and is not allowed to collapse mid-use. */
@media(max-width:640px){
  .hlx-v8-head{
    padding-top:calc(10px + var(--hlx-stable-safe-top, env(safe-area-inset-top,0px)))!important;
  }
  .hlx-v8-brand{
    top:calc(var(--hlx-stable-safe-top, env(safe-area-inset-top,0px)) + 8px)!important;
  }
  body.hlx-search-active .hlx-neo-float{
    top:calc(var(--hlx-stable-safe-top, env(safe-area-inset-top,0px)) - 8px)!important;
  }
}

/* Neo remains the centered header instrument in every sheet/search state.
   Sheet-state JS may continue doing its internal bookkeeping, but it no longer
   gets to move the visible object out of the header lane. */
body.hlx-search-active .hlx-neo-float{
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
}

/* The slider may expand, but not through the fixed header. This is a glass
   bound only: it does not alter rail contents, counts, map state, or slider
   routing. The existing bottom-dock clearance remains authoritative. */
.hlx-v8-sheet.is-slidable{
  max-height:calc(100dvh - var(--hlx-sheet-bottom) - var(--hlx-fixed-header-height) - var(--hlx-header-sheet-gap))!important;
}

@supports (height:100svh){
  .hlx-v8-sheet.is-slidable{
    max-height:calc(100svh - var(--hlx-sheet-bottom) - var(--hlx-fixed-header-height) - var(--hlx-header-sheet-gap))!important;
  }
}

@media(min-width:641px){
  .hlx-v8-head{padding-top:18px!important}
}
