/* Стили для страницы одного объявления */
.content {
    max-width: 100%;
    margin-left: 0px;
    margin-top: -60px;
}

.property-title {
    font-size: 28px;
    font-weight: 400;
}

.property-detail {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    max-width: 1200px; /* Ограничение ширины */
    margin: 15px auto;
    padding: 0;
}

.property-detail-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.property-galley-booking-block {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
    gap: 20px;
    margin: 0px 15px;
    width: 100%;
    max-width: 1300px;
}

.horiz-container {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: start;
    gap: 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

.vert-container {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
}

.common-info-block {
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.host-grid {
    font-size: 18px;
    min-width: 250px;
    align-items: center;
    width: 25%;
}

/* Основной контейнер карусели */
.photo-gallery-container {
    width: 100%;
    max-width: 1200px; /* Ограничение ширины */
    margin: 0 auto;
    padding: 0;
}

/* Верхний ряд с большими фотографиями */
.main-photos {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
}

.photo-wrapper {
    position: relative;
    flex: 1;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* Плавная анимация для прокрутки */
}

/* Градиентный переход для боковых фотографий */
.photo-wrapper.left::before,
.photo-wrapper.right::before {
    content: "";
    position: absolute;
    top: 0;
    width: 70px;
    height: 100%;
    z-index: 1;
}

.photo-wrapper.left::before {
    left: 0;
    background: linear-gradient(to right, #f5f5f5, transparent); /* Светлая тема */
}

.photo-wrapper.right::before {
    right: 0;
    background: linear-gradient(to left, #f5f5f5, transparent); /* Светлая тема */
}

body.dark-theme .photo-wrapper.left::before {
    background: linear-gradient(to right, #383a3f, transparent); /* Тёмная тема */
}

body.dark-theme .photo-wrapper.right::before {
    background: linear-gradient(to left, #383a3f, transparent); /* Тёмная тема */
}

/* Центральная фотография */
.photo-wrapper.center {
    flex: 2; /* Центральная фотография шире */
}

/* Кнопки прокрутки */
.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    color: #fff;
    border: solid 1px #f5f5f5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 2;
}

.scroll-button.left {
    left: 10px;
}

.scroll-button.right {
    right: 10px;
}

/* Нижний ряд с маленькими фотографиями */
.thumbnail-photos {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.thumbnail {
    flex: 1;
    height: 170px;
    overflow: hidden;
    border-radius: 20px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Стиль области объявления под каруселью */
.properties-main-area {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.properties-data-area {
    margin-top: 20px;
    flex: 3;
    flex-shrink: 0;
    max-width: 75%;
}

.properties-booking-area {
    margin-top: 20px;
    flex: 1;
    position: relative;
    width: 25%;
    max-width: 300px;
    box-sizing: border-box;
    overflow: visible;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.properties-booking-area.booking-zone {
    width: 25%;
    max-width: 300px;
    box-sizing: border-box;
    overflow: visible;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.properties-booking-area.booking-zone > .booking-button-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    visibility: visible;
}

/* Стили для модального окна галереи изображений */
.image-modal,
.carousel-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 10;
    top: 10;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.image-modal.show,
.carousel-modal.show {
    display: flex;
}

.image-modal .modal-content,
.carousel-modal .modal-content {
    position: relative;
    background-color: transparent;
    border: none;
    max-width: 80%;
    max-width: 900px;
}

.image-modal .close,
.carousel-modal .close,
.modal-close {
    position: fixed;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1051;
}

.image-modal .close:hover,
.carousel-modal .close:hover,
.modal-close:hover {
    color: #ccc;
}

.info-block {
    background: #ffffff;
    color: #383a3f;
    box-shadow: 0 1px 10px #a3a3a3;
    border-radius: 10px;
    padding: 10px;
}

body.dark-theme .info-block {
    background-color: #383a3f;
    box-shadow: 0 1px 10px #fff;
    color: #fff;
}


/* Новый стиль для изображений в карусели */
.carousel-item img {
    max-width: 100%;
    max-height: 80vh; /* Ограничиваем высоту */
    width: auto; /* Автоматическая ширина для сохранения пропорций */
    height: auto; /* Автоматическая высота для сохранения пропорций */
    display: block; /* Чтобы изображение центрировалось */
    margin: 0 auto; /* Центрируем изображение */
    object-fit: contain;
}


.property-info, .amenities-section {
    margin-top: 20px;
}

.property-info ul, .amenities-section ul {
    list-style-type: none;
    padding: 0;
}

.property-info li, .amenities-section li {
    margin-bottom: 10px;
}

.addres-area {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: start;
    gap: 10px;
    margin: 20px auto;
    width: 75%;
    max-width: 1300px;
}

.addres-title {
    font-size: 18px;
    font-weight: 500;
    justify-content: start;
    align-items: center;
    gap: 5px;
}

.guests-title {
    font-size: 18px;
    font-weight: 400;
    margin: 10px 0;
}

.rating-title {
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 10px; 
    color: #222222;
    line-height: 1.3;
    gap: 8px;
}

.rating-title a {
    color: #383a3f;
}

.inline-star {
    color: #ffc141;
    margin-right: 6px;
}

.middot-sep {
    color: #222222;
}

.description {
    margin: 0;
}

.description-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.description-container:has(#beds-slider) {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

.rules {
    font-weight: 600;
    font-size: 20px;
}

/* Унификация заголовков блоков на страницах объявления */
.block-title,
.mobile-grids-title {
    font-size: 20px;
    font-weight: 600;
}

/* Стиль текста описания */
.description-text {
    /* Убираем ограничение высоты по умолчанию - применяем только когда есть класс collapsed */
    transition: max-height 0.3s ease;
    position: relative;
}

/* Градиент применяется только для свернутого текста с классом collapsed */
.description-text.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.description-text.expanded {
    max-height: none; /* Полная высота при развернутом состоянии */
}

.description-text.expanded::after {
    display: none;
}

/* Стиль переключателя */
.toggle-description {
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
    margin-top: 5px;
    text-align: left;
}

.toggle-description:hover {
    color: #228B22;
}

/* Стили секции кроватей */
.beds-section {
    margin-top: 20px;
}

.beds-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 10px auto;
}

.beds-main-photos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    position: relative;
    margin-bottom: 10px;
}

.beds-photo-wrapper {
    position: relative;
    flex: 1;
    height: 200px; /* Высота плитки кровати */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 1px 10px #a3a3a3;
}

.beds-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.beds-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.beds-slide.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.beds-slide .bed-type {
    font-size: 14px;
    font-weight: 400;
    position: absolute;
    text-shadow: 1px 1px 2px #383a3f;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0);
    color: #fff;
    padding: 2px 5px;
    border-radius: 5px;
}

/* Описание под плиткой */
.beds-descriptions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.bed-description-wrapper {
    flex: 1;
    font-size: 18px;
    text-align: center;
    color: #383a3f;
    padding: 5px;
    box-sizing: border-box;
}

body.dark-theme .bed-description-wrapper {
    color: #fff;
}

/* Кнопки навигации */
.scroll-button.beds-left,
.scroll-button.beds-right {
    position: absolute;
    top: -20px; /* Перемещаем кнопки над каруселью */
    background: rgba(0, 0, 0, 0);
    border: 1px solid #383a3f;
    color: #383a3f;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 2;
}

.scroll-button.beds-left {
    right: 50px; /* Располагаем слева от правой кнопки */
}

.scroll-button.beds-right {
    right: 10px; /* Справа над каруселью */
}

body.dark-theme .scroll-button.beds-left,
body.dark-theme .scroll-button.beds-right {
    background: rgba(255, 255, 255, 0.5);
    color: #383a3f;
}

/* Индикатор положения */
.beds-counter {
    position: absolute;
    top: -30px;
    right: 90px; /* Между кнопками */
    font-size: 14px;
    color: #383a3f;
}

body.dark-theme .beds-counter {
    color: #fff;
}

/* Модальное окно для изображений кроватей */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.image-modal .modal-content {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    width: auto;
    height: auto;
    margin: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}



/* Стиль стикера присутствия в вишлисте */
.label-area {
    margin-left: 20px;
    display: block;
    color: #fff;
    box-shadow: 0 1px 10px #a3a3a3;
    border-radius: 10px;
    padding: 5px;
    font-size: 14px !important;
    font-weight: 600;
    border: none;
}

.remove {
    background: #228B22;
}

.transparent-button {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    line-height: inherit;
    text-align: inherit;
    appearance: none;
    box-shadow: none;
    outline: none;
    cursor: pointer;
}

/* Секция удобств */
.amenities-section {
    margin-top: -10px;
    width: 100%;
    max-width: 1200px;
}

.amenities-grid-guest {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Три колонки */
    gap: 10px; /* Отступы между элементами */
    padding: 0px;
    margin: 0;
    /*border-radius: 8px;*/
    width: 100%;
    box-sizing: border-box;
}

.amenity-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px; /* Расстояние между иконкой и названием */
    padding: 8px;
    font-size: 18px;
    border: none;
}

body.dark-theme .amenity-item {
    background-color: #383a3f;
    color: #fff;
}

.amenity-icon {
    width: 40px; /* Размер иконки */
    height: 40px;
    object-fit: contain;
}

.amenity-icon-placeholder {
    width: 40px; /* Размер плейсхолдера */
    height: 40px;
    flex-shrink: 0; /* Не сжимаем */
}

.amenity-name {
    flex: 1; /* Название занимает оставшееся пространство */
    font-size: 16px;
}

/* На десктопе показываем все удобства */
@media (min-width: 769px) {
    .amenity-hidden {
        display: flex !important;
    }
    
    .toggle-amenities {
        display: none !important;
    }
}

.svg-icon  {
    width: 60px;
    height: auto;
    object-fit: cover;
}

body.dark-theme .amenity-item {
    background-color: #383a3f;
    color: #fff;
}

body.dark-theme .amenity-item p {
    color: #fff;
}

/* Стиль блока кроватей */
.beds-grid {
    display: flex;
    flex-direction: row;
    flex: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 20px; /* Отступы между карточками */
}

.bed-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 10px #a3a3a3;
}

.bed-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    display: block;
    max-width: 300px;
    max-height: 250px;
    border-radius: 10px;
    cursor: pointer;
}

body.dark-theme .bed-item {
    background-color: #383a3f;
    box-shadow: 0 1px 10px #fff;
    color: #fff;
}

/* Стиль окна бронирования */

.booking-window {
    background: #fff;
    box-shadow: 0 1px 10px #a3a3a3;
    border-radius: 18px;
    color: #383a3f;
    padding: 10px;
}

body.dark-theme .booking-window {
    background-color: #383a3f;
    box-shadow: 0 1px 10px #fff;
    color: #fff;
}

body.dark-theme .booking-window input {
    background-color: #383a3f;
    color: #fff;
}

/* Календарь для выбора дат бронирования */
body.dark-theme .flatpickr-calendar {
    background-color: #383a3f;
    color: #fff;
}

body.dark-theme .flatpickr-day {
    color: #fff;
}

body.dark-theme .flatpickr-day.flatpickr-disabled{
    color: #333;
}

body.dark-theme .flatpickr-month {
    color: #fff;
}

body.dark-theme .flatpickr-weekday {
    color: #fff;
}

body.dark-theme .flatpickr-day.prevMonthDay {
    color: #5c5c5c;
}

body.dark-theme .flatpickr-next-month {
    fill: #8f8f8f;
}

body.dark-theme .flatpickr-prev-month {
    fill: #8f8f8f;
}

/* Стили для рейтинга */
.star {
    color: #ffc141; /* Ярко-желтый цвет для заполненных звезд */
    font-size: 1.8em;
}

.star.empty {
    color: #E0E0E0; /* Светло-серый цвет для пустых звезд */
}

body.dark-theme .star {
    color: #fff;
}

body.dark-theme .star.empty {
    color: #4d4d4d;
}

/* Стили для списка отзывов */
.avatar-in-list {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 10px #a3a3a3;
    margin: 10px 5px;
    cursor: pointer;
}

.avatar-in-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-list-card-profile {
    flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: start;
    gap: 20px;
    align-items: start;
    color: #383a3f;
    border: 1px solid #c2c2c2;
    border-radius: 20px;
    padding: 10px 15px;
}

body.dark-theme .review-list-card-profile {
    background-color: #383a3f;
    border: 1px solid #c2c2c2;
    color: #fff;
}

/* Просмотр изображения кроватей */
/* Стили для модального окна */
.image-modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Полупрозрачный фон */
    justify-content: center;
    align-items: center;
}

.image-modal .modal-content {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    width: auto;
    height: auto;
    margin: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.flatpickr-day.today.selected {
    background: #228B22;
    border-color: #228B22;
}

span.flatpickr-day.selected {
    background: #228B22;
    border-color: #228B22;
}


.review-mobile {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.booking-zone {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #f5f5f5;
    border-radius: 20px;
    border: solid 1px #C2C2C2;
    box-shadow: 4px 4px 4px 0px rgba(34, 60, 80, 0.2);
    padding: 20px 20px;
    flex: 0 0 auto;
    width: 25%; /* Фиксируем ширину блока */
    max-width: 320px; /* Максимальная ширина */
    transition: top 0.3s ease;
    will-change: position, top, left;
    position: relative;
    box-sizing: border-box; /* Учитываем padding в общей ширине */
    overflow: visible; /* Разрешаем содержимому быть видимым */
}

.booking-zone.fixed {
    position: fixed;
    top: 60px; /* Замените на реальную высоту хедера */
    left: 0; /* Начальное смещение будет задано через JavaScript */
    width: 25%; /* Сохраняем пропорциональную ширину */
    max-width: 300px; /* Максимальная ширина для соответствия */
    z-index: 100;
    box-sizing: border-box; /* Учитываем padding в ширине */
}

/* При освобождении возвращаем исходное состояние */
.booking-zone:not(.fixed) {
    position: relative;
    left: auto; /* Сбрасываем смещение */
    transform: none; /* Сбрасываем трансформации */
}

.booking-data-table {
    border: 1px solid #c2c2c2; /* Граница таблицы */
    border-radius: 8px; /* Радиус углов */
    border-collapse: collapse; /*Убирает двойные границы */
    font-size: 16px;
    width: 100%;
}
.booking-data-table td {
    border: 1px solid #c2c2c2; /* Граница ячеек */
    padding: 8px; /* Отступ внутри ячеек (опционально) */
    text-align: left; /* Выравнивание текста (опционально) */
}

.booking-data-table b {
    font-weight: 500;
}

body.dark-theme .booking-zone {
    background: #383a3f;
    border: solid 1px #fff;
    box-shadow: 4px 4px 4px 0px rgba(255, 255, 255, 0.2);
}


.booking-button {
    margin: 10px 0px;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.booking-button-container {
    margin: 2px 0px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    visibility: visible;
}

.booking-button-container form {
    width: 100%;
}

/* Скрытые элементы */
.guest-age-fields-vertical {
    display: none !important;
}

.guest-age-fields-vertical.show {
    display: flex !important;
    flex-direction: column;
}

/* Для мобильной версии также применяем стили */
.mobile-booking-content .guest-age-fields-vertical {
    display: none !important;
}

.mobile-booking-content .guest-age-fields-vertical.show {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-bottom: 16px;
}

.hourly-calendar-field {
    display: none;
}

.hourly-calendar-field.show {
    display: block;
}

.reservation-timer {
    display: none;
    margin: 10px 0;
}

.reservation-timer-active {
    display: block;
}

.hidden-reservation-data {
    display: none;
}

.flex-price-table {
    display: none;
    margin-top: 10px;
}

.flex-price-table.show {
    display: block;
}

.booking-details {
    display: none;
}

.booking-details.show {
    display: block;
}

.cancel-reservation-form {
    margin-top: 10px;
}

.preset-booking-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}


.booking-edit-button {
    border:none;
    outline: none;
    border-radius: 8px;
    height: 60px;
    font-size: 20px;
    background: #d1d1d1;
    width: 100%;
}

.book-button {
    border: none;
    outline: none;
    border-radius: 8px;
    height: 60px;
    font-size: 20px;
    background: #228B22;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 10px;
    display: block !important;
    visibility: visible !important;
    visibility: visible;
}

.booking-buttons {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 10px;
}

.map-section {
    margin: 10px auto;
    max-width: 1300px;
}

.map-block {
    width: 100%;
    height: 400px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
}

.reviews-list-area {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 10px auto 0px auto;
}

.toggle-review {
    cursor: pointer;
    color: #c2c2c2;
    text-decoration: underline;
}

.reviews-button {
    margin: 50px 0px -20px 0px;
    text-align: center;
}

.empty-reviews {
    font-size: 18px;
}

/* Стили для блока "Места рядом" */
.place-title {
    font-size: 20px;
    font-weight: 400;
    margin:  0px 0px 10px 0px;
}

.places-list-area {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 15px auto;
}

.place-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid #c2c2c2;
    border-radius: 20px;
    padding: 0 15px 0 0;
    overflow: hidden;
}

.place-image {
    width: 250px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    flex-shrink: 0;
}

.place-desc-area {
    flex: 1;
    margin: 10px 0px;
    padding-right: 15px;
    color: #383a3f;
}

body.dark-theme .place-desc-area {
    color: #fff;
}

.edit-button-booking-block {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.owner-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.host-name {
    font-size: 18px;
    font-weight: 500;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #383a3f;
    margin-top: 10px;
    text-align: left;
    padding-bottom: 5px;
}

.review-guest-name {
    font-size: 14px;
    font-weight: 400;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .mob-property-detail h4 {
        font-size: 28px;
        font-weight: 400;
        margin: 0;
    }
    /* Сокрытие десктопной галереи */
    .photo-gallery-container {
        display: none;
    }

    .description.rules,
    #property-reviews.description.rules {
        font-weight: 600;
        font-size: 16px;
    }
    .header {
        display: none;
    }

    /* Мобильная фотогалерея */
    .mobile-gallery {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 300px; /* Высота галереи */
        overflow: hidden;
        margin-top: -35px;
        margin-bottom: 30px;
    }

    .gallery-module {
        margin: 0px;
        padding: 0px;
    }

    .module {
        margin: 0px;
    }

    .gallery-wrapper {
        display: flex;
        width: 100%;
        flex-direction: row;
        transition: transform 0.3s ease-in-out;
        touch-action: pan-x;
    }

    .gallery-item {
        flex: 0 0 100%; /* Каждое изображение занимает 100% ширины экрана */
        height: 100%;
        width: 100%
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Обрезка для сохранения пропорций */
    }

    /* Счетчик фотографий в правом нижнем углу */
    .gallery-counter {
        position: absolute;
        bottom: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 10px;
        border-radius: 15px;
        font-size: 14px;
        font-weight: 500;
        z-index: 10;
    }

    /* Удаляем стили для точек, так как теперь используется счетчик */
    /* .gallery-dots {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 5px;
        z-index: 10;
    }

    .gallery-dot {
        width: 10px;
        height: 10px;
        background-color: white;
        border-radius: 50%;
        opacity: 0.5;
        cursor: pointer;
    }

    .gallery-dot.active {
        background-color: #228B22;
        opacity: 1;
    } */

    .gallery-back, .gallery-wishlist {
        position: fixed;
        top: 10px;
        z-index: 10;
        background: #fff;
        box-shadow: 0 1px 10px #a3a3a3;
        border: none;
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        cursor: pointer;
        pointer-events: auto;
    }

    .gallery-back {
        left: 10px;
    }

    .gallery-wishlist {
        right: 10px;
    }

    .fa-heartbeat {
        color: #228B22;
    }

    /* Стиль области объявления под каруселью */
    .properties-main-area {
        flex-direction: column;
        margin-top:  -20px;
        justify-content: start;
        gap: 5px;
        width: 100%;
    }

    .properties-data-area {
        margin-top: 20px;
        flex: 1;
        flex-shrink: 0;
        max-width: 100%;
        width:  100%;
    }

    .property-top-info-block {
        display: flex;
        flex-direction: column;
    }

    .rating-title {
        margin-top: 0;
    }

    .host-name {
        font-size: 14px;
        font-weight: 400;
    }

    .mob-property-detail {
        display: flex;
        flex-direction: column;
        align-items: space-around;
        justify-content: start;
        gap: 10px;
        margin: 10px 0;
    }

    .owner-block {
        border: 0;
        border-top: 1px solid rgba(0, 0, 0, .1); 
        padding: 10px 0 0 0;
        margin-top: 0;
    }

    .owner-avatar img {
        width: 50px;
        height: 50px;   
    }

    .property-detail-container {
        flex-direction: column;
    }

    .addres-title {
        flex-direction: row;
        justify-content: start !important;
        align-items: start;
        font-size: 16px;
        font-weight: 500;
        margin: 0 0 10px 0;
        color: #222222;
        gap: 6px;
        line-height: 1.4;
        font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    body.dark-theme .addres-title {
        color: #ffffff;
    }

    .guests-title {
        flex-direction: row !important;
        font-size: 16px;
        font-weight: 450;
        margin-top: -3px;
        color: #0d0c0c;
        margin: 8px 0;
        color: #222222;
        line-height: 1.4;
        font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    }
    
    body.dark-theme .guests-title {
        color: #f0f0f0;
    }

    .amenities-grid-guest {
        grid-template-columns: repeat(1, 1fr);
    }

    /* Стили для сворачивания удобств на мобильном */
    .amenity-hidden {
        display: none !important;
    }

    .amenity-icon {
        width: 40px;
        height: 40px;
    }

    .toggle-amenities {
        cursor: pointer;
        text-decoration: underline;
        margin-top: 10px;
        font-size: 16px;
        text-align: left;
        color: #383a3f;
    }

    .toggle-amenities:hover {
        color: #383a3f;
    }

    .map-section h3 {
        font-size: 20px;
     }

    #ad-reviews h3 {
        font-size: 20px;
    }

    .review-list-card-profile {
        flex-direction: row;
        align-items: start;
    }

    .review-avatar {
        align-self: center;
        display: flex; 
        flex-direction: column; 
        align-items: center;
    }

    .review-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .reviews-button {
        text-align: center;
        margin-top: 50px;
        margin-bottom: 10px;
    }

    .booking-zone {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        z-index: 1000 !important;
        background: #fff !important;
        border-top: 1px solid #c2c2c2 !important;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1) !important;
        padding: 5px !important;
        box-sizing: border-box !important;
        min-height: 60px !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .booking-price {
        font-size: 20px !important;
        font-weight: 700 !important;
        margin: 1px 0 !important;
        margin-bottom: 20px !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    /* Уменьшаем margin-bottom, если есть кнопки (гибкая цена или конструктор) */
    .booking-price:has(.flex-price-toggle),
    .booking-price:has(.pricing-constructor-toggle) {
        margin-bottom: 8px !important;
    }
    
    /* Стили для кнопки бронирования внутри booking-price на мобильных */
    .booking-price .booking-button-container {
        margin-top: 12px !important;
        display: flex !important;
        visibility: visible !important;
    }

    .booking-currency {
        font-size: 16px;
        font-weight: 500;
    }

    .booking-button {
        margin: 0 !important;
        width: 100% !important;
        max-width: 150px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .booking-button-container {
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .book-button {
        height: 48px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .booking-edit-button {
        height: 48px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Стили для контейнера с кнопками редактирования */
    .booking-zone > div[style*="flex-direction: row"] {
        width: 100%;
        margin-bottom: 8px;
    }

    
    .booking-data-table {
        display: none;
    }
    
    .total-cost {
        justify-content: start;
        font-size: 16px;
        margin: 0;
        padding: 0;
    }
    
    .booking-data-table td {
        padding: 4px 6px;
    }

    .booking-price-block {
        display: flex;
        flex-direction: column;
        align-items: start;
        font-weight: 500;
    }

    .preset-booking-data {
        display: flex;
        flex-direction: row;
        justify-content: start;
        align-items: center;
        gap: 10px;
    }

    .arrow-more i {
        position: fixed;
        left: 50%;
        bottom: 160px; /* Поднимаем выше блока бронирования */
        z-index: 999; /* Ниже блока бронирования */
        background: #fff;
        width: 30px;
        height: 30px;
        border-radius: 50px;
        padding-left: 10px;
        cursor: pointer;
    }

    .extra-booking-info {
        display: none;
        overflow: hidden;
        transition: max-height 1s ease-out;
        z-index: 1002;
        position: fixed;
        left: 0;
        bottom: 100px;
        width: 100%;
        background: #fff;
        padding: 10px;
        border-radius: 10px 10px 0 0;
        font-size: 16px;
        box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.2);
    }

    .extra-booking-info.show {
        display: block;
        max-height: 500px;
    }

    body.dark-theme .arrow-more i {
        background: #383a3f;
        color: #fff;
    }

    body.dark-theme .extra-booking-info {
        background: #383a3f;
        color: #fff;
    }
    
    body.dark-theme .booking-zone {
        background: #383a3f !important;
        border-color: #555 !important;
        color: #fff !important;
    }

    .booking-button-group {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        gap: 5px;
    }

    .booking-buttons {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }
    
    /* Скрываем кнопку "Забронировать" в отдельном div, если есть кнопка редактирования */
    .booking-zone .booking-button {
        margin: 0;
    }

    .rating-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .common-info-block {
        width: 100%;
    }

    .empty-reviews {
        margin: 5px 0 50px 0;
    }

    .place-card {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px;
        border: 1px solid #c2c2c2;
        border-radius: 20px;
        padding: 0px;
        overflow: hidden;
    }

    .place-image {
        width: 100%;
        height: 200px;
        background-size: cover;
        background-position: center;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        flex-shrink: 0;
    }

    .place-desc-area {
        padding: 0 10px;
    }

    .edit-button-booking-block {
        margin: 0 5px !important;
        padding: 0 !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* Стили для мобильного переноса строки в адресе */
    .address-item {
        display: inline;
    }

    /* На мобильных устройствах добавляем перенос после первого элемента */
    .first-address-item::after {
        content: '\A';
        white-space: pre;
    }

    .star {
        color: #ffc141; /* Ярко-желтый цвет для заполненных звезд */
        font-size: 1.2em;
    }
    
    .avatar-name-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}

/* Стили для новой формы бронирования */
.reservation-timer {
    color: #666;
    padding: 2px 0;
    border-radius: 8px;
    margin-bottom: 4px;
    text-align: center;
    font-weight: 400;
    background-color: transparent;
    border: none;
}

.reservation-timer i {
    margin-right: 8px;
}

.booking-form-container {
    background: #fff;
    border: 1px solid #228B22;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(34, 139, 34, 0.2);
}

/* Стили для формы бронирования (как на Airbnb) */
.booking-form-fields {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.date-fields-row {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
}

.guests-field-row {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
}

.form-field {
    flex: 1;
    position: relative;
}

/* Граница справа у поля даты прибытия (только для обычного бронирования) */
.date-fields-row:not(.single-field) .form-field:first-child {
    border-right: 1px solid #228B22;
}

/* Для почасового бронирования - центрируем поля и растягиваем на всю ширину */
.date-fields-row.single-field {
    justify-content: center;
    padding: 0 20px;
}

.date-fields-row.single-field .form-field {
    width: 100%;
    max-width: none;
}


/* Граница сверху у поля количества гостей */
.guests-field-row .form-field {
    margin-top:1px;
    border-top: 1px solid #228B22;
    border-right: none;
}

/* Вертикальное отображение полей возраста гостей */
.guest-age-fields-vertical {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
}

.guest-age-fields-vertical .form-field {
    border-right: none;
    border-left: none;
    flex: none;
}

.guest-age-fields-vertical .form-field:first-child {
    margin-top: 1px;
    border-top: 1px solid #228B22;
    border-bottom: 1px solid #228B22;
}

.guest-age-fields-vertical .form-field:not(:first-child) {
    border-top: none;
    border-bottom: 1px solid #228B22;
}

.guest-age-fields-vertical .form-field:last-child {
    border-bottom: none;
}

/* Для почасового бронирования - центрируем поле гостей */
.date-fields-row.single-field + .guests-field-row {
    padding: 0 20px;
}

.date-fields-row.single-field + .guests-field-row .form-field {
    width: 100%;
    max-width: none;
}

/* Компактные стили для почасового бронирования */
.hourly-calendar-field {
    margin-top: 8px !important;
    margin-right: 8px !important;
}

.hourly-calendar-field label {
    font-size: 14px !important;
    margin-bottom: 4px !important;
    padding: 0 8px !important;
}

.hourly-calendar {
    margin-top: 4px !important;
    padding: 6px 8px 12px 8px !important;
    max-height: 120px;
    overflow-y: auto;
}

/* Специфичные стили для inline календаря */
#hourlyCalendarInline {
    padding-bottom: 15px !important;
    margin-bottom: 5px !important;
}

.hour-grid {
    gap: 4px !important;
    margin-top: 4px !important;
}

.hour-button {
    padding: 4px 6px !important;
    font-size: 14px !important;
    min-height: 24px !important;
    border-radius: 3px !important;
}

.no-hours {
    padding: 8px !important;
    margin: 4px 0 !important;
    font-size: 12px !important;
}

/* Стили для отображения ставки */
.hourly-calendar-field > div:first-child {
    font-size: 11px !important;
    margin: 2px 0 !important;
    padding: 0 8px !important;
    color: #228B22;
}

.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #383a3f;
    margin: 0;
    padding: 8px 16px 0 16px;
    line-height: 1.0;
}

.form-field input {
    width: 100%;
    height: 40px;
    border: none;
    outline: none;
    padding: 0 16px 8px 16px;
    font-size: 16px;
    color: #383a3f;
    background: transparent;
    font-weight: 400;
    margin: 0;
    line-height: 1.0;
}

.form-field input::placeholder {
    color: #999;
    font-size: 16px;
    font-weight: 400;
}





.booking-info {
    margin: 0px;
}

.booking-price {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 1px 0;
    padding: 0 8px;
    margin-bottom: 20px;
    position: relative;
}

/* Стили для подсказки в блоке цены - смещаем вправо */
.booking-price .tooltip-trigger,
.booking-price span .tooltip-trigger {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    z-index: 10;
    display: inline-block;
}

/* Стили для подсказки в min-price-item - смещаем вправо */
.min-price-item .tooltip-trigger {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    z-index: 10;
    display: inline-block;
}

.min-price-item {
    position: relative;
    padding-right: 30px;
}

/* Уменьшаем margin-bottom, если есть кнопки (гибкая цена или конструктор) */
.booking-price:has(.flex-price-toggle),
.booking-price:has(.pricing-constructor-toggle) {
    margin-bottom: 8px;
}

/* Стили для кнопки бронирования внутри booking-price */
.booking-price .booking-button-container {
    margin-top: 12px;
    display: flex !important;
    visibility: visible !important;
    width: 100%;
    box-sizing: border-box;
}

.booking-price .booking-button-container .book-button {
    display: block !important;
    visibility: visible !important;
    width: 100%;
}

.total-cost {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

/* Центрирование при активном резервировании */
.booking-price .total-cost:only-child {
    justify-content: center !important;
    text-align: center !important;
}

/* Центрирование когда есть только total-cost без cost-breakdown */
.booking-price:has(.total-cost):not(:has(.cost-breakdown)) .total-cost {
    justify-content: center !important;
    text-align: center !important;
}

/* Центрирование total-cost при активном резервировании */
.booking-info .booking-price .total-cost:only-child,
.booking-info .booking-price:not(:has(.cost-breakdown)) .total-cost {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

/* Центрирование total-cost при активном резервировании (более специфичное правило) */
.booking-form-container.has-active-reservation ~ .booking-info .booking-price .total-cost,
.booking-form-container.has-active-reservation ~ .booking-info .booking-price:not(:has(.cost-breakdown)) .total-cost {
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.cost-breakdown {
    margin-top: 1px;
    padding: 1px 0;
    width: 100%;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1px;
    font-size: 14px;
    gap: 10px;
}

.cost-label {
    color: #666;
    font-weight: 500;
    flex: 1;
    margin-right: 10px;
}

.cost-link {
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cost-link:hover {
    color: #383a3f;
    text-decoration: underline;
}

.cost-value {
    color: #333;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 10px;
}

.booking-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 10px;
}

.booking-details-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.booking-details-row:last-child {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 16px;
    color: #228B22;
}

.booking-button-container {
    text-align: center;
}

.book-button {
    background: #228B22;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.book-button:hover {
    background: #1b6f1b;
}

.book-button:disabled,
.book-button-disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.book-button-active {
    background: #228B22 !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

/* Стили для уведомления о минимальном количестве часов */
.min-hours-notice {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-weight: 400;
}

/* Стили для подсказки о последовательности часов */
.hours-sequence-hint {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 8px;
    padding: 8px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    text-align: center;
}

@keyframes fieldBlinkAnimation {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: #ffe5e5;
    }
    100% {
        background-color: transparent;
    }
}

.field-blink {
    animation: fieldBlinkAnimation 1s ease-in-out 3;
    animation-fill-mode: both;
}

/* Стили для readonly полей при активном резервировании */
.has-active-reservation input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #666;
}

.has-active-reservation .dark-theme input[readonly] {
    background-color: #2a2a2a;
    color: #888;
}

.all-items-button {
    font-size: 16px;
    color: #333;
    text-decoration: underline;
    cursor: pointer;
}

.all-items-button:hover {
    color: #228B22;
    text-decoration: underline;
}

/* Обычные поля ввода (не readonly) остаются нормальными */

/* Стили для кнопки при изменении данных резервирования */
.booking-changed {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
    border-color: #ff6b6b !important;
    animation: pulse-booking 1.5s infinite;
}

@keyframes pulse-booking {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}
input:not([readonly]) {
    cursor: text;
}

.dark-theme input:not([readonly]) {
    background-color: #383a3f;
}


/* Отступ снизу для контента на мобильных устройствах */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px; /* Высота мобильной планки + отступ */
    }
    
    /* Мобильная планка бронирования */
    .mobile-booking-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e0e0e0;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .mobile-price {
        flex: 1;
        min-width: 0;
        margin-right: 12px;
        overflow: hidden;
    }
    
    .mobile-total-cost,
    .mobile-base-price {
        font-size: 18px;
        font-weight: 600;
        color: #333;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-book-btn {
        background: #228B22;
        color: white;
        border: none;
        padding: 12px 16px;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .mobile-book-btn:hover {
        background: #218838;
    }
    
    /* Модальное окно для мобильного бронирования */
    .mobile-booking-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 2000;
        display: none;
    }
    
    .mobile-booking-modal[style*="block"] {
        display: block !important;
    }
    
    /* Стили для модального окна конструктора цен */
    #pricingConstructorModal.pricing-modal {
        display: none;
    }
    
    #pricingConstructorModal.pricing-modal[style*="block"] {
        display: block !important;
    }
    
    /* Для модального окна конструктора цен на мобильных */
    #pricingConstructorModal .pricing-modal-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }
    
    #pricingConstructorModal .pricing-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        padding-right: 60px;
        padding-bottom: 20px;
        border-bottom: 1px solid #e0e0e0;
        background: #f8f9fa;
        position: relative;
    }
    
    #pricingConstructorModal .pricing-modal-header h3 {
        font-size: 16px;
        margin: 0;
    }
    
    #pricingConstructorModal .pricing-modal-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: #f7f7f7;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #717171;
        opacity: 1;
        cursor: pointer;
        z-index: 1050;
        transition: all 0.2s ease;
        padding: 0;
        line-height: 1;
    }
    
    #pricingConstructorModal .pricing-modal-close:hover {
        background: #e0e0e0;
        color: #333;
        transform: scale(1.1);
    }
    
    #pricingConstructorModal .pricing-modal-close:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(34, 139, 34, 0.5);
    }
    
    @media (max-width: 768px) {
        #pricingConstructorModal .pricing-modal-close {
            width: 48px;
            height: 48px;
            font-size: 28px;
            top: 8px;
            right: 8px;
            color: #555;
        }
    }
    
    .mobile-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .mobile-modal-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        flex: 1;
        text-align: center;
        padding: 0 60px 0 0; /* Отступ справа для кнопки закрытия */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .mobile-modal-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .mobile-view-toggle-btn {
        padding: 8px 12px;
        background: #228B22;
        color: white;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        cursor: pointer;
        white-space: nowrap;
    }
    
    .mobile-view-toggle-btn:hover {
        background: #1e7a1e;
    }
    
    .mobile-modal-close {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #717171;
        line-height: 1;
        z-index: 2;
        cursor: pointer;
        transition: all 0.2s ease;
        padding: 0;
    }
    
    .mobile-modal-close:hover {
        background: #e0e0e0;
        color: #333;
        transform: translateY(-50%) scale(1.1);
    }
    
    .mobile-modal-close:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(34, 139, 34, 0.5);
    }
    
    .mobile-calculation-view {
        padding: 20px;
        padding-bottom: 100px; /* Отступ снизу, чтобы кнопка не обрезалась */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Скрываем mobile-calculation-view, когда модальное окно скрыто */
    .mobile-booking-modal[style*="none"] .mobile-calculation-view,
    .mobile-booking-modal:not([style*="block"]) .mobile-calculation-view {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Скрываем все элементы mobile-calculation-view, которые не находятся внутри видимого модального окна */
    .mobile-calculation-view {
        display: none;
    }
    
    .mobile-booking-modal[style*="block"] .mobile-calculation-view[style*="block"] {
        display: block !important;
    }
    
    .mobile-form-view {
        display: block;
    }
    
    .mobile-change-data-btn {
        width: auto;
        min-width: 200px;
        padding: 12px 24px;
        margin: 20px auto;
        display: block;
        background: #228B22;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        cursor: pointer;
        position: sticky;
        bottom: 20px;
    }
    
    .mobile-change-data-btn:hover {
        background: #1e7a1e;
    }
    
    
    /* Стили для мобильного контента в модальном окне */
    .mobile-booking-content {
        display: block !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Убеждаемся, что мобильный контент виден */
    .mobile-booking-modal .properties-booking-area {
        display: block !important;
    }
    
    /* Стили для формы в мобильном модальном окне */
    .mobile-booking-content .booking-form-container {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .mobile-booking-content .booking-form-fields {
        display: block !important;
    }
    
    .mobile-booking-content .date-fields-row {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .mobile-booking-content .form-field {
        width: 100% !important;
        margin: 0 !important;
        border-right: none !important;
        border-bottom: none !important;
        border-left: none !important;
        border-top: none !important;
    }
    
    .mobile-booking-content .form-field:first-child {
        border-right: none !important;
        border-bottom: none !important;
        border-left: none !important;
        border-top: none !important;
    }
    
    .mobile-booking-content .form-field:nth-child(2) {
        border-left: none !important;
        border-bottom: none !important;
        border-right: none !important;
        border-top: none !important;
    }
    
    .mobile-booking-content .guests-field-row .form-field {
        border-right: none !important;
        border-bottom: none !important;
        border-left: none !important;
        border-top: none !important;
    }
    
    .mobile-booking-content .date-fields-row.single-field .form-field {
        border-right: none !important;
        border-bottom: none !important;
        border-left: none !important;
        border-top: none !important;
    }
    
    .mobile-booking-content .date-fields-row .form-field {
        border-right: none !important;
        border-bottom: none !important;
        border-left: none !important;
        border-top: none !important;
    }
    
    .mobile-booking-content .form-field input {
        width: 100% !important;
        height: 48px !important;
        font-size: 16px !important;
        padding: 12px !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
    }
    
    .mobile-booking-content .form-field label {
        display: block !important;
        margin-bottom: 6px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #333 !important;
    }
    
    .mobile-booking-content .booking-info {
        margin: 20px 0 !important;
        padding: 16px !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        border: 1px solid #e0e0e0 !important;
    }
    
    .mobile-booking-content .booking-button-container {
        margin-top: 20px !important;
    }
    
    .mobile-booking-content .book-button {
        width: 100% !important;
        height: 48px !important;
        font-size: 16px !important;
        font-weight: normal !important; /* Такой же, как у кнопки "Изменить данные" */
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important; /* Убираем padding, так как используем flex для центрирования */
    }
    
    /* Стили для почасового календаря в мобильном модальном окне */
    .mobile-booking-content .hourly-calendar-field {
        margin-top: 20px !important;
    }
    
    .mobile-booking-content .hourly-calendar {
        max-height: 300px !important;
        overflow-y: auto !important;
        padding: 10px !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        background: #f8f9fa !important;
    }
    
    .mobile-booking-content .hour-button {
        transition: all 0.2s ease !important;
    }
    
    .mobile-booking-content .hour-button.booked {
        background: #f44336 !important;
        color: white !important;
        cursor: not-allowed !important;
        border-color: #d32f2f !important;
    }
    
    .mobile-booking-content .hour-button.selected {
        background: #228B22 !important;
        color: white !important;
        border-color: #1e7a1e !important;
    }
    
    .mobile-booking-content .hour-button:hover:not(.booked):not(.selected) {
        border-color: #228B22 !important;
    }
    
    /* Стили для блока с количеством часов */
    .mobile-booking-content .hours-summary {
        margin-top: 12px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #333 !important;
        text-align: center !important;
        padding: 8px !important;
        background: #f8f9fa !important;
        border-radius: 6px !important;
        border: 1px solid #e0e0e0 !important;
    }
    
    /* Стили для мобильного таймера */
    .mobile-reservation-timer {
        color: #666 !important;
        padding: 2px 0 !important;
        border-radius: 8px !important;
        margin-bottom: 4px !important;
        text-align: center !important;
        font-weight: 400 !important;
        background-color: transparent !important;
        border: none !important;
    }
    
    .mobile-reservation-timer i {
        margin-right: 8px !important;
    }
    
    /* Стили для кнопки "Обновить" в мобильной версии (используем те же стили, что и в десктопной) */
    .mobile-booking-content .book-button.booking-changed {
        background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
        border-color: #ff6b6b !important;
        animation: pulse-booking 1.5s infinite !important;
    }
    
    
    /* Стили для гибкого ценообразования в мобильной версии */
    .mobile-booking-content .flex-price-toggle {
        cursor: pointer;
        color: #228B22;
        text-decoration: underline;
    }
    
    .mobile-booking-content .flex-price-toggle:hover {
        color: #228B22;
    }
    
    .mobile-booking-content .flex-price-table {
        background: white;
        border: 1px solid #ddd;
        border-radius: 6px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .mobile-booking-content .flex-price-table-header {
        background: #f8f9fa;
        padding: 10px;
        border-bottom: 1px solid #ddd;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-booking-content .flex-price-close-btn {
        background: none;
        border: none;
        font-size: 18px;
        cursor: pointer;
        color: #666;
    }
    
    .mobile-booking-content .flex-price-close-btn:hover {
        color: #333;
    }
    
    /* Скрываем десктопную версию на мобильных */
    .properties-booking-area:not(.mobile-booking-content) {
        display: none !important;
    }
    
    /* Увеличиваем z-index модального окна отмены для мобильной версии */
    .modal {
        z-index: 3000 !important;
    }
    
    .modal-backdrop {
        z-index: 2999 !important;
    }
}

@keyframes mobileBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Скрываем мобильную версию на десктопе */
@media (min-width: 769px) {
    .mobile-booking-bar {
        display: none !important;
    }
    
    .mobile-booking-modal {
        display: none !important;
    }
    
    .properties-booking-area {
        display: block !important;
    }
    
    /* Стили для модального окна конструктора цен на десктопе */
    #pricingConstructorModal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2000;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    #pricingConstructorModal[style*="block"] {
        display: flex !important;
    }
    
    #pricingConstructorModal .pricing-modal-content {
        position: relative;
        background: white;
        border-radius: 8px;
        max-width: 800px;
        width: 100%;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
    
    #pricingConstructorModal .pricing-modal-header {
        flex-shrink: 0;
        position: relative;
        padding: 20px 60px 20px 20px;
        margin-bottom: 0;
    }
    
    #pricingConstructorModal .pricing-modal-header h3 {
        font-size: 20px;
        margin: 0;
        padding: 0;
    }
    
    #pricingConstructorModal .pricing-modal-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: #f7f7f7;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #717171;
        opacity: 1;
        cursor: pointer;
        z-index: 1050;
        transition: all 0.2s ease;
        padding: 0;
        line-height: 1;
    }
    
    #pricingConstructorModal .pricing-modal-close:hover {
        background: #e0e0e0;
        color: #333;
        transform: scale(1.1);
    }
    
    #pricingConstructorModal .pricing-modal-close:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(34, 139, 34, 0.5);
    }
    
    /* Стили для отображения правил в модальном окне */
#pricingConstructorModal .pricing-rules-display {
    margin-top: 20px;
}

#pricingConstructorModal .pricing-rule-group {
    margin-bottom: 25px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

#pricingConstructorModal .rule-condition-header {
    font-size: 16px;
    font-weight: 600;
    color: #383a3f;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #228B22;
}

#pricingConstructorModal .rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#pricingConstructorModal .rule-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

#pricingConstructorModal .rule-guests,
#pricingConstructorModal .rule-hours,
#pricingConstructorModal .rule-nights {
    font-weight: 500;
    color: #383a3f;
    flex: 0 0 auto;
    margin-right: 15px;
}

#pricingConstructorModal .rule-price {
    color: #383a3f;
    text-align: right;
    flex: 1 1 auto;
    line-height: 1.4;
    font-weight: 600;
}

#pricingConstructorModal .rule-rental-type {
    color: #666;
    font-size: 14px;
    margin-left: 10px;
}

#pricingConstructorModal .pricing-rules-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

#pricingConstructorModal .pricing-modal-body {
        overflow-y: auto;
        overflow-x: hidden;
        padding: 20px;
    }
}

/* Стили для модального окна расчета стоимости */
#calculationModal.pricing-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

#calculationModal.pricing-modal[style*="block"] {
    display: flex !important;
}

#calculationModal .pricing-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#calculationModal .pricing-modal-header {
    flex-shrink: 0;
    position: relative;
    padding: 20px 60px 20px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #e0e0e0;
}

#calculationModal .pricing-modal-header h3 {
    font-size: 20px;
    margin: 0;
    padding: 0;
}

#calculationModal .pricing-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #717171;
    opacity: 1;
    cursor: pointer;
    z-index: 1050;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

#calculationModal .pricing-modal-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: scale(1.1);
}

#calculationModal .pricing-modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    flex: 1;
}

#calculationModal .pricing-modal-footer {
    flex-shrink: 0;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#calculationModal .pricing-modal-footer .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

#calculationModal .pricing-modal-footer .btn-secondary {
    background: #f7f7f7;
    color: #333;
}

#calculationModal .pricing-modal-footer .btn-secondary:hover {
    background: #e0e0e0;
}

#calculationModal .pricing-modal-footer .btn-primary {
    background: #228B22;
    color: white;
}

#calculationModal .pricing-modal-footer .btn-primary:hover {
    background: #1e7a1e;
}

/* Стили для расшифровки расчета */
.calculation-summary {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.calculation-total {
    font-size: 24px;
    color: #228B22;
}

.calculation-breakdown {
    margin-top: 20px;
}

.calculation-breakdown h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
}

.calculation-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.calculation-table thead {
    background: #f8f9fa;
}

.calculation-table th,
.calculation-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.calculation-table th {
    font-weight: 600;
    color: #333;
}

.calculation-table tbody tr:hover {
    background: #f8f9fa;
}

.calculation-loading,
.calculation-error,
.calculation-info {
    padding: 20px;
    text-align: center;
    color: #666;
}

.calculation-error {
    color: #dc3545;
}

/* Стили для кнопки "смотреть расчет" */
.view-calculation-toggle {
    cursor: pointer;
    color: #228B22;
    text-decoration: underline;
    margin-top: 12px;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    width: 100%;
}

/* Кнопка "смотреть расчет" при активном резервировании - под блоком цены */
.booking-price #viewCalculationToggleReservation {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}

.view-calculation-toggle[style*="display: none"],
.view-calculation-toggle[style*="display:none"] {
    display: none !important;
}

.view-calculation-toggle:not([style*="display: none"]):not([style*="display:none"]) {
    display: block !important;
}

/* Явное отображение кнопки "смотреть расчет" при активном резервировании */
.booking-price .view-calculation-toggle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 12px !important;
    text-align: center !important;
    cursor: pointer !important;
    color: #228B22 !important;
    text-decoration: underline !important;
}

/* Переопределение для кнопки в модальном окне, когда она должна быть видна */
#show-pricing-rules-btn.show-button {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#show-pricing-rules-btn.hide-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Принудительное отображение кнопки, если она имеет класс show-button */
button#show-pricing-rules-btn.show-button[style*="display"] {
    display: block !important;
}

/* Стили для кнопки в модальном окне - убираем серый блок и делаем темно-серый цвет */
button#show-pricing-rules-btn,
button.view-calculation-toggle {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    outline: none !important;
    color: #555 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    font-size: inherit !important;
    font-family: inherit !important;
    width: auto !important;
    display: block !important;
    text-align: center !important;
}

button#show-pricing-rules-btn:hover,
button.view-calculation-toggle:hover {
    color: #333 !important;
    background: none !important;
    border: none !important;
}

.view-calculation-toggle:hover {
    color: #1e7a1e;
}

/* Стили для итоговой суммы бронирования */
.booking-total-price {
    margin-top: 20px;
    padding: 15px 0;
    color: #228B22;
    font-weight: bold;
    font-size: 18px;
    text-align: left;
}

/* Стили для валидации количества гостей */
.form-field input.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-field input.error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Стили для отображения HTML-контента из text_editor */
.description-text {
    /* Позволяем HTML из CKEditor5 отображаться как задумано */
}

.description-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Стили для figure элементов с выравниванием от CKEditor5 */
.description-text figure.image-style-align-left {
    float: left !important;
    margin: 10px 15px 10px 0 !important;
    max-width: 50% !important;
}

.description-text figure.image-style-align-right {
    float: right !important;
    margin: 10px 0 10px 15px !important;
    max-width: 50% !important;
}

.description-text figure.image-style-align-center {
    display: block !important;
    margin: 15px auto !important;
    max-width: 80% !important;
}

.description-text figure.image-style-align-block-left {
    float: left !important;
    margin: 10px 15px 10px 0 !important;
    max-width: 50% !important;
}

.description-text figure.image-style-align-block-right {
    float: right !important;
    margin: 10px 0 10px 15px !important;
    max-width: 50% !important;
}

.description-text figure.image-style-block {
    display: block !important;
    margin: 15px auto !important;
    max-width: 80% !important;
}

.description-text figure.image-style-inline {
    display: inline-block !important;
    margin: 5px 10px !important;
    max-width: 30% !important;
}

/* Убеждаемся, что стили из CKEditor5 не переопределяются */
.description-text img[style] {
    /* Сохраняем все inline стили, которые задал CKEditor5 */
}

/* Очистка float для контейнеров с изображениями (только для развернутых или без ограничения высоты) */
.description-text.expanded::after,
.description-text:not(.collapsed):not([style*="max-height"])::after {
    content: "";
    display: table;
    clear: both;
}

/* Стили для сворачиваемого контента с градиентным блюром */
.description-text.collapsed {
    position: relative !important;
    max-height: 200px !important;
    overflow: hidden !important;
}

.description-text.collapsed::after {
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 1) 100%
    ) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* Поддержка темной темы для градиента */
body.dark-theme .description-text:not(.expanded)::after {
    background: linear-gradient(
        to bottom,
        rgba(56, 58, 63, 0) 0%,
        rgba(56, 58, 63, 0.7) 50%,
        rgba(56, 58, 63, 1) 100%
    );
}

body.dark-theme .description-text.collapsed::after {
    background: linear-gradient(
        to bottom,
        rgba(56, 58, 63, 0) 0%,
        rgba(56, 58, 63, 0.7) 50%,
        rgba(56, 58, 63, 1) 100%
    ) !important;
}

.description-text.expanded {
    max-height: none !important;
    overflow: visible !important;
}

.description-text.expanded::after {
    display: none !important;
}

.description-text p {
    margin: 10px 0;
    line-height: 1.6;
}

.description-text h1,
.description-text h2,
.description-text h3,
.description-text h4,
.description-text h5,
.description-text h6 {
    margin: 20px 0 10px 0;
    font-weight: bold;
}

.description-text ul,
.description-text ol {
    margin: 10px 0;
    padding-left: 20px;
}

.description-text li {
    margin: 5px 0;
    line-height: 1.6;
}

.description-text blockquote {
    margin: 15px 0;
    padding: 10px 15px;
    border-left: 4px solid #ddd;
    background-color: #f9f9f9;
    font-style: italic;
}

.description-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.description-text table th,
.description-text table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.description-text table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.description-text code {
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.description-text pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
}

.description-text pre code {
    background: none;
    padding: 0;
}

/* Стили для ссылки "цена зависит от дня" */
.flex-price-toggle {
    color: #228B22;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 5px;
    display: inline-block;
}

.flex-price-toggle:hover {
    color: #1b6f1b;
    text-decoration: none;
}

/* Стили для кнопки "Назад к бронированию" */
.back-to-booking-btn {
    background: #228B22 !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    margin: 0 0 15px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    justify-content: center !important;
    transition: background-color 0.3s ease !important;
}

.back-to-booking-btn:hover {
    background: #1b6f1b !important;
}

.back-to-booking-btn i {
    font-size: 12px;
}

/* Стили для таймера резервирования */
#reservation-timer {
    padding: 2px 0;
    margin-bottom: 4px;
    text-align: center;
    background-color: transparent;
    border: none;
    font-weight: 400;
}

.reservation-timer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.reservation-timer-content i {
    font-size: 16px;
}

/* Стили для уведомлений */
.reservation-notification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Стили для ссылки отмены резервирования */
.cancel-reserve-link:hover {
    color: #c82333 !important;
    text-decoration: none !important;
}

/* Стили для модального окна отмены резервирования */
#cancelReservationModal {
    z-index: 10000 !important; /* Выше мобильного блока бронирования (z-index: 9999) */
}

#cancelReservationModal .modal-backdrop {
    z-index: 9999 !important; /* Фон должен быть под модальным окном, но над мобильным блоком */
}

#cancelReservationModal .modal-content {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#cancelReservationModal .modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
}

#cancelReservationModal .modal-title {
    color: #dc3545;
    font-weight: 600;
}

#cancelReservationModal .btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
}

#cancelReservationModal .btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

#cancelReservationModal .btn-secondary {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
}

/* Стили для контейнера кнопки бронирования */
.booking-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Стили для сообщения об ошибке валидации */
.validation-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
    display: block;
    font-weight: 500;
    padding: 5px 0;
}

/* ===== СТИЛИ ДЛЯ РЕЗЕРВИРОВАНИЯ И МОДАЛЬНЫХ ОКОН ===== */

/* Стили для ссылки отмены резервирования */
.cancel-reservation-link {
    color: #666;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
    display: block;
}

.cancel-reservation-link:hover {
    color: #333;
}

/* Компактные отступы для блока бронирования с резервированием */
.reservation-timer {
    padding: 2px 12px;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    margin: 2px 0;
}

/* Стили для readonly полей при активном резервировании (убрано - дублирует правило выше) */

/* Стили для модального окна отмены резервирования */
.cancel-reservation-modal {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.cancel-modal-header {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 24px 16px 24px;
}

.cancel-modal-title {
    color: #333333;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.cancel-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999999;
    opacity: 1;
    padding: 0;
    margin: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.cancel-modal-close:hover {
    color: #666666;
}

.cancel-modal-body {
    background: #ffffff;
    padding: 16px 24px 20px 24px;
}

.cancel-modal-question {
    color: #333333;
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.cancel-modal-hint {
    color: #666666;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

.cancel-modal-footer {
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    padding: 16px 24px 20px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cancel-btn-secondary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cancel-btn-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #5a6268;
}

.cancel-btn-danger {
    background: #dc3545;
    border: 1px solid #dc3545;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cancel-btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    color: #ffffff;
}

/* Затемнение фона */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Стили для слайдеров (переиспользуемые) */
.slider-block-title {
    font-size: 30px;
    font-weight: 400;
}

.slider-btn-more {
    background: #228B22;
    border-radius: 10px;
    height: 50px;
    width: 150px;
    color: #fff;
    font-size: 18px;
}

.slider-btn-more:hover {
    background-color: #289926;
    color: #fff;
}

/* Общий стиль для контейнеров слайдеров */
.slider-container {
    position: relative;
    overflow: hidden;
    margin: 10px 0px 20px 0px;
}

/* Левый градиент (по умолчанию скрыт) */
.slider-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, #fff, transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0; /* Скрыт по умолчанию */
    transition: opacity 0.3s ease; /* Плавное появление/исчезновение */
}

/* Правый градиент (по умолчанию скрыт) */
.slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left, #fff, transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0; /* Скрыт по умолчанию */
    transition: opacity 0.3s ease;
}

/* Показываем градиенты при наличии классов */
.slider-container.has-left-gradient::before {
    opacity: 1; /* Показываем левый градиент */
}

.slider-container.has-right-gradient::after {
    opacity: 1; /* Показываем правый градиент */
}

/* Темная тема */
body.dark-theme .slider-container::before {
    background: linear-gradient(to right, #383a3f, transparent);
}

body.dark-theme .slider-container::after {
    background: linear-gradient(to left, #383a3f, transparent);
}

.slider-track {
    display: flex;
    flex-wrap: nowrap; /* Подборки в одном ряду, без переноса */
    overflow-x: auto; /* Горизонтальная прокрутка */
    scroll-behavior: smooth; /* Плавная прокрутка */
    gap: 20px; /* Расстояние между подборками */
    margin: 0px 10px;
}

/* Скрытие полосы прокрутки */
.slider-track::-webkit-scrollbar {
    display: none;
}
.slider-track {
    -ms-overflow-style: none; /* IE и Edge */
    scrollbar-width: none; /* Firefox */
}

/* Стили плиток слайдера */
.slider-item {
    flex: 0 0 auto;
}

.slider-item-image {
    position: relative;
    height: 200px;
    width: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(5deg); /* Эффект приподнятого правого края */
}

.slider-item-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Поверх изображения, но под сердечком */
}

.slider-item-type {
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 14px;
    z-index: 2;
    box-shadow: 0 1px 10px #a3a3a3;
    border-radius: 10px;
    padding: 0 5px;
}

.slider-label-0 {
    background-color: #ff264b;
}

.slider-label-1 {
    background-color: #ff264b;
}

.slider-label-2 {
    background-color: #00b370;
}

.slider-label-3 {
    background-color: #ffc141;
}

.slider-label-4 {
    background-color: #00bbd3;
}

.slider-label-5 {
    background-color: #696969;
}

.slider-label-6 {
    background-color: #9c27b0;
}

.slider-item-info {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 300px;
    max-width: 300px;
    min-width: 0;
}

.slider-item-title {
    font-weight: bold;
    font-size: 16px;
}

/* Стили для описаний кроватей */

.slider-item-info-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.slider-item-title-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.bed-description {
    font-weight: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    width: 100%;
}

.bed-description-more {
    text-decoration: underline;
    cursor: pointer;
    color: inherit;
}

.bed-description-mobile {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.bed-description-mobile > div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.property-info-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.property-title-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.bed-image-clickable {
    cursor: pointer;
}

/* Убираем курсор pointer для иконок типа кровати */
.slider-item-image[data-is-icon="true"],
.properties-track-tile[data-is-icon="true"] {
    cursor: default !important;
}

/* Добавляем курсор pointer для изображений кроватей (только если есть onclick) */
.slider-item-image[onclick],
.properties-track-tile.bed-image-clickable {
    cursor: pointer;
}

/* Стили для слайдера кроватей */
#beds-slider {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    box-sizing: border-box;
}

#beds-slider .slider-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

#beds-slider .slider-track {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: auto !important;
}

#beds-slider .slider-item {
    flex-shrink: 0 !important;
    flex: 0 0 auto !important;
}

.description-container #beds-slider {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.description-container #beds-slider .slider-container {
    width: 100% !important;
    max-width: 100% !important;
}

.vert-container #beds-slider,
.vert-container .description-container #beds-slider {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.vert-container #beds-slider .slider-container,
.vert-container .description-container #beds-slider .slider-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.vert-container #beds-slider .slider-track,
.vert-container .description-container #beds-slider .slider-track {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Стили для мобильной версии блока кроватей */
@media (max-width: 768px) {
    #beds-slider .services-section-header {
        margin-bottom: 20px;
    }
    
    #beds-slider .property-title {
        font-weight: 600;
        font-size: 16px;
    }
}

.slider-item-address {
    font-size: 13px;
}

.slider-item-price {
    font-size: 16px;
    font-weight: 500;
}

.slider-item-rating {
    font-size: 14px;
}

.fa-star {
    margin-right: 5px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent; /* Прозрачный фон */
    border: 1px solid #228B22; /* Граница зеленого цвета */
    color: #228B22; /* Цвет стрелки */
    border-radius: 50%; /* Круглая форма */
    width: 30px; /* Ширина круга */
    height: 30px; /* Высота круга */
    font-size: 18px; /* Размер стрелки */
    margin-top: -30px;
    display: flex; /* Для центрирования */
    align-items: center; /* Вертикальное центрирование */
    justify-content: center; /* Горизонтальное центрирование */
    cursor: pointer; /* Указатель при наведении */
    display: none; /* Скрыты по умолчанию */
    z-index: 3;
}

.slider-arrow.left {
    left: 0px;
}

.slider-arrow.right {
    right: 0px;
}

/* Стили для мобильной версии */
@media (max-width: 768px) {
    .mobile-tile {
        flex: 0 0 auto;
        width: calc(50% - 5px); /* Две плитки в ширину с отступом */
        max-width: none;
        margin-right: 10px;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Стиль заголовков для групп плиток */
    .mobile-grids-title {
        margin: 5px 0;
        font-size: 22px;
        font-weight: 600;
        align-self: start;
    }

    /* Cтили мобильного слайдера */
    .collections-slider {
        overflow: hidden;
        width: 100%;
        position: relative;
        padding: 0 0 10px 0;
        margin-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Трек, который перемещается */
    .collections-track {
        display: flex;
        gap: 10px;
        will-change: transform;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        padding-right: 20px; /* Показываем часть третьей плитки */
        /* Убираем transition для лучшего контроля через JavaScript */
    }

    /* Состояние активного слайдера */
    .collections-slider.active .collections-track {
        transition: none; /* Убираем transition для точного контроля */
    }

    /* Стили слайдера объявлений */
    .properties-track-tile {
        flex: 0 0 auto;
        width: 100%;
        height: 0;
        padding-bottom: 100%; /* Делаем квадратную плитку */
        background-size: cover;
        background-position: center;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        position: relative;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }

    .properties-track-name {
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: rgba(0, 0, 0, 0.5);
        color: #fff;
        padding: 5px 10px;
        font-size: 16px;
        font-weight: bold;
        border-radius: 5px;
    }

    /* Цена */
    .properties-track-price {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.5);
        color: #fff;
        padding: 5px 10px;
        font-size: 14px;
        font-weight: bold;
        border-radius: 5px;
    }

    /* Ссылка покрывает всю плитку */
    .properties-track-link {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    /* Стили для информации о свойствах под плитками */
    .property-info {
        margin-top: 8px;
        padding: 0 5px;
    }

    .property-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 4px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .property-address {
        font-size: 12px;
        color: #666;
        margin-bottom: 4px;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .property-price {
        font-size: 14px;
        font-weight: 600;
        color: #228B22;
        margin-bottom: 4px;
    }

    .property-rating {
        font-size: 12px;
        color: #666;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .property-rating i {
        color: #ffc141;
    }

    /* Стили для новостей */
    .news_info {
        font-size: 12px;
        color: #666;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}