/* HomeLynx V8.0.165 — Native Density Pass.
   Parent: V8.0.164.
   Scope: mobile search chrome geometry only.
   Goal: reclaim top glass, slightly enlarge intent labels, and let the expanded
   property sheet use the recovered pixels while Neo remains on its locked
   datum outside the iPhone camera/Dynamic Island lane.
   No map data/gestures, pins, PSET, Worth, hopper/source-book, owner, routing,
   Neo answer logic, media, photo claims, listing identity, or field behavior. */

@media(max-width:640px){
  :root{
    --hlx-header-sheet-gap:0px;
  }

  /* Compact native shell. Neo and the house mark stay on the same locked top
     datum from .164; only the amount of white panel reserved beneath them is
     reduced. The orb is allowed to visually occupy the quiet center between
     Rent and Sell rather than forcing a separate blank row. */
  body.hlx-search-active .hlx-v8-head{
    height:calc(var(--hlx-stable-safe-top, env(safe-area-inset-top,0px)) + 82px)!important;
    min-height:calc(var(--hlx-stable-safe-top, env(safe-area-inset-top,0px)) + 82px)!important;
    padding:0 14px!important;
  }

  /* Tabs rise into the reclaimed lane. A modest 15px Plex size reads like a
     native control without becoming a chunky nav bar. */
  body.hlx-search-active .hlx-v8-head .hlx-intent-tabs{
    left:12px!important;
    right:12px!important;
    bottom:0!important;
    height:38px!important;
    min-height:38px!important;
  }
  body.hlx-search-active .hlx-v8-head .hlx-intent-tabs button{
    height:37px!important;
    min-height:37px!important;
    padding:5px 6px 7px!important;
    font-size:15px!important;
    line-height:1!important;
    font-weight:500!important;
  }
  body.hlx-search-active .hlx-v8-head .hlx-intent-tabs button.active{
    font-weight:600!important;
  }

  /* Expanded sheet uses every pixel released by the compact header. Keep one
     visual pixel of separation from the fixed chrome, no decorative moat. */
  body.hlx-search-active .hlx-v8-sheet.is-slidable{
    max-height:calc(100dvh - var(--hlx-sheet-bottom) - var(--hlx-fixed-header-height) - 1px)!important;
  }
  @supports (height:100svh){
    body.hlx-search-active .hlx-v8-sheet.is-slidable{
      max-height:calc(100svh - var(--hlx-sheet-bottom) - var(--hlx-fixed-header-height) - 1px)!important;
    }
  }
}
