/* =============================================
   RDV Maroc - RTL (Arabic) Overrides
   ============================================= */

body, html[dir="rtl"] body {
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
    direction: rtl;
    text-align: right;
}

/* Flip margins & paddings */
html[dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
html[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
html[dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
html[dir="rtl"] .ms-1 { margin-left: 0 !important; margin-right: 0.25rem !important; }
html[dir="rtl"] .ms-2 { margin-left: 0 !important; margin-right: 0.5rem !important; }
html[dir="rtl"] .ms-3 { margin-left: 0 !important; margin-right: 1rem !important; }
html[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }

/* Top bar */
html[dir="rtl"] .top-bar-left { direction: rtl; }

/* Navbar */
html[dir="rtl"] .navbar-nav { flex-direction: row-reverse; }
html[dir="rtl"] .dropdown-menu-end { left: 0; right: auto; }

/* Breadcrumb */
html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    content: "\f053";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    float: right;
    padding-left: 0.5rem;
    padding-right: 0;
}

/* Cards */
html[dir="rtl"] .provider-info-list .info-item i { margin-left: 10px; margin-right: 0; }
html[dir="rtl"] .provider-card-body { text-align: right; }

/* Filter sidebar */
html[dir="rtl"] .filter-sidebar { text-align: right; }

/* Schedule */
html[dir="rtl"] .schedule-row { flex-direction: row-reverse; }

/* Service items */
html[dir="rtl"] .service-item { flex-direction: row-reverse; }
html[dir="rtl"] .service-action { text-align: left; }

/* Review */
html[dir="rtl"] .review-header { flex-direction: row-reverse; }
html[dir="rtl"] .review-stars { margin-right: auto !important; margin-left: 0 !important; }

/* Footer */
html[dir="rtl"] .footer-links { padding-right: 0; }
html[dir="rtl"] .footer-contact li i { margin-left: 8px; margin-right: 0; }

/* Hero section */
html[dir="rtl"] .hero-content { text-align: right; }
html[dir="rtl"] .hero-stats { justify-content: flex-start; }

/* Sections */
html[dir="rtl"] .section-header { text-align: center; }

/* Badges and positioning */
html[dir="rtl"] .featured-badge { left: 10px; right: auto; }
html[dir="rtl"] .btn-favorite { left: 10px; right: auto; position: absolute; }

/* Notification */
html[dir="rtl"] .notif-item { flex-direction: row-reverse; }
html[dir="rtl"] .notif-content { text-align: right; }
html[dir="rtl"] .notif-dot { left: 12px; right: auto; }

/* Language toggle */
.lang-toggle {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.lang-btn {
    padding: 2px 8px;
    font-size: 0.72rem;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Input groups */
html[dir="rtl"] .input-group > :not(:first-child) { border-radius: 0.375rem 0 0 0.375rem; }
html[dir="rtl"] .input-group > :first-child { border-radius: 0 0.375rem 0.375rem 0; }
html[dir="rtl"] .input-group-text { border-radius: 0 0.375rem 0.375rem 0; }
