/* Frontend RTL support. Arabic is the default locale, while LTR locales keep the normal Bootstrap flow. */
/* RTL foundation for Arabic and other right-to-left locales. */
html[dir="rtl"] body,
body[dir="rtl"],
body.rtl {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] .form-control,
html[dir="rtl"] .form-select,
html[dir="rtl"] .custom-select,
html[dir="rtl"] .select2-container,
html[dir="rtl"] .modal-content,
html[dir="rtl"] .dropdown-menu,
html[dir="rtl"] .table,
html[dir="rtl"] .datepicker,
html[dir="rtl"] .datetimepicker,
html[dir="rtl"] .flatpickr-calendar,
html[dir="rtl"] .daterangepicker {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[type="password"],
html[dir="rtl"] .ltr-value {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] .text-left { text-align: right !important; }
html[dir="rtl"] .text-right { text-align: left !important; }
html[dir="rtl"] .float-left,
html[dir="rtl"] .pull-left { float: right !important; }
html[dir="rtl"] .float-right,
html[dir="rtl"] .pull-right { float: left !important; }

html[dir="rtl"] .ml-0 { margin-right: 0 !important; margin-left: 0 !important; }
html[dir="rtl"] .ml-1 { margin-right: .25rem !important; margin-left: 0 !important; }
html[dir="rtl"] .ml-2 { margin-right: .5rem !important; margin-left: 0 !important; }
html[dir="rtl"] .ml-3 { margin-right: 1rem !important; margin-left: 0 !important; }
html[dir="rtl"] .ml-4 { margin-right: 1.5rem !important; margin-left: 0 !important; }
html[dir="rtl"] .ml-5 { margin-right: 3rem !important; margin-left: 0 !important; }
html[dir="rtl"] .mr-0 { margin-left: 0 !important; margin-right: 0 !important; }
html[dir="rtl"] .mr-1 { margin-left: .25rem !important; margin-right: 0 !important; }
html[dir="rtl"] .mr-2 { margin-left: .5rem !important; margin-right: 0 !important; }
html[dir="rtl"] .mr-3 { margin-left: 1rem !important; margin-right: 0 !important; }
html[dir="rtl"] .mr-4 { margin-left: 1.5rem !important; margin-right: 0 !important; }
html[dir="rtl"] .mr-5 { margin-left: 3rem !important; margin-right: 0 !important; }
html[dir="rtl"] .ml-auto { margin-right: auto !important; margin-left: 0 !important; }
html[dir="rtl"] .mr-auto { margin-left: auto !important; margin-right: 0 !important; }

html[dir="rtl"] .pl-0 { padding-right: 0 !important; padding-left: 0 !important; }
html[dir="rtl"] .pl-1 { padding-right: .25rem !important; padding-left: 0 !important; }
html[dir="rtl"] .pl-2 { padding-right: .5rem !important; padding-left: 0 !important; }
html[dir="rtl"] .pl-3 { padding-right: 1rem !important; padding-left: 0 !important; }
html[dir="rtl"] .pl-4 { padding-right: 1.5rem !important; padding-left: 0 !important; }
html[dir="rtl"] .pl-5 { padding-right: 3rem !important; padding-left: 0 !important; }
html[dir="rtl"] .pr-0 { padding-left: 0 !important; padding-right: 0 !important; }
html[dir="rtl"] .pr-1 { padding-left: .25rem !important; padding-right: 0 !important; }
html[dir="rtl"] .pr-2 { padding-left: .5rem !important; padding-right: 0 !important; }
html[dir="rtl"] .pr-3 { padding-left: 1rem !important; padding-right: 0 !important; }
html[dir="rtl"] .pr-4 { padding-left: 1.5rem !important; padding-right: 0 !important; }
html[dir="rtl"] .pr-5 { padding-left: 3rem !important; padding-right: 0 !important; }

html[dir="rtl"] .navbar-nav,
html[dir="rtl"] .nav,
html[dir="rtl"] .pagination,
html[dir="rtl"] .breadcrumb,
html[dir="rtl"] .list-inline,
html[dir="rtl"] .list-group {
    padding-right: 0;
    padding-left: 0;
}

html[dir="rtl"] ul:not(.nav):not(.navbar-nav):not(.pagination):not(.breadcrumb):not(.list-inline):not(.list-group),
html[dir="rtl"] ol:not(.nav):not(.navbar-nav):not(.pagination):not(.breadcrumb):not(.list-inline):not(.list-group) {
    padding-right: 1.5rem;
    padding-left: 0;
}

html[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
}

html[dir="rtl"] .dropdown-menu-right,
html[dir="rtl"] .dropdown-menu-end {
    right: auto;
    left: 0;
}

html[dir="rtl"] .dropdown-toggle::after {
    margin-right: .255em;
    margin-left: 0;
}

html[dir="rtl"] .dropdown-item {
    text-align: right;
}

html[dir="rtl"] .breadcrumb-item + .breadcrumb-item {
    padding-right: .5rem;
    padding-left: 0;
}

html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
    float: right;
    padding-left: .5rem;
    padding-right: 0;
    transform: rotate(180deg);
}

html[dir="rtl"] .form-check,
html[dir="rtl"] .custom-control {
    padding-right: 1.5rem;
    padding-left: 0;
}

html[dir="rtl"] .form-check-input,
html[dir="rtl"] .custom-control-input {
    float: right;
    margin-right: -1.5rem;
    margin-left: 0;
}

html[dir="rtl"] .form-check-label,
html[dir="rtl"] .custom-control-label {
    margin-right: .25rem;
    margin-left: 0;
}

html[dir="rtl"] .custom-control-label::before,
html[dir="rtl"] .custom-control-label::after {
    right: -1.5rem;
    left: auto;
}

html[dir="rtl"] .input-group > .form-control:not(:last-child),
html[dir="rtl"] .input-group > .form-select:not(:last-child),
html[dir="rtl"] .input-group > .custom-select:not(:last-child),
html[dir="rtl"] .input-group > .input-group-prepend > .input-group-text,
html[dir="rtl"] .input-group > .input-group-prepend > .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: .375rem;
    border-bottom-right-radius: .375rem;
}

html[dir="rtl"] .input-group > .form-control:not(:first-child),
html[dir="rtl"] .input-group > .form-select:not(:first-child),
html[dir="rtl"] .input-group > .custom-select:not(:first-child),
html[dir="rtl"] .input-group > .input-group-append > .input-group-text,
html[dir="rtl"] .input-group > .input-group-append > .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: .375rem;
    border-bottom-left-radius: .375rem;
}

html[dir="rtl"] .btn-group > .btn:not(:last-child):not(.dropdown-toggle),
html[dir="rtl"] .btn-group > .btn-group:not(:last-child) > .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: .375rem;
    border-bottom-right-radius: .375rem;
}

html[dir="rtl"] .btn-group > .btn:not(:first-child),
html[dir="rtl"] .btn-group > .btn-group:not(:first-child) > .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: .375rem;
    border-bottom-left-radius: .375rem;
}

html[dir="rtl"] .modal-header .btn-close,
html[dir="rtl"] .modal-header .close {
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .modal-footer {
    justify-content: flex-start;
}

html[dir="rtl"] .table th,
html[dir="rtl"] .table td,
html[dir="rtl"] table.dataTable thead th,
html[dir="rtl"] table.dataTable tbody td {
    text-align: right;
}

html[dir="rtl"] .dataTables_wrapper .dataTables_filter,
html[dir="rtl"] .dataTables_wrapper .dataTables_paginate {
    float: left;
    text-align: left;
}

html[dir="rtl"] .dataTables_wrapper .dataTables_length,
html[dir="rtl"] .dataTables_wrapper .dataTables_info {
    float: right;
    text-align: right;
}

html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 8px;
    padding-left: 20px;
    text-align: right;
}

html[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: auto;
    left: 1px;
}

html[dir="rtl"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
    float: right;
    margin-right: 5px;
    margin-left: 0;
}

html[dir="rtl"] .datepicker,
html[dir="rtl"] .datetimepicker,
html[dir="rtl"] .flatpickr-calendar,
html[dir="rtl"] .daterangepicker,
html[dir="rtl"] .litepicker {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .daterangepicker .calendar-table th,
html[dir="rtl"] .daterangepicker .calendar-table td,
html[dir="rtl"] .flatpickr-calendar .flatpickr-day {
    text-align: center;
}

html[dir="rtl"] .fa-arrow-left,
html[dir="rtl"] .fa-arrow-right,
html[dir="rtl"] .fa-chevron-left,
html[dir="rtl"] .fa-chevron-right,
html[dir="rtl"] .fa-angle-left,
html[dir="rtl"] .fa-angle-right,
html[dir="rtl"] .bi-arrow-left,
html[dir="rtl"] .bi-arrow-right,
html[dir="rtl"] .bi-chevron-left,
html[dir="rtl"] .bi-chevron-right {
    transform: rotate(180deg);
}

html[dir="rtl"] .btn i:not(:only-child),
html[dir="rtl"] .btn svg:not(:only-child),
html[dir="rtl"] .nav-link i:not(:only-child),
html[dir="rtl"] .nav-link svg:not(:only-child),
html[dir="rtl"] .dropdown-item i:not(:only-child),
html[dir="rtl"] .dropdown-item svg:not(:only-child) {
    margin-left: .5rem;
    margin-right: 0;
}

html[dir="rtl"] .alert,
html[dir="rtl"] .card-header,
html[dir="rtl"] .card-body,
html[dir="rtl"] .card-footer,
html[dir="rtl"] .offcanvas,
html[dir="rtl"] .toast {
    text-align: right;
}

@media (max-width: 767.98px) {
    html[dir="rtl"] .table-responsive,
    html[dir="rtl"] .table-responsive-sm,
    html[dir="rtl"] .table-responsive-md,
    html[dir="rtl"] .table-responsive-lg,
    html[dir="rtl"] .table-responsive-xl {
        direction: rtl;
    }

    html[dir="rtl"] .dataTables_wrapper .dataTables_filter,
    html[dir="rtl"] .dataTables_wrapper .dataTables_paginate,
    html[dir="rtl"] .dataTables_wrapper .dataTables_length,
    html[dir="rtl"] .dataTables_wrapper .dataTables_info {
        float: none;
        text-align: right;
    }
}

/* Frontend travel cards and public navigation. */
html[dir="rtl"] .language-switcher .dropdown-toggle,
html[dir="rtl"] .top-bar,
html[dir="rtl"] .tour-meta,
html[dir="rtl"] .price,
html[dir="rtl"] .card-actions,
html[dir="rtl"] .cta-row,
html[dir="rtl"] .nav-actions {
    direction: rtl;
}

html[dir="rtl"] .language-switcher .dropdown-item .language-flag,
html[dir="rtl"] .user-sidebar .nav-link i {
    margin-left: .5rem !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .tour-card .card-body,
html[dir="rtl"] .hotel-card .card-body,
html[dir="rtl"] .footer-content,
html[dir="rtl"] .about-desc .section-title,
html[dir="rtl"] .about-desc {
    text-align: right;
}

html[dir="rtl"] .tour-card .price,
html[dir="rtl"] .hotel-card .price {
    justify-content: flex-start;
    text-align: right;
}

html[dir="rtl"] .owl-carousel,
html[dir="rtl"] .magnific-popup-wrap {
    direction: ltr;
}

html[dir="rtl"] .owl-carousel .owl-item,
html[dir="rtl"] .mfp-content {
    direction: rtl;
}
