/* ============================================
   MODERN DATE RANGE CALENDAR - AIRBNB STYLE
   ============================================ */

.calendar-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    padding: 24px;
    margin: 20px 0;
    max-width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ebebeb;
}

.calendar-title {
    font-size: 22px;
    font-weight: 600;
    color: #222222;
    margin: 0;
}

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

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #dddddd;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #222222;
}

.calendar-nav-btn:hover {
    border-color: #222222;
    background: #f7f7f7;
}

.calendar-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.calendar-nav-btn i {
    font-size: 14px;
}

.calendar-month-year {
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    text-align: center;
    flex: 1;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}

.calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #717171;
    padding: 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    color: #222222;
    transition: all 0.2s ease;
    position: relative;
    background: #ffffff;
    border: 1px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.booked) {
    background: #f7f7f7;
    border-color: #dddddd;
}

.calendar-day.today {
    font-weight: 600;
    color: #222222;
}

.calendar-day.today::before {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: #ff6600;
    border-radius: 50%;
}

.calendar-day.past {
    color: #b0b0b0;
    cursor: not-allowed;
}

.calendar-day.past:hover {
    background: #ffffff;
    border-color: transparent;
}

.calendar-day.disabled {
    color: #d0d0d0;
    cursor: not-allowed;
    background: #fafafa;
}

.calendar-day.booked {
    background: #ebebeb;
    color: #b0b0b0;
    cursor: not-allowed;
    position: relative;
}

.calendar-day.booked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: #b0b0b0;
    transform: rotate(-45deg);
}

.calendar-day.start-date {
    background: #ff6600;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px 0 0 8px;
    border-color: #ff6600;
}

.calendar-day.end-date {
    background: #ff6600;
    color: #ffffff;
    font-weight: 600;
    border-radius: 0 8px 8px 0;
    border-color: #ff6600;
}

.calendar-day.in-range {
    background: #f7f7f7;
    border-radius: 0;
    border-color: transparent;
}

.calendar-day.in-range.start-date {
    border-radius: 8px 0 0 8px;
}

.calendar-day.in-range.end-date {
    border-radius: 0 8px 8px 0;
}

.calendar-day.preview-start {
    background: #f7f7f7;
    border-radius: 8px 0 0 8px;
}

.calendar-day.preview-end {
    background: #f7f7f7;
    border-radius: 0 8px 8px 0;
}

.calendar-day.preview-range {
    background: #f7f7f7;
    border-radius: 0;
}

.calendar-day.selected {
    background: #ff6600;
    color: #ffffff;
    font-weight: 600;
}

.calendar-day.start-date.end-date {
    border-radius: 8px;
}

/* Calendar Footer */
.calendar-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #ebebeb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.calendar-selected-dates {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-selected-dates label {
    font-size: 12px;
    color: #717171;
    font-weight: 500;
}

.calendar-selected-dates .date-value {
    font-size: 14px;
    color: #222222;
    font-weight: 500;
}

.calendar-selected-dates .date-value.empty {
    color: #b0b0b0;
    font-style: italic;
}

.calendar-clear-btn {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    color: #222222;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-clear-btn:hover {
    background: #f7f7f7;
    border-color: #222222;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-container {
        padding: 16px;
        border-radius: 12px;
    }

    .calendar-title {
        font-size: 18px;
    }

    .calendar-month-year {
        font-size: 16px;
    }

    .calendar-day {
        font-size: 13px;
        padding: 8px;
    }

    .calendar-weekday {
        font-size: 11px;
        padding: 8px 0;
    }

    .calendar-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-selected-dates {
        width: 100%;
    }

    .calendar-clear-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .calendar-container {
        padding: 12px;
    }

    .calendar-grid {
        gap: 2px;
    }

    .calendar-day {
        font-size: 12px;
        padding: 4px;
    }

    .calendar-weekday {
        font-size: 10px;
        padding: 6px 0;
    }
}

/* Loading State */
.calendar-loading {
    opacity: 0.6;
    pointer-events: none;
}

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

.calendar-container {
    animation: fadeIn 0.3s ease;
}

