/* Premium Calendar CSS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --wp-airbnb-available: #22c55e;
    --wp-airbnb-booked: #ef4444;
    --wp-airbnb-past: #f3f4f6;
    --wp-airbnb-selected: #3b82f6;
    --wp-airbnb-button: #000000;
    --wp-airbnb-radius: 12px;
    --wp-airbnb-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.calendar-container {
    max-width: 450px;
    margin: 20px auto;
    font-family: 'Outfit', sans-serif;
    background: #ffffff;
    border-radius: var(--wp-airbnb-radius);
    box-shadow: var(--wp-airbnb-shadow);
    padding: 30px;
    color: #1f2937;
    border: 1px solid #f3f4f6;
}

.wp-airbnb-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.wp-airbnb-calendar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: capitalize;
}

.calendar-controls {
    display: flex;
    gap: 8px;
}

.calendar-controls button {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 700;
    color: #4b5563;
}

.calendar-controls button:hover {
    background: #fff;
    border-color: var(--wp-airbnb-selected);
    color: var(--wp-airbnb-selected);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.wp-airbnb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.wp-airbnb-calendar-day-name {
    text-align: center;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    padding-bottom: 12px;
}

.wp-airbnb-calendar-day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: default;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    border: 1px solid transparent;
}

/* Day States */
.wp-airbnb-calendar-day.available {
    background: #fff;
    border: 1px solid #f3f4f6;
    color: #1f2937;
    cursor: pointer;
}

.wp-airbnb-calendar-day.available:hover {
    border-color: var(--wp-airbnb-selected);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    z-index: 2;
}

.wp-airbnb-calendar-day.booked {
    background: var(--wp-airbnb-booked);
    color: #fff;
    opacity: 0.9;
    cursor: not-allowed;
}

.wp-airbnb-calendar-day.past {
    background: var(--wp-airbnb-past);
    color: #9ca3af;
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.wp-airbnb-calendar-day.not-current-month {
    visibility: hidden;
}

/* Range Selection Styling */
.wp-airbnb-calendar-day.in-range {
    background: var(--wp-airbnb-selected);
    color: #fff;
    opacity: 0.6;
    border-radius: 0;
}

.wp-airbnb-calendar-day.selection-start,
.wp-airbnb-calendar-day.selection-end {
    background: var(--wp-airbnb-selected) !important;
    color: #fff !important;
    opacity: 1;
    z-index: 3;
}

.wp-airbnb-calendar-day.selection-start {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.wp-airbnb-calendar-day.selection-end {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
}

.color-box {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.color-box.booked { background: var(--wp-airbnb-booked); }
.color-box.available { background: #fff; border: 1px solid #e5e7eb; }
.color-box.selected-box { background: var(--wp-airbnb-selected); }

/* Booking Form Container */
.booking-form-container {
    margin-top: 25px;
    padding: 25px;
    background: #f9fafb;
    border-radius: var(--wp-airbnb-radius);
    border: 1px solid #e5e7eb;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.booking-form-container h4 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
}

.wp-airbnb-booking-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.date-input-field label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #9ca3af;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.display-date {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

.wp-airbnb-booking-form input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: #fff;
}

.wp-airbnb-booking-form input:focus {
    outline: none;
    border-color: var(--wp-airbnb-selected);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.wp_airbnb_submit_booking_btn {
    width: 100%;
    padding: 16px;
    background: var(--wp-airbnb-button);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.wp_airbnb_submit_booking_btn:hover {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.wp_airbnb_submit_booking_btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
