/* ==========================================================================
   مقر — تنسيقات الاتجاه من اليمين لليسار (العربية فقط). يُحمَّل بعد maqr.css.
   النسخة الإنجليزية (LTR) لا تحمّله وتستخدم اتجاه الثيم الأصلي.
   ========================================================================== */

/* ---------- كروت الإعلانات: الشارة على اليمين والقلب على اليسار بدون تراكب ---------- */
.image-overlay-top-nl { direction: rtl; display: flex; justify-content: flex-start; align-items: flex-start; }
.image-overlay-top-nl .listing-category-tag-nl { margin: 0 0 0 auto; margin-inline-start: 0; margin-inline-end: auto; max-width: calc(100% - 52px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* ==========================================================================
   الأسهم: على يسار النص دائمًا
   ========================================================================== */

/* القائمة الرئيسية (سطح المكتب): سهم للعناصر التي لها قائمة فرعية فقط، على اليسار */
#navigation > ul > li > a::before { content: none !important; display: none !important; }
#navigation > ul > li > a::after  { content: none !important; display: none !important; }
#navigation > ul > li.menu-item-has-children > a::after {
  content: "\f078" !important;
  display: inline-block !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-size: 9px;
  padding: 0 !important;
  margin: 0 7px 0 0;
  position: relative;
  top: -1px;
}
/* المستوى الثاني: سهم يشير لليسار وموضعه على اليسار */
#navigation ul ul li.menu-item-has-children > a::after {
  content: "\f053" !important;
  display: block !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-size: 9px;
  position: absolute;
  left: 15px !important;
  right: auto !important;
  top: 50%;
  transform: translateY(-50%);
}
#navigation ul ul li.menu-item-has-children > a { padding-left: 34px; }
#navigation ul ul li:not(.menu-item-has-children) > a::after { content: none !important; }

/* قائمة الموبايل: السهم على اليسار ويشير لليسار، والنص لا يتداخل معه */
.mobile-navigation-list .menu-item-has-children > a { padding-left: 40px !important; }
.mobile-navigation-list .menu-item-has-children > a::before {
  content: "\e605" !important;
  right: auto !important;
  left: 8px !important;
}
.sub-menu-back-btn::before { content: "\e606" !important; left: auto !important; right: 13px !important; }

/* قوائم الفوتر وودجتس التصنيفات: سهم على اليسار مع مسافة محجوزة للنص */
#footer .footer-links li,
#footer ul.menu li,
.widget_meta ul li, .widget_categories ul li, .widget_archive ul li,
.widget_recent_comments ul li, .widget_recent_entries ul li,
.woocommerce-MyAccount-navigation ul li {
  padding-right: 0 !important;
  padding-left: 20px !important;
}
#footer .footer-links li::before,
#footer ul.menu li::before,
.widget_meta ul li::before, .widget_categories ul li::before, .widget_archive ul li::before,
.widget_recent_comments ul li::before, .widget_recent_entries ul li::before,
.woocommerce-MyAccount-navigation ul li::before {
  content: "\f104";
  left: 0 !important;
  right: auto !important;
}

/* القوائم المنسدلة والحقول: السهم على اليسار */
.chosen-container-single .chosen-single div { right: auto !important; left: 0; }
.chosen-container-single .chosen-single div::after { float: left !important; right: auto !important; left: 20px; }
.chosen-container-single .chosen-single { padding-right: 15px !important; padding-left: 40px !important; }
.user-menu .user-name::after,
.panel-dropdown > a::after,
.more-search-options-trigger::after,
.caret::after { margin-left: 0; margin-right: 8px; float: none; }
#chart-date-range span::after, #booking-date-range span::after,
#chart-date-range-enabler::after, #booking-date-range-enabler::after { float: left !important; right: auto !important; left: 0; }
.dashboard-nav ul li a::after { right: auto !important; left: 27px; }

/* مسار التصفح (breadcrumbs): الفاصل يشير لليسار */
#breadcrumbs ul li::before { content: "\f104"; }

/* السابق / التالي: الاتجاه معكوس في RTL */
.nav-links div.nav-next a::before, #posts-nav li.next-post a::before { content: "\e605"; left: 0; right: auto; }
.nav-links div.nav-previous a::before, #posts-nav li.prev-post a::before { content: "\e606"; right: 0; left: auto; }
.back-to-listings::before { content: "\e606"; left: auto; right: -1px; }
#prevpoint::before { content: "\f105"; }
#nextpoint::after  { content: "\f104"; }

/* أيقونات الأسهم داخل الصفحات: تنعكس لأن الاتجاه RTL */
[dir="rtl"] .fa-chevron-right::before, [dir="rtl"] .fa-chevron-left::before,
html[dir="rtl"] i.fa-chevron-right::before { content: "\f053"; }
html[dir="rtl"] i.fa-chevron-left::before  { content: "\f054"; }
html[dir="rtl"] i.fa-angle-right::before   { content: "\f104"; }
html[dir="rtl"] i.fa-angle-left::before    { content: "\f105"; }
html[dir="rtl"] i.fa-arrow-right::before   { content: "\f060"; }
html[dir="rtl"] i.fa-arrow-left::before    { content: "\f061"; }
html[dir="rtl"] i.fa-long-arrow-right::before, html[dir="rtl"] i.fa-long-arrow-alt-right::before, html[dir="rtl"] i.fa-right-long::before { content: "\f30a"; }
html[dir="rtl"] i.fa-long-arrow-left::before,  html[dir="rtl"] i.fa-long-arrow-alt-left::before,  html[dir="rtl"] i.fa-left-long::before  { content: "\f30b"; }
html[dir="rtl"] i.sl-icon-arrow-right::before { content: "\e605"; }
html[dir="rtl"] i.sl-icon-arrow-left::before  { content: "\e606"; }


/* الفوتر: السهم ملاصق للنص من ناحية اليسار، والنص لا يلف تحته */
#footer .footer-links li, #footer ul.menu li {
  display: flex !important; flex-direction: row-reverse; justify-content: flex-end;
  align-items: baseline; gap: 8px; padding: 0 0 9px 0 !important;
}
#footer .footer-links li::before, #footer ul.menu li::before {
  position: static !important; flex: 0 0 auto; width: auto; margin: 0; font-size: 13px; line-height: 1;
}
#footer ul.menu li a, #footer .footer-links li a { padding: 0; white-space: nowrap; }
#footer ul.menu, #footer .footer-links, #footer .footer-widget .menu-helpful-links-container { width: 100%; float: none; }
#footer ul.menu li { width: 100%; }

/* قائمة التصنيفات (drilldown) في البحث: النص يمين والسهم يسار من غير تراكب */
.drilldown-menu .menu-toggle { text-align: right !important; padding-left: 44px !important; padding-right: 15px; }
.drilldown-menu .menu-toggle .reset-button { left: 40px; right: auto; }
.drilldown-menu .menu-toggle .menu-label { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* نموذج إضافة مساحة: مفتاح التبديل يسار العنوان (كان يركب عليه لأن الثيم مكتوب right:40px) */
.add-listing-section label.switch { right: auto !important; left: 40px !important; }
.add-listing-headline h3 { padding-left: 90px; }


/* رقم الهاتف داخل بطاقة التواصل: محاذاة لليمين في العربية */
html[dir="rtl"] .maqr-ctext strong[dir="ltr"] { text-align: right; }

/* لوحة المضيف (RTL): الشريط الجانبي يمين */
@media (min-width: 1025px) {
  #dashboard .dashboard-content, #dashboard > .row { margin-left: 0 !important; margin-right: 260px !important; }
}
