/* =============================================
   rooms.css - Hotel Panchvati Rooms Page
   Based on provided global :root variables
   Grid Layout - No Carousel
   ============================================= */

/* --- Banner Section (30% to 40% vh - using 40vh) --- */
.rooms-banner {
    position: relative;
    height: 40vh;
    min-height: 300px;
    max-height: 450px;
    background: linear-gradient(135deg, #1a1408 0%, #2c2416 100%);
    background-image: url('https://images.pexels.com/photos/164595/pexels-photo-164595.jpeg?auto=compress&cs=tinysrgb&w=1600');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 36, 22, 0.55);
    backdrop-filter: brightness(0.85);
}

.banner-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.banner-title {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--white, #FFFFFF);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.banner-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 16px 0;
}

.divider-line {
    width: 60px;
    height: 2px;
    background: var(--accent, #D4AF37);
}

.banner-divider i {
    font-size: 1.8rem;
    color: var(--accent, #D4AF37);
}

.banner-subtitle {
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 1.2rem;
    color: var(--white, #FFFFFF);
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* --- Rooms Section --- */
.rooms-section {
    padding: 80px 0;
    background-color: var(--bg-cream, #FFFDF7);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Section Header Styles */
.section-badge {
    display: inline-block;
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary, #8B6914);
    background: var(--bg-soft, #FDF6EC);
    padding: 6px 20px;
    border-radius: 40px;
    margin-bottom: 16px;
    font-weight: 500;
}

.section-title {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text-dark, #2C2416);
    margin-bottom: 16px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--accent, #D4AF37);
    margin: 20px auto;
    border-radius: 3px;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent, #D4AF37);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.section-divider::before {
    left: -15px;
}

.section-divider::after {
    right: -15px;
}

.section-desc {
    color: var(--text-muted, #7A6A55);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Rooms Grid - 3 columns (No Carousel) --- */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

/* --- Room Card Styles --- */
.room-card {
    background: var(--white, #FFFFFF);
    border-radius: var(--radius-lg, 24px);
    overflow: hidden;
    transition: var(--transition, all 0.35s cubic-bezier(0.4, 0, 0.2, 1));
    border: 1px solid var(--border-light, #E8D9C0);
    box-shadow: var(--shadow-soft, 0 4px 24px rgba(139, 105, 20, 0.10));
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card, 0 8px 32px rgba(139, 105, 20, 0.12));
    border-color: var(--primary-light, #C4972A);
}

/* Room Image Wrapper */
.room-img-wrap {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.room-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.room-card:hover .room-img-wrap img {
    transform: scale(1.08);
}

/* Room Badge */
.room-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary, #8B6914);
    color: var(--white, #FFFFFF);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* Room Price */
.room-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 8px 15px;
    border-radius: 30px;
    text-align: center;
    z-index: 2;
}

.room-price .price {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent, #D4AF37);
    line-height: 1;
}

.room-price .per {
    font-size: 0.7rem;
    color: var(--white, #FFFFFF);
    opacity: 0.8;
}

/* Room Body */
.room-body {
    padding: 20px;
}

.room-body h4 {
    font-family: var(--font-display, 'Cormorant Garamond', serif);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark, #2C2416);
}

.room-body p {
    color: var(--text-muted, #7A6A55);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Room Features */
.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.room-features span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted, #7A6A55);
    background: var(--bg-soft, #FDF6EC);
    padding: 5px 10px;
    border-radius: 30px;
}

.room-features span i {
    color: var(--primary, #8B6914);
    font-size: 0.7rem;
}

/* Book Now Button */
.btn-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-family: var(--font-body, 'Jost', sans-serif);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white, #FFFFFF);
    background: var(--primary, #8B6914);
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}

.btn-book:hover {
    background: var(--primary-dark, #6B4F0E);
    transform: translateY(-2px);
    color: var(--white, #FFFFFF);
    gap: 12px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .banner-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .rooms-banner {
        height: 30vh;
        min-height: 280px;
    }
    
    .banner-title {
        font-size: 2.4rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .banner-divider i {
        font-size: 1.4rem;
    }
    
    .divider-line {
        width: 40px;
    }
    
    .rooms-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-desc {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .room-img-wrap {
        height: 220px;
    }
    
    .room-body h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .rooms-banner {
        height: 28vh;
        min-height: 250px;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-subtitle {
        font-size: 0.85rem;
    }
    
    .divider-line {
        width: 30px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-badge {
        font-size: 0.7rem;
        padding: 4px 14px;
    }
    
    .section-divider {
        width: 60px;
    }
    
    .room-img-wrap {
        height: 200px;
    }
    
    .room-price .price {
        font-size: 1.1rem;
    }
    
    .room-features span {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .btn-book {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rooms-section {
    animation: fadeInUp 0.8s ease-out;
}

.room-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.room-card:nth-child(1) { animation-delay: 0.05s; }
.room-card:nth-child(2) { animation-delay: 0.1s; }
.room-card:nth-child(3) { animation-delay: 0.15s; }
.room-card:nth-child(4) { animation-delay: 0.2s; }
.room-card:nth-child(5) { animation-delay: 0.25s; }
.room-card:nth-child(6) { animation-delay: 0.3s; }
.room-card:nth-child(7) { animation-delay: 0.35s; }
.room-card:nth-child(8) { animation-delay: 0.4s; }
.room-card:nth-child(9) { animation-delay: 0.45s; }

.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 48px;
}