@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;
    }

    .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;
    }

    .formBlock {
        display: none !important;
    }

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

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

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

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

    .bathTop {
        margin-top: 10% !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
    }

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

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

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

    .bathTopListPrice {
        width: 90% !important;
        height: 124px !important;
        background-color: #FFFFFF;
        border-radius: 20px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1px !important;
        padding: 5px 15px !important;
    }

    .bathListItem {
        width: 100% !important;
        height: 21px !important;
        display: flex;
        justify-content: space-between;
        /* position: relative; */
    }

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

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

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

    .bathMiddleText {
        font-family: 'Bookman Old Style';
        font-weight: 400 !important;
        font-size: 26px !important;
        color: #2B2B2B;
        text-align: center !important;
        width: 75%;
    }

    .bathMiddleListContainer {
        display: flex;
        flex-direction: column !important;
        justify-content: start !important;
        width: 100%;
    }

    .middleListItem {
        height: 55px !important;
    }

    .middleListItem ul {

        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

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

    .bathBottomImages {
        margin-top: 50% !important;
        /* Уменьшил отступ */
        width: 100vw !important;
        height: auto !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        display: flex !important;
        gap: 15px !important;
        padding: 0 15px 20px !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
        /* Важно! */
    }

    .bathComplexBookingButtonTop {
        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;
    }

    /* Скрываем scrollbar */
    .bathBottomImages::-webkit-scrollbar {
        display: none !important;
    }

    /* Контейнер для каждой картинки */
    .image-container {
        flex: 0 0 auto !important;
        width: 218px !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;
    }

    /* Кнопка увеличения */
    .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;
    }

    .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;
}

.bathComplexBookingButtonTop {
    display: none;
}

.detailBookingButtonTop {
    display: none;
}

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

.zoom-button {
    display: none;
}

.search-button {
    display: none;
}

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

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

.inputFlex {
    display: flex;
    gap: 12px;
}

.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;
}

/* стили для кастомного селекта */
.selectContainer {
    position: relative;
    width: 282px;
    height: 70px;
    background-color: #FFFFFF;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    /*  Текст сверху, дата снизу */
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.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;
}


.selectContainer.open {
    border-radius: 20px 20px 0 0;
}

.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;
}

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

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

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

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

.bathListItem {
    width: 92%;
    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: 100%;
    height: 173px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* align-items: center; */
}

.bathMiddleListContainer {
    display: flex;
    justify-content: space-between;
    width: 90%;
    align-self: center;
}

.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;
}

.bathBottomImages {
    margin-top: 10%;
    width: 100%;
    height: auto;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

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

@media (max-width: 767px) {
    .bathBottomImages {
        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 */
}