/**
 * FARAWAY DESTINATION CONCIERGE — Arabic RTL Layout Overrides
 * Applied only when <html dir="rtl" lang="ar"> is set by i18n.js
 * Fully mirrors the LTR luxury layout for right-to-left reading
 */

/* ── Global RTL Direction ── */
[dir="rtl"],
[dir="rtl"] * {
  direction: rtl;
}

/* ── Brand Logo in Navigation, Drawer & Footer (Always Emblem on Left, Text on Right) ── */
[dir="rtl"] .nav-logo-wrap,
[dir="rtl"] .vnav-logo-wrap,
[dir="rtl"] .mob-header,
[dir="rtl"] .foot-logo-wrap,
[dir="rtl"] .footer-brand-wrap,
[dir="rtl"] .footer-brand-col .nav-logo-wrap {
  direction: ltr !important;
}

[dir="rtl"] .nav-logo-wrap *,
[dir="rtl"] .vnav-logo-wrap *,
[dir="rtl"] .mob-header *,
[dir="rtl"] .foot-logo-wrap * {
  direction: ltr !important;
}

[dir="rtl"] .brand-text-wrap {
  direction: ltr !important;
  text-align: left !important;
}

/* ── Ensure Phone and WhatsApp Numbers Never Invert in RTL ── */
[dir="rtl"] .phone-ltr,
[dir="rtl"] bdi,
[dir="rtl"] a[href*="whatsapp.com"],
[dir="rtl"] a[href^="tel:"],
[dir="rtl"] .ci-val,
[dir="rtl"] .ci-val a,
[dir="rtl"] .banner-contact-val,
[dir="rtl"] .banner-contact-val a,
[dir="rtl"] .foot-contact-link,
[dir="rtl"] .footer-contact-link,
[dir="rtl"] .mob-tel,
[dir="rtl"] .tel-num {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: left !important;
}

[dir="rtl"] a[href*="whatsapp.com"] span,
[dir="rtl"] a[href^="tel:"] span,
[dir="rtl"] .ci-val a,
[dir="rtl"] .banner-contact-val a,
[dir="rtl"] .foot-contact-link span,
[dir="rtl"] .footer-contact-link span,
[dir="rtl"] .mob-tel span {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block !important;
  text-align: left !important;
}

[dir="rtl"] input[type="tel"] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: right;
}


/* ── Arabic Font Stack ──
   Noto Sans Arabic pairs beautifully with Cormorant Garamond for a 
   luxury bilingual aesthetic */
[dir="rtl"] body {
  font-family: 'Noto Naskh Arabic', 'Noto Sans Arabic', 'Cormorant Garamond', Georgia, serif;
}

/* ── Navigation ── */
[dir="rtl"] .nav-wrap {
  flex-direction: row-reverse;
}
[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
}
[dir="rtl"] .nav-links li + li {
  margin-left: 0;
  margin-right: 2rem;
}
[dir="rtl"] .nav-right {
  flex-direction: row-reverse;
}
[dir="rtl"] .nav-socials {
  margin-left: 0;
  margin-right: 1rem;
}

/* ── Language Switcher RTL ── */
[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
  text-align: right;
}
[dir="rtl"] .lang-opt {
  flex-direction: row-reverse;
}

/* ── Mobile Drawer ── */
[dir="rtl"] #mob {
  left: 0;
  right: 0;
  inset: 0;
}
[dir="rtl"] .mob-close {
  right: auto;
  left: 20px;
}
[dir="rtl"] .mob-links-list {
  text-align: center;
}
[dir="rtl"] .mob-lang-card {
  flex-direction: row-reverse;
}
[dir="rtl"] .mob-lang-check {
  margin-left: 0;
  margin-right: auto;
}
[dir="rtl"] .mob-lang-code {
  margin-left: 0;
  margin-right: auto;
}

/* ── Hero Section ── */
[dir="rtl"] .hero-content {
  text-align: right;
}
[dir="rtl"] .hero-btns {
  justify-content: flex-end;
}
[dir="rtl"] .hero-eyebrow,
[dir="rtl"] .hero-h1,
[dir="rtl"] .hero-sub {
  text-align: right;
}

/* ── Arrow Elements — flip → to ← ── */
[dir="rtl"] .arr {
  display: inline-block;
  transform: scaleX(-1);
}

/* ── Section Headers ── */
[dir="rtl"] .eyebrow::before,
[dir="rtl"] .eyebrow::after {
  /* Reverse decorative lines on eyebrow elements */
}
[dir="rtl"] .eyebrow {
  text-align: right;
}
[dir="rtl"] .sec-title,
[dir="rtl"] .sec-sub {
  text-align: right;
}

/* ── Map / Destination Grid ── */
[dir="rtl"] .map-grid {
  flex-direction: row-reverse;
}
[dir="rtl"] .map-content-col {
  text-align: right;
}
[dir="rtl"] .map-pill-item {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .map-actions {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* ── Ayurveda Origin Grid ── */
[dir="rtl"] .ayur-origin-grid {
  flex-direction: row-reverse;
}
[dir="rtl"] .ayur-origin-content {
  text-align: right;
}
[dir="rtl"] .ayur-origin-actions {
  flex-direction: row-reverse;
}
[dir="rtl"] .ayur-seal-box {
  flex-direction: row-reverse;
}

/* ── Four Pillars ── */
[dir="rtl"] .pillars-monolith-deck {
  flex-direction: row-reverse;
}
[dir="rtl"] .pillar-mono-expanded {
  text-align: right;
}
[dir="rtl"] .pillar-mono-badges {
  justify-content: flex-end;
}
[dir="rtl"] .pillar-mono-vertical-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ── Journey Cards ── */
[dir="rtl"] .journeys-header {
  flex-direction: row-reverse;
}
[dir="rtl"] .journey-front-content,
[dir="rtl"] .journey-back-content {
  text-align: right;
}

/* ── Villas Section ── */
[dir="rtl"] .villas-header {
  text-align: right;
}
[dir="rtl"] .villa-focus-content {
  text-align: right;
}
[dir="rtl"] .villa-focus-eyebrow {
  flex-direction: row-reverse;
}

/* ── Experiences Section ── */
[dir="rtl"] .exp-main-header {
  text-align: right;
}
[dir="rtl"] .exp-focus-content {
  text-align: right;
}
[dir="rtl"] .exp-focus-eyebrow {
  flex-direction: row-reverse;
}
[dir="rtl"] .exp-treatment-pills {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
[dir="rtl"] .exp-focus-action {
  text-align: right;
}

/* ── About Section ── */
[dir="rtl"] .about-grid {
  flex-direction: row-reverse;
}
[dir="rtl"] .about-content-wrap {
  text-align: right;
}
[dir="rtl"] .about-highlight-box {
  text-align: right;
}

/* ── Partners Section ── */
[dir="rtl"] .partner-tile {
  text-align: right;
}

/* ── Contact Section ── */
[dir="rtl"] .contact-grid {
  flex-direction: row-reverse;
}
[dir="rtl"] .contact-left {
  text-align: right;
}
[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
}
[dir="rtl"] .f-group label,
[dir="rtl"] .f-group input,
[dir="rtl"] .f-group select,
[dir="rtl"] .f-group textarea {
  text-align: right;
  direction: rtl;
}

/* ── Footer ── */
[dir="rtl"] .footer-grid {
  flex-direction: row-reverse;
}
[dir="rtl"] .foot-desc,
[dir="rtl"] .foot-contacts {
  text-align: right;
}
[dir="rtl"] .foot-contact-link {
  flex-direction: row-reverse;
}
[dir="rtl"] .foot-col {
  text-align: right;
}
[dir="rtl"] .foot-col ul {
  padding-right: 0;
  padding-left: 0;
}
[dir="rtl"] .foot-socials {
  flex-direction: row-reverse;
}
[dir="rtl"] .foot-bottom {
  flex-direction: row-reverse;
}

/* ── Scroll Reveal Animation Fix for RTL ── */
[dir="rtl"] .rev {
  /* Override any LTR translate transforms */
}

/* ── Arabic Typography Enhancements ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5 {
  font-family: 'Noto Naskh Arabic', 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
}

[dir="rtl"] p,
[dir="rtl"] a,
[dir="rtl"] span,
[dir="rtl"] li,
[dir="rtl"] label,
[dir="rtl"] button {
  font-family: 'Noto Naskh Arabic', 'Noto Sans Arabic', 'Jost', sans-serif;
  letter-spacing: 0;
}

/* ── Luxury Badge Elements ── */
[dir="rtl"] .map-video-badge,
[dir="rtl"] .ayur-origin-badge {
  flex-direction: row-reverse;
}

/* ── Pillar Expand Cue ── */
[dir="rtl"] .pillar-mono-expand-cue {
  flex-direction: row-reverse;
}

/* ── Hero Scroll Indicator ── */
[dir="rtl"] .hero-scroll {
  left: auto;
  right: 2.5rem;
}


/* ── Retreat Pages RTL Overrides ── */
[dir="rtl"] .hero-text {
  text-align: right;
  left: auto;
  right: 0;
}
[dir="rtl"] .hero-meta {
  flex-direction: row;
}
[dir="rtl"] .hero-meta-item {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}
[dir="rtl"] .hero-meta-item:first-child {
  padding-right: 0;
  border-right: none;
}
[dir="rtl"] .nav-back svg {
  transform: scaleX(-1);
}
[dir="rtl"] .nav-back:hover svg {
  transform: scaleX(-1) translateX(-3px);
}
[dir="rtl"] .itin-day {
  grid-template-columns: 1fr clamp(90px, 11vw, 130px);
}
[dir="rtl"] .itin-day-num {
  order: 2;
  border-right: none;
  border-left: 1px solid var(--border);
  padding-right: clamp(14px, 2vw, 36px);
  padding-left: 0;
  text-align: right;
}
[dir="rtl"] .itin-day-content {
  order: 1;
  padding-left: clamp(18px, 2.8vw, 40px);
  padding-right: 0;
  text-align: right;
}
[dir="rtl"] .include-list li {
  padding-left: 0;
  padding-right: 18px;
  text-align: right;
}
[dir="rtl"] .include-list li::before {
  left: auto;
  right: 0;
}
[dir="rtl"] .highlights-grid {
  border-left: none;
  border-right: 1px solid var(--border);
}
[dir="rtl"] .highlight-item {
  border-right: none;
  border-left: 1px solid var(--border);
  text-align: right;
}
[dir="rtl"] .intro-pills {
  justify-content: flex-start;
}
