/* 하단 네비게이션 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    z-index: 997;
    pointer-events: none;
}

/* 탑 버튼 */
.bottom-nav__top {
    position: absolute;
    right: 12px;
    bottom: 70px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, bottom 0.5s ease;
    pointer-events: none;
}
.bottom-nav__top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.bottom-nav__top.bar-visible {
    bottom: 70px;
}
.bottom-nav__top:not(.bar-visible) {
    bottom: 15px;
}
.bottom-nav__top button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.2s;
}
.bottom-nav__top button:hover {
    background: #f5f5f5;
}
.bottom-nav__top button svg {
    width: 14px;
    height: 18px;
}

/* 탭바 */
.bottom-nav__tabBar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid #eee;
    height: 56px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    pointer-events: auto;
}
.bottom-nav__tabBar.show {
    transform: translateY(0);
}

.bottom-nav__tabBar li {
    flex: 1;
    text-align: center;
}
.bottom-nav__tabBar li a,
.bottom-nav__tabBar li button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #555;
    font-size: 10px;
    letter-spacing: -0.3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 0;
    width: 100%;
    line-height: 1;
}
.bottom-nav__tabBar li a:hover,
.bottom-nav__tabBar li button:hover {
    color: #222;
}
.bottom-nav__tabBar li svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.bottom-nav__tabBar li span {
    display: block;
    margin-top: 1px;
}

/* 기존 탑 버튼 숨김 */
#top_btn {
    display: none !important;
}

/* 푸터에 하단 네비 높이만큼 여유 */
#ft {
    padding-bottom: 60px;
}
