/* Availability Page Styles */

:root {
    --primary-color: #d4a853;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
}

.availability-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 8rem 0 2rem;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.availability-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/bg.jpg') center/cover;
    opacity: 0.1;
}

.search-bar-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: -2rem;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 2;
}

.filter-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin: 2rem 0;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.room-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.room-card.cottage {
    border-left-color: #28a745;
}

.room-card.villa {
    border-left-color: #6f42c1;
}

.room-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.room-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-cottage {
    background: #28a745;
    color: white;
}

.badge-villa {
    background: #6f42c1;
    color: white;
}

.badge-room {
    background: var(--primary-color);
    color: white;
}

.availability-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
}

.availability-badge.fully-booked {
    background: #dc3545;
    color: white;
}

/* Fully booked room card styling */
.room-card.fully-booked {
    opacity: 0.7;
    border: 1px solid #dc3545;
}

.room-card.fully-booked .room-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.1);
    pointer-events: none;
}

.btn-book.disabled {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    cursor: not-allowed;
    opacity: 0.85;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-book.disabled:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    transform: none;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.room-content {
    padding: 1.5rem;
}

.room-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.room-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.feature i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.btn-book {
    background: linear-gradient(135deg, #d4a853 0%, #e6b862 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 4px 15px rgba(212, 168, 83, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-book::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-book:hover::before {
    left: 100%;
}

.btn-book:hover {
    background: linear-gradient(135deg, #e6b862 0%, #f0c777 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 168, 83, 0.5);
    color: white;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
    margin: 0.25rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.search-summary {
    background: linear-gradient(45deg, var(--primary-color), #c19940);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 168, 83, 0.25);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #c19940;
    border-color: #c19940;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amenity-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
}

.price-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price-per-night {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Discount Styles */
.discount-badge-price {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.original-price-strikethrough {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
    margin-bottom: 4px;
}

.discounted-price-large {
    font-size: 1.8rem;
    font-weight: bold;
    color: #dc3545 !important;
}

.savings-text-green {
    color: #28a745;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .room-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .availability-header {
        padding: 2rem 0 1rem;
    }
    
    .search-bar-container {
        padding: 1rem;
        margin-top: -1rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
    
    .quick-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-book {
        width: 100%;
    }
}

/* Room Rating Styles */
.room-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.room-rating .stars {
    display: inline-flex;
    gap: 2px;
}

.room-rating .stars i {
    font-size: 0.85rem;
}

.room-rating .rating-text {
    color: var(--text-dark);
}

.room-rating .rating-text strong {
    color: var(--primary-color);
    font-size: 1rem;
}

.room-rating .text-muted {
    color: var(--text-light) !important;
}

.text-warning {
    color: #ffc107 !important;
}
