/* 
 * File: rooms.css
 * Purpose: Styles for the "Our Rooms" section on the index page.
 * Notes: Applies to the room cards displayed in a grid.
 */

/* No specific inline styles for rooms in index.php; using existing Bootstrap classes */
/* Add custom styles here if needed in the future */

/* Define CSS variable for teal */

/* Updated rooms.css with consistent feature/facility styling */
:root {
    --teal: #2a7d7d;
    --black: #000000;
    --secondary: #2c3e50;
    --accent: #f8f9fa;
    --light-teal: #e0f2f1;
    --dark-teal: #1a5a5a;
}

.rooms-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.room-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 992px) {
    .room-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.room-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.room-img-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.room-price {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: rgba(42, 125, 125, 0.9);
    color: white;
    padding: 10px 15px;
    border-top-left-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.room-price span {
    font-size: 1.2rem;
    font-weight: 700;
}

.room-price small {
    font-size: 0.8rem;
}

.room-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.room-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
    position: relative;
}

/* Unified Features & Facilities Styling */
.room-features, .room-facilities {
    margin-bottom: 20px;
}

.features-header, .facilities-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.features-header i, .facilities-header i {
    color: var(--teal);
    font-size: 1rem;
}

.features-header h6, .facilities-header h6 {
    font-weight: 600;
    color: var(--secondary);
    margin: 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-container, .facilities-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 2px;
}

.feature-badge, .facility-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--light-teal);
    color: var(--dark-teal);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(42, 125, 125, 0.15);
    transition: all 0.3s ease;
}

.feature-badge i, .facility-badge i {
    margin-right: 6px;
    color: var(--teal);
    font-size: 0.75rem;
}

.feature-badge:hover, .facility-badge:hover {
    background-color: var(--teal);
    color: white;
    transform: translateY(-2px);
}

.feature-badge:hover i, .facility-badge:hover i {
    color: white;
}

/* Guests Info */
.room-guests {
    margin-bottom: 15px;
}

.guests-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.guest-badge {
    background-color: var(--light-teal);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--dark-teal);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(42, 125, 125, 0.2);
}

.guest-badge i {
    color: var(--teal);
}

/* Buttons */
.room-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}

.book-btn, .details-btn {
    position: relative;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    flex: 1;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.book-btn {
    background-color: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
}

.book-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--teal);
    transition: all 0.4s ease;
    z-index: -1;
}

.details-btn {
    background-color: transparent;
    color: var(--black);
    border: 2px solid var(--black);
}

.details-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    transition: all 0.4s ease;
    z-index: -1;
}

.book-btn:hover, .details-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.book-btn:hover::before, .details-btn:hover::before {
    left: 0;
}

.book-btn i, .details-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.book-btn:hover i, .details-btn:hover i {
    transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .room-container {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto 30px;
    }
    
    .room-img-container {
        height: 200px;
    }
    
    .room-buttons {
        flex-direction: column;
    }
    
    .book-btn, .details-btn {
        width: 100%;
    }
}