/**
 * Booking Module Frontend Styles
 * 
 * @package Booking_Management
 */

/* ========================================
   BLOCKED DATES IN CALENDAR
   ======================================== */

.bm-blocked-date {
    background-color: #f5f5f5 !important;
    color: #ccc !important;
    cursor: not-allowed !important;
    text-decoration: line-through;
}

.bm-blocked-date:hover {
    background-color: #f5f5f5 !important;
}

/* Daterangepicker blocked dates styling */
.daterangepicker td.off.disabled,
.daterangepicker td.disabled {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* ========================================
   BLOCKED HOURS IN TIME PICKER DROPDOWN
   ======================================== */

/* Blocked hour option in the dropdown */
.daterangepicker .hourselect option.blocked-hour,
.daterangepicker select.hourselect option.blocked-hour {
    color: #999 !important;
    background-color: #f5f5f5 !important;
    text-decoration: line-through;
}

/* Disabled hour option */
.daterangepicker .hourselect option:disabled,
.daterangepicker select.hourselect option:disabled {
    color: #ccc !important;
    background-color: #f0f0f0 !important;
    cursor: not-allowed;
}

/* Visual indicator for blocked hours - strikethrough effect */
.daterangepicker .hourselect option.blocked-hour::before {
    content: "✕ ";
    color: #dc3545;
}

/* Time picker container adjustments */
.daterangepicker .calendar-time {
    position: relative;
}

/* Add a tooltip for blocked hours */
.daterangepicker .hourselect option.blocked-hour[title] {
    position: relative;
}

/* ========================================
   NOTICE MESSAGES
   ======================================== */

.bm-notice {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 99999;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    animation: bm-slide-in 0.3s ease-out;
}

.bm-notice-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.bm-notice-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.bm-notice-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.bm-notice-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

@keyframes bm-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   HOURS BUTTONS STYLING
   ======================================== */

.hours-grid .form-group {
    transition: all 0.3s ease;
}

.hours-grid .form-group.hidden {
    display: none !important;
}

/* ========================================
   GUEST COUNTER MAX LIMIT
   ======================================== */

.guests-input .increment.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Prevent pointer events on images inside counter buttons to avoid event bubbling */
.guests-input .increment img,
.guests-input .decrement img {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    cursor: inherit !important;
}

/* Guest Counter Input Field Styling */
.guest-counter-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    -moz-appearance: textfield !important;
}

.guest-counter-input::-webkit-outer-spin-button,
.guest-counter-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.guest-counter-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center;
}

/* ========================================
   ENTERTAINMENT/CATERING/EXTRAS ITEMS
   ======================================== */

.water-sport-item-box[data-product-id],
.food-item-box[data-product-id],
.extra-item-box[data-product-id] {
    transition: all 0.3s ease;
}

.water-sport-item-box:hover,
.extra-item-box:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ========================================
   SIDEBAR PRICE UPDATES
   ======================================== */

.pricing-table .value-text {
    transition: all 0.3s ease;
}

.pricing-table .value-text.updating {
    opacity: 0.5;
}

/* ========================================
   LOADING STATE
   ======================================== */

.bm-loading {
    position: relative;
    pointer-events: none;
}

.bm-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .bm-notice {
        left: 20px;
        right: 20px;
        top: 80px;
    }
}

.counter-container .counter-value {
    width: 30px !important;
}

/* ========================================
   NEXT BUTTON DISABLED STATE
   ======================================== */

#next-step-btn.bm-disabled,
#next-step-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background-color: #ccc !important;
    border-color: #ccc !important;
}

#next-step-btn.bm-disabled:hover,
#next-step-btn:disabled:hover {
    background-color: #ccc !important;
    border-color: #ccc !important;
    transform: none !important;
}

/* ========================================
   HIDE ENTERTAINMENT/CATERING/EXTRAS IN SIDEBAR (BOARDING STEP)
   ======================================== */

.entertainment-details.summary-section,
.catering-details.summary-section,
.extras-details.summary-section {
    display: none;
}

/* ========================================
   ENTERTAINMENT ADDON CATEGORIES
   ======================================== */

.wcpb-entertainment-categories {
    margin-top: 20px;
}

.wcpb-entertainment-category {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.wcpb-entertainment-category-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.wcpb-entertainment-category-header:hover {
    background: #e9ecef;
}

.wcpb-category-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.wcpb-category-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #666;
    transition: transform 0.2s ease;
}

.wcpb-category-name {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

.wcpb-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    margin-right: 10px;
    background: #0073aa;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.wcpb-category-actions {
    display: flex;
    gap: 5px;
}

.wcpb-category-actions button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.wcpb-category-actions button:hover {
    color: #0073aa;
}

.wcpb-category-actions .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.wcpb-entertainment-category-content {
    padding: 20px;
    display: none;
}

.wcpb-entertainment-category-content.show {
    display: block;
}

.wcpb-addon-item {
    position: relative;
}

.wcpb-addon-item.selected .water-sport-item-box {
    border: 2px solid #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.wcpb-addon-checkbox-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 5px;
}

.wcpb-addon-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0073aa;
}

.wcpb-no-addons {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.wcpb-no-addons p {
    margin: 0;
    font-size: 16px;
}
