/* Enhanced Room Card Styles - Golden Resort Theme */
:root {
    /* Golden Resort Color Palette - Matching main.css */
    --primary-color: #d4a853;
    --primary-light: #e6c174;
    --primary-dark: #b8923a;
    --accent-color: #27ae60;
    --accent-light: #2ecc71;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-white: #ffffff;
    --border-color: #ecf0f1;
    --border-radius-lg: 16px;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.room-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.room-card.unavailable {
    opacity: 0.7;
    filter: grayscale(30%);
}

/* Room Type-specific styling with new colors */
.room-card[data-type*="Cottage"] {
    border-left: 4px solid var(--accent-color);
}

.room-card[data-type*="Cottage"] .room-content h4::after {
    content: " 🏡";
    font-size: 16px;
}

.room-card[data-type*="Villa"] {
    border-left: 4px solid var(--primary-color);
}

.room-card[data-type*="Villa"] .room-content h4::after {
    content: " 🏘️";
    font-size: 16px;
}

.room-card[data-type*="Ocean"] {
    border-left: 4px solid var(--primary-light);
}

.room-card[data-type*="Ocean"] .room-content h4::after {
    content: " 🌊";
    font-size: 16px;
}

.room-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.room-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.room-card:hover .room-main-image {
    transform: scale(1.05);
}

.image-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

.unavailable-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.8);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.room-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
}

.room-content h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
}

.room-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
    flex-grow: 1;
}

.room-details {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.room-details i {
    width: 18px;
    text-align: center;
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.room-amenities {
    margin-bottom: 1.5rem;
}

.amenity-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 2px 4px 2px 0;
}

/* Special amenity styling for cottage features */
.amenity-tag:contains("Garden"), .amenity-tag[data-amenity*="Garden"] {
    background: #d5f5d5;
    color: #27ae60;
}

.amenity-tag:contains("Kitchenette"), .amenity-tag[data-amenity*="Kitchenette"] {
    background: #fff3cd;
    color: #856404;
}

.amenity-tag:contains("Private"), .amenity-tag[data-amenity*="Private"] {
    background: #f8d7da;
    color: #721c24;
}

.amenity-more {
    color: #888;
    font-size: 12px;
    font-style: italic;
}

.room-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.room-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.room-price .price-period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.room-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
    min-height: 60px;
    font-size: 1rem;
}

.room-availability {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
}

.room-availability.available {
    color: #27ae60;
}

.room-availability.unavailable {
    color: #e74c3c;
}

.room-book-btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.room-book-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Discount Badge Styles */
.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(220, 53, 69, 0.4);
    z-index: 10;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.room-price-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.original-price {
    color: #6c757d;
    font-size: 0.9rem;
    text-decoration: line-through;
    font-weight: 500;
}

.discounted-price {
    color: #dc3545 !important;
    font-weight: 700;
}

.savings-text {
    color: #28a745;
    font-weight: 600;
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Button Group */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.button-group .btn {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .room-image {
        height: 180px;
    }
    
    .room-content {
        padding: 16px;
    }
    
    .room-content h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .room-description {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .room-price {
        font-size: 18px;
    }
    
    .room-card {
        margin-bottom: 1rem;
    }
    
    .room-book-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .discount-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

/* Animation delays for AOS */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

