@font-face {
    font-family: 'Bookman Old Style';
    src: url('fonts/BookmanSyr.eot');
    src: url('fonts/BookmanSyr.woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    /* Оптимизация загрузки */
}

/* Десктопные стили (от 768px и выше) */
@media (max-width: 767px) {
    .photoPresentationHomeRelaxFamily {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 10px;
        scroll-behavior: smooth;
    }

    .photoPresentationBlock {
        scroll-snap-align: start;
        flex: 0 0 100%;
    }

}

@media (min-width: 768px) {
    .footerContactContainerMobile {
        display: none;
    }

    .addressContainerMobile {
        display: none
    }

    .howSearchContainerMobile {
        display: none
    }

    .blockMapAddressText1Mobile {
        display: none
    }

    .blockMapAddressText2Mobile {
        display: none
    }

    .blockMapHowSearchText1Mobile {
        display: none
    }

    .blockMapHowSearchText2Mobile {
        display: none
    }

    .containerMobileForAddress1Search {
        display: none
    }
}

/* Мобильные стили (320px) */
@media (max-width: 767px) {

    /* Важные базовые стили */
    html,
    body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    /* Бургер-кнопка */
    .burger-menu {
        display: block !important;
        position: relative;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1001;
    }

    .burger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background: #000;
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    /* Мобильное меню */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: -340px;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 1000;
        padding: 70px 20px 20px;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .formBlock {
        display: none !important;
    }

    .mobile-menu.active {
        right: 0;
    }

    /* Оверлей */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .menu-overlay.active {
        display: block;
    }

    /* Анимация бургера в крестик */
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .selectLabel {
        font-size: 12px !important;
        color: #2B2B2B;
    }

    .selectValue {
        font-size: 16px !important;
    }

    .calendarIcon {
        width: 20px !important;
        height: 20px !important;
    }

    .dateLabel {
        font-size: 12px !important;
    }

    .dateInput {
        font-size: 16px !important;
    }

    /* Баннер */
    .galleryBanner {
        width: 100% !important;
        height: 229px !important;
        border-radius: 20px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

    }

    .galleryComplexBlock {
        width: 100% !important;
        margin-top: 50px !important;
    }

    /* .galleryBottomImages {
        margin-top: 10% !important;
        width: 100% !important;
        display: flex;
        flex-direction: column !important;
        grid-template-columns: repeat(2, 1fr);
    } */

    /* Контейнер для каждой картинки */
    .image-container {
        flex: 0 0 auto !important;
        /* width: 100% !important; */
        height: 186px !important;
        position: relative !important;
        scroll-snap-align: start !important;
    }

    /* Стили картинки */
    .imgItem {
        width: 100% !important;
        height: 100% !important;
        border-radius: 20px !important;
        object-fit: cover !important;
    }

    .galleryBookingButtonTop {
        margin-top: 10% !important;
        display: block !important;
        width: 100% !important;
        height: 43px !important;
        border-radius: 10px !important;
        background-color: #272F07 !important;
        color: #FFFFFF !important;
        border-radius: 10px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-family: 'PT Sans', sans-serif !important;
        font-weight: 700 !important;
        font-size: 14px !important;
    }

    /* Кнопка увеличения */
    .search-button {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        width: 30px !important;
        height: 30px !important;
        background: rgba(255, 255, 255, 0.7) !important;
        border: none !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        z-index: 2 !important;
    }

    .search-button img {
        width: 30px !important;
        height: 30px !important;
    }

    /* Футер */
    .footerContainer {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: baseline !important;
        /* Изменено с baseline на flex-start */
        padding-left: 15px !important;
        /* Добавлен отступ слева для красоты */
        width: 100% !important;
    }

    .footerLogo {
        font-size: 14px !important;
        display: flex;
        align-items: center;
    }

    .footerMenuContainer,
    .footerContactContainer {
        margin: 15px 0;
    }

    .footerMenuContainer {
        height: 107px !important;
    }

    .footerContactContainer {
        display: none;
    }

    .footerContactContainerMobile {
        display: block;
    }

    .footerMenuList {
        list-style-type: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-around !important;
        gap: 2px !important;
        padding: 0 !important;
        margin: 0 !important;
        height: 40px !important;
    }

    .footerContactPhone {
        font-size: 12px !important;
        width: 135px !important;
        height: 16px !important;
    }

    .footerContactMail {
        font-size: 12px !important;
        width: 135px !important;
        height: 16px !important;
    }

    .selectLabel {
        color: #2B2B2B !important;
        font-weight: 700 !important;
    }
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #F2F3ED;
}

/* Скрываем слайдер на ПК (ширина больше 768px) */
.photoPresentationSliderWrapper {
    display: flex;
    transition: transform 0.3s ease;
    /* Плавная анимация */
}

main {
    flex: 1;
}

.detailBookingButtonTop {
    display: none;
}

/* стили для основного контента */

.zoom-button {
    display: none;
}

.search-button {
    display: none;
}

.smallPhoto {
    display: flex;
    gap: 20px;
}

.galleryBookingButtonTop {
    display: none;
}

.dateLabel {
    font-size: 14px;
    font-family: 'PT Sans', sans-serif;
    color: #888;
    /*  Серый цвет для текста "Заезд" и "Выезд" */
    margin-bottom: 5px;
}

.dateInput {
    font-size: 18px;
    font-family: 'PT Sans', sans-serif;
    border: none;
    background: none;
    outline: none;
    /* padding-right: 30px; /*  Место для иконки календаря */
    cursor: pointer;
    /*  Меняем курсор на руку */
}

/* Убираем нативную иконку календаря */
.dateInput::-webkit-calendar-picker-indicator {
    display: none !important;
}

.dateInput {
    -moz-appearance: textfield;
    /* Для Firefox */
    appearance: none;
    /* Для современных браузеров */
}

.calendarIcon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    /* Подстройте под ваш размер */
    height: 30px;
    /* Подстройте под ваш размер */
    object-fit: contain;
    /* Чтобы изображение не искажалось */
    cursor: pointer;
}

.selectLabel {
    font-size: 14px;
    font-family: 'PT Sans', sans-serif;
    color: #888;
    margin-bottom: 5px;
}

.selectValue {
    font-size: 18px;
    font-family: 'PT Sans', sans-serif;
}

.selectDropdownList {

    position: absolute;
    top: 100%;
    /* Сразу под контейнером */
    left: 0px;
    right: 0px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border-top: none;
    /* Убираем двойную границу */
    border-radius: 0 0 20px 20px;

    z-index: 100;
    overflow: hidden;
    /* Чтобы скругления работали */
    display: none;
}

.blockDetail {
    margin-top: 10%;
    display: flex;
    flex-direction: column;
}

.blockDescription ul {
    display: flex;
    flex-direction: column;
    /* Элементы списка вертикально */
    gap: 7px;
    /* Отступ 7px между пунктами */
    margin: 0;
    /* Убираем стандартные отступы ul */
    padding: 0;
    /* Убираем стандартные отступы ul */
}

.blockTopContainer {
    display: flex;
    align-items: center;
}

.bigPhoto {
    width: 1042px;
    height: 507px;
    border-radius: 40px;
}

.blockSmallPhoto {
    margin-top: 1%;
}

.detailTextContainer {
    margin-top: 10%;
    margin-bottom: 20%;
    text-align: left;
    font-family: 'PT Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #000000;
}

.galleryBanner {
    margin-top: 20px;
    width: 1808px;
    /* background-image: url('images/relax_place.svg'); */
    background-size: cover;
    /*  Чтобы картинка заполняла весь блок */
    background-position: center;
    /*  Чтобы картинка была отцентрирована */
    height: 672px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    /* Добавляем для позиционирования фона */
    overflow: hidden;
    /* Чтобы скругленные углы работали для дочерних элементов */
}

.galleryBannerBg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Аналог background-size: cover */
    object-position: center;
    /* Аналог background-position: center */
    z-index: -1;
    /* Отправляем изображение на задний план */
}

.galleryBannerTextContainer {
    /* border: 1px solid #000; */
    /* margin-top: 176px; */
    /* margin-left: 76px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.galleryComplexBlock {
    /* border: 1px solid #000; */
    margin-top: 150px;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bathTop {
    /* border: 1px solid #000; */
    width: 1700px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
}

.bathTopText {
    font-family: 'PT Sans', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #2B2B2B;
    text-align: center;
}

.bathTopListPrice {
    width: 1692px;
    height: 260px;
    background-color: #FFFFFF;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 21px;
}

.bathListItem {
    width: 1577px;
    height: 31px;
    display: flex;
    justify-content: space-between;
    /* position: relative; */
}

.itemName {
    font-family: 'PT Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.bottomLineBlock {
    flex-grow: 1;
    border-bottom: 1px solid rgb(215, 215, 215);
    height: 25px;
}

.itemPrice {
    font-family: 'PT Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.bathTopBookingButton {
    width: 282px;
    height: 70px;
    background-color: #272F07;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-family: 'PT Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.bathMiddle {
    margin-top: 10%;
    /* border: 1px solid #000; */
    width: 1373px;
    height: 173px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* align-items: center; */
}

.bathMiddleListContainer {
    display: flex;
    justify-content: space-between;
}

.bathMiddleText {
    font-family: 'Bookman Old Style';
    font-weight: 400;
    font-size: 40px;
    color: #2B2B2B;
    text-align: center;
}

.middleItemText {
    font-family: 'PT Sans', sans-serif;
    font-size: 24px;
    font-weight: 400;
}

.galleryBottomImages {
    /* margin-top: 10%; */
    width: 100%;
    height: auto;
    overflow: visible;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    
    /* display: flex;
    justify-content: space-between;
    align-items: start; */
    /* gap: 26px; */
    /* flex-wrap: wrap; */
}

@media (max-width: 1024px) {
    .galleryBottomImages {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .galleryBottomImages {
        grid-template-columns: repeat(1, 1fr);
    }
}

.imgItem {
    width: 100%;
    height: 387px;
    border-radius: 40px;
    object-fit: cover;
    /* Сохраняет пропорции */
    display: block;
    /* Убирает подводные отступы */
    box-shadow: 0 0 0 1px transparent;
    /* Фикс для скруглений в Safari */
}