/* Carrusel de fotos — habitaciones (detalle hotel) */

.room-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 8.5rem;
    overflow: hidden;
    border-radius: 0.625rem;
    background: #f1f5f9;
    user-select: none;
    -webkit-user-select: none;
}

.room-carousel__viewport {
    overflow: hidden;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
}

.room-carousel__track {
    display: flex;
    height: 100%;
    will-change: transform;
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

.room-carousel.is-dragging .room-carousel__track {
    transition: none;
}

.room-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
}

.room-carousel__zoom {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
}

.room-carousel__zoom img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.room-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    color: #002660;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transition: opacity 0.2s ease, background 0.15s ease;
}

.room-carousel:hover .room-carousel__nav,
.room-carousel:focus-within .room-carousel__nav {
    opacity: 1;
}

.room-carousel__nav--prev {
    left: 0.375rem;
}

.room-carousel__nav--next {
    right: 0.375rem;
}

.room-carousel__nav:active {
    background: #fff;
}

.room-carousel__counter {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    z-index: 3;
    padding: 0.2rem 0.45rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.62);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    pointer-events: none;
}

.room-carousel__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.375rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    pointer-events: none;
}

.room-carousel__dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.room-carousel__dot.is-active {
    width: 1rem;
    background: #fff;
}

.room-carousel--single .room-carousel__nav,
.room-carousel--single .room-carousel__dots,
.room-carousel--single .room-carousel__counter {
    display: none;
}

@media (max-width: 767.98px) {
    .room-carousel__nav {
        opacity: 1;
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1.125rem;
    }
}

/* Lightbox habitación */
.room-photo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 130;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.92);
}

.room-photo-modal.is-open {
    display: flex;
}

.room-photo-modal__img {
    max-width: min(96vw, 1200px);
    max-height: 86vh;
    border-radius: 0.75rem;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.room-photo-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.room-photo-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    cursor: pointer;
}

.room-photo-modal__nav--prev {
    left: 0.75rem;
}

.room-photo-modal__nav--next {
    right: 0.75rem;
}

.room-photo-modal__meta {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: calc(100% - 2rem);
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-photo-modal--single .room-photo-modal__nav {
    display: none;
}

@media (min-width: 768px) {
    .room-card__media.room-carousel-wrap {
        width: 12rem;
        height: 8rem;
        flex-shrink: 0;
    }
}
