/* ============================================================
   الشريط السفلي (تجربة التطبيق على الموبايل) — مشترك بين الموقع ولوحة الشركة
   ============================================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav .bottom-nav-inner {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 2px 7px;
    min-height: 60px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 600;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
    font-size: 1.15rem;
    line-height: 1;
}

.bottom-nav-item.active {
    color: #009a8e;
}

.bottom-nav-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    right: 22%;
    left: 22%;
    height: 3px;
    background: #009a8e;
    border-radius: 0 0 4px 4px;
}

.bottom-nav-item .nav-badge {
    position: absolute;
    top: 4px;
    left: calc(50% + 2px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #f59e0b;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* زر الحجز المباشر المرتفع في لوحة الشركة */
.bottom-nav-item.fab-item {
    padding-top: 0;
}

.bottom-nav-item.fab-item .fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b5a5, #009a8e);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-top: -26px;
    box-shadow: 0 6px 16px rgba(0, 154, 142, 0.45);
    border: 4px solid #ffffff;
    transition: transform 0.15s ease;
}

.bottom-nav-item.fab-item:active .fab-btn {
    transform: scale(0.92);
}

/* مساحة أسفل المحتوى حتى لا يختفي وراء الشريط الثابت */
body.has-bottom-nav {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
    .bottom-nav {
        display: none !important;
    }

    body.has-bottom-nav {
        padding-bottom: 0;
    }
}
