/* Room Gallery Modal Styles */

.modal-fullscreen-lg-down .modal-dialog {
    max-width: 100%;
}

@media (min-width: 992px) {
    .modal-fullscreen-lg-down {
        position: static;
        display: flex;
        align-items: center;
    }

    .modal-fullscreen-lg-down .modal-dialog {
        max-width: 900px;
        margin: auto;
        width: 95%;
    }
}

.modal-content {
    border: none;
    border-radius: 8px;
    background: #fff;
}

.modal-header {
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.modal-title {
    font-family: 'Lora', serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f6a339;
}

.carousel-item {
    background: #fff;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 4px;
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0.8;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(246, 163, 57, 0.8);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(246, 163, 57, 1);
    opacity: 1;
    transform: scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: none;
}

.carousel-control-prev i,
.carousel-control-next i {
    color: white;
    font-size: 20px;
}

#thumbnailGallery {
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.thumbnail-item {
    cursor: pointer;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item.active {
    border-color: #f6a339;
    box-shadow:
        0 0 10px rgba(246, 163, 57, 0.6),
        inset 0 0 5px rgba(246, 163, 57, 0.3);
}

.thumbnail-item:hover {
    border-color: #f6a339;
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(246, 163, 57, 0.4);
}

/* Responsive Gallery */
@media (max-width: 576px) {
    .carousel-item img {
        height: 350px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .carousel-control-prev i,
    .carousel-control-next i {
        font-size: 16px;
    }

    .thumbnail-item {
        width: 70px;
        height: 70px;
    }

    #thumbnailGallery {
        gap: 1rem !important;
    }
}
