/* public/css/room-detail.css */

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #e91e63;
    --light: #f8f9fa;
    --dark: #212529;
}

.room-hero {
    background-size: cover;
    background-position: center;
    height: 70vh;
    min-height: 500px;
    border-radius: 24px;
    display: flex;
    align-items: flex-end;
    color: white;
    margin-top: 80px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.room-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 60%,
        rgba(102, 126, 234, 0.7)
    );
    border-radius: 24px;
}

.room-title {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.room-title h1 {
    line-height: 1.1;
}

.badge-type {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.main-gallery {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.main-img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

.main-img:hover {
    transform: scale(1.02);
}

.thumb-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.thumb-img {
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.thumb-img:hover,
.thumb-img.active {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.35);
}

.price-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
    position: sticky;
    top: 100px;
}

.price-big {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.price-note {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.btn-book-now {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
    transition: all 0.4s;
}

.btn-book-now:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.5);
}

/* Compact responsive price-card for mobile */
@media (max-width: 768px) {
    .price-card {
        padding: 12px;
        border-radius: 14px;
        top: auto;
        position: static;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .price-big {
        font-size: 1.6rem;
    }

    .price-note {
        font-size: 0.8rem;
        padding: 6px 10px;
        display: inline-block;
    }

    .price-card .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }

    /* Place check-in and check-out side-by-side for easier access */
    .price-card .mb-3,
    .price-card .mb-4 {
        display: inline-block;
        width: calc(50% - 8px);
        margin-bottom: 0;
        text-align: left;
        padding-right: 0;
        vertical-align: top;
    }

    .price-card .date-picker,
    .price-card input[type="date"],
    .price-card .flatpickr-input {
        font-size: 0.95rem;
        padding: 0.4rem 0.6rem;
        height: 40px;
        border-radius: 8px;
    }

    .btn-book-now {
        padding: 10px 14px;
        font-size: 1rem;
        border-radius: 12px;
    }

    /* Hide the small helper text to keep UI compact */
    .price-card .mt-4 small {
        display: none;
    }
}

@media (max-width: 420px) {
    .price-big {
        font-size: 1.4rem;
    }

    .price-card .mb-3,
    .price-card .mb-4 {
        width: 100%;
        display: block;
        margin-bottom: 8px;
    }

    .btn-book-now {
        padding: 10px;
        font-size: 0.95rem;
    }
}

.facility-item {
    background: var(--light);
    border-radius: 16px;
    padding: 16px 20px;
    border-left: 5px solid var(--primary);
    transition: all 0.3s;
}

.facility-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.text-danger-small {
    font-size: 0.875rem;
    color: #e91e63 !important;
}

/* LIGHTBOX STYLES */
#hotelLightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#hotelLightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 92%;
    max-height: 78vh;
    border-radius: 20px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
    transform: scale(0.85);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    object-fit: contain;
}

#hotelLightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 48px;
    color: #fff;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 1;
    transform: scale(1.15);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.15);
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-thumbs {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    max-width: 90%;
    overflow-x: auto;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.lightbox-thumbs::-webkit-scrollbar {
    display: none;
}

.lightbox-thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.6;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.4s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.lightbox-thumb.active,
.lightbox-thumb:hover {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.15);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .room-hero {
        height: 50vh;
        margin-bottom: -40px;
    }

    .thumb-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-img {
        height: 400px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }

    .lightbox-nav {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-img {
        max-height: 65vh;
    }

    .lightbox-thumb {
        width: 80px;
        height: 55px;
    }

    .lightbox-thumbs {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .lightbox-nav {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .lightbox-thumb {
        width: 70px;
        height: 50px;
    }
}
