/* Bid2Stay 29.0.9.3.0 — Premium Mobile Header, Account Drawer & Login Consolidation
   Presentation/state visibility only. Authentication and booking logic unchanged. */
@media (max-width:820px){
  header.b2s-global-header[data-b2s-header-type="public"]{
    position:relative!important;
    z-index:1400!important;
    background:#101b1a!important;
    border-bottom:1px solid rgba(210,157,47,.42)!important;
    box-shadow:0 10px 30px rgba(7,20,25,.12)!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-global-header-inner{
    position:relative!important;
    min-height:72px!important;
    padding:11px 18px!important;
    grid-template-columns:minmax(0,1fr) 44px!important;
    gap:12px!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-global-brand img{
    max-width:166px!important;
    max-height:43px!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-menu-toggle{
    width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
    border:1px solid rgba(255,255,255,.18)!important;
    border-radius:14px!important;
    background:rgba(255,255,255,.96)!important;
    color:#102238!important;
    box-shadow:0 8px 24px rgba(2,10,18,.22)!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-menu-toggle:focus-visible{
    outline:3px solid rgba(242,177,41,.36)!important;
    outline-offset:3px!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer{
    position:absolute!important;
    top:calc(100% + 8px)!important;
    left:0!important;right:0!important;
    grid-column:auto!important;grid-row:auto!important;
    width:auto!important;max-width:none!important;
    margin:0!important;
    padding:10px!important;
    border:1px solid rgba(237,190,88,.36)!important;
    border-radius:20px!important;
    background:linear-gradient(180deg,#15252a 0%,#101c22 100%)!important;
    box-shadow:0 24px 70px rgba(3,12,18,.34)!important;
    max-height:min(72vh,620px)!important;
    overflow:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"].b2s-mobile-menu-open .b2s-mobile-drawer{
    display:flex!important;flex-direction:column!important;gap:10px!important;
    animation:b2sDrawerIn .18s ease-out both!important;
  }
  @keyframes b2sDrawerIn{from{opacity:0;transform:translateY(-8px) scale(.985)}to{opacity:1;transform:none}}

  /* Navigation group */
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-nav{
    display:grid!important;grid-template-columns:1fr!important;gap:2px!important;
    padding:4px!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-nav::before{
    content:"Explore Bid2Stay";
    display:block!important;
    padding:8px 10px 7px!important;
    color:#c7a45a!important;
    font-size:11px!important;font-weight:800!important;letter-spacing:.13em!important;text-transform:uppercase!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-nav > a{
    min-height:48px!important;
    padding:12px 13px!important;
    border-radius:12px!important;
    color:#f7fafb!important;
    font-size:15px!important;font-weight:750!important;
    background:transparent!important;
    border:1px solid transparent!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-nav > a:hover,
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-nav > a:focus-visible{
    background:rgba(255,255,255,.07)!important;
    border-color:rgba(255,255,255,.08)!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-nav > a[aria-current="page"]{
    background:rgba(227,171,53,.14)!important;
    border-color:rgba(227,171,53,.25)!important;
    color:#ffd778!important;
  }

  /* Account group */
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-actions,
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer [data-b2s-public-actions]{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:12px 4px 4px!important;
    border:0!important;
    border-top:1px solid rgba(255,255,255,.10)!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-actions::before,
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer [data-b2s-public-actions]::before{
    content:"Your account";
    display:block!important;
    padding:0 10px 9px!important;
    color:#c7a45a!important;
    font-size:11px!important;font-weight:800!important;letter-spacing:.13em!important;text-transform:uppercase!important;
  }

  /* Hard session-state lock: only ONE action set may display. This fixes the repeated Logout defect. */
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-public-action-set{
    display:none!important;
    width:100%!important;
    gap:8px!important;
  }
  html:not([data-b2s-session-hint]) header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-public-action-set[data-b2s-action-state="signed-out"],
  html[data-b2s-session-hint="signed-out"] header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-public-action-set[data-b2s-action-state="signed-out"],
  html[data-b2s-session-hint="guest"] header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-public-action-set[data-b2s-action-state="guest"],
  html[data-b2s-session-hint="hotel"] header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-public-action-set[data-b2s-action-state="hotel"],
  html[data-b2s-session-hint="admin"] header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-public-action-set[data-b2s-action-state="admin"]{
    display:grid!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-public-action-set > a{
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;min-height:48px!important;
    padding:12px 14px!important;margin:0!important;
    border-radius:12px!important;
    font-size:15px!important;font-weight:800!important;
    text-decoration:none!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-login,
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-session-account{
    color:#0c1d2a!important;
    background:linear-gradient(180deg,#f4bf43 0%,#e8aa25 100%)!important;
    border:1px solid #f0c25a!important;
    box-shadow:0 8px 18px rgba(232,170,37,.18)!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-session-signout{
    color:#e9eef1!important;
    background:rgba(255,255,255,.055)!important;
    border:1px solid rgba(255,255,255,.12)!important;
  }
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-session-signout::before{
    content:"Sign out";
    font-size:0;
  }

  /* Backdrop to separate navigation from content without obscuring the brand bar. */
  header.b2s-global-header[data-b2s-header-type="public"].b2s-mobile-menu-open::after{
    content:"";
    position:fixed!important;
    inset:0!important;
    z-index:-1!important;
    background:rgba(5,14,18,.28)!important;
    backdrop-filter:blur(1.5px)!important;
    -webkit-backdrop-filter:blur(1.5px)!important;
  }

  body.b2s-login-page header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-nav{
    display:none!important;
  }
  body.b2s-login-page header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer .b2s-global-actions,
  body.b2s-login-page header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer [data-b2s-public-actions]{
    border-top:0!important;padding-top:4px!important;
  }
}

@media (max-width:430px){
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-global-header-inner{padding:10px 14px!important;min-height:68px!important}
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-global-brand img{max-width:150px!important;max-height:40px!important}
  header.b2s-global-header[data-b2s-header-type="public"] .b2s-mobile-drawer{left:0!important;right:0!important;border-radius:18px!important;max-height:74vh!important}
}
