/**
 * Arabic layout policy:
 * - Header + footer: RTL layout (mirrored like typical Arabic sites)
 * - Main content: same structure as English (LTR grid/carousel/images)
 * - Content copy only: direction rtl at original position (via data-i18n)
 */
html,
body.lang-ar {
    direction: ltr;
}

/* ========== Navigation & footer: RTL layout ========== */
body.lang-ar .header-top-section,
body.lang-ar .header-top-wrapper,
body.lang-ar #header-sticky,
body.lang-ar #header-sticky .header-main,
body.lang-ar #header-sticky .mega-menu-wrapper,
body.lang-ar .offcanvas__info,
body.lang-ar .offcanvas__wrapper,
body.lang-ar .offcanvas__content,
body.lang-ar footer.footer-section,
body.lang-ar footer.footer-section .footer-widget-wrapper,
body.lang-ar footer.footer-section .footer-bootom {
    direction: rtl;
    text-align: right;
}

body.lang-ar .header-top-wrapper .contact-list,
body.lang-ar .header-top-wrapper .top-right,
body.lang-ar .header-main .header-right,
body.lang-ar .mean-container .mean-nav ul li a {
    direction: rtl;
    text-align: right;
}

body.lang-ar .header-top-wrapper .top-right .flag-wrap.lang-switch-box .nice-select::after {
    left: 12px;
    right: auto;
}

body.lang-ar #header-sticky .theme-btn i {
    transform: scaleX(-1);
}

/* Breadcrumb hero (all inner pages): title always centered */
.breadcrumb-wrapper .page-heading .breadcrumb-title {
    display: block;
    width: 100%;
    text-align: center;
}

/* Breadcrumb trail: keep Home / … / Current order; links RTL text only */
body.lang-ar .breadcrumb-wrapper .page-heading,
body.lang-ar .breadcrumb-wrapper .breadcrumb-list {
    direction: ltr;
}

body.lang-ar .breadcrumb-wrapper .breadcrumb-title {
    direction: rtl;
    unicode-bidi: isolate;
    text-align: center;
}

body.lang-ar .breadcrumb-wrapper .breadcrumb-list [data-i18n],
body.lang-ar .breadcrumb-wrapper .breadcrumb-list a {
    direction: rtl;
    unicode-bidi: isolate;
    display: inline-block;
}

/* ========== Main content: keep English layout shell ========== */
body.lang-ar section,
body.lang-ar .search-wrap,
body.lang-ar .workspace-float-widget {
    direction: ltr;
}

body.lang-ar .row,
body.lang-ar [class*="col-"],
body.lang-ar .swiper,
body.lang-ar .swiper-wrapper,
body.lang-ar .swiper-slide,
body.lang-ar .hero-image,
body.lang-ar .hero-image-2,
body.lang-ar .hero-image-3,
body.lang-ar .section-title-area,
body.lang-ar .array-button,
body.lang-ar .popular-destination-section,
body.lang-ar .best-destination-section,
body.lang-ar .testimonial-slider,
body.lang-ar .testimonial-box-item-style-1,
body.lang-ar .client-info-item,
body.lang-ar .test-meta,
body.lang-ar .price-item {
    direction: ltr;
}

/* Carousel / UI controls: same positions as English */
body.lang-ar .array-button {
    flex-direction: row;
}

body.lang-ar .array-button .array-next,
body.lang-ar .array-button .array-prev,
body.lang-ar .theme-btn i {
    transform: none;
}

/* ========== Content text only: RTL reading at original spot ========== */
body.lang-ar section [data-i18n],
body.lang-ar .search-wrap [data-i18n] {
    direction: rtl;
    unicode-bidi: isolate;
}

/* Match English alignment anchors */
body.lang-ar section .text-center [data-i18n],
body.lang-ar section .section-title.text-center [data-i18n] {
    text-align: center;
}

body.lang-ar section .section-title-area .section-title [data-i18n],
body.lang-ar section .hero-content [data-i18n],
body.lang-ar section .popular-deatination-content [data-i18n],
body.lang-ar section .best-destination-content [data-i18n],
body.lang-ar section .cta-offer-content [data-i18n],
body.lang-ar section .counter-box-item [data-i18n],
body.lang-ar section .team-content [data-i18n],
body.lang-ar section .testimonial-section .col-lg-4 [data-i18n],
body.lang-ar section .testimonial-box-item-style-1 [data-i18n] {
    text-align: left;
}

body.lang-ar section .best-destination-section > .texts[data-i18n] {
    text-align: center;
}

body.lang-ar section input[data-i18n],
body.lang-ar section textarea[data-i18n] {
    direction: rtl;
    text-align: right;
}

/* Hotel cards: Arabic copy reads RTL inside LTR grid */
body.lang-ar #hotel-card-list [data-i18n] {
    direction: rtl;
    unicode-bidi: isolate;
    text-align: right;
}

body.lang-ar #hotel-card-list .list li {
    direction: rtl;
}

/* Tour cards: same as destination – country line RTL, layout shell LTR */
body.lang-ar #tour-list-grid [data-i18n] {
    direction: rtl;
    unicode-bidi: isolate;
    text-align: right;
}

/* flex + direction:rtl 会使 flex-end 靠左；国家行保持 LTR 布局，整行靠右 */
body.lang-ar #tour-list-grid .tour-content .list li {
    direction: ltr;
    justify-content: flex-end;
    text-align: right;
}

body.lang-ar #tour-list-grid .tour-content .list li i {
    margin-right: 6px;
    margin-left: 0;
}

/* Legal / FAQ support pages: RTL text in LTR layout shell */
body.lang-ar .legal-page-content [data-i18n],
body.lang-ar .legal-page-sidebar [data-i18n],
body.lang-ar .faq-section .section-title [data-i18n],
body.lang-ar .faq-section .accordion [data-i18n] {
    text-align: right;
}

body.lang-ar .faq-section .section-title.text-center [data-i18n] {
    text-align: center;
}

/* Tour details page – long copy RTL */
body.lang-ar .tour-details-section .tour-detils-content,
body.lang-ar .tour-details-section .activities-content {
    text-align: right;
}

/* Meta info grid: .tour-box-wrap is sibling of .tour-detils-content, not inside it */
body.lang-ar .tour-details-section .tour-box-wrap .tour-box-item .content {
    text-align: left;
}

body.lang-ar .tour-details-section .tour-box-wrap .tour-box-item .content h6,
body.lang-ar .tour-details-section .tour-box-wrap .tour-box-item .content h6[data-i18n],
body.lang-ar .tour-details-section .tour-box-wrap .tour-box-item .content span {
    text-align: left;
    direction: rtl;
    unicode-bidi: isolate;
}

/* Homepage team / guider cards */
body.lang-ar .team-section .team-content h3,
body.lang-ar .team-section .team-content p {
    direction: rtl;
    text-align: right;
}

/* Guider pages */
body.lang-ar .Guider-section .team-content h3,
body.lang-ar .Guider-section .team-content p {
    direction: rtl;
    text-align: right;
}

body.lang-ar .guider-details-section .guider-details-content,
body.lang-ar .guider-details-section .guider-details-content p,
body.lang-ar .guider-details-section .guider-details-content span,
body.lang-ar .guider-details-section .guider-inner-content,
body.lang-ar .guider-details-section .guider-inner-content p {
    direction: rtl;
    text-align: right;
}

body.lang-ar .guider-details-section .guider-details-content h2,
body.lang-ar .guider-details-section .guider-inner-content h3 {
    direction: rtl;
    text-align: right;
}

body.lang-ar .guider-details-section .pro-head .title {
    direction: rtl;
    text-align: right;
}

/* News details: article body RTL */
body.lang-ar .news-details-section .news-details-content,
body.lang-ar .news-details-section .news-details-content p,
body.lang-ar .news-details-section .news-details-content .list li span,
body.lang-ar .news-details-section .news-details-content .list-item li span,
body.lang-ar .news-details-section .news-details-content .sideber h3 {
    direction: rtl;
    text-align: right;
}

body.lang-ar .news-details-section .news-details-content h2,
body.lang-ar .news-details-section .news-details-content h4 {
    direction: rtl;
    text-align: right;
}

body.lang-ar .news-details-section .main-sideber .recent-content h6,
body.lang-ar .news-details-section .main-sideber .recent-content ul li {
    direction: rtl;
    text-align: right;
}

body.lang-ar .news-details-section .tagcloud {
    direction: rtl;
    text-align: right;
}

/* Destination details: main copy RTL; info cards keep icon-left layout */
body.lang-ar .destination-details-section .destination-details-content,
body.lang-ar .destination-details-section .destination-details-content p,
body.lang-ar .destination-details-section .destination-details-content .list li span {
    direction: rtl;
    text-align: right;
}

body.lang-ar .destination-details-section .destination-details-box .details-icon-item {
    direction: ltr;
    justify-content: flex-start;
}

body.lang-ar .destination-details-section .destination-details-box .details-icon-item h6,
body.lang-ar .destination-details-section .destination-details-box p {
    direction: rtl;
    text-align: left;
    unicode-bidi: isolate;
}

body.lang-ar .destination-details-section #hotel-detail-title {
    direction: rtl;
    text-align: right;
}

body.lang-ar .tour-details-section .breadcrumb-list [data-i18n] {
    text-align: center;
}

/* Nav/footer labels use parent RTL; explicit for translated nodes */
body.lang-ar .header-top-section [data-i18n],
body.lang-ar #header-sticky [data-i18n],
body.lang-ar .offcanvas__info [data-i18n],
body.lang-ar footer.footer-section [data-i18n] {
    direction: rtl;
    unicode-bidi: isolate;
}

/* Footer: brand column stays on physical left; link columns stay RTL */
body.lang-ar footer.footer-section .footer-widget-wrapper > .row {
    direction: ltr;
}

body.lang-ar footer.footer-section .col-lg-6:first-child .single-footer-widget:not(.style-2) {
    direction: ltr;
    text-align: left;
}

body.lang-ar footer.footer-section .single-footer-widget:not(.style-2) .wid-title {
    margin: 0 0 30px;
    width: auto;
}

body.lang-ar footer.footer-section .single-footer-widget:not(.style-2) .footer-logo {
    display: inline-block;
}

body.lang-ar footer.footer-section .single-footer-widget:not(.style-2) .footer-logo img {
    display: block;
}

body.lang-ar footer.footer-section .single-footer-widget:not(.style-2) .footer-content > p {
    margin: 0;
    padding: 0;
    max-width: 466px;
    width: 100%;
    text-align: left;
}

body.lang-ar footer.footer-section .single-footer-widget:not(.style-2) .footer-content > .caller-item {
    margin: 60px 0 0;
    padding: 0;
    max-width: 466px;
    width: 100%;
    text-align: left;
    gap: 44px;
}

@media (max-width: 1199px) {
    body.lang-ar footer.footer-section .single-footer-widget:not(.style-2) .footer-content > .caller-item {
        margin-top: 30px;
        gap: 20px;
    }
}

body.lang-ar footer.footer-section .single-footer-widget:not(.style-2) .footer-content > p[data-i18n],
body.lang-ar footer.footer-section .single-footer-widget:not(.style-2) .footer-content .call-item .content [data-i18n] {
    direction: rtl;
    text-align: left;
}

body.lang-ar footer.footer-section .single-footer-widget:not(.style-2) .footer-content > .caller-item .call-item {
    flex-direction: row;
    justify-content: flex-start;
}

body.lang-ar footer.footer-section .single-footer-widget:not(.style-2) .footer-gallery-item {
    justify-content: flex-start;
    margin: 55px 0 0;
    gap: 15px;
}

body.lang-ar footer.footer-section .col-lg-6:last-child > .row,
body.lang-ar footer.footer-section .single-footer-widget.style-2,
body.lang-ar footer.footer-section .footer-newsletter {
    direction: rtl;
    text-align: right;
}

/* Footer "Mail Us" — blue title (loads after main.css) */
footer.footer-section .footer-content .caller-item .call-item .content h4.footer-mail-us {
    color: #015FC9 !important;
    font-weight: 700 !important;
    font-size: 20px;
    margin-bottom: 4px;
}
