﻿.mobile-bottom-nav {
    display: none;
}


@media (max-width: 768px) {

    .mobile-bottom-nav {
        position: fixed;
        left: 50%;
        bottom: calc( 12px + env(safe-area-inset-bottom) );
        transform: translateX(-50%);
        width: calc(100% - 28px);
        max-width: 430px;
        height: 62px;
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 6px 8px;
        border-radius: 22px;
        background: rgba(255, 255, 255, .68);
        backdrop-filter: blur(20px) saturate(150%);
        -webkit-backdrop-filter: blur(20px) saturate(150%);
        border: 1px solid rgba(255, 255, 255, .7);
        box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
        z-index: 9999;
        transition: transform .28s ease, opacity .22s ease;
    }


    .mobile-nav-item {
        flex: 1;
        min-width: 0;
        height: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: rgba(70, 70, 70, .72);
        text-decoration: none;
        font-size: 10px;
        font-weight: 600;
        border-radius: 16px;
        transition: background .2s ease, color .2s ease, transform .15s ease;
    }


        .mobile-nav-item i {
            font-size: 19px;
        }


        /*
     * Active destination.
     */
        .mobile-nav-item.active {
            color: #d71920;
            background: rgba(215, 25, 32, .08);
        }


        /*
     * Touch feedback.
     */
        .mobile-nav-item:active {
            transform: scale(.92);
        }


    /*
     * Hide while scrolling.
     */
    body.is-scrolling .mobile-bottom-nav {
        transform: translateX(-50%) translateY(120%);
        opacity: 0;
        pointer-events: none;
    }


    /*
     * Keep content above the floating bar.
     */
    body {
        padding-bottom: calc( 92px + env(safe-area-inset-bottom) );
    }
}
