body.modal-opened {
    overflow: hidden;
}

.fp-do-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.fp-do-modal-content {
    background: white;
    border-radius: 16px;
    /*max-width: 1300px;*/
    max-height: 90vh;
    min-height: 750px;
    width: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.fp-do-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.fp-do-modal-title {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.fp-do-close {
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.fp-do-close:hover {
    background-color: #f5f5f5;
}

.fp-do-modal-body {
    display: flex;
    flex: 1;
    min-height: 0;
    padding: 0 30px 30px;
}

.fp-do-gallery-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    max-width: 1000px;
}

.fp-do-info-section {
    flex: 1;
    color: #333;
    min-width: 300px;
    max-width: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 30px;
}

.fp-do-info-section__benefits {
    display: flex;
    padding: 24px 24px 24px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;

    border-radius: 16px;
    border: 1px solid var(--Border, #E2E2E2);
    background: #FFF;
    box-shadow: 0 8px 16px -6px rgba(24, 39, 75, 0.08);

    overflow-x: hidden;
    overflow-y: auto;
    max-height: 100%;
    margin-bottom: 16px;

    scrollbar-width: thin;
    scrollbar-color: #E2E2E2 transparent;
}

.fp-do-info-section__benefits::-webkit-scrollbar {
    width: 8px;
}
.fp-do-info-section__benefits::-webkit-scrollbar-track {
    background: transparent;
}
.fp-do-info-section__benefits::-webkit-scrollbar-thumb {
    background: #E2E2E2;
    border-radius: 4px;
}
.fp-do-info-section__benefits::-webkit-scrollbar-thumb:hover {
    background: #d0d0d0;
}
.fp-do-info-section__benefits::-webkit-scrollbar-button {
    display: none;
}
.fp-do-info-section__benefits h2 {
    color: #000;
    font-family: "Proxima Nova", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.22px;
    margin-bottom: 16px;
}

.fp-do-info-section__benefits .fp-mo-offer__params {
    border-bottom: 1px solid #E2E2E2;
    padding: 0 16px 16px 16px;
    margin-bottom: 8px;
}

.fp-do-info-section__benefits .fp-mo-offer__param span {
    color: var(--Text-Dark, #0E0F0C);
    font-family: "Proxima Nova", sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.fp-do-info-section__benefits .fp-mo-offer__benefit span {
    font-family: "Proxima Nova", sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.38px;
}

.fp-do-info-section__benefits .fp-mo-offer__benefit {
    margin-bottom: 8px;
}
#fpSelectRoom {
    background: var(--Sulu-100, #E1F8CF);
    padding: 16px;
}

.fp-mo-header-select.fp-do-modal-style {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    margin: 0;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0 6px 8px -6px rgba(24, 39, 75, 0.12), 0 8px 16px -6px rgba(24, 39, 75, 0.08);
}

.fp-mo-header-select.fp-do-modal-style .fp-select-rooms__button {
    width: 100%;
    margin-left: 0;
}

.fp-mo-header-select.fp-do-modal-style .fp-select-rooms__button button {
    width: 100%;
    margin-top: 16px;
}

.fp-do-main-image {
    /*width: 884px;*/
    width: 100%;
    height: 100%;
    max-height: 750px;
    max-width: 100%;
    position: relative;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f8f8;
}

.fp-do-main-swiper {
    width: 100% !important;
    height: 100% !important;
}

.fp-do-main-swiper .swiper-slide {
    display: flex !important;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.fp-do-main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fp-do-thumbnails {
    height: 84px;
    flex-shrink: 0;
}

.fp-do-thumb-swiper {
    width: 100% !important;
    height: 84px !important;
}

.fp-do-thumb-swiper .swiper-slide {
    width: 84px !important;
    height: 84px !important;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.fp-do-thumb-swiper .swiper-slide-thumb-active {
    opacity: 1 !important;
    border: 4px solid var(--Main-Light, #9FE870);
    box-sizing: border-box;
}

.fp-do-thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fp-do-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 34px;
    z-index: 10;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.fp-do-nav-arrow:hover {
    background: rgba(255, 255, 255, 1);
}

.fp-do-nav-prev { left: 20px; }
.fp-do-nav-next { right: 20px; }

.fp-do-modal-style.fp-mo-title__rating {
    margin-bottom: 15px;
}

.fp-do-modal-style.fp-mo-reviews__rates {
    /* Здесь можете добавить специфичные стили для модального окна */
}

/* Адаптивность */
@media (max-width: 1024px) {
    .fp-do-modal {
        padding: 10px;
    }

    .fp-do-modal-content {
        max-height: 95vh;
    }

    .fp-do-modal-body {
        padding: 0 20px 20px;
    }

    .fp-do-main-image {
        width: 100%;
        height: 400px;
    }

    .fp-do-info-section {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .fp-do-modal-content {
        border-radius: 12px;
    }

    .fp-do-modal-header {
        padding: 15px 20px;
    }

    .fp-do-modal-body {
        flex-direction: column;
        padding: 0 20px 20px;
    }

    .fp-do-gallery-section {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .fp-do-main-image {
        height: 300px;
    }

    .fp-do-info-section {
        flex: none;
        min-width: auto;
    }

    .fp-do-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .fp-do-modal {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }

    .fp-do-modal-content {
        border-radius: 8px;
        max-height: calc(100vh - 40px);
    }

    .fp-do-main-image {
        height: 250px;
    }

    .fp-do-thumbnails {
        height: 80px;
    }

    .fp-do-thumb-swiper {
        height: 80px !important;
    }

    .fp-do-thumb-swiper .swiper-slide {
        width: 80px !important;
        height: 80px !important;
    }
}

.fp-description-wrapper {
    position: relative;
    max-height: 140px;
    min-height: 140px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.fp-description-wrapper.expanded {
    max-height: none;
}

.fp-description-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fp-description-wrapper.expanded::after {
    opacity: 0;
}

.fp-description-toggle {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;

    color: var(--Text-Link, #0E34A0);
    font-family: "Proxima Nova", sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.17px;
}

.fp-description-toggle:hover {
    text-decoration: underline;
}