/* Villa Calendar Styles */
.villa-calendar-container {
    max-width: 500px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.villa-calendar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
}

.calendar-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
}

.calendar-header button {
    background: #007bff;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.calendar-header .prev-month, .calendar-header .next-month {
    background-color: white !important;
    color: #201f1f !important;
    border-radius: 100px !important;
    padding: 0 !important;
}

.calendar-header .prev-month:after, .calendar-header .next-month:after {
    content: none !important;
}


.calendar-header button:hover {
    background: #0056b3;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th {
    background: #f8f9fa;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    font-size: 12px;
    text-transform: uppercase;
}

.calendar-table td {
    width: 14.28%;
    height: 45px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #f8f9fa;
    cursor: default;
    position: relative;
    font-weight: 500;
    transition: all 0.2s ease;
}

.calendar-table td.available {
    background-color: #d4edda;
    color: #1e1e1e;
    border-color: #9ae3aa;
}

.calendar-table td.booked {
    background-color: #f8d7da;
    border-color: #ea99a3;
    color: #1e1e1e;
    font-weight: bold;
    position: relative;
    text-decoration: line-through;
}

.calendar-table td:empty {
    background: transparent;
    cursor: default;
}

/* Jour actuel */
.calendar-table td.today {
    font-weight: bold;
    box-shadow: inset 0 0 0 2px #007bff;
}

/* Légende */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.1);
}

.legend-color.available {
    background-color: #d4edda;
}

.legend-color.booked {
    background-color: #f8d7da;
    position: relative;
}

/* Responsive */
@media (max-width: 480px) {
    .villa-calendar-container {
        margin: 0 10px;
    }
    
    .calendar-header {
        padding: 10px 15px;
    }
    
    .calendar-header h3 {
        font-size: 16px;
    }
    
    .calendar-table th,
    .calendar-table td {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .calendar-table td {
        height: 35px;
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

/* Animation de chargement */
.villa-calendar.loading {
    opacity: 0.6;
    pointer-events: none;
}

.villa-calendar.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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