/* HomeLynx V8.4.1R1 — Web OS Map-Boot Lock.
   Desktop/Web OS only. Mobile OS is intentionally out of scope and untouched.
   V8.4.1 activation law: this terminal shell is inert until the proven Google map has mounted (.gm-style).
   Ownership law: map = workspace; header = command layer; one explicit right intelligence pane. */

@media (min-width:1024px){
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation{
    --hlx-webos-pane:clamp(420px,31vw,500px);
    --hlx-webos-top:92px;
    --hlx-webos-edge:20px;
    --hlx-webos-search:clamp(340px,29vw,430px);
    --hlx-webos-bg:rgba(252,252,250,.975);
    --hlx-webos-line:rgba(18,20,19,.11);
    --hlx-webos-ink:#171817;
    --hlx-webos-muted:#6d716e;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation[data-hlx-webos-mode="property"]{
    --hlx-webos-pane:clamp(480px,42vw,620px);
  }

  /* Retire the old desktop rail/tabbar only inside Search/Web OS. */
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation #rail,
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation #tabbar{display:none!important;}
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation #app,
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation #view{
    position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;
    max-width:none!important;margin:0!important;padding:0!important;overflow:hidden!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-search{
    position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
    min-height:0!important;background:#eef1ef!important;overflow:hidden!important;
  }

  /* Map owns the desktop canvas. The intelligence pane only claims space when explicitly open. */
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-mapstage{
    position:absolute!important;inset:0!important;left:0!important;right:0!important;width:auto!important;
    transition:right .22s cubic-bezier(.2,.8,.2,1)!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation.hlx-web-intel-open .hlx-v8-mapstage{
    right:var(--hlx-webos-pane)!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-map,
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-map>.gm-style{
    width:100%!important;height:100%!important;max-width:none!important;
  }

  /* One desktop command layer. No mobile bottom-dock geometry on Web OS. */
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-head{
    position:absolute!important;z-index:9000!important;top:0!important;left:0!important;right:0!important;
    width:100%!important;height:var(--hlx-webos-top)!important;box-sizing:border-box!important;
    padding:0!important;margin:0!important;pointer-events:none!important;
    background:linear-gradient(180deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.94) 58%,rgba(255,255,255,0) 100%)!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-head>*{pointer-events:auto!important;}
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-brand{
    position:absolute!important;left:var(--hlx-webos-edge)!important;top:19px!important;
    width:auto!important;height:48px!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-brand img{width:146px!important;height:auto!important;}
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-head .hlx-intent-tabs{
    position:absolute!important;left:50%!important;top:20px!important;transform:translateX(-50%)!important;
    width:min(34vw,430px)!important;max-width:430px!important;margin:0!important;
    background:rgba(255,255,255,.91)!important;border:1px solid rgba(18,20,19,.09)!important;
    box-shadow:0 8px 24px rgba(18,20,19,.07)!important;backdrop-filter:blur(14px)!important;
    -webkit-backdrop-filter:blur(14px)!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-searchrow,
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-searchrow.hlx-bottom-dock{
    position:absolute!important;left:auto!important;right:78px!important;top:17px!important;bottom:auto!important;
    transform:none!important;width:var(--hlx-webos-search)!important;max-width:var(--hlx-webos-search)!important;height:52px!important;
    margin:0!important;border-radius:16px!important;background:rgba(255,255,255,.97)!important;
    border:1px solid rgba(18,20,19,.12)!important;box-shadow:0 9px 28px rgba(18,20,19,.09)!important;
    backdrop-filter:blur(15px)!important;-webkit-backdrop-filter:blur(15px)!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-searchrow.hlx-bottom-dock .hlx-v8-input{
    height:50px!important;font-size:14px!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-searchrow.hlx-bottom-dock .hlx-suggestions,
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-searchrow .hlx-suggestions{
    top:calc(100% + 8px)!important;bottom:auto!important;max-height:min(58vh,520px)!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-neo-attach-chiphost.hlx-bottom-dock-chiphost{
    position:absolute!important;left:auto!important;right:78px!important;top:74px!important;bottom:auto!important;
    transform:none!important;width:var(--hlx-webos-search)!important;max-width:var(--hlx-webos-search)!important;margin:0!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation:not(.hlx-relay) .hlx-menu-trigger,
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation.onboarding:not(.hlx-relay) .hlx-menu-trigger{
    display:grid!important;position:fixed!important;top:17px!important;right:20px!important;width:46px!important;height:46px!important;
    border-radius:15px!important;background:rgba(255,255,255,.97)!important;border:1px solid rgba(18,20,19,.11)!important;
    box-shadow:0 9px 28px rgba(18,20,19,.09)!important;z-index:9700!important;
  }

  /* The only Web OS intelligence surface. Background hydration cannot expose it. */
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-sheet[hidden],
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation:not(.hlx-web-intel-open) .hlx-v8-sheet{
    display:none!important;width:0!important;min-width:0!important;max-width:0!important;
    pointer-events:none!important;border:0!important;box-shadow:none!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation.hlx-web-intel-open .hlx-v8-sheet:not([hidden]){
    display:block!important;position:fixed!important;z-index:9100!important;
    top:var(--hlx-webos-top)!important;right:0!important;bottom:0!important;left:auto!important;
    width:var(--hlx-webos-pane)!important;min-width:var(--hlx-webos-pane)!important;max-width:var(--hlx-webos-pane)!important;
    height:auto!important;max-height:none!important;margin:0!important;padding:0!important;transform:none!important;
    border:0!important;border-left:1px solid var(--hlx-webos-line)!important;border-radius:0!important;
    background:var(--hlx-webos-bg)!important;box-shadow:-14px 0 36px rgba(18,20,19,.08)!important;
    overflow:hidden!important;pointer-events:auto!important;transition:none!important;
    backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-sheet>.hlx-v8-handle{display:none!important;}
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-sheet.is-slidable,
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-sheet.is-slidable.is-expanded,
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-sheet.is-slidable.is-dragging{
    top:var(--hlx-webos-top)!important;right:0!important;bottom:0!important;left:auto!important;
    height:auto!important;max-height:none!important;transform:none!important;transition:none!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-sheet #hlx-v8-area,
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-sheet #hlx-v8-pset{
    height:100%!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-sheet.is-web-intel-rail #hlx-v8-area{display:none!important;}
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-sheet.is-web-intel-rail #hlx-v8-pset{display:block!important;}
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-web-intel-close{
    position:fixed!important;z-index:9300!important;right:14px!important;top:calc(var(--hlx-webos-top) + 13px)!important;
    width:34px!important;height:34px!important;border-radius:10px!important;background:rgba(255,255,255,.96)!important;
    border:1px solid rgba(18,20,19,.11)!important;box-shadow:0 5px 18px rgba(18,20,19,.08)!important;
  }

  /* Results = desktop intelligence rail, not a stretched mobile sheet. */
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-results-rail{padding:0 16px 28px!important;}
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-results-head{
    position:sticky!important;top:0!important;z-index:4!important;margin:0 -16px 14px!important;padding:19px 18px 15px!important;
    background:rgba(252,252,250,.965)!important;border-bottom:1px solid var(--hlx-webos-line)!important;
    backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-results-head>button{display:none!important;}
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-results-stack{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-result-card{
    display:grid!important;grid-template-columns:156px minmax(0,1fr)!important;min-height:134px!important;
    border-radius:14px!important;border:1px solid rgba(18,20,19,.11)!important;background:#fff!important;
    box-shadow:none!important;overflow:hidden!important;transform:none!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-result-card:hover{
    border-color:rgba(18,20,19,.26)!important;box-shadow:0 8px 22px rgba(18,20,19,.07)!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-result-card.is-selected{
    border-color:#171817!important;box-shadow:0 0 0 1px #171817!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-result-photo,
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-result-photo-rail{
    height:100%!important;min-height:134px!important;border-radius:0!important;
  }
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-result-copy{padding:12px 13px!important;align-self:center!important;}

  /* Property intelligence gets desktop breathing room without changing Open Home chapters/data. */
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-pset-shell{padding:22px 24px 34px!important;max-width:none!important;}
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-ohm-wrap,
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-ohm-shell{max-width:none!important;width:100%!important;}

  /* Desktop focus/keyboard treatment. */
  html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation :is(button,a,input,[tabindex]):focus-visible{
    outline:2px solid rgba(19,20,19,.72)!important;outline-offset:2px!important;
  }

  /* Very wide screens: let the pane breathe without swallowing the map. */
  @media (min-width:1600px){
    html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation{--hlx-webos-pane:500px;--hlx-webos-search:440px;}
  }
  /* Compact desktop: preserve all three top controls without collapsing into Mobile OS. */
  @media (max-width:1240px){
    html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation{--hlx-webos-pane:420px;--hlx-webos-search:330px;}
    html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-brand img{width:128px!important;}
    html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-head .hlx-intent-tabs{width:330px!important;}
  }
  @media (max-width:1120px){
    html[data-hlx-os="web"] body.hlx-search-active.hlx-webos-foundation .hlx-v8-head .hlx-intent-tabs{
      left:170px!important;transform:none!important;width:260px!important;max-width:260px!important;
    }
  }
}
