.booking-room-modal {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
}

.booking-room-modal--visible {
    display: flex;
    pointer-events: auto;
}

.booking-room-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.booking-room-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1200px, 100%);
    height: 96vh;
    max-height: 96vh;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.booking-room-modal__body {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.booking-room-modal__content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.booking-room-modal__loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 16px;
}

.booking-room-modal__loader.is-hidden {
    display: none;
}

.booking-room-modal__spinner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 4px solid rgba(32, 119, 186, 0.2);
    border-top-color: #2077ba;
    animation: booking-room-modal-spin 0.8s linear infinite;
}

@keyframes booking-room-modal-spin {
    to {
        transform: rotate(360deg);
    }
}

.booking-room-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s ease;
}

.booking-room-modal__close:hover,
.booking-room-modal__close:focus {
    background: rgba(0, 0, 0, 0.8);
    outline: none;
}

.booking-room-modal__loader-text {
    font-size: 1rem;
    color: #4a4a4a;
    margin: 0;
    text-align: center;
}

.booking-room-modal__error {
    padding: 32px 24px;
    text-align: center;
}

.booking-room-modal__error-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: #b02a37;
    margin-bottom: 0.5rem;
}

.booking-room-modal__error-reason {
    color: #6c757d;
    margin-bottom: 1.25rem;
}

.booking-room-modal__fallback-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #2077ba;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.booking-room-modal__fallback-link:hover,
.booking-room-modal__fallback-link:focus {
    background: #17639a;
    color: #fff;
}

.booking-room-modal-open {
    overflow: hidden;
}

/* Gallery Styles */
.room-images-section {
    position: relative;
}

.main-image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
}

.image-nav button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    transition: all 0.2s;
}

.image-nav button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}

.thumbnail-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s;
}

.thumbnail-img:hover,
.thumbnail-img.border-primary {
    opacity: 1;
}

.thumbnail-img.border-primary {
    border: 2px solid #2077ba !important;
}

@media (max-width: 1024px) {
    .booking-room-modal__dialog {
        width: 100%;
        height: 92vh;
        max-height: 92vh;
    }
}

@media (max-width: 767px) {
    .booking-room-modal {
        padding: 10px;
    }

    .booking-room-modal__dialog {
        border-radius: 12px;
        height: 95vh;
        max-height: 95vh;
    }

    .booking-room-modal__close {
        width: 32px;
        height: 32px;
    }

    .booking-room-modal__fallback-link {
        width: 100%;
    }
}
