/**
 * Booking Rules CSS
 * Styles for blocked/disabled dates in calendar
 */

/* Dates blocked by booking rules */
.slot.disabledByRules,
.slot.blockedSlot {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    background-color: #f0f0f0 !important;
    pointer-events: none !important;
    position: relative;
}

/* Visual indication with diagonal lines */
.slot.disabledByRules:after,
.slot.blockedSlot:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(200, 200, 200, 0.3) 10px,
        rgba(200, 200, 200, 0.3) 12px
    );
    pointer-events: none;
}

/* Remove hover effects on blocked dates */
.slot.disabledByRules:hover,
.slot.blockedSlot:hover {
    background-color: #f0f0f0 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Ensure selected start date is not affected */
.slot.selectedSlot.disabledByRules {
    opacity: 1 !important;
    background-color: inherit !important;
    pointer-events: auto !important;
}

.slot.selectedSlot.disabledByRules:after {
    display: none;
}
