/* Mobile bottom navigation — loaded with the include so every page looks the same */
.mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: 16px;
    background: rgba(16, 16, 16, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 8px 6px;
    z-index: 999;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.mobile-nav-item {
    display: grid;
    grid-template-rows: 31px auto;
    align-items: center;
    justify-items: center;
    gap: 4px;
    padding: 8px 6px 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.2s ease;
    flex: 1;
    min-width: 0;
    position: relative;
    background: transparent;
}

.mobile-nav-item:active {
    color: #e10600;
    background: transparent;
    transform: none;
}

.mobile-nav-item:active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #e10600;
    transform: translateX(-50%);
}

.mobile-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    color: inherit;
    overflow: visible;
    flex-shrink: 0;
}

.mobile-nav-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    overflow: visible;
}

.mobile-nav-icon--car svg {
    width: 29px;
    height: 29px;
}

.mobile-nav-text {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 88px;
    }

    .scroll-to-top {
        bottom: 96px;
    }
}

@media (max-width: 480px) {
    .mobile-nav {
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        padding: 6px 4px;
        border-radius: 24px;
    }

    .mobile-nav-item {
        padding: 6px 4px 10px;
        grid-template-rows: 26px auto;
    }

    .mobile-nav-icon {
        width: 26px;
        height: 26px;
    }

    .mobile-nav-icon svg {
        width: 22px;
        height: 22px;
    }

    .mobile-nav-icon--car svg {
        width: 26px;
        height: 26px;
    }

    .mobile-nav-text {
        font-size: 10px;
    }

    .scroll-to-top {
        width: 44px;
        height: 44px;
        bottom: 88px;
        right: 16px;
    }
}
