/* Multi-Booking System Styles */

.room-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
}

.room-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.room-card.selected {
    border-color: #28a745;
    background-color: #f8fff9;
}

.room-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.room-card-body {
    padding: 20px;
}

.room-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.room-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.room-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.room-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
    font-size: 0.9rem;
}

.room-info-item i {
    color: #72ae2d;
}

.room-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #72ae2d;
    margin-bottom: 15px;
}

.room-price small {
    font-size: 0.6em;
    color: #666;
    font-weight: normal;
}

.special-price-badge {
    background-color: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 10px;
}

.room-select-checkbox {
    transform: scale(1.5);
    cursor: pointer;
    margin-right: 10px;
}

.select-room-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.select-room-label:hover {
    background-color: #e9ecef;
}

.room-card.selected .select-room-label {
    background-color: #d4edda;
    font-weight: bold;
}

/* Booking Summary */
#bookingSummary {
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

#roomCounter {
    border-left: 4px solid #72ae2d;
}

#selectedRoomsList {
    max-height: 200px;
    overflow-y: auto;
}

.selected-room-item {
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-room-item .remove-room {
    color: #dc3545;
    cursor: pointer;
    transition: color 0.3s ease;
}

.selected-room-item .remove-room:hover {
    color: #c82333;
}

/* Search Form */
#searchForm {
    padding: 20px;
}

#searchForm .form-label {
    font-weight: 600;
    color: #333;
}

#searchForm .btn-primary {
    background-color: #72ae2d;
    border-color: #72ae2d;
    padding: 12px 40px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#searchForm .btn-primary:hover {
    background-color: #5d8c24;
    border-color: #5d8c24;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Messages */
.alert {
    border-radius: 8px;
    padding: 15px;
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .room-card-image {
        height: 150px;
    }
    
    .room-title {
        font-size: 1.2rem;
    }
    
    .room-price {
        font-size: 1.5rem;
    }
    
    #bookingSummary {
        position: relative !important;
        top: auto !important;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.room-card {
    animation: fadeIn 0.5s ease-in-out;
}

.room-card:nth-child(1) { animation-delay: 0.1s; }
.room-card:nth-child(2) { animation-delay: 0.2s; }
.room-card:nth-child(3) { animation-delay: 0.3s; }
.room-card:nth-child(4) { animation-delay: 0.4s; }
.room-card:nth-child(5) { animation-delay: 0.5s; }

/* Badges */
.badge {
    padding: 8px 12px;
    font-weight: 600;
}

/* Card Header */
.card-header {
    border-bottom: 3px solid rgba(255,255,255,0.3);
}

/* Sticky Sidebar */
@media (min-width: 992px) {
    .booking-summary-sticky {
        position: -webkit-sticky;
        position: sticky;
        top: 20px;
        z-index: 1020;
    }
}

/* Price Display */
.price-breakdown {
    font-size: 0.9rem;
    color: #666;
}

.price-breakdown .badge {
    font-size: 0.75rem;
}

/* Form Styling */
.form-control:focus {
    border-color: #72ae2d;
    box-shadow: 0 0 0 0.2rem rgba(114, 174, 45, 0.25);
}

.btn-success {
    background-color: #72ae2d;
    border-color: #72ae2d;
}

.btn-success:hover {
    background-color: #5d8c24;
    border-color: #5d8c24;
}