/* Modal Gallery Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease-in-out;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2vh;
}

.modal-content {
    position: relative;
    width: 95%;
    max-width: 1400px;
    height: 96vh;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.modal-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 60px 20px 20px;
    min-height: 0; /* Allow flex shrinking */
}

.modal-slides-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    min-height: 0; /* Allow flex shrinking */
}

.modal-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: slideIn 0.5s ease-in-out;
}

.modal-slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-nav-btn:hover {
    background: var(--gold);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-dots-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-dots-container {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin: 10px 20px;
}

.modal-dots {
    display: flex;
    gap: 10px;
}

.modal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

.modal-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.modal-info {
    flex-shrink: 0;
    text-align: center;
    color: white;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin: 0 20px 20px 20px;
}

.modal-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 600;
}

.modal-info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateX(30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .image-modal.show {
        padding: 1vh;
    }
    
    .modal-content {
        width: 98%;
        height: 95vh;
        max-height: 95vh;
    }
    
    .modal-gallery {
        padding: 50px 15px 15px;
    }
    
    .modal-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-info {
        margin: 0 15px 15px 15px;
        padding: 12px 15px;
    }
    
    .modal-info h3 {
        font-size: 1.2rem;
        margin: 0 0 6px 0;
    }
    
    .modal-info p {
        font-size: 0.8rem;
    }
    
    .modal-dots-container {
        margin: 8px 15px;
        padding: 8px 0;
    }
    
    .modal-dot {
        width: 10px;
        height: 10px;
    }
}

/* Add cursor pointer to room images */
.room-slide img {
    cursor: pointer;
}