/* HomeLynx V8.0.166 — Expanded Sheet Lock.
   Parent: V8.0.165.
   Scope: mobile results-sheet geometry and browse-surface stacking only.
   - Expanded slider terminates exactly at the fixed header; no live-map moat.
   - Expanded top edge goes flush/square so map cannot peek through the corners.
   - Sticky results header owns the top stacking plane so photo-local Save/My Home
     radios scroll underneath it and can never collide with the close control.
   No map data/gestures, pins, PSET, Worth, hoppers/source books, owner data,
   routing, Neo logic, media, photo claims, listing identity, or dock geometry. */

@media(max-width:640px){
  :root{
    /* .165's actual compact header = stable iOS safe-top + 82px. Keep the
       clearance token tied to that real geometry instead of the older 132px
       hard-coded shell value. */
    --hlx-fixed-header-height:calc(var(--hlx-stable-safe-top, env(safe-area-inset-top,0px)) + 82px);
    --hlx-header-sheet-gap:0px;
  }

  /* Full expansion means full content glass: header above, dock below, sheet in
     between. No decorative strip of live map survives at the top. */
  body.hlx-search-active .hlx-v8-sheet.is-slidable.is-expanded{
    height:calc(100svh - var(--hlx-sheet-bottom) - var(--hlx-fixed-header-height))!important;
    max-height:calc(100svh - var(--hlx-sheet-bottom) - var(--hlx-fixed-header-height))!important;
    border-radius:0!important;
    border-top:1px solid rgba(23,24,22,.10)!important;
    box-shadow:none!important;
  }
  @supports not (height:100svh){
    body.hlx-search-active .hlx-v8-sheet.is-slidable.is-expanded{
      height:calc(100vh - var(--hlx-sheet-bottom) - var(--hlx-fixed-header-height))!important;
      max-height:calc(100vh - var(--hlx-sheet-bottom) - var(--hlx-fixed-header-height))!important;
    }
  }

  /* The results header is the top instrument plane. Photo-local controls stay
     attached to their photos and disappear cleanly underneath this opaque plane
     while the card scrolls; equal z-index was the source of the drifting overlap. */
  body.hlx-search-active .hlx-v8-sheet.is-results-rail{
    isolation:isolate!important;
  }
  body.hlx-search-active .hlx-v8-sheet.is-results-rail .hlx-v8-results-head{
    z-index:20!important;
    background:#FFFFFF!important;
    background-image:none!important;
    box-shadow:0 1px 0 rgba(23,24,22,.08)!important;
  }
  body.hlx-search-active .hlx-v8-sheet.is-results-rail .hlx-v8-result-card{
    z-index:0!important;
  }
  body.hlx-search-active .hlx-v8-sheet.is-results-rail .hlx-v8-result-photo-track{
    z-index:4!important;
  }

  /* Keep the close target above the sticky plane without increasing its visual
     weight. */
  body.hlx-search-active .hlx-v8-sheet.is-results-rail .hlx-v8-results-head>button{
    position:relative!important;
    z-index:2!important;
  }
}
