/* Advanced Booking Manager - Public Styles */

.abm-booking-form {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.abm-booking-form h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.abm-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.abm-form-group {
    margin-bottom: 15px;
}

.abm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.abm-form-group input,
.abm-form-group select,
.abm-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.abm-form-group input:focus,
.abm-form-group select:focus,
.abm-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.abm-submit-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.abm-submit-button:hover {
    background: #005a87;
}

.abm-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.abm-calendar {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.abm-calendar h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.abm-availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.abm-availability-day {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    text-align: center;
}

.abm-availability-day.available {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.abm-availability-day.unavailable {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.abm-availability-day.partial {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.abm-search-availability {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.abm-search-results {
    margin-top: 20px;
}

.abm-room-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
}

.abm-room-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.abm-room-info h4 {
    margin-top: 0;
    color: #333;
}

.abm-room-price {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    margin: 10px 0;
}

.abm-room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
}

.abm-amenity {
    background: #e9ecef;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.abm-book-now-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.abm-book-now-button:hover {
    background: #218838;
}

.abm-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.abm-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.abm-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .abm-room-card {
        grid-template-columns: 1fr;
    }
    
    .abm-form-row {
        grid-template-columns: 1fr;
    }
    
    .abm-availability-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Datepicker styles */
.ui-datepicker {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ui-datepicker-header {
    background: #0073aa;
    color: white;
    border-radius: 4px 4px 0 0;
    padding: 10px;
}

.ui-datepicker-calendar .ui-state-default {
    border: 1px solid #ddd;
    background: white;
    text-align: center;
    padding: 5px;
}

.ui-datepicker-calendar .ui-state-active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.ui-datepicker-calendar .ui-state-disabled {
    color: #ccc;
    background: #f9f9f9;
}