/* Traveler RTLThem Pro */

/* ---- Input mirror (Gregorian value underneath, Jalali text on top) ---- */
input.trj-mirrored {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    caret-color: transparent;
}
.trj-input-mirror {
    position: absolute;
    z-index: 1;
    display: none;
    align-items: center;
    box-sizing: border-box;
    border-style: solid;
    border-color: transparent !important;
    background: transparent !important;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}

/* ---- daterangepicker ---- */
.daterangepicker td.weekend .date {
    color: #e0393e;
}
.daterangepicker td.weekend.off .date,
.daterangepicker td.weekend.disabled .date {
    opacity: .6;
}
/* Weekday labels: the theme floats them left (its RTL override lives in
   rtl2.css, not loaded on single pages) while the day grid runs RTL, so
   شنبه ended up over the Friday column. Lay them out with the grid. */
.daterangepicker.rtl .table-sub-header {
    display: flex;
}
.daterangepicker.rtl .table-sub-header:after {
    display: none;
}
.daterangepicker.rtl .table-sub-header .day-off-week {
    float: none;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    text-align: center;
}
/* Inline availability calendar (single-month mode below 1200px): the theme
   shrinks it to its header width and offsets the labels for an LTR layout. */
#st-content-wrapper .st-availability .st-calendar .daterangepicker.respon-single {
    width: 100%;
}
#st-content-wrapper .st-availability .daterangepicker.rtl .calendar.left .table-sub-header {
    margin-right: 0;
}
/* "Rates & availability" calendar (Elementor room/tour style 2): nowrap
   Toman prices made the table wider than its header and it overflowed. */
.rate-calendar .st-availability-calendar-wrapper.rtl .calendar-table table.table-condensed {
    width: 100%;
    table-layout: fixed;
}
.rate-calendar .st-availability-calendar-wrapper.rtl .td-date .event-tooltip-wrap {
    white-space: normal;
}

/* ---- bootstrap-datepicker ---- */
.datepicker td.day.trj-weekend:not(.active):not(.disabled) {
    color: #e0393e;
}

/* ---- FullCalendar ---- */
.fc .fc-daygrid-day-top {
    flex-direction: row;
}
.fc .fc-daygrid-day-number {
    display: flex;
    align-items: baseline;
    gap: 4px;
    width: 100%;
}
.fc .trj-fc-day {
    font-weight: 600;
}
.fc .trj-fc-month {
    font-size: 11px;
    color: #1a73e8;
}
.fc .trj-fc-gday {
    margin-inline-start: auto;
    font-size: 10px;
    opacity: .45;
}
.fc .trj-weekend .trj-fc-day {
    color: #e0393e;
}
.fc .trj-month-start {
    box-shadow: inset 0 2px 0 #1a73e8;
}

/* Hotel availability bar: dates, guests, then the button, flowing right to left. */
.rtl .form-check-availability-hotel > .form-group,
.rtl .form-check-availability-hotel > .field-guest {
    float: right !important;
}
.rtl .form-check-availability-hotel > .form-date-field,
.rtl .form-check-availability-hotel > .field-guest {
    border-right-width: 0 !important;
    border-left: 1px solid #dae1e7 !important;
}

/* Mobile-menu backdrop: the theme only hides it inside its mobile media query, so it showed as a white pill under the desktop menu. JS .show() sets inline display, which still wins on mobile. */
.header__center > .overlay {
    display: none;
}

/* Sidebar booking form: date cells align right; the divider sits on the left of the first cell. */
.rtl .st-form-booking-action .st_grid_date .st-item-date {
    text-align: right !important;
}
.rtl .st-form-booking-action .st_grid_date li:first-child {
    border-right: 0 !important;
    border-left: 1px solid #dae1e7 !important;
}

/* Review breakdown: label on the right, count on the left. */
.rtl .review-box .item .label {
    text-align: right !important;
}
.rtl .review-box .item .label .number {
    left: 2px !important;
    right: auto !important;
}

/* Owl Carousel RTL (rule missing from the theme's owl css): stage anchors to the right. */
.owl-carousel.owl-rtl,
.owl-carousel.owl-rtl .owl-stage-outer {
    direction: rtl !important;
}

/* Owl nav buttons go to the left corner; arrows point the way the slides move (next = left). */
.owl-carousel.owl-rtl .owl-nav .owl-next {
    left: 0 !important;
    right: auto !important;
}
.owl-carousel.owl-rtl .owl-nav .owl-prev {
    left: 50px !important;
    right: auto !important;
}
.owl-carousel.owl-rtl .owl-nav button span {
    display: inline-block;
    transform: scaleX(-1);
}

/* Checkout/cart summary: the theme's rtl.css rules for these rows are not loaded, so label sits right and value left. */
.rtl .st-checkout-page .cart-info .info-section ul li span.label {
    text-align: right;
}
.rtl .st-checkout-page .cart-info .info-section ul li span.value {
    float: left;
    text-align: left;
}
.rtl .st-checkout-page .cart-info .info-section ul li span.value .st-link {
    margin-left: 0;
    margin-right: 8px;
}

/* Booking-success details: the divider belongs between the two columns, i.e. on the right of this (left-hand) column. */
.rtl .st-checkout-page .booking-success-notice .booking-info-detail {
    border-left: 0;
    padding-left: 0;
    border-right: 3px solid var(--main-color, #5191FA);
    padding-right: 30px;
}

/* Availability legend: dot sits right of its label, so space goes on the dot's left and between the items. */
.rtl .st-list-availability li {
    margin-right: 0;
}
.rtl .st-list-availability li:not(:last-child) {
    margin-left: 24px;
}
.rtl .st-list-availability li > span {
    margin-right: 0;
    margin-left: 8px;
}

/* Room/rental feature row (area, beds, adults, children): the icon touched its label. */
.rtl .room-featured-items .item > i {
    margin-inline-end: 12px;
    flex: none;
}

/* Feature row on room/rental pages (adults, children, beds, area): spacing was written for LTR. */
.rtl .room-featured-items .item {
    padding-right: 0;
    padding-left: 40px;
}
.rtl .room-featured-items .item > .stt-icon {
    margin-right: 0;
    margin-left: 10px;
}

/* Reviews block: "no reviews" label and the write-review toggle arrow. */
.rtl .f18.font-medium15 .mr15 {
    margin-right: 0;
    margin-left: 15px;
}
.rtl a.toggle-section > i {
    margin-inline-start: 6px;
}

/* Booking detail modal (dashboard): full-width rows are "label ... value"; bootstrap's pull-right is not flipped, so the value hugged the label. Value goes to the left edge. */
.rtl #tab-booking-detail .info .col-md-12 > .pull-right {
    float: left !important;
}

/* Partner dashboard list header ("My hotels" + "Add new"): title on the right, button on the left. */
.rtl .st-create > h2 {
    float: right !important;
}
.rtl .st-create > a.btn {
    float: left !important;
}

/* Timepicker popup: the plugin sets an inline `left`, but the RTL .dropdown-menu rule also sets right:0, which wins in an RTL box and pins the popup to the screen edge. */
.rtl .bootstrap-timepicker-widget.dropdown-menu {
    right: auto !important;
}

/* Partner form location tree: the theme indents children with inline margin-left; mirror it so children nest under the parent on the right. */
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 10px"] { margin-left: 0 !important; margin-right: 10px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 20px"] { margin-left: 0 !important; margin-right: 20px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 30px"] { margin-left: 0 !important; margin-right: 30px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 40px"] { margin-left: 0 !important; margin-right: 40px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 50px"] { margin-left: 0 !important; margin-right: 50px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 60px"] { margin-left: 0 !important; margin-right: 60px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 70px"] { margin-left: 0 !important; margin-right: 70px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 80px"] { margin-left: 0 !important; margin-right: 80px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 90px"] { margin-left: 0 !important; margin-right: 90px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 100px"] { margin-left: 0 !important; margin-right: 100px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 110px"] { margin-left: 0 !important; margin-right: 110px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 120px"] { margin-left: 0 !important; margin-right: 120px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 130px"] { margin-left: 0 !important; margin-right: 130px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 140px"] { margin-left: 0 !important; margin-right: 140px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 150px"] { margin-left: 0 !important; margin-right: 150px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 160px"] { margin-left: 0 !important; margin-right: 160px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 170px"] { margin-left: 0 !important; margin-right: 170px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 180px"] { margin-left: 0 !important; margin-right: 180px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 190px"] { margin-left: 0 !important; margin-right: 190px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 200px"] { margin-left: 0 !important; margin-right: 200px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 210px"] { margin-left: 0 !important; margin-right: 210px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 220px"] { margin-left: 0 !important; margin-right: 220px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 230px"] { margin-left: 0 !important; margin-right: 230px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 240px"] { margin-left: 0 !important; margin-right: 240px !important; }
.rtl .st-partner-create-form .dropdown > .item[style*="margin-left: 250px"] { margin-left: 0 !important; margin-right: 250px !important; }

/* Date fields with a calendar icon (partner "add booking" forms): icon on the left of the field. */
.rtl .input-group:has(> .input-group-addon:first-child) {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
}
.rtl .input-group:has(> .input-group-addon:first-child) > .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    float: none;
    border-radius: 0 4px 4px 0 !important;
}
.rtl .input-group:has(> .input-group-addon:first-child) > .input-group-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 48px;
    padding: 0;
    font-size: 16px;
    border-width: 1px 0 1px 1px !important;
    border-style: solid !important;
    border-radius: 4px 0 0 4px;
}

/* Text fields with a leading icon (partner forms): same left-hand icon box as the date fields. */
.rtl .form-group > i.input-icon {
    left: 0 !important;
    right: auto !important;
    width: 48px !important;
    text-align: center;
    font-size: 16px;
    box-sizing: border-box;
    border-right: 1px solid #dae1e7;
}
.rtl .form-group > i.input-icon ~ .form-control {
    padding-left: 60px;
    padding-right: 12px;
}

/* select2's search box ships with font-family: sans-serif, so its placeholder ignored the site font. */
.select2-container .select2-search__field,
.select2-container .select2-search--inline .select2-search__field {
    font-family: inherit !important;
}
