/* css/rooms-styles.css */

/* Define accent color and other variables if not globally available */
:root {
    --room-showcase-accent-color: #FF6B6B;
    --room-showcase-accent-hover-color: #FF4747;

    /* Fallback variables if not defined globally from header/footer styles */
    --site-primary-color: var(--primary-color, #00796B);
    --site-primary-hover-color: var(--primary-hover-color, #005f56); /* This can be used for other hover effects if needed */
    --site-text-headings-main: var(--text-headings, #2c3e50);
    --site-text-dark: var(--text-dark, #2F4F4F);
    --site-font-main: 'Inter', sans-serif;
    --site-font-headings: 'Lora', serif;
}


.rooms-container { /* Using this class for the title wrapper in rooms.html */
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem 0 1rem; /* Padding for the title section */
}

.rooms-title { /* For h1#rooms-page-title */
    font-family: 'Lora', serif;
    font-size: 2.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    opacity: 0;
    animation: slideDownFadeInPageTitle 0.8s 0.3s ease-out forwards;
}

.rooms-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.rooms-subtitle { /* For p#rooms-page-subtitle */
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUpSubtitle 0.8s 0.6s ease-out forwards;
}

@keyframes slideDownFadeInPageTitle {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUpSubtitle {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- Rooms Listing Section --- */
.rooms-listing-section {
    padding: 1rem 1rem 3rem 1rem;
    background-color: #f8f9fa;
}
.rooms-listing-section .container {
    max-width: 1200px;
    margin: 0 auto;
}
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* --- Room Card Styling --- */
.room-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
}
.room-card.animate-on-load {
    animation-name: fadeInCard;
    animation-duration: 0.6s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}
@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.room-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.room-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.room-card:hover .room-image {
    transform: scale(1.05);
}
.room-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.room-name {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color, #333);
}
.room-description-preview {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.room-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.highlight-item {
    display: inline-flex;
    align-items: center;
    background-color: rgba(var(--primary-color-rgb, 0,121,107), 0.1); /* Use RGBA version of primary color */
    color: var(--primary-color, #1a682b);
    padding: 0.3rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    opacity: 0;
    animation-name: highlightAnimateIn;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}
.highlight-item:hover {
    background-color: var(--primary-color, #218838);
    color: #fff;
    transform: translateY(-2px);
}

.highlight-item i {
    margin-right: 0.4rem;
    font-size: 0.85em;
}

@keyframes highlightAnimateIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.room-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: auto; /* Push to bottom if description is short */
    padding-top: 1rem; /* Space above meta if description is short */
    border-top: 1px solid #eee;
}
.room-meta span {
    display: flex;
    align-items: center;
}
.room-meta i {
    margin-right: 0.4rem;
    color: var(--primary-color, #6c757d);
}

/* --- NEW: Container for Room Card Buttons --- */
.room-card-actions {
    display: flex;
    gap: 0.75rem; /* Space between buttons */
    margin-top: 1rem; /* Space above the buttons */
    flex-wrap: wrap; /* Allow buttons to wrap if not enough space */
}

/* --- Common style for buttons in room card --- */
.room-card-actions .btn {
    flex-grow: 1; /* Allow buttons to share space */
    text-align: center;
    padding: 0.7rem 1rem; /* Adjusted padding */
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Added color and border-color to transition */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    min-width: 120px; /* Minimum width for buttons */
    background-color: var(--primary-color, #28a745); /* Default dark green background */
    color: #fff; /* White text and icons */
    border: 1px solid var(--primary-color, #28a745); /* Dark green border */
}
.room-card-actions .btn i {
    transition: transform 0.3s ease;
}
.room-card-actions .btn:hover i {
    transform: translateX(3px);
}


/* Style for "View Details" button */
.btn-details {
    /* Inherits default button styles */
}
.btn-details:hover {
    background-color: #fff; /* White background on hover */
    color: var(--primary-color, #28a745); /* Primary color for text/icon */
    border-color: var(--primary-color, #28a745); /* Primary color for border */
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- NEW: Style for "Book Now" button on card --- */
.btn-book-now {
    /* Inherits default button styles */
}
.btn-book-now:hover {
    background-color: #fff; /* White background on hover */
    color: var(--primary-color, #28a745); /* Primary color for text/icon */
    border-color: var(--primary-color, #28a745); /* Primary color for border */
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(var(--primary-color-rgb,0,0,0),0.2);
}


.no-highlights {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    margin: 0.8rem 0;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .rooms-title {
        font-size: 2.2rem;
    }
    .rooms-subtitle {
        font-size: 1rem;
    }
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    .room-name {
        font-size: 1.4rem;
    }
    .room-description-preview {
        font-size: 0.9rem;
    }
    .room-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .room-card-actions { /* Ensure buttons stack nicely on smaller cards if needed */
        flex-direction: column;
        align-items: stretch; /* Make buttons take full width of action container */
    }
    .room-card-actions .btn {
        width: 100%; /* Full width for stacked buttons */
        margin-bottom: 0.5rem; /* Add some space between stacked buttons */
    }
    .room-card-actions .btn:last-child {
        margin-bottom: 0;
    }

}
