/* ------------------------------------------------------------------
   Urdu (right to left). Loaded after site.css only when Urdu is on, with
   Tabler's RTL build, which already mirrors Bootstrap's spacing, alignment
   and dropdown utilities. This file mirrors the site's own components that
   use physical left/right, and sets Urdu typography.
------------------------------------------------------------------- */

/* Typography: Nastaliq for reading text, Naskh for compact controls (Nastaliq is too tall for buttons and inputs).
   Inter comes first but only covers Latin (see its unicode-range in site.css), so Latin words and numbers use Inter and Urdu letters fall through to the Urdu faces. Letter spacing breaks the joins of Urdu letters, so it is removed. */
[dir="rtl"] body { --tblr-font-sans-serif: "Inter", "Noto Naskh Arabic", system-ui, sans-serif; font-family: var(--tblr-font-sans-serif); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .h1, [dir="rtl"] .h2, [dir="rtl"] .h3,
[dir="rtl"] p, [dir="rtl"] .home-hero-sub, [dir="rtl"] .trust-band-sub, [dir="rtl"] .ag-join-sub, [dir="rtl"] .listing-title {
  font-family: "Inter", "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif; line-height: 2; }
[dir="rtl"] h1, [dir="rtl"] .home-hero-title, [dir="rtl"] .ld-title, [dir="rtl"] .page-title { line-height: 1.9; }
[dir="rtl"] *, [dir="rtl"] *::before, [dir="rtl"] *::after { letter-spacing: 0 !important; }
[dir="rtl"] .listing-title { min-height: 4em; }
/* Prices, phone numbers and reference codes stay left to right inside the Urdu text. */
[dir="rtl"] .listing-price, [dir="rtl"] .ld-price, [dir="rtl"] .ld-mobile-price, [dir="rtl"] .price-insight-figure,
[dir="rtl"] .map-row-price, [dir="rtl"] .lg-pin, [dir="rtl"] a[href^="tel:"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="number"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .listing-price, [dir="rtl"] .ld-mobile-price { text-align: right; }

/* Arrows point the reading direction. */
[dir="rtl"] .ti-arrow-right, [dir="rtl"] .ti-chevron-right, [dir="rtl"] .ti-arrow-left, [dir="rtl"] .ti-chevron-left { display: inline-block; transform: scaleX(-1); }

/* Header */
[dir="rtl"] .skip-link { left: auto; right: 1rem; }
[dir="rtl"] .site-search .form-control { border-right: 1px solid #b9c3cf; border-left: 0; border-radius: 0 var(--lg-radius) var(--lg-radius) 0; }
[dir="rtl"] .site-search .btn { border-radius: var(--lg-radius) 0 0 var(--lg-radius); }
[dir="rtl"] .site-lang { font-family: "Inter", sans-serif; }

/* Section heading rule and card tags */
[dir="rtl"] .section-heading::after { left: auto; right: 0; }
[dir="rtl"] .listing-tag { left: auto; right: .75rem; }
[dir="rtl"] .listing-card .position-absolute.end-0 { right: auto !important; left: 0 !important; }

/* Home search fields with a leading icon */
[dir="rtl"] .home-field > i { left: auto; right: .85rem; }
[dir="rtl"] .home-field > .form-control { padding-left: .75rem; padding-right: 2.4rem; }

/* Listing page */
[dir="rtl"] .ld-head-price { text-align: left; }
[dir="rtl"] .ld-head-actions { justify-content: flex-start; }
[dir="rtl"] .ld-file-name { direction: ltr; text-align: right; }
[dir="rtl"] .ld-loc .ti-map-pin { margin-right: 0; margin-left: .25rem; }
[dir="rtl"] .ld-keyfacts li { border-left: 0; border-right: 1px solid var(--lg-line); }
[dir="rtl"] .ld-keyfacts li:first-child { padding-right: 0; padding-left: 1rem; border-right: 0; }
@media (max-width: 767.98px) { [dir="rtl"] .ld-head-price { text-align: right; } }
[dir="rtl"] .pg-counter, [dir="rtl"] .pg-all { right: auto; left: .75rem; }
[dir="rtl"] .pg-viewer-prev { left: auto; right: 1rem; }
[dir="rtl"] .pg-viewer-next { right: auto; left: 1rem; }
[dir="rtl"] .price-insight { border-left: 0; border-right: 4px solid var(--pi-tone); }
[dir="rtl"] .price-insight-scale { background: linear-gradient(270deg, #2f7d4f 0%, #9fd3b2 35%, #c6e2cf 50%, #f6c98a 65%, #b45309 100%); }
[dir="rtl"] .price-insight-marker { left: auto; right: var(--pos, 50%); transform: translate(50%, -50%); }

/* Map */
[dir="rtl"] .map-row.active, [dir="rtl"] body.site .map-row.active { box-shadow: inset -3px 0 0 var(--lg-yellow); }

/* News ticker scrolls the other way */
[dir="rtl"] .news-ticker-track { animation-name: news-ticker-scroll-rtl; }
@keyframes news-ticker-scroll-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir="rtl"] .news-ticker-list li::after { margin: 0 2rem; }

/* Dealer cards and join band */
[dir="rtl"] .ag-card:hover .ag-cta .ti { transform: scaleX(-1) translateX(4px); }
[dir="rtl"] .trust-link:hover .ti, [dir="rtl"] .tool-card:hover em .ti { transform: scaleX(-1) translateX(3px); }
