/* ===== HERO SECTION ===== */

.gallery-hero {
    height: 90vh;
    background: url('img/h1\ \(5\).jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.45);
    padding: 60px;
    text-align: center;
    color: #fff;
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.hero-overlay h1 {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
}

.text-orange {
    color: #ff7a00;
}

.hero-overlay p {
    margin-top: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
}


/* ===== FILTER BAR ===== */

.filter-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    background: #f3f3f3;
    cursor: pointer;
    border-radius: 25px;
    transition: 0.3s;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: #ff7a00;
    color: white;
}


/**/


/* ===== GALLERY GRID ===== */


/* ===== GALLERY SECTION ===== */

.gallery-section {
    padding: 60px 5%;
    background: linear-gradient(180deg, #f8f8f8, #ffffff);
}


/* ===== MASONRY GRID ===== */

.gallery-masonry {
    column-count: 3;
    column-gap: 20px;
}

@media (max-width: 992px) {
    .gallery-masonry {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-masonry {
        column-count: 1;
    }
}


/* ===== GALLERY ITEM ===== */

.gallery-item {
    position: relative;
    margin-bottom: 20px;
    break-inside: avoid;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: 16px;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}


/* ===== OVERLAY ===== */

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
}


/* =====================================================
   🔥 PREMIUM LIGHTBOX (FIXED CENTER + MODERN LOOK)
===================================================== */

.gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    animation: fadeBg 0.25s ease;
}


/* image container feel */

.gallery-modal img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    animation: popIn 0.25s ease;
    object-fit: contain;
}


/* close button (if you have one) */

.gallery-modal .close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.gallery-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}


/* animations */

@keyframes popIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeBg {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* ===== CARDS SECTION ===== */

.rooms-grid-container {
    padding: 60px 5%;
}

.rooms-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}


/* ===== CARD ===== */

.room-detailed-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.room-detailed-card:hover {
    transform: translateY(-10px);
}


/* ===== IMAGE FIX (IMPORTANT PART) ===== */

.room-gallery-wrapper {
    position: relative;
}

.room-main-img {
    height: 260px;
    overflow: hidden;
}

.room-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.room-detailed-card:hover .room-main-img img {
    transform: scale(1.05);
}


/* TAG */

.room-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff7a00;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}


/* ===== THUMBNAILS ===== */

.room-thumbnails {
    display: flex;
    gap: 8px;
    padding: 10px;
}

.thumb {
    width: 60px;
    height: 50px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

.thumb:hover {
    opacity: 1;
}

.thumb.active {
    opacity: 1;
    border: 2px solid #ff7a00;
}


/* ===== INFO ===== */

.room-info {
    padding: 20px;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-header h2 {
    font-size: 1.2rem;
}

.room-price {
    color: #ff7a00;
    font-weight: bold;
}

.room-text {
    margin: 10px 0;
    font-size: 0.9rem;
    color: #555;
}

.room-amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 0.85rem;
    margin-top: 10px;
}


/* ===== BUTTON ===== */

.btn-book-now {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background: #ff7a00;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-book-now:hover {
    background: #e56b00;
}


/* ===== RESPONSIVE ===== */


/* =========================================
    MOBILE OPTIMIZATION
========================================= */

@media (max-width: 768px) {
    /* ===== HERO ===== */
    .gallery-hero {
        height: 65vh;
        padding: 20px;
    }
    .hero-overlay {
        padding: 25px;
        border-radius: 10px;
    }
    .hero-overlay h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    .hero-overlay p {
        font-size: 0.95rem;
    }
    /* ===== FILTER BAR ===== */
    .filter-container {
        margin: 25px 10px;
    }
    .filter-bar {
        gap: 8px;
        justify-content: center;
    }
    .filter-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    /* ===== GALLERY ===== */
    .gallery-section {
        padding: 20px 4%;
    }
    .gallery-masonry {
        column-count: 1;
    }
    .gallery-item {
        border-radius: 10px;
    }
    .gallery-item:hover img {
        transform: none;
    }
    .gallery-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.25);
    }
    .gallery-overlay span {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    /* ===== LIGHTBOX ===== */
    .lightbox img {
        max-width: 95%;
        max-height: 70%;
    }
    .close-lightbox {
        top: 15px;
        right: 20px;
        font-size: 1.5rem;
    }
    /* ===== CARDS GRID ===== */
    .rooms-grid-container {
        padding: 40px 4%;
    }
    .rooms-detailed-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    /* ===== CARD ===== */
    .room-detailed-card {
        border-radius: 12px;
    }
    /* ===== IMAGE ===== */
    .room-main-img {
        height: 200px;
    }
    .room-main-img img {
        object-position: top;
    }
    /* ===== TAG ===== */
    .room-tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    /* ===== THUMBNAILS ===== */
    .room-thumbnails {
        padding: 8px;
        gap: 6px;
    }
    .thumb {
        width: 50px;
        height: 40px;
    }
    /* ===== INFO ===== */
    .room-info {
        padding: 15px;
    }
    .room-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .room-header h2 {
        font-size: 1rem;
    }
    .room-price {
        font-size: 0.9rem;
    }
    .room-text {
        font-size: 0.85rem;
    }
    /* ===== AMENITIES ===== */
    .room-amenities-grid {
        grid-template-columns: 1fr;
        font-size: 0.8rem;
    }
    /* ===== BUTTON ===== */
    .btn-book-now {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 0.9rem;
    }
}


/* =========================================
   📱 EXTRA SMALL DEVICES (≤ 480px)
========================================= */

@media (max-width: 480px) {
    .hero-overlay h1 {
        font-size: 1.6rem;
    }
    .hero-overlay p {
        font-size: 0.85rem;
    }
    .filter-btn {
        font-size: 0.75rem;
        padding: 7px 12px;
    }
    .room-main-img {
        height: 180px;
    }
    .thumb {
        width: 45px;
        height: 35px;
    }
}