/*
 * Arabic (RTL) pages: /ar/*   -- loaded after assets/css/rtl/main.css (the theme sheets mirrored by tools/build-ar-css.js)
 * Hand-written; logical properties (margin-inline-start ...) everywhere. Latin text (tour codes, phone, e-mail, hotel names)
 * keeps the site font Inter through the .tq-latin class / dir="ltr".
 */
:root {
  --tp-ff-body: 'IBM Plex Sans Arabic', 'Inter', 'Segoe UI', Tahoma, sans-serif;
  --tp-ff-heading: 'IBM Plex Sans Arabic', 'Inter', 'Segoe UI', Tahoma, sans-serif;
  --tp-ff-p: 'IBM Plex Sans Arabic', 'Inter', 'Segoe UI', Tahoma, sans-serif;
  --tq-ar-lh: 1.8;
}
html[lang="ar"] body { font-family: var(--tp-ff-body); line-height: var(--tq-ar-lh); }
html[lang="ar"] p, html[lang="ar"] li, html[lang="ar"] td, html[lang="ar"] label { line-height: var(--tq-ar-lh); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.5; }
/* Arabic letters join: no tracking, no capitals */
html[lang="ar"] * { letter-spacing: normal !important; text-transform: none !important; }
html[lang="ar"] input, html[lang="ar"] textarea, html[lang="ar"] button, html[lang="ar"] select { font-family: var(--tp-ff-body); }
/* Latin runs keep Inter and never get reordered by the surrounding Arabic */
.tq-latin, [dir="ltr"], a[href^="tel:"], a[href^="mailto:"] { font-family: 'Inter', sans-serif; unicode-bidi: isolate; }
a[href^="tel:"], a[href^="mailto:"] { direction: ltr; display: inline-block; }
input[type="date"], input[type="email"], input[type="tel"], input[type="number"] { direction: ltr; text-align: end; }
html[lang="ar"] .price-tag, html[lang="ar"] .tq-up-amt, html[lang="ar"] .tq-card-amount { font-variant-numeric: lining-nums; }

/* ---- header ---- */
.tq-ar-header .tp-header-area { background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.tq-ar-header .tp-main-menu nav ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tq-ar-header .tp-main-menu nav ul li a { padding: 12px 16px; font-weight: 500; }
.tq-ar-header .tp-header-contact a { background: var(--tp-theme-1, #e8431f); color: #fff; padding: 10px 18px; border-radius: 30px; font-weight: 600; font-size: 14px; }
.tq-ar-header .tp-header-option { gap: 4px; }
.tq-ar-wa-btn { display: inline-flex; align-items: center; gap: 8px; background: #25a244; border-color: #25a244; color: #fff; }
.tq-ar-wa-btn:hover { background: #1c8a37; border-color: #1c8a37; color: #fff; }
.tq-ar-header .tq-ar-wa-btn { padding: 10px 18px; font-size: 14px; line-height: 1.4; height: auto; }


/* ---- footer ---- */
.tq-ar-footer .tq-ar-footer-about { max-width: 34ch; color: #555; }
.tq-ar-footer .tp-footer-contact .phone, .tq-ar-footer .tp-footer-contact a[href^="mailto:"] { font-weight: 600; }

/* ---- home ---- */
.tq-ar-hero { position: relative; z-index: 3; }
.tp-hero-area.tp-hero-bg { position: relative; }
.tq-ar-home .tp-hero-area::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .6) 100%); z-index: 1; pointer-events: none; }
.tq-ar-hero .tp-hero-title, .tq-ar-hero .tp-hero-dec, .tq-ar-hero .tp-hero-eyebrow { text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.tq-ar-hero .tp-hero-eyebrow { color: #fff; font-weight: 600; }
.tq-ar-hero .tp-hero-title-accent { color: #ff7a59; }
.tq-ar-hero .tp-hero-dec { color: #fff; max-width: 60ch; margin-inline: auto; }
.tq-ar-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 28px; }
.tq-ar-hero .tp-hero-trust-badges { justify-content: center; flex-wrap: wrap; gap: 10px 24px; }
.tq-ar-hero .tp-hero-trust-badges li { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 500; }
.tq-ar-section-head { padding-top: 56px; padding-bottom: 18px; }
.tq-ar-h2 { font-size: 34px; font-weight: 700; margin-bottom: 8px; }
.tq-ar-section-head p, .tq-ar-note { color: #666; margin: 0; }
.tq-ar-tours-wrap { padding-bottom: 12px; }
.tq-ar-note { margin-top: 22px; font-size: 14px; }
.tq-ar-family { background: #fff3ed; padding: 70px 0; margin-top: 40px; }
.tq-ar-family-text { color: #444; margin-bottom: 22px; max-width: 52ch; }
.tq-ar-family-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tq-ar-family-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); }
.tq-ar-family-list li i { color: var(--tp-theme-1, #e8431f); margin-top: 6px; flex: 0 0 auto; }

/* ---- tour page ---- */
.tq-review-card > p[dir="ltr"] { text-align: start; }

/* Latin e-mail / phone lines stay LTR but sit on the start (right) edge of the Arabic column */
.tq-ar-footer .tp-footer-contact a[dir="ltr"] { text-align: end; }
.tq-ar-footer .tp-footer-contact a.d-block[dir="ltr"] { display: block; }

/* label above the guest reviews (their texts stay in the original language) */
.tq-ar-review-note { color: #666; font-size: 14px; margin: -8px 0 18px; }

/* form fields start on the reading side; Latin-only fields (e-mail, phone, date) are LTR and end on the same side */
html[lang="ar"] .tp-input, html[lang="ar"] .tp-textarea, html[lang="ar"] textarea, html[lang="ar"] input[type="text"] { text-align: start; }
html[lang="ar"] input[type="email"], html[lang="ar"] input[type="tel"], html[lang="ar"] input[type="date"], html[lang="ar"] input[type="number"] { direction: ltr; text-align: end; }

/* arrow icons that point "forward" in the theme point to the left in Arabic */
html[lang="ar"] .tp-btn > svg, html[lang="ar"] .tp-btn-xl > svg, html[lang="ar"] .tp-btn svg:last-child { transform: scaleX(-1); }
