/* Bid2Stay 29.0.9.2.6 — Mobile Header Navigation & Cascade Integrity Lock
   Scope: public header presentation only. No booking, bidding, auth, provider or admin workflow logic. */
@media (max-width: 820px){
  header.b2s-global-header[data-b2s-header-type="public"]{
    position:relative!important;
    z-index:1100!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"] .b2s-global-header-inner{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 48px!important;
    grid-template-rows:auto!important;
    align-items:center!important;
    gap:10px!important;
    width:100%!important;
    max-width:none!important;
    min-height:68px!important;
    padding:10px 16px!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"] .b2s-global-brand{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    width:auto!important;
    margin:0!important;
    justify-self:start!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"] .b2s-global-brand img{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:152px!important;
    max-height:42px!important;
    margin:0!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-menu-toggle{
    grid-column:2!important;
    grid-row:1!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    justify-self:end!important;
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
    max-width:46px!important;
    max-height:46px!important;
    padding:0!important;
    margin:0!important;
    border:1px solid rgba(218,227,234,.95)!important;
    border-radius:14px!important;
    background:#fff!important;
    color:#102238!important;
    box-shadow:0 5px 16px rgba(8,28,45,.12)!important;
    line-height:1!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-menu-toggle svg{
    width:23px!important;
    height:23px!important;
    max-width:23px!important;
    max-height:23px!important;
  }

  /* Closed state: one clean row — logo + menu only. */
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-global-nav,
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-global-actions,
  header.b2s-global-header[data-b2s-header-type="public"] [data-b2s-public-actions]{
    display:none!important;
  }

  /* Open state: use the existing live nav/action DOM so session actions stay current. */
  header.b2s-global-header[data-b2s-header-type="public"].b2s-mobile-menu-open .b2s-global-nav{
    grid-column:1 / -1!important;
    grid-row:2!important;
    position:static!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    max-width:100%!important;
    margin:2px 0 0!important;
    padding:9px!important;
    gap:4px!important;
    border:1px solid #dfe6ec!important;
    border-bottom:0!important;
    border-radius:16px 16px 8px 8px!important;
    background:#fff!important;
    box-shadow:0 14px 34px rgba(8,28,45,.14)!important;
    overflow:visible!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"].b2s-mobile-menu-open .b2s-global-actions,
  header.b2s-global-header[data-b2s-header-type="public"].b2s-mobile-menu-open [data-b2s-public-actions]{
    grid-column:1 / -1!important;
    grid-row:3!important;
    position:static!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    max-width:100%!important;
    margin:-10px 0 0!important;
    padding:8px 9px 10px!important;
    gap:4px!important;
    border:1px solid #dfe6ec!important;
    border-top:0!important;
    border-radius:8px 8px 16px 16px!important;
    background:#fff!important;
    box-shadow:0 18px 34px rgba(8,28,45,.14)!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"].b2s-mobile-menu-open .b2s-public-action-set:not([hidden]){
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    gap:4px!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"].b2s-mobile-menu-open .b2s-global-nav > a,
  header.b2s-global-header[data-b2s-header-type="public"].b2s-mobile-menu-open .b2s-global-actions a,
  header.b2s-global-header[data-b2s-header-type="public"].b2s-mobile-menu-open [data-b2s-public-actions] a{
    display:flex!important;
    align-items:center!important;
    width:100%!important;
    min-height:46px!important;
    padding:10px 12px!important;
    margin:0!important;
    border-radius:10px!important;
    color:#102238!important;
    font-size:15px!important;
    line-height:1.2!important;
    text-decoration:none!important;
    white-space:normal!important;
  }

  header.b2s-global-header[data-b2s-header-type="public"].b2s-mobile-menu-open .b2s-global-nav > a[aria-current="page"]{
    background:#f7f2e7!important;
  }
}

@media (max-width: 430px){
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-global-header-inner{
    grid-template-columns:minmax(0,1fr) 46px!important;
    padding:9px 14px!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-global-brand img{
    max-width:142px!important;
    max-height:40px!important;
  }
}
