.room-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.room-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 240, 235, 0.97) 0%, rgba(250, 248, 245, 0.95) 100%);
    backdrop-filter: blur(20px);
    cursor: pointer;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1400px;
    height: 95vh;
    max-height: 95vh;
    background: linear-gradient(145deg, #ffffff 0%, #fdfcfb 100%);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 
        0 50px 100px rgba(201, 169, 97, 0.15),
        0 20px 50px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: scale(0.85) translateY(80px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(201, 169, 97, 0.1);
}

.room-modal.active .modal-container {
    transform: scale(1) translateY(0);
}


.modal-close {
    position: absolute;
    top: 1px;
    right: 5px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 248, 245, 0.9) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(201, 169, 97, 0.2);
    color: var(--gold);
    font-size: 22px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.12);
}

.modal-close:hover {
    background: linear-gradient(135deg, var(--gold) 0%, #d4af37 100%);
    border-color: var(--gold);
    color: white;
    box-shadow: 0 12px 35px rgba(201, 169, 97, 0.3);
}

.modal-content-wrapper {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    height: 100%;
    overflow: hidden;
}

.modal-gallery {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    padding: 35px 30px 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    border-right: 1px solid rgba(201, 169, 97, 0.08);
}

.modal-gallery-main {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    padding: 25px;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.02),
        0 10px 40px rgba(201, 169, 97, 0.08);
}

.modal-gallery-main::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid transparent;
    border-image: linear-gradient(135deg, 
        rgba(201, 169, 97, 0.3) 0%, 
        rgba(234, 218, 186, 0.4) 25%,
        rgba(201, 169, 97, 0.3) 50%,
        rgba(234, 218, 186, 0.4) 75%,
        rgba(201, 169, 97, 0.3) 100%
    ) 1;
    pointer-events: none;
    z-index: 2;
    border-radius: 15px;
}

.modal-gallery-main::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(201, 169, 97, 0.15);
    pointer-events: none;
    z-index: 3;
    border-radius: 17px;
}

.modal-gallery-main img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 5px 15px rgba(201, 169, 97, 0.1);
    transition: all 0.3s ease;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 245, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(201, 169, 97, 0.25);
    color: var(--gold);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(201, 169, 97, 0.15),
        0 3px 10px rgba(0, 0, 0, 0.05);
}

.gallery-nav-btn:hover {
    background: linear-gradient(135deg, var(--gold) 0%, #d4af37 100%);
    border-color: var(--gold);
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 
        0 15px 40px rgba(201, 169, 97, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-prev-modal {
    left: 15px;
    z-index: 20;
}

.gallery-next-modal {
    right: 15px;
    z-index: 20;
}

.modal-gallery-thumbs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 12px 8px;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 169, 97, 0.4) rgba(201, 169, 97, 0.08);
}

.modal-gallery-thumbs::-webkit-scrollbar {
    height: 8px;
}

.modal-gallery-thumbs::-webkit-scrollbar-track {
    background: rgba(201, 169, 97, 0.08);
    border-radius: 10px;
}

.modal-gallery-thumbs::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.4) 0%, rgba(234, 218, 186, 0.5) 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.modal-gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--gold) 0%, #d4af37 100%);
}

.modal-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.05),
        0 2px 5px rgba(201, 169, 97, 0.08);
}

.modal-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(201, 169, 97, 0.2);
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
    transition: all 0.3s ease;
}

.modal-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15) 0%, rgba(0, 0, 0, 0.1) 100%);
    transition: all 0.3s ease;
    z-index: 1;
    border-radius: 12px;
}

.modal-thumb.active {
    transform: scale(1.12);
    box-shadow: 
        0 10px 30px rgba(201, 169, 97, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-thumb.active::before {
    border-color: var(--gold);
    border-width: 3px;
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.3);
}

.modal-thumb.active::after {
    background: transparent;
}

.modal-thumb:hover {
    transform: scale(1.08);
    box-shadow: 
        0 8px 25px rgba(201, 169, 97, 0.2),
        0 3px 10px rgba(0, 0, 0, 0.08);
}

.modal-thumb:hover::after {
    background: rgba(201, 169, 97, 0.05);
}

.modal-thumb img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.modal-details {
    background: linear-gradient(135deg, #ffffff 0%, #fdfcfb 100%);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 35px 30px 30px 30px;
    overflow: hidden;
}

.modal-scroll-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 15px;
    overflow: hidden;
}

.modal-header {
    flex-shrink: 0;
}

.modal-header-top {
    margin-bottom: 12px;
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.12) 0%, rgba(234, 218, 186, 0.15) 100%);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    border: 1px solid rgba(201, 169, 97, 0.15);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.1);
}

.modal-badge i {
    font-size: 12px;
}

.modal-badge.premium {
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.12) 0%, rgba(160, 135, 105, 0.15) 100%);
    color: var(--brown);
    border-color: rgba(139, 115, 85, 0.15);
}

.modal-badge.luxury {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.18) 0%, rgba(234, 218, 186, 0.2) 100%);
    border-color: rgba(201, 169, 97, 0.2);
}

.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--dark);
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}


.modal-price-box {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, rgba(234, 218, 186, 0.12) 100%);
    padding: 7px 16px;
    border-radius: 15px;
    border: 1px solid rgba(201, 169, 97, 0.2);
    margin-top: 10px;
    box-shadow: 
        0 5px 20px rgba(201, 169, 97, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}


.modal-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}

.modal-price .price-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 600;
}

.modal-price .price-amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 2px 4px rgba(201, 169, 97, 0.15);
}

.price-period {
    font-size: 14px;
    color: #777;
    font-weight: 400;
}

.modal-description {
    font-size: 13px;
    line-height: 1.7;
    color: #666;
    font-weight: 300;
    flex-shrink: 0;
    margin: 0;
}

.modal-features-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.features-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--dark);
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.modal-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    border-radius: 15px;
    border: 1px solid rgba(201, 169, 97, 0.1);
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.02),
        0 5px 20px rgba(201, 169, 97, 0.05);
    overflow-y: auto;
    max-height: 180px;
}

.modal-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.modal-feature:hover {
    transform: translateX(8px);
    color: var(--gold);
}

.modal-feature i {
    color: var(--gold);
    font-size: 16px;
    width: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.modal-feature:hover i {
    transform: scale(1.25);
}

.modal-actions {
    display: flex;
    gap: 12px;
    padding-top: 15px;
    border-top: 2px solid rgba(201, 169, 97, 0.1);
    flex-shrink: 0;
}

.btn-book-modal,
.btn-contact-modal {
    flex: 1;
    padding: 13px 22px;
    border: none;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-book-modal {
    background: linear-gradient(135deg, var(--gold) 0%, #d4af37 100%);
    color: white;
    box-shadow: 
        0 10px 30px rgba(201, 169, 97, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-book-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-book-modal:hover::before {
    left: 100%;
}

.btn-book-modal:hover {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a1a 100%);
    color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 
        0 15px 40px rgba(201, 169, 97, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-contact-modal {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    color: var(--gold);
    border: 2px solid var(--gold);
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.15);
}

.btn-contact-modal:hover {
    background: linear-gradient(135deg, var(--gold) 0%, #d4af37 100%);
    color: white;
    transform: translateY(-4px);
    box-shadow: 
        0 12px 35px rgba(201, 169, 97, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (max-width: 1400px) {
    .modal-container {
        width: 95%;
    }
}

@media (max-width: 1200px) {
    .modal-content-wrapper {
        grid-template-columns: 1.2fr 1fr;
    }

    .modal-title {
        font-size: 32px;
    }

    .modal-price .price-amount {
        font-size: 28px;
    }

    .modal-details {
        padding: 40px 35px;
    }

    .modal-gallery {
        padding: 50px 40px;
    }
}

@media (max-width: 992px) {
    .modal-container {
        height: 90vh;
    }

    .modal-content-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .modal-gallery {
        padding: 35px 30px;
    }

    .modal-details {
        padding: 30px 25px;
    }

    .modal-scroll-content {
        gap: 18px;
    }

    .modal-title {
        font-size: 28px;
    }

    .modal-price .price-amount {
        font-size: 26px;
    }

    .modal-description {
        font-size: 13px;
    }

    .features-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .modal-features-grid {
        gap: 12px;
        padding: 20px;
    }

    .modal-feature {
        font-size: 12px;
        padding: 6px 0;
    }

    .modal-feature i {
        font-size: 16px;
    }

    .btn-book-modal,
    .btn-contact-modal {
        padding: 14px 24px;
        font-size: 12px;
    }

    .modal-thumb {
        width: 100px;
        height: 75px;
    }
}

@media (max-width: 768px) {
    .modal-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .modal-content-wrapper {
        height: 100vh;
        grid-template-rows: 45vh 55vh;
    }

    .modal-gallery {
        padding: 30px 25px;
    }

    .modal-gallery-main {
        padding: 30px;
    }

    .modal-gallery-main img {
        border-radius: 10px;
    }

    .gallery-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .gallery-prev-modal {
        left: 10px;
    }

    .gallery-next-modal {
        right: 10px;
    }

    .modal-thumb {
        width: 90px;
        height: 68px;
    }

    .modal-details {
        padding: 25px 22px;
    }

    .modal-scroll-content {
        gap: 15px;
    }

    .modal-title {
        font-size: 26px;
    }

    .modal-price .price-amount {
        font-size: 24px;
    }

    .modal-price-box {
        padding: 15px 18px;
    }

    .modal-description {
        font-size: 12px;
        line-height: 1.7;
    }

    .features-title {
        font-size: 19px;
    }

    .modal-features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px;
    }

    .modal-feature {
        font-size: 11px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 12px;
        padding-top: 20px;
    }

    .btn-book-modal,
    .btn-contact-modal {
        padding: 13px 22px;
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .modal-close {
        width: 45px;
        height: 45px;
        font-size: 20px;
        top: 20px;
        right: 20px;
    }

    .modal-content-wrapper {
        grid-template-rows: 40vh 60vh;
    }

    .modal-gallery {
        padding: 25px 20px;
        gap: 20px;
    }

    .modal-gallery-main {
        padding: 25px;
    }

    .modal-details {
        padding: 22px 18px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-price .price-amount {
        font-size: 22px;
    }

    .modal-badge {
        padding: 7px 16px;
        font-size: 10px;
    }

    .features-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .modal-thumb {
        width: 80px;
        height: 60px;
    }

    .modal-gallery-thumbs {
        gap: 12px;
    }
}