/* Стили для страницы достопримечательности */
.header {
    border-bottom: none;
}

.content {
    max-width: 100%;
    margin-left: 0px;
    margin-top: -60px;
}

.place-title {
    font-size: 28px;
    font-weight: 400;
}

.place-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted-foreground, #667085);
    font-size: 14px;
}

.place-meta__dot { opacity: 0.6; }
.place-meta__item { display: inline-flex; align-items: center; gap: 6px; }

.place-detail {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    max-width: 1200px; /* Ограничение ширины */
    margin: -30px auto 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;
}

.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;
}

/* Стиль области объявления под каруселью */
.place-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%;
}

.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;
}

.ad-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;
    gap: 5px;
}

.guests-title {
    font-size: 18px;
    font-weight: 400;
}

.rating-title {
    font-size: 16px;
    margin-top: 15px;
}

.rating-title a {
    color: #383a3f;
}

.description {
    margin-top: 25px;
    margin-bottom: 10px;
}

.description-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
}

.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;
}

.svg-icon  {
    width: 60px;
    height: auto;
    object-fit: cover;
}

.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;
}

/* Стили плиток с объявлениями объектов рядом */
.property-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); /* Эффект приподнятого правого края */
}

.property-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Поверх изображения, но под сердечком */
}

.wishlist-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    z-index: 2; /* Сердечко поверх ссылки */
}

.wishlist-heart i {
    -webkit-text-stroke: 1px white; /* Белая обводка по контуру сердечка */
    text-stroke: 1px white;
    cursor: pointer;
    color: #fff;
}

.wishlist-heart i:hover {
    transform: scale(1.2);
}

.wishlist-heart .fa-heart.wishlist-active {
    color: #228B22;
}

.wishlist-off i {
    color: #fff;
}

.block-title {
    font-size: 30px;
    font-weight: 400;
}

.btn-more {
    background: #228B22;
    border-radius: 10px;
    height: 50px;
    width: 150px;
    color: #fff;
    font-size: 18px;
}

.btn-more:hover {
    background-color: #289926;
    color: #fff;
}

.property-info {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.property-title {
    font-weight: bold;
    font-size: 16px;
}

.property-address {
    font-size: 13px;
}

.property-price {
    font-size: 16px;
    font-wight: 500;
}

.property-rating {
    font-size: 14px;
}

.fa-star {
    margin-right: 5px;
}

.items-slider-track {
    display: flex;
    flex-wrap: nowrap; /* Подборки в одном ряду, без переноса */
    overflow-x: auto; /* Горизонтальная прокрутка */
    scroll-behavior: smooth; /* Плавная прокрутка */
    gap: 20px; /* Расстояние между подборками */
    margin: 0px 10px;
}

/* Скрытие полосы прокрутки */
.items-slider-track::-webkit-scrollbar {
    display: none;
}
.items-slider-track {
    -ms-overflow-style: none; /* IE и Edge */
    scrollbar-width: none; /* Firefox */
}

.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; /* Размер стрелки */
    display: flex; /* Для центрирования */
    align-items: center; /* Вертикальное центрирование */
    justify-content: center; /* Горизонтальное центрирование */
    cursor: pointer; /* Указатель при наведении */
    display: none; /* Скрыты по умолчанию */
    z-index: 2;
}

.slider-arrow.left {
    left: 10px;
}

.slider-arrow.right {
    right: 10px;
}

/* Скрытие полосы прокрутки */
.slider-track::-webkit-scrollbar {
    display: none;
}
.slider-track {
    -ms-overflow-style: none; /* IE и Edge */
    scrollbar-width: none; /* Firefox */
}


/* Общий стиль для контейнеров слайдеров */
.collections-container, .properties-container {
    position: relative;
    overflow: hidden;
    margin: 10px 0px 20px 0px;
}

/* Левый градиент (по умолчанию скрыт) */
.collections-container::before, .properties-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, #f5f5f5, transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0; /* Скрыт по умолчанию */
    transition: opacity 0.3s ease; /* Плавное появление/исчезновение */
}

/* Правый градиент (по умолчанию скрыт) */
.collections-container::after, .properties-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left, #f5f5f5, transparent);
    pointer-events: none;
    z-index: 1;
    opacity: 0; /* Скрыт по умолчанию */
    transition: opacity 0.3s ease;
}

/* Показываем градиенты при наличии классов */
.collections-container.has-left-gradient::before,
.properties-container.has-left-gradient::before {
    opacity: 1; /* Показываем левый градиент */
}

.collections-container.has-right-gradient::after,
.properties-container.has-right-gradient::after {
    opacity: 1; /* Показываем правый градиент */
}

/* Темная тема */
body.dark-theme .collections-container::before,
body.dark-theme .properties-container::before {
    background: linear-gradient(to right, #383a3f, transparent);
}

body.dark-theme .collections-container::after,
body.dark-theme .properties-container::after {
    background: linear-gradient(to left, #383a3f, transparent);
}


/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    /* Сокрытие десктопной галереи */
    .photo-gallery-container {
        display: none;
    }

    /* Мобильная фотогалерея */
    .mobile-gallery {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 300px; /* Высота галереи */
        overflow: hidden;
        margin-top: -65px;
        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 { display: none !important; }
    .gallery-dot { display: none !important; }
    .gallery-dot.active { display: none !important; }

    .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: red;
    }

    /* Стиль области объявления под каруселью */
    .properties-main-area {
        flex-direction: column-reverse;
        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%;
    }

    .mob-place-detail {
        display: flex;
        flex-direction: column;
        align-items: space-around;
        justify-content: start;
        gap: 10px;
    }

    .property-detail-container {
        flex-direction: column;
    }

    .addres-title {
        flex-direction: row;
        justify-content: start !important;
        font-size: 18px;
        font-weight: 300;
        margin: -10px 0 10px 0;

    }

    .place-title {
        margin: 15px 0 -10px 0;
        font-size: 18px;
        font-weight: 500;
    }

    .guests-title {
        flex-direction: row !important;
        font-size: 18px;
        font-weight: 300;
        margin-top: -10px;
    }

    .amenities-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .map-section h3 {
        font-size: 20px;
     }

    #ad-reviews h3 {
        font-size: 20px;
    }

    .review-list-card-profile {
        flex-direction: column;
        align-items: center;
    }

    .review-avatar {
        align-self: 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 {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        z-index: 1;
        gap: 5px;
        height: auto;
    }

    .booking-price {
        font-size: 16px;
        font-weight: 600;
    }

    .booking-currency {
        font-size: 16px;
        font-weight: 500;
    }

    .booking-button {
        margin: 0px;
        margin-left: auto;
        margin-top: 5px;
    }

    .total-cost {
        position: relative;
        left: 0;
    }

    .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: 90px;
        z-index: 1003;
        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;
    }

    .booking-button-group {
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        gap: 5px;
    }

    .booking-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .rating-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .common-info-block {
        width: 100%;
    }

    .empty-reviews {
        margin: 5px 0 50px 0;
    }

    /* Стиль заголовков для групп плиток */
    .mobile-grids-title {
        margin-top: 5px;
        font-size: 20px;
        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;
    }

    .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;
    }

    .property-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;
    }

    .label-1 { background-color: #ff264b; }
    .label-2 { background-color: #00b370; }
    .label-3 { background-color: #ffc141; }
    .label-4 { background-color: #00bbd3; }
    .label-5 { background-color: #696969; }

     /* Стили слайдера объявлений — квадратные плитки как на главной */
    .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;
    }

    .mobile-grids-title {
        font-weight: 500;
        font-size: 18px;
        margin: 10px 0;
    }
}