/* StarVisit mobile/tablet navigation drawer — Step 15B browser fix */
.sv-mobile-drawer[hidden]{display:none!important}

@media (max-width:960px){
  .sv-header__inner{
    position:relative!important;
    padding-inline-start:64px!important;
  }

  .sv-menu-btn--rtl{
    display:inline-flex!important;
    position:absolute!important;
    inset-inline-start:0!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    z-index:4!important;
    align-items:center!important;
    justify-content:center!important;
    width:44px!important;
    height:44px!important;
    padding:0!important;
    color:#0f172a!important;
  }

  .sv-menu-btn--rtl i{
    display:block!important;
    position:absolute!important;
    left:50%!important;
    width:18px!important;
    height:1.5px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:999px!important;
    background:currentColor!important;
    transform:translateX(-50%)!important;
    opacity:1!important;
  }

  .sv-menu-btn--rtl i:nth-child(1){
    top:17px!important;
  }

  .sv-menu-btn--rtl i:nth-child(2){
    top:25px!important;
  }

  .sv-menu-btn--rtl i:nth-child(3){
    display:none!important;
  }

  .sv-mobile-drawer{
    position:fixed;
    inset:0;
    z-index:2147482000;
    direction:rtl;
    text-align:right;
    isolation:isolate;
  }

  .sv-mobile-drawer__backdrop{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border:0;
    padding:0;
    margin:0;
    background:rgba(15,23,42,.48);
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
    animation:sv-mobile-nav-backdrop-in .18s ease-out both;
  }

  .sv-mobile-drawer__panel{
    position:absolute;
    inset-block:0;
    inset-inline-start:0;
    width:min(88vw,380px);
    max-width:100%;
    height:100dvh;
    min-height:100%;
    overflow-y:auto;
    overscroll-behavior:contain;
    background:#fff;
    color:#0f172a;
    border-inline-end:1px solid #e2e8f0;
    box-shadow:-24px 0 70px rgba(15,23,42,.24);
    direction:rtl;
    text-align:right;
    outline:0;
    animation:sv-mobile-nav-panel-in .22s cubic-bezier(.2,.75,.25,1) both;
  }

  .sv-mobile-drawer__header{
    position:sticky;
    top:0;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    min-height:72px;
    padding:14px 18px;
    background:rgba(255,255,255,.96);
    border-bottom:1px solid #e2e8f0;
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
  }

  .sv-mobile-drawer__header strong{
    font-size:1rem;
    font-weight:800;
  }

  .sv-mobile-drawer__close{
    width:42px;
    height:42px;
    display:inline-grid;
    place-items:center;
    flex:0 0 42px;
    border:1px solid #dbe2ea;
    border-radius:12px;
    background:#fff;
    color:#0f172a;
    font:inherit;
    font-size:1.85rem;
    line-height:1;
    cursor:pointer;
  }

  .sv-mobile-drawer__nav{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding:16px;
    direction:rtl;
    text-align:right;
  }

  .sv-mobile-drawer__nav a,
  .sv-mobile-drawer__status{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    width:100%;
    min-height:50px;
    padding:11px 14px;
    border-radius:12px;
    color:#1e293b;
    text-decoration:none;
    text-align:right;
    direction:rtl;
    font-weight:700;
  }

  .sv-mobile-drawer__nav a:hover,
  .sv-mobile-drawer__nav a:focus-visible{
    background:#f1f5f9;
    color:#1d4ed8;
    outline:none;
  }

  .sv-mobile-drawer__status{
    background:#f8fafc;
    color:#64748b;
    font-weight:600;
  }

  body.sv-mobile-nav-open{
    overflow:hidden!important;
    touch-action:none;
  }

  .sv-mobile-drawer.is-closing .sv-mobile-drawer__backdrop{
    animation:sv-mobile-nav-backdrop-out .16s ease-in both;
  }

  .sv-mobile-drawer.is-closing .sv-mobile-drawer__panel{
    animation:sv-mobile-nav-panel-out .18s ease-in both;
  }
}

@media (min-width:961px){
  .sv-menu-btn--rtl,
  .sv-mobile-drawer{
    display:none!important;
  }
}

@keyframes sv-mobile-nav-panel-in{
  from{transform:translateX(100%);opacity:.96}
  to{transform:translateX(0);opacity:1}
}

@keyframes sv-mobile-nav-panel-out{
  from{transform:translateX(0);opacity:1}
  to{transform:translateX(100%);opacity:.96}
}

@keyframes sv-mobile-nav-backdrop-in{
  from{opacity:0}
  to{opacity:1}
}

@keyframes sv-mobile-nav-backdrop-out{
  from{opacity:1}
  to{opacity:0}
}

@media (prefers-reduced-motion:reduce){
  .sv-mobile-drawer__backdrop,
  .sv-mobile-drawer__panel,
  .sv-mobile-drawer.is-closing .sv-mobile-drawer__backdrop,
  .sv-mobile-drawer.is-closing .sv-mobile-drawer__panel{
    animation-duration:.001ms!important;
  }
}

/* B8 keyboard focus and primary action. */
@media(max-width:960px){
  .sv-mobile-drawer__nav a:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px}
  .sv-mobile-drawer__nav .sv-mobile-register{background:#2563eb;color:#fff;justify-content:center;margin-top:8px}
  .sv-mobile-drawer__nav .sv-mobile-register:hover{background:#1d4ed8;color:#fff}
}
@media(max-width:960px){.sv-public .sv-header__actions{display:none}.sv-public .sv-desktop-action{display:none}}
