/* HomeLynx V8.0.164 — Glass Real Estate Pass.
   Parent: V8.0.163.
   Scope: mobile chrome geometry only.
   - Collapse the oversized white header void while keeping mark / Neo / tabs fixed.
   - Put the search instrument on the true bottom glass datum, a touch wider + shorter.
   - Keep Google provider/legal visible by lifting only provider chrome above the dock.
   No map data/gestures, pins, PSET, Worth, hopper/source-book, owner, routing,
   Neo answer logic, media, photo claims, or listing identity changes. */

@media(max-width:640px){
  :root{
    --hlx-dock-h:52px;
    --hlx-dock-bottom:2px;
    --hlx-sheet-bottom:calc(var(--hlx-dock-h) + 2px + var(--hlx-keyboard-inset,0px));
  }

  /* The header is a fixed instrument panel, not a hero block.  Neo and the mark
     occupy the top lane; tabs terminate the panel.  Nothing here reflows when
     sheets/search/keyboard state changes. */
  body.hlx-search-active .hlx-v8-head{
    box-sizing:border-box!important;
    height:calc(var(--hlx-stable-safe-top, env(safe-area-inset-top,0px)) + 98px)!important;
    min-height:calc(var(--hlx-stable-safe-top, env(safe-area-inset-top,0px)) + 98px)!important;
    padding:0 14px!important;
    overflow:visible!important;
  }

  body.hlx-search-active .hlx-v8-brand{
    left:18px!important;
    top:calc(var(--hlx-stable-safe-top, env(safe-area-inset-top,0px)) + 5px)!important;
    width:36px!important;
    height:36px!important;
  }
  body.hlx-search-active .hlx-v8-brand img{
    width:36px!important;
    height:36px!important;
  }

  body.hlx-search-active .hlx-neo-float{
    top:calc(var(--hlx-stable-safe-top, env(safe-area-inset-top,0px)) - 6px)!important;
  }
  body.hlx-search-active .hlx-neo-float__orb,
  body.hlx-search-active .hlx-neo-float__core{
    width:64px!important;
    height:64px!important;
  }
  body.hlx-search-active .hlx-neo-float__core hlx-neo,
  body.hlx-search-active .hlx-neo-float__core .hlx-neo{
    --neo-size:62px!important;
  }

  body.hlx-search-active .hlx-v8-head .hlx-intent-tabs{
    position:absolute!important;
    left:14px!important;
    right:14px!important;
    bottom:0!important;
    width:auto!important;
    max-width:none!important;
    height:40px!important;
    min-height:40px!important;
    margin:0!important;
    padding:0!important;
  }
  body.hlx-search-active .hlx-v8-head .hlx-intent-tabs button{
    min-height:39px!important;
    height:39px!important;
    padding:5px 6px 7px!important;
  }

  /* Bottom means bottom.  Eight pixels of side glass keeps it floating without
     sacrificing useful map/results area. */
  .hlx-v8-searchrow.hlx-bottom-dock{
    width:calc(100vw - 16px)!important;
    max-width:600px!important;
    height:52px!important;
    min-height:52px!important;
    bottom:calc(2px + var(--hlx-keyboard-inset,0px))!important;
    padding:3px 7px!important;
    border-radius:7px!important;
  }
  .hlx-v8-searchrow.hlx-bottom-dock .hlx-v8-input{
    height:42px!important;
  }
  .hlx-neo-attach-chiphost.hlx-bottom-dock-chiphost{
    width:calc(100vw - 16px)!important;
    max-width:600px!important;
    bottom:calc(58px + var(--hlx-keyboard-inset,0px))!important;
  }

  /* Sheet terminates at the dock.  Reclaimed header and bottom dead-space are
     given back to content, not converted into another decorative gutter. */
  .hlx-v8-sheet{
    bottom:var(--hlx-sheet-bottom)!important;
  }

  /* Google attribution/legal remains visible.  Since HomeLynx now owns the
     physical bottom lane, lift only provider chrome above the 52px instrument.
     This is presentation-only; map canvas, gestures and data are untouched. */
  body.hlx-search-active .hlx-v8-map .gm-style-cc{
    transform:translateY(-54px)!important;
  }
  body.hlx-search-active .hlx-v8-map a[href*="maps.google.com"]{
    transform:translateY(-54px)!important;
  }
}

@media(max-width:640px) and (display-mode:standalone){
  :root{
    --hlx-dock-bottom:calc(2px + env(safe-area-inset-bottom,0px));
    --hlx-sheet-bottom:calc(var(--hlx-dock-h) + 2px + env(safe-area-inset-bottom,0px) + var(--hlx-keyboard-inset,0px));
  }
  .hlx-v8-searchrow.hlx-bottom-dock{
    bottom:calc(2px + env(safe-area-inset-bottom,0px) + var(--hlx-keyboard-inset,0px))!important;
  }
  .hlx-neo-attach-chiphost.hlx-bottom-dock-chiphost{
    bottom:calc(58px + env(safe-area-inset-bottom,0px) + var(--hlx-keyboard-inset,0px))!important;
  }
}
