/* ES Booking Form Styles */

.es-booking-wrapper {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    max-width: 600px;
}

.es-booking-wrapper h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.booking-form-group {
    margin-bottom: 16px;
}

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

.booking-form-group input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.booking-form-group input[type="date"]:focus {
    outline: none;
    border-color: #0071a1;
    box-shadow: 0 0 0 2px rgba(0, 113, 161, 0.1);
}

.booking-info {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 16px 0;
}

.booking-nights {
    font-size: 16px;
    margin-bottom: 4px;
}

.nights-count {
    color: #0071a1;
    font-weight: 700;
    font-size: 18px;
}

.booking-restrictions {
    color: #666;
    font-size: 13px;
}

.booking-loading {
    background: #e7f7ff;
    border-left: 4px solid #0071a1;
    padding: 12px 16px;
    margin: 16px 0;
}

.booking-loading p {
    margin: 0;
    color: #0071a1;
}

.booking-availability {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
    font-weight: 600;
}

.booking-availability.available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.booking-availability.not-available {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.booking-availability .dashicons {
    vertical-align: middle;
    margin-right: 4px;
}

.booking-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.booking-actions .button {
    flex: 1;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.check-availability-button {
    background: #0071a1;
    color: #fff;
}

.check-availability-button:hover {
    background: #005a87;
}

.check-availability-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.book-now-button {
    background: #28a745;
    color: #fff;
}

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

.book-now-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.booking-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    margin-top: 16px;
}

.booking-error p {
    margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .es-booking-wrapper {
        padding: 16px;
    }

    .booking-actions {
        flex-direction: column;
    }

    .booking-actions .button {
        width: 100%;
    }
}
