/* Mini Hotel Integration - Frontend Styles */

.mhi-booking-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.mhi-form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.mhi-form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.mhi-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.mhi-form-group {
    flex: 1;
}

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

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

.mhi-form-group input:focus,
.mhi-form-group select:focus,
.mhi-form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Buttons */
.mhi-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.mhi-btn-primary {
    background-color: #4CAF50;
    color: white;
}

.mhi-btn-primary:hover {
    background-color: #45a049;
}

/* Calendar */
.mhi-availability-calendar {
    margin: 20px 0;
}

.mhi-calendar-legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.mhi-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mhi-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.mhi-legend-color.mhi-available {
    background-color: #4CAF50;
}

.mhi-legend-color.mhi-booked {
    background-color: #f44336;
}

.mhi-legend-color.mhi-blocked {
    background-color: #9E9E9E;
}

/* Rooms List */
.mhi-rooms-list {
    display: grid;
    gap: 30px;
}

.mhi-rooms-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mhi-rooms-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mhi-rooms-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.mhi-room-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.mhi-room-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.mhi-room-content {
    padding: 20px;
}

.mhi-room-name {
    margin-top: 0;
    margin-bottom: 10px;
}

.mhi-room-price {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #4CAF50;
}

/* Search Form */
.mhi-search-form-wrapper {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.mhi-search-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.mhi-search-vertical .mhi-search-form {
    flex-direction: column;
}

.mhi-search-field {
    flex: 1;
}

.mhi-search-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.mhi-search-field input,
.mhi-search-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Widget Styles */
.mhi-widget-booking-form {
    padding: 15px;
}

.mhi-widget-field {
    margin-bottom: 15px;
}

.mhi-widget-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.mhi-widget-field input,
.mhi-widget-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.mhi-widget-submit {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.mhi-widget-submit:hover {
    background-color: #45a049;
}

/* Responsive */
@media (max-width: 768px) {
    .mhi-form-row {
        flex-direction: column;
    }
    
    .mhi-rooms-cols-2,
    .mhi-rooms-cols-3,
    .mhi-rooms-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .mhi-search-form {
        flex-direction: column;
    }
}

/* Loading states */
.mhi-loading {
    opacity: 0.6;
    pointer-events: none;
}

.mhi-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: mhi-spin 1s linear infinite;
}

@keyframes mhi-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.mhi-form-message {
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
}

.mhi-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mhi-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
