/* Arabic (right-to-left). Loaded on every page; every rule is scoped to html[dir="rtl"]. */

/* Arabic font everywhere except the icon font */
html[dir="rtl"] body,
html[dir="rtl"] body *:not([class^="icon"]):not([class*=" icon-"]):not(.icon) {
  font-family: var(--font-arabic), "Segoe UI", Tahoma, sans-serif !important;
  letter-spacing: 0 !important;
}

html[dir="rtl"] body {
  text-align: right;
}

/* Arrows that point "forward" should point left */
html[dir="rtl"] .icon-arrow-right2,
html[dir="rtl"] .icon-arr-r,
html[dir="rtl"] .icon-arr-l,
html[dir="rtl"] .icon-arrow-left2 {
  display: inline-block;
  transform: scaleX(-1);
}

/* Header menu: Arabic words are wider, keep every item on one line */
html[dir="rtl"] .main-header .main-menu .navigation > li {
  padding-right: 0;
  padding-left: 30px;
}
html[dir="rtl"] .main-header .main-menu .navigation > li > a {
  white-space: nowrap;
}
@media (max-width: 1299px) {
  html[dir="rtl"] .main-header .main-menu .navigation > li {
    padding-left: 20px;
  }
  html[dir="rtl"] .main-header .main-menu .navigation > li > a {
    font-size: 15px;
  }
}
html[dir="rtl"] .main-header .register,
html[dir="rtl"] .main-header .register a,
html[dir="rtl"] .main-header .register span {
  white-space: nowrap;
}

/* Hero headline: Arabic letters need more line height */
html[dir="rtl"] .flat-slider.home-1 .slider-content h1 {
  line-height: 1.45 !important;
}
html[dir="rtl"] .flat-slider.home-1 .slider-content h1 .header-text-animation,
html[dir="rtl"] .flat-slider.home-1 .slider-content h1 .text-transition {
  overflow: visible !important;
  line-height: 1.45 !important;
}

/* French titles, addresses and names inside the Arabic layout keep their own direction,
   so they read and get shortened ("...") correctly */
html[dir="rtl"] .immo-card-title,
html[dir="rtl"] .immo-card-location span,
html[dir="rtl"] .truncate-text,
html[dir="rtl"] .truncate-text-new,
html[dir="rtl"] .text-truncate,
html[dir="rtl"] .immo-card h3,
html[dir="rtl"] .homeya-box .title,
html[dir="rtl"] .blog-content,
html[dir="rtl"] .box-title-listing h3 {
  unicode-bidi: plaintext;
  text-align: right;
}

/* Room under the big rotating Arabic word so its dots never touch the subtitle */
html[dir="rtl"] .flat-slider.home-1 .slider-content h1 {
  padding-bottom: 14px;
}
