/* ru-pages-rooms.css — правки вёрстки для room_*, room_detail, reservation_*, check_out («Небосвод») */

/* ---------- room_1: карточки одной высоты, фото одного формата ---------- */
.body-room-1 .room-wrap-1 > .row { display: flex; flex-wrap: wrap; }
.body-room-1 .room-wrap-1 > .row > [class*="col-"] { display: flex; float: none; }
.body-room-1 .room-wrap-1 .room-item-1 { display: flex; flex-direction: column; width: 100%; }
.body-room-1 .room-wrap-1 .room-item-1 .content { flex: 1 1 auto; }
.body-room-1 .room-wrap-1 .room-item-1 .img img { width: 100%; aspect-ratio: 570 / 290; object-fit: cover; }

/* ---------- фото одинакового формата на остальных раскладках ---------- */
.body-room-2 .wrap-room2 .img img,
.body-room-2 .wrap-room2 .img1 img { width: 100%; aspect-ratio: 770 / 420; object-fit: cover; }
.body-room-3 .wrap-room-3 .wrap-item > .img img { width: 100%; aspect-ratio: 970 / 400; object-fit: cover; }
.body-room-3 .wrap-room-3 .text-room-3 .img1 img,
.body-room-3 .wrap-room-3 .text-room-3 .img2 img { aspect-ratio: 230 / 280; object-fit: cover; }
.body-room-4 .wrap-room-4 .wrap-item .img img { width: 100%; aspect-ratio: 470 / 523; object-fit: cover; }
.body-room-4 .wrap-room-4 .text-room-4 .img1 img { width: 100%; aspect-ratio: 700 / 300; object-fit: cover; }
.body-room-5 .wrap-room-5 .wrap-item .img img { width: 100%; aspect-ratio: 570 / 330; object-fit: cover; }
.body-room-6 .wrap-room-6 .wrap-item .img img { width: 100%; aspect-ratio: 1170 / 400; object-fit: cover; }

/* ---------- room_detail ---------- */
.section-product-detail .gallery3 .gallery__img-block img { width: 100%; aspect-ratio: 870 / 496; object-fit: cover; }
.product-detail_total .detail-total-note { font-size: 13px; color: #898989; margin: 6px 0 0; }
.product-detail_item .img img { width: 100%; aspect-ratio: 270 / 202; object-fit: cover; }
.product-detail_item .other-price { font-weight: 600; color: #333; margin: 4px 0 18px; }
.product-detail_rates .rates-note { margin-top: 18px; font-size: 14px; color: #666; line-height: 1.6; }
.section-product-detail .gallery3 .gallery__controls img { object-fit: cover; }
.product-package_item .text .product-package_price .price .amout { display: block; white-space: nowrap; }
@media (min-width: 768px) {
  .product-detail_package .product-package_item .text { padding-right: 190px; }
  .product-detail_package .product-package_item .text .product-package_price { width: 170px; text-align: right; }
}

/* ---------- reservation_* ---------- */
.reservation_content .res-hint { padding: 0 30px 12px; color: #666; font-size: 14px; line-height: 1.6; text-align: center; }
.reservation_content .res-hint.res-hint-top { padding: 0 0 20px; text-align: left; }
.reservation_content .res-cal-summary { clear: both; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 22px 30px 30px; font-size: 14px; color: #555; }
.reservation_content .res-cal-summary b { color: #333; }
.reservation_content .res-cal-summary .btn { margin-left: auto; }
.reservation_content .res-cal-summary::before { content: ""; display: block; width: 100%; border-top: 1px solid #e4e4e4; margin-bottom: 4px; }
.reservation-room_item .reservation-room_text .btn { width: auto; padding: 6px 16px; margin-left: 24px; white-space: nowrap; }
.reservation-room_item .reservation-room_img img { width: 100%; aspect-ratio: 371 / 250; object-fit: cover; }
.reservation-package_item .reservation-package_img img { width: 100%; aspect-ratio: 371 / 250; object-fit: cover; }
.reservation-package_item .reservation-package_text .reservation-package_book-price .reservation-package_price { font-size: 12px; color: #898989; margin: 0; }
.reservation-package_item .reservation-package_text .reservation-package_book-price .reservation-package_price .amout { display: block; color: #333; white-space: nowrap; }
@media (min-width: 481px) {
  .reservation-package_item .reservation-package_text { padding-right: 150px; }
  .reservation-package_item .reservation-package_text .reservation-package_book-price { width: 135px; text-align: right; }
}
.reservation-chosen-message .btn { width: auto; padding: 10px 24px; white-space: nowrap; }
.reservation-chosen-message p { max-width: 560px; margin-left: auto; margin-right: auto; }
.reservation-billing-detail .btn4 { width: auto; height: auto; padding: 14px 28px; line-height: 20px; display: inline-block; white-space: normal; }
.reservation-billing-detail .res-pay-title { margin-top: 40px; }
.reservation-billing-detail .res-prepay { font-size: 14px; line-height: 1.6; color: #555; }
.reservation-billing-detail .label-radio.res-agree,
.reservation-billing-detail .label-radio.res-transfer { text-transform: none; font-weight: 500; font-size: 13px; line-height: 1.5; }
.option-bank .pay-badges { display: inline-block; margin-left: 10px; vertical-align: middle; }
.option-bank .pay-badge, .checkout-option .pay-badge { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-align: center; color: #333; border-color: #ccc; }
.option-bank .pay-badge.pay-mir, .checkout-option .pay-badge.pay-mir { color: #fff; border-color: transparent; }
.option-bank .pay-badge.pay-sbp, .checkout-option .pay-badge.pay-sbp { color: #fff; background: linear-gradient(90deg, #5b57a2, #d90751); border-color: transparent; }

/* ---------- check_out ---------- */
.check-out .check-right .check-dates { font-size: 13px; color: #666; line-height: 1.6; margin: -10px 0 20px; }
.check-out .check-right .checkout-cartinfo p { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 16px; }
.check-out .check-right .checkout-cartinfo p span { min-width: 0; }
.check-out .check-right .checkout-cartinfo p:last-child { font-size: 20px; }
.check-out .check-right .checkout-cartinfo p strong { color: #8E7037; white-space: nowrap; }
.check-out .check-right .check-prepay { font-size: 13px; line-height: 1.6; color: #555; }
.check-out .check-right .checkout-option label .pay-badge { display: inline-block; width: auto; min-width: 0; margin: 0 0 0 8px; padding: 2px 7px; font-size: 10px; vertical-align: 1px; }
.check-out .check-right .checkout-btn { width: auto; height: auto; padding: 14px 28px; line-height: 22px; }
.check-out .check-right .checkout_cart .cart-item .img img { width: 100px; aspect-ratio: 100 / 68; object-fit: cover; }

/* ---------- мобильные ---------- */
@media (max-width: 767px) {
  .body-room-4 .wrap-room-4 .wrap-item .img img { aspect-ratio: 4 / 3; }
}
/* room_5: читаемость заголовка на светлых фото */
.body-room-5 .wrap-room-5 .wrap-item .img { position: relative; }
.body-room-5 .wrap-room-5 .wrap-item .img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.6)); pointer-events: none; }
.body-room-5 .wrap-room-5 .wrap-item .text-room-5 { z-index: 1; right: 20px; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
/* room_6: на узких экранах плашка не помещается поверх фото — ставим её под фото */
@media (max-width: 1199px) {
  .body-room-6 .wrap-room-6 .wrap-item .text,
  .body-room-6 .wrap-room-6 .wrap-item .text-1 { position: relative; top: auto; left: auto; right: auto; height: auto; max-width: none; opacity: 1; background-color: #2a2a2a; padding: 22px 30px 30px; }
}
@media (max-width: 767px) {
  .body-room-6 .wrap-room-6 .wrap-item .text,
  .body-room-6 .wrap-room-6 .wrap-item .text-1 { padding: 18px 20px 24px; }
  .body-room-6 .wrap-room-6 .wrap-item .text h2,
  .body-room-6 .wrap-room-6 .wrap-item .text-1 h2 { font-size: 22px; }
  .body-room-6 .wrap-room-6 .wrap-item .img img { aspect-ratio: 16 / 9; }
}
.body-room-6 .wrap-room-6 .wrap-item .view-dateails { width: auto !important; padding-left: 18px; padding-right: 18px; }
.product-detail_rates { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.product-detail_rates table { min-width: 620px; }
/* бронирование на планшете/телефоне: сначала календарь/номера, форма параметров — ниже */
@media (max-width: 991px) {
  .reservation-page > .row:has(.widget_check_availability) { display: flex; flex-direction: column; }
  .reservation-page > .row:has(.widget_check_availability) > [class*="col-"]:last-child { order: -1; margin-bottom: 30px; }
  .reservation_content .res-cal-summary .btn { margin-left: 0; }
}
@media (max-width: 480px) {
  .reservation-room_item .reservation-room_text .btn { margin-left: 0; margin-top: 8px; }
}
.check-out .click.form-control { height: auto; line-height: 1.5; padding: 12px 14px; }
