/* 아파트앤유 모바일 공통 네비게이션
   상단바는 site_topbar.php가 전담합니다.
   이 파일은 모바일 드로어와 하단바만 담당합니다. */

.aptnu-mobile-bottom,
.aptnu-mobile-drawer,
.aptnu-mobile-backdrop{
  display:none;
}

@media (max-width:1024px){
  .aptnu-mobile-bottom{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    top:auto !important;
    z-index:2900;
    height:calc(64px + env(safe-area-inset-bottom));
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:stretch;
    background:rgba(255,255,255,.98);
    border-top:1px solid #e8eaed;
    box-shadow:0 -4px 18px rgba(15,23,42,.06);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    padding-bottom:env(safe-area-inset-bottom);
    transform:translateZ(0);
  }

  body.aptnu-mobile-has-bottom{
    padding-bottom:calc(74px + env(safe-area-inset-bottom)) !important;
  }

  .aptnu-mobile-bottom a{
    position:relative;
    display:flex;
    min-width:0;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    color:#777;
    text-decoration:none;
    font-size:10px;
    font-weight:800;
    -webkit-tap-highlight-color:transparent;
  }

  .aptnu-mobile-bottom a.active{color:#f57a23}

  .aptnu-mobile-bottom .nav-icon{
    font-size:20px;
    line-height:1;
  }

  .aptnu-mobile-bottom .nav-label{
    max-width:100%;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .aptnu-mobile-badge{
    position:absolute;
    top:5px;
    left:50%;
    margin-left:8px;
    min-width:18px;
    height:18px;
    padding:0 5px;
    border-radius:10px;
    background:#e53935;
    color:#fff;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
    font-weight:900;
  }

  .aptnu-mobile-badge[hidden]{display:none !important}

  .aptnu-mobile-backdrop{
    display:block;
    position:fixed;
    inset:0;
    z-index:3090;
    background:rgba(0,0,0,.34);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .18s ease,visibility .18s ease;
  }

  .aptnu-mobile-drawer{
    display:block;
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    z-index:3100;
    width:min(84vw,340px);
    background:#fff;
    transform:translateX(102%);
    transition:transform .2s ease;
    box-shadow:-10px 0 30px rgba(15,23,42,.14);
    overflow-y:auto;
    overscroll-behavior:contain;
  }

  body.aptnu-drawer-open .aptnu-mobile-backdrop{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }

  body.aptnu-drawer-open .aptnu-mobile-drawer{
    transform:translateX(0);
  }

  body.aptnu-drawer-open{
    overflow:hidden;
    touch-action:none;
  }

  .aptnu-mobile-drawer-head{
    min-height:64px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 16px;
    border-bottom:1px solid #eee;
    position:sticky;
    top:0;
    z-index:2;
    background:#fff;
  }

  .aptnu-mobile-drawer-head strong{
    font-size:16px;
  }

  .aptnu-mobile-drawer-close{
    width:40px;
    height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:10px;
    background:#f7f7f7;
    color:#444;
    font-size:27px;
    line-height:1;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }

  .aptnu-mobile-userbox{
    margin:14px;
    padding:14px;
    border-radius:14px;
    background:#fff7ee;
    color:#333;
    font-size:13px;
  }

  .aptnu-mobile-userbox b{color:#d96d00}

  .aptnu-mobile-menu-list{
    padding:2px 10px calc(20px + env(safe-area-inset-bottom));
  }

  .aptnu-mobile-menu-list a{
    display:flex;
    align-items:center;
    min-height:48px;
    padding:0 12px;
    border-radius:10px;
    color:#252525;
    text-decoration:none;
    font-size:14px;
    font-weight:800;
    border-bottom:1px solid #f3f3f3;
    -webkit-tap-highlight-color:transparent;
  }

  .aptnu-mobile-menu-list a:active{background:#fafafa}

  .aptnu-mobile-menu-group{
    padding:13px 12px 6px;
    color:#999;
    font-size:11px;
    font-weight:900;
  }

  .page{padding-top:12px}
}
