/* ==========================================
   VILLA.PHP - CALENDRIER BOOKING INLINE
   Calendrier intégré dans la booking card
   ========================================== */

/* ===== CALENDRIER INLINE (DESKTOP) ===== */

.booking-calendar {
    background: #fafafa;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
}

.calendar-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.calendar-nav-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    border-color: var(--color-gold);
    background: #f8f8f8;
}

.calendar-month-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
}

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

.calendar-weekdays span {
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    color: #888;
    padding: 2px 0;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.calendar-day.empty {
    cursor: default;
}

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

.calendar-day.available {
    background: #fff;
    color: var(--color-primary);
    border: 1px solid #e5e5e5;
}

.calendar-day.available:hover {
    border-color: var(--color-gold);
    background: rgba(198, 180, 145, 0.1);
}

.calendar-day.blocked {
    background: repeating-linear-gradient(-45deg, #f5f5f5, #f5f5f5 2px, #eee 2px, #eee 4px);
    color: #999;
    cursor: not-allowed;
    border: 1px solid #ddd;
}

.calendar-day.today {
    font-weight: 700;
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 50%;
}

.calendar-day.selected-start,
.calendar-day.selected-end {
    background: var(--color-gold) !important;
    color: var(--color-primary) !important;
    font-weight: 600;
    border-color: var(--color-gold) !important;
}

.calendar-day.in-range {
    background: rgba(198, 180, 145, 0.2) !important;
    border-color: rgba(198, 180, 145, 0.4) !important;
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: #666;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.legend-dot.available {
    background: #fff;
    border: 1px solid #ddd;
}

.legend-dot.blocked {
    background: repeating-linear-gradient(-45deg, #f5f5f5, #f5f5f5 1px, #ddd 1px, #ddd 2px);
    border: 1px solid #ccc;
}

/* ===== ÉTATS BOOKING FIELDS ===== */

.booking-date.active {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(198, 180, 145, 0.15);
}

/* ===== WARNING DISPONIBILITÉ ===== */

.booking-availability-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    margin-bottom: 10px;
    color: #dc2626;
    font-size: 11px;
    line-height: 1.3;
}

.booking-availability-warning svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}
