/*==================================================
   ATLAS MOUNTAIN RANGE — RTL STYLESHEET (العربية)
   Optimized for Arabic typography & RTL layouts
==================================================*/
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

html[dir="rtl"],
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .sec-title h1,
html[dir="rtl"] .section-title h1 {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
    letter-spacing: normal !important;
}

/* Flipped Spacing & Alignments */
html[dir="rtl"] .text-start {
    text-align: right !important;
}
html[dir="rtl"] .text-end {
    text-align: left !important;
}

/* Icon Spacing */
html[dir="rtl"] .me-1 { margin-left: 0.25rem !important; margin-right: 0 !important; }
html[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
html[dir="rtl"] .me-3 { margin-left: 1rem !important; margin-right: 0 !important; }
html[dir="rtl"] .ms-1 { margin-right: 0.25rem !important; margin-left: 0 !important; }
html[dir="rtl"] .ms-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
html[dir="rtl"] .ms-3 { margin-right: 1rem !important; margin-left: 0 !important; }
html[dir="rtl"] .ms-auto { margin-right: auto !important; margin-left: 0 !important; }
html[dir="rtl"] .me-auto { margin-left: auto !important; margin-right: 0 !important; }

/* Phone & Numbers should remain LTR */
html[dir="rtl"] .ltr-text,
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] a[href*="wa.me"],
html[dir="rtl"] .phone-number {
    direction: ltr !important;
    display: inline-block;
    unicode-bidi: embed;
}

/* Header & Navigation */
html[dir="rtl"] .Hotelza-header-menu ul li {
    margin-right: 0;
    margin-left: 28px;
}
html[dir="rtl"] .Hotelza-header-menu ul li a i {
    margin-left: 0;
    margin-right: 5px;
}
html[dir="rtl"] .Hotelza-header-menu ul li .sub-menu {
    right: 0;
    left: auto;
    text-align: right;
}

/* Language Badges */
html[dir="rtl"] .lang-badge {
    margin-left: 0;
    margin-right: 3px;
}

/* Forms & Input Groups */
html[dir="rtl"] .form-control,
html[dir="rtl"] .form-select {
    text-align: right;
}
html[dir="rtl"] .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-right: -1px;
    margin-left: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}
html[dir="rtl"] .input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Breadcrumbs */
html[dir="rtl"] .breadcumb-menu li {
    margin-right: 0;
    margin-left: 10px;
}
html[dir="rtl"] .breadcumb-menu li::after {
    left: -8px;
    right: auto;
    content: "\f104" !important; /* FontAwesome angle-left instead of angle-right */
}

/* Cards & Badges */
html[dir="rtl"] .single-room-box,
html[dir="rtl"] .single-team-box,
html[dir="rtl"] .card {
    text-align: right;
}

/* Floating WhatsApp Widget */
html[dir="rtl"] .floating-whatsapp-btn {
    left: 24px !important;
    right: auto !important;
}
html[dir="rtl"] .floating-whatsapp-tooltip {
    left: 70px !important;
    right: auto !important;
}

/* Back to Top button */
html[dir="rtl"] .prgoress_indicator {
    right: auto !important;
    left: 24px !important;
}
