/* Стили для страницы одного объявления */
.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;
}

/* Стили для модального окна галереи изображений */
.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;
}

.rules {
    font-weight: 600;
    font-size: 20px;
}

/* Стиль текста описания */
.description-text {
    max-height: 100px; /* Ограничение высоты для обрезанного текста */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.description-text.expanded {
    max-height: 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: start;
    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%; /* Фиксируем ширину блока */
    transition: top 0.3s ease;
    will-change: position, top, left;
    position: relative;
}

.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-price {
    font-size: 22px;
    font-weight: 700;
    margin: 10px 0px;
}

.booking-button {
    margin: 20px 0px;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.booking-button-container {
    margin: 10px 0px;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.booking-button-container form {
    width: 100%;
}

.preset-booking-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.total-cost {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-weight: 600;
    font-size: 20px;
    width: 100%;
    margin: 15px 0px;
}

.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%;
}

.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 -40px 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;
    }

    .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: row !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: 0 0 10px 0 !important;
        text-align: left !important;
        width: 100% !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;
    }

    .total-cost {
        position: relative;
        left: 0;
        width: 100%;
        justify-content: start;
        gap: 10px;
        font-weight: 600;
        font-size: 16px;
        margin: 8px 0;
        padding: 0;
    }
    
    .booking-data-table {
        display: none;
    }
    
    .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;
    }
}