div.swiper-slide.swiper-slide-active > img.gallery__item {
    min-height: 55dvw !important;
    object-fit: cover;
}

.no-packages {
    padding: 2rem 1rem;
    margin: 3.5rem 0 !important;
    font-size: 1.25rem;
}

/* room price calendar modal */
/* 1.25 times the standard dialog (500px); a phone keeps its own width and the full prices get a smaller type below */
@media (min-width: 576px) {
    .room-price-calendar-modal .modal-dialog {
        max-width: 625px;
    }
}

@media (max-width: 575.98px) {
    .room-price-calendar-modal .pc-grid {
        gap: 2px;
    }

    .room-price-calendar-modal .pc-day .price,
    .room-price-calendar-modal .pc-day .base-price {
        font-size: .58rem;
        letter-spacing: -.02em;
    }

    .room-price-calendar-modal .pc-day .num {
        font-size: 1rem;
    }

    .room-price-calendar-modal .pc-day .discount-tag {
        font-size: .65rem;
    }
}

.room-price-calendar-modal .room-name {
    font-weight: 700;
    margin-bottom: .25rem;
}

.room-price-calendar-modal .hint {
    color: #6c757d;
    font-size: .85rem;
}

.room-price-calendar-modal .pc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: .75rem 0;
}

.room-price-calendar-modal .pc-month {
    font-weight: 700;
}

.room-price-calendar-modal .pc-nav button {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    background: transparent;
    line-height: 1;
}

.room-price-calendar-modal .pc-nav button:disabled {
    opacity: .35;
}

/* chevrons drawn with borders: text arrows are mirrored by the bidi algorithm in rtl pages */
.room-price-calendar-modal .pc-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.room-price-calendar-modal .pc-nav button::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

/* the previous button sits at the inline start: left in ltr, right in rtl */
.room-price-calendar-modal .pc-prev::before {
    transform: translateX(2px) rotate(-135deg);
}

.room-price-calendar-modal .pc-next::before {
    transform: translateX(-2px) rotate(45deg);
}

[dir="rtl"] .room-price-calendar-modal .pc-prev::before {
    transform: translateX(-2px) rotate(45deg);
}

[dir="rtl"] .room-price-calendar-modal .pc-next::before {
    transform: translateX(2px) rotate(-135deg);
}

.room-price-calendar-modal .pc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    min-height: 20rem;
}

.room-price-calendar-modal .pc-grid.loading {
    opacity: .4;
    pointer-events: none;
}

.room-price-calendar-modal .pc-weekday {
    text-align: center;
    font-size: 1rem;
    color: #6c757d;
}

.room-price-calendar-modal .pc-day {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 4.25rem;
    padding: 2px 0;
    border: 1px solid #e9ecef;
    border-radius: .5rem;
    background: transparent;
    line-height: 1.3;
}

.room-price-calendar-modal .pc-day .num {
    font-size: 1.125rem;
    font-weight: 600;
}

.room-price-calendar-modal .pc-day .price {
    font-size: .875rem;
    color: #198754;
    white-space: nowrap;
}

.room-price-calendar-modal .pc-day .base-price {
    font-size: .8rem;
    color: #6c757d;
    text-decoration: line-through;
    white-space: nowrap;
}

.room-price-calendar-modal .pc-day .discount-tag {
    position: absolute;
    top: -2px;
    inset-inline-end: -2px;
    padding: 0 4px;
    border-radius: .3rem;
    background: #dc3545;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.4;
}

.room-price-calendar-modal .pc-day.selected .base-price {
    color: #fff;
    opacity: .8;
}

.room-price-calendar-modal button.pc-day:hover {
    border-color: #198754;
}

/* the stay (check-in day plus the selected nights) as one box; cells reach across the grid gap */
.room-price-calendar-modal .pc-day.in-stay {
    border-radius: 0;
    border-color: #198754;
    border-width: 2px 0;
    margin-inline-end: -4px;
    background: rgba(25, 135, 84, .08);
}

.room-price-calendar-modal .pc-day.in-stay.stay-first {
    border-inline-start-width: 2px;
    border-start-start-radius: .5rem;
    border-end-start-radius: .5rem;
}

.room-price-calendar-modal .pc-day.in-stay.stay-last {
    border-inline-end-width: 2px;
    border-start-end-radius: .5rem;
    border-end-end-radius: .5rem;
    margin-inline-end: 0;
}

.room-price-calendar-modal .pc-day.selected {
    background: #198754;
    border-color: #198754;
}

.room-price-calendar-modal .pc-day.selected .num,
.room-price-calendar-modal .pc-day.selected .price {
    color: #fff;
}

.room-price-calendar-modal .pc-day:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.room-price-calendar-modal .pc-day:disabled .price {
    color: inherit;
}

.room-price-calendar-modal .pc-unit,
.room-price-calendar-modal .pc-error {
    margin: .75rem 0 0;
    font-size: .8rem;
    color: #6c757d;
    text-align: center;
}

.room-price-calendar-modal .pc-error {
    grid-column: 1 / -1;
    align-self: center;
}

/* سفر خلوت: the hotel's discount for a window of dates, next to the percent of a room's price */
.quiet-trip-badge {
    display: inline-block;
    margin-inline-start: 0.25rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    background: #e6f4ea;
    color: #1e6b36;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ===== سفر خلوت: the cards under the search box (hotelname/hotel.php, inc/quiet_trips.php quietTripBannerHtml) ===== */
.quiet-trips {padding: 16px 0 4px;}
.quiet-trips__head {display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 15px;}
.quiet-trips__head b {font-weight: 800; color: #0a6a45;}
.quiet-trips__sub {color: #6b7280; font-size: 13px;}
.quiet-trips__list {display: flex; flex-wrap: wrap; gap: 12px;}
.quiet-trip {flex: 1 1 300px; max-width: 480px; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #bfe9d3; border-radius: 14px;
    background: linear-gradient(135deg, #f0fbf5, #e3f6ed); color: #10241a; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;}
a.quiet-trip:hover {transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(0, 171, 108, .55); color: #10241a;}
.quiet-trip.is-current {border-color: #00ab6c; box-shadow: 0 0 0 2px rgba(0, 171, 108, .25);}
.quiet-trip__pct {display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; min-width: 62px; height: 58px; padding: 0 8px; border-radius: 14px;
    background: linear-gradient(145deg, #00bd7b, #008f5a); color: #fff; font-size: 19px; font-weight: 800; line-height: 1.15;}
.quiet-trip__pct small {font-size: 10px; font-weight: 600; opacity: .95;}
.quiet-trip__body {flex: 1; min-width: 0;}
.quiet-trip__body b {display: block; font-size: 14px; font-weight: 800;}
.quiet-trip__body small {display: block; margin-top: 3px; color: #4b6358; font-size: 12px; line-height: 1.7;}
.quiet-trip__go {flex-shrink: 0; color: #0a6a45; font-size: 12.5px; font-weight: 800; white-space: nowrap;}
@media (max-width: 575px) {
    .quiet-trip {flex-basis: 100%; flex-wrap: wrap;}
    .quiet-trip__go {width: 100%; text-align: center; padding-top: 8px; border-top: 1px dashed #bfe9d3;}
}

.basket-item__was {color: #9ca3af; font-size: 12px; font-weight: 500; margin-inline-end: 4px;}

/* ===== سفر خلوت on a room card: the usual discount box with a green chip, and the price in green ===== */
.price.price--quiet {color: #0a8f5a !important;}

/* Room cards: the price of one night is the big number, the stay's total sits under it in small type; the box is kept short so the card does not grow.
   (the theme CSS is injected by main.js after this file, so the rules that clash with it are !important) */
section.rooms .card-package .room-item .price-container .price-box .price-stack {gap: 0; align-items: flex-start;}
section.rooms .card-package .room-item .price-container .price-box .discount-box {margin-top: 0 !important; gap: .4rem !important; align-items: center;}
section.rooms .card-package .room-item .price-container .price-box .discount-box .price-discount {font-size: .875rem !important; line-height: 1.4;}
section.rooms .card-package .room-item .price-container .price-box .price {font-size: 1.25rem !important; line-height: 1.7rem !important; margin: 0 !important; letter-spacing: normal !important; flex-wrap: nowrap; align-items: center; gap: .3rem; white-space: nowrap;}
section.rooms .card-package .room-item .price-container .price-box .price > .currency {font-size: .8125rem !important; line-height: 1.7rem !important;}
section.rooms .card-package .room-item .price-container .price-box .price .per-night {font-size: .75rem; font-weight: 400; color: #6b7280; line-height: 1.7rem; align-self: center;}
section.rooms .card-package .room-item .price-container .price-box .price-total {margin: 0; font-size: .8125rem; line-height: 1.4; color: #6b7280;}
section.rooms .card-package .room-item .price-container .price-box .price-total b {font-weight: 700; color: #424c55;}

/* the discount badge of a room card: a tag with the biggest percent; the tooltip lists every discount (hover on desktop, tap on a phone) */
.disc-badge {position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px 1px 7px; border-radius: 999px; background: linear-gradient(135deg, #12b886, #0a8f5a); color: #fff; font-size: .8125rem; line-height: 1.4rem; cursor: pointer; outline: none; white-space: nowrap; box-shadow: 0 1px 4px rgba(10, 143, 90, .35);}
.disc-badge svg {width: 15px; height: 15px; fill: currentColor; flex-shrink: 0;}
.disc-badge b {font-weight: 800;}
.disc-badge:focus-visible {box-shadow: 0 0 0 3px rgba(10, 143, 90, .3);}
.disc-tip {position: fixed; left: 0; top: 0; z-index: 2147483000; width: max-content; min-width: 210px; max-width: min(270px, calc(100vw - 16px)); padding: 10px 12px; border-radius: 12px; background: #1f2937; color: #fff; font-size: .8125rem; font-weight: 400; line-height: 1.6; text-align: start; white-space: normal; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none;}
.disc-tip.above {transform: translateY(4px);}
.disc-tip.show {opacity: 1; visibility: visible; transform: none;}
.disc-tip::before {content: ""; position: absolute; top: -5px; left: var(--arrow, 16px); width: 10px; height: 10px; margin-left: -5px; background: #1f2937; transform: rotate(45deg);}
.disc-tip.above::before {top: auto; bottom: -5px;}
.disc-tip strong {display: block; margin-bottom: 4px; font-size: .875rem; font-weight: 700;}
.disc-tip ul {list-style: none; margin: 0 0 6px; padding: 0;}
.disc-tip li {display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; padding: 2px 0;}
.disc-tip li b {color: #6ee7b7; font-weight: 800;}
.disc-tip li small {grid-column: 1 / -1; margin-top: -3px; color: #9ca3af; font-size: .75rem;}
.disc-tip .disc-save {display: block; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .18); color: #d1fae5;}
.disc-tip .disc-save b {color: #6ee7b7; font-weight: 800;}

/* ===== تخفیف ورود امشب: the card under the search box of the hotel page, and its badge in the basket ===== */
.late-arrival-wrap {padding: 12px 0 4px;}
.late-arrival {display: flex; align-items: center; gap: 14px; max-width: 520px; padding: 12px 14px; border: 1px solid #c9d8f5; border-radius: 14px; background: #f3f7ff; color: #1f2d4d; text-decoration: none;}
a.late-arrival:hover {transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(43, 91, 210, .55); color: #1f2d4d;}
.late-arrival.is-open {border-color: #2b5bd2; box-shadow: 0 0 0 2px rgba(43, 91, 210, .18);}
.late-arrival__pct {display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; min-width: 62px; height: 58px; padding: 0 8px; border-radius: 14px; background: linear-gradient(135deg, #3b6fe0, #2347a8); color: #fff; font-size: 18px; font-weight: 800;}
.late-arrival__pct small {font-size: 10px; font-weight: 600; opacity: .95;}
.late-arrival__body {flex: 1; min-width: 0;}
.late-arrival__body b {display: block; font-size: 14px; font-weight: 800;}
.late-arrival__body small {display: block; margin-top: 3px; color: #4a5a7d; font-size: 12px; line-height: 1.7;}
.late-arrival__go {flex-shrink: 0; color: #2347a8; font-size: 12.5px; font-weight: 800; white-space: nowrap;}
.late-arrival-badge {background: #e8efff; color: #2347a8;}

/* the reserve button and the cashback box under the price of a room card: smaller than the theme's (its Bootstrap button variables, hence !important) */
section.rooms .card-package .room-item .price-container .btn-select {--bs-btn-padding-y: .5rem; --bs-btn-padding-x: .75rem; --bs-btn-font-size: .875rem; --bs-btn-border-radius: .625rem; padding: .5rem .75rem !important; font-size: .875rem !important; line-height: 1.35 !important;}
section.rooms .card-package .room-item .price-container .room-cashback {padding: .125rem .5rem !important; margin-top: .5rem !important; border-radius: 12px !important;}
section.rooms .card-package .room-item .price-container .room-cashback .text-lg {font-size: 1rem !important;}
section.rooms .card-package .room-item .price-container .room-cashback .room-cashback__tag {font-size: .75rem !important; line-height: 1.5; padding: 0 .5rem;}
section.rooms .card-package .room-item .price-container .room-cashback img {width: 1.25rem; height: 1.25rem;}

/* ===== room card display options (user/features.php «نمایش کارت اتاق»; classes of #packages-container come from inc/room_card_display.php) ===== */
/* the price box becomes one flex column whose children can be ordered: discount, price, total, button, cashback, calendar link */
#packages-container[class*="rc-total-position-under-button"] .room-item .price-container,
#packages-container[class*="rc-calendar-button-price"] .room-item .price-container {display: flex; flex-direction: column;}
#packages-container .room-item .price-container .price-box,
#packages-container .room-item .price-container .price-stack {min-width: 0;}
#packages-container.rc-total-position-under-button .room-item .price-container .price-box,
#packages-container.rc-total-position-under-button .room-item .price-container .price-stack {display: contents;}
#packages-container.rc-total-position-under-button .room-item .price-container .discount-box {order: 1;}
#packages-container.rc-total-position-under-button .room-item .price-container .price {order: 2;}
#packages-container.rc-total-position-under-button .room-item .price-container > div:not(.price-box) {order: 3;}
#packages-container.rc-total-position-under-button .room-item .price-container .price-total,
#packages-container.rc-total-position-under-button .room-item .price-container .price-total-toggle {order: 4; margin-top: .4rem !important; text-align: center;}
#packages-container.rc-calendar-button-price .room-item .price-container .price-calendar-link {order: 9; margin-top: .5rem; align-self: center;}

/* the stay's total: «۹۹۶,۱۰۰ تومان جمع ۲ شب» (number first) */
#packages-container .room-item .price-container .price-total .currency {font-size: .75rem;}
#packages-container .room-item .price-container .price-total .price-total-label {margin-inline-start: .15rem;}

/* the total behind «جزئیات قیمت» */
.price-total-toggle {display: none; padding: 0; border: 0; background: none; color: #2b5bd2; font-size: .8125rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: start;}
#packages-container.rc-total-display-tap .room-item .price-container .price-total-toggle {display: inline-block;}
#packages-container.rc-total-display-tap .room-item .price-container .price-stack:not(.total-open) .price-total {display: none;}

/* the discount badge: smaller, smaller and pale, or over the room photo */
#packages-container.rc-discount-badge-small .disc-badge,
#packages-container.rc-discount-badge-subtle .disc-badge,
#packages-container.rc-discount-badge-photo .disc-badge {font-size: .6875rem; line-height: 1.15rem; padding: 0 6px 0 5px; gap: 3px;}
#packages-container.rc-discount-badge-small .disc-badge svg,
#packages-container.rc-discount-badge-subtle .disc-badge svg,
#packages-container.rc-discount-badge-photo .disc-badge svg {width: 11px; height: 11px;}
#packages-container.rc-discount-badge-small .disc-badge {box-shadow: none;}
#packages-container.rc-discount-badge-subtle .disc-badge {background: #e6f6ee; color: #0a8f5a; box-shadow: none;}
#packages-container .room-item {position: relative;}
.cover-badge {position: absolute; z-index: 2; top: 2.25rem; inset-inline-start: 2.25rem;}
@media (min-width: 1201px) {.cover-badge {top: 2.5rem; inset-inline-start: 2.5rem;}}

/* the reserve button: small, medium (what the card had), large, extra large (!important: the theme's Bootstrap button variables) */
#packages-container.rc-button-size-small .room-item .price-container .btn-select {padding: .35rem .6rem !important; font-size: .8125rem !important;}
#packages-container.rc-button-size-large .room-item .price-container .btn-select {padding: .75rem 1rem !important; font-size: 1rem !important; font-weight: 700;}
#packages-container.rc-button-size-xlarge .room-item .price-container .btn-select {padding: .95rem 1.25rem !important; font-size: 1.125rem !important; font-weight: 800; border-radius: .75rem !important;}

/* the price column, on large screens only (below 1200px it is full width) */
@media (min-width: 1201px) {
    #packages-container.rc-price-column-wide .card-package > .room-item .price-container {width: 24% !important;}
    #packages-container.rc-price-column-wider .card-package > .room-item .price-container {width: 28% !important;}
}

/* more air inside the card */
#packages-container.rc-spacing-relaxed .card-package > .room-item {padding: 2.25rem 1.75rem !important;}
#packages-container.rc-spacing-relaxed .room-item .diet-box {margin-top: 1.1rem !important;}
#packages-container.rc-spacing-relaxed .room-item .btn-box {margin-top: 1.25rem !important;}
#packages-container.rc-spacing-relaxed .room-item .price-container .price-box {margin-bottom: .75rem !important;}

/* the total above the price of a night (the stack is a flex column; the under-button setting has its own order) */
#packages-container.rc-price-order-total-first:not(.rc-total-position-under-button) .room-item .price-stack .discount-box {order: 0;}
#packages-container.rc-price-order-total-first:not(.rc-total-position-under-button) .room-item .price-stack .price-total {order: 1; margin-bottom: .15rem !important;}
#packages-container.rc-price-order-total-first:not(.rc-total-position-under-button) .room-item .price-stack .price-total-toggle {order: 1;}
#packages-container.rc-price-order-total-first:not(.rc-total-position-under-button) .room-item .price-stack .price {order: 2;}

/* total first: the second line is the big one, so the total takes the big type and the price of a night the small type (same sizes the other way round) */
#packages-container.rc-price-order-total-first:not(.rc-total-position-under-button) .room-item .price-container .price-stack .price-total {font-size: 1.25rem !important; line-height: 1.7rem !important; color: #424c55; font-weight: 400; white-space: nowrap;}
#packages-container.rc-price-order-total-first:not(.rc-total-position-under-button) .room-item .price-container .price-stack .price-total b {font-size: 1.25rem; font-weight: 400; color: inherit;}
#packages-container.rc-price-order-total-first:not(.rc-total-position-under-button) .room-item .price-container .price-stack .price-total .currency {font-size: .8125rem !important;}
#packages-container.rc-price-order-total-first:not(.rc-total-position-under-button) .room-item .price-container .price-stack .price-total .price-total-label {font-size: .75rem; color: #6b7280;}
#packages-container.rc-price-order-total-first:not(.rc-total-position-under-button) .room-item .price-container .price-box .price {font-size: .8125rem !important; line-height: 1.4rem !important; color: #6b7280; gap: .25rem;}
#packages-container.rc-price-order-total-first:not(.rc-total-position-under-button) .room-item .price-container .price-box .price > .currency {font-size: .75rem !important; line-height: 1.4rem !important;}
#packages-container.rc-price-order-total-first:not(.rc-total-position-under-button) .room-item .price-container .price-box .price .per-night {font-size: .6875rem; line-height: 1.4rem;}

/* the discount badge over the room photo: bigger than the small badge, it is the first thing the eye meets on the card */
#packages-container.rc-discount-badge-photo .cover-badge .disc-badge {font-size: .875rem; line-height: 1.5rem; padding: 2px 11px 2px 8px; gap: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);}
#packages-container.rc-discount-badge-photo .cover-badge .disc-badge svg {width: 14px; height: 14px;}
/* the word «تخفیف» after the percent: only on the badge over the photo */
.disc-badge .disc-word {display: none; font-weight: 600;}
#packages-container.rc-discount-badge-photo .cover-badge .disc-badge .disc-word {display: inline;}

/* every row of the price box looks different (setting «تمایز سطرهای قیمت»): the old price pale, the second row bold on a tinted strip, the third small under a thin line */
#packages-container.rc-row-style-highlight .room-item .price-container .price-stack {gap: .3rem; align-items: stretch;}
#packages-container.rc-row-style-highlight .room-item .price-container .price-stack .discount-box .price-discount {color: #9ca3af !important; font-weight: 400;}
/* the second row: the night price (night first) or the total (total first) */
#packages-container.rc-row-style-highlight.rc-price-order-night-first .room-item .price-container .price-stack .price,
#packages-container.rc-row-style-highlight.rc-price-order-total-first:not(.rc-total-position-under-button) .room-item .price-container .price-stack .price-total {padding: .3rem .6rem; border-radius: .6rem; background: #eef6ff; color: #1b2a4a !important; font-weight: 800 !important;}
#packages-container.rc-row-style-highlight.rc-price-order-night-first .room-item .price-container .price-stack .price.price--quiet {background: #e6f6ee; color: #0a8f5a !important;}
#packages-container.rc-row-style-highlight.rc-price-order-total-first:not(.rc-total-position-under-button) .room-item .price-container .price-stack .price-total b {font-weight: 800; color: inherit;}
/* the third row: small, grey, with a thin line above it */
#packages-container.rc-row-style-highlight.rc-price-order-night-first .room-item .price-container .price-stack .price-total,
#packages-container.rc-row-style-highlight.rc-price-order-total-first:not(.rc-total-position-under-button) .room-item .price-container .price-box .price {padding: .25rem .6rem 0; border-top: 1px dashed #d1d5db; margin-top: .1rem !important; font-size: .75rem !important; font-weight: 400; color: #6b7280;}
#packages-container.rc-row-style-highlight.rc-price-order-night-first .room-item .price-container .price-stack .price-total b {font-weight: 600; color: #4b5563;}
