/* AdGulf RTL Stylesheet — Arabic & Urdu */
/* Applied when lang=ar or lang=ur */

body.rtl { font-family: 'Noto Kufi Arabic', 'Noto Nastaliq Urdu', 'Plus Jakarta Sans', sans-serif; }
body.rtl h1,body.rtl h2,body.rtl h3,body.rtl h4,body.rtl h5,body.rtl h6 {
  font-family: 'Noto Kufi Arabic', 'Noto Nastaliq Urdu', 'Sora', sans-serif;
}

/* Navbar */
.rtl .navbar-nav { padding-right: 0; }
.rtl .me-auto  { margin-right: 0 !important; margin-left: auto !important; }
.rtl .ms-auto  { margin-left: 0 !important; margin-right: auto !important; }
.rtl .me-1,.rtl .me-2,.rtl .me-3 { margin-right: 0 !important; margin-left: 0.25rem !important; }
.rtl .ms-1,.rtl .ms-2,.rtl .ms-3 { margin-left: 0 !important; margin-right: 0.25rem !important; }
.rtl .dropdown-menu-end { right: auto !important; left: 0 !important; }
.rtl .navbar-brand { margin-left: 1rem; margin-right: 0; }

/* Forms */
.rtl .form-control,.rtl .form-select,.rtl textarea { text-align: right; }
.rtl .ag-input-icon > i:first-child { left: auto; right: 12px; }
.rtl .ag-input-icon input,.rtl .ag-input-icon select { padding-left: .75rem; padding-right: 38px; }
.rtl .ag-pwd-toggle { left: 8px; right: auto; }
.rtl .ag-input-prefix { left: auto; right: 12px; }
.rtl .ag-input-icon .ag-input-prefix ~ input { padding-left: .75rem; padding-right: 46px; }

/* Cards & Lists */
.rtl .ag-ad-meta { direction: rtl; }
.rtl .ag-ad-body { text-align: right; }
.rtl .ag-cat-card { text-align: right; }
.rtl .ag-filter-group label { text-align: right; }
.rtl .dropdown-item { text-align: right; }
.rtl .dropdown-item i { margin-right: 0 !important; margin-left: 0.5rem !important; }

/* Hero search */
.rtl .ag-search-inner { flex-direction: row-reverse; }
.rtl .ag-search-field { flex-direction: row-reverse; }
.rtl .ag-search-field input { text-align: right; }

/* Hero tags */
.rtl .ag-hero-tags { direction: rtl; }

/* Stats */
.rtl .ag-stats-bar .ag-stat-item { direction: rtl; }

/* Breadcrumb */
.rtl .breadcrumb { flex-direction: row-reverse; padding-right: 0; }
.rtl .breadcrumb-item + .breadcrumb-item::before { content: "\\"; float: right; padding-right: 0; padding-left: 0.5rem; }

/* Table */
.rtl .table { text-align: right; }
.rtl .text-end { text-align: left !important; }
.rtl .text-start { text-align: right !important; }

/* Dashboard */
.rtl .ag-dash-welcome { flex-direction: row-reverse; }
.rtl .ag-stat-card { direction: rtl; }
.rtl .ag-msg-list li { flex-direction: row-reverse; }
.rtl .ag-msg-body { text-align: right; }

/* Pagination */
.rtl .pagination { flex-direction: row-reverse; }

/* Footer */
.rtl .ag-footer-links { text-align: right; }
.rtl .ag-footer-social { justify-content: flex-start; }
.rtl .ag-footer-bottom { flex-direction: row-reverse; }
.rtl .ag-footer-bottom-links { flex-direction: row-reverse; }

/* Alerts */
.rtl .alert { text-align: right; }
.rtl .btn-close { margin-left: 0; margin-right: auto; }

/* Auth */
.rtl .ag-auth-form label { text-align: right; }
.rtl .ag-link-small { float: left; }

/* Country selector */
.rtl .ag-country-btn { flex-direction: row-reverse; }

/* Post Ad form */
.rtl .ag-form-section-title { flex-direction: row-reverse; }
.rtl .ag-tips-list { text-align: right; }

/* Ad detail */
.rtl .ag-gallery-thumbs { justify-content: flex-end; }
.rtl .ag-detail-spec { text-align: right; }
.rtl .ag-bubble-row.mine { justify-content: flex-start; }
.rtl .ag-bubble-row { justify-content: flex-end; }
.rtl .ag-bubble-me { border-radius: 0 14px 14px 14px; }
.rtl .ag-bubble-them { border-radius: 14px 0 14px 14px; }

/* Section headers */
.rtl .ag-section-hdr { flex-direction: row-reverse; }
.rtl .ag-results-bar { flex-direction: row-reverse; }
