/* =========================================
   1. PRODUCT WIZARD CARD (Tour Page)
   ========================================= */
.otb-wizard-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    margin: 20px 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: visible !important; 
    position: relative;
    z-index: 10;
}

.otb-header-price { padding: 20px 20px 10px; }
.otb-header-price h3 { margin: 0; font-size: 1.5rem; color: #222; }
.otb-header-price span { font-size: 0.9rem; color: #666; }

/* Input Grid (Wizard) */
.otb-grid-inputs {
    display: grid; grid-template-columns: 1fr 1fr;
    border: 1px solid #ccc; border-radius: 8px;
    margin: 0 20px 15px; position: relative; background: #fff;
}
.otb-input-box { padding: 10px 15px; border-right: 1px solid #ccc; cursor: pointer; transition: background 0.2s; }
.otb-input-box:last-child { border-right: none; }
.otb-input-box:hover { background: #f9f9f9; }

.otb-label-small { display: block; font-size: 0.75rem; font-weight: 700; color: #222; margin-bottom: 5px; }
.otb-date-hidden { border: none; font-size: 0.95rem; width: 100%; background: transparent; cursor: pointer; outline: none; }

/* Guest Popover */
.otb-guest-popover {
    display: none; position: absolute; top: 100%; left: 0; width: 250px;
    background: white; border: 1px solid #ddd; border-radius: 8px;
    padding: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 99999; margin-top: 5px;
}
.otb-guest-popover.show { display: block; }

.otb-guest-row { display: flex; justify-content: space-between; margin-bottom: 12px; align-items: center; }
.otb-guest-ctrl { display: flex; align-items: center; gap: 8px; }
.otb-btn-circle {
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ccc;
    background: white; cursor: pointer; color: #FF6600; font-weight: bold;
    font-size: 1.2rem; display: flex; justify-content: center; align-items: center;
}
.otb-btn-circle:hover { border-color: #FF6600; background: #FFF5EB; }

/* =========================================
   2. FLATPICKR CALENDAR (THE FIX)
   ========================================= */
.flatpickr-calendar { z-index: 99999 !important; border-radius: 12px !important; box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important; width: 320px !important; }

/* FORCE VERTICAL STACKING (Overriding Theme) */
body .flatpickr-day { 
    display: flex !important; 
    flex-direction: column !important; 
    justify-content: center !important; 
    align-items: center !important;
    height: 55px !important;       
    line-height: 1.2 !important; 
    border: 1px solid transparent !important;
}

/* Date Number */
body .flatpickr-day { font-size: 15px !important; font-weight: 500 !important; color: #333 !important; }

/* Price Label */
body .otb-cal-price { 
    display: block !important; 
    font-size: 10px !important; 
    color: #888 !important; 
    margin-top: 2px !important; 
    font-weight: bold !important;
}

body .flatpickr-day.selected, body .flatpickr-day:hover {
    background: #FF6600 !important; border-color: #FF6600 !important; color: white !important;
}

body .flatpickr-day.selected .otb-cal-price, body .flatpickr-day:hover .otb-cal-price {
    color: #fff !important;
}

/* =========================================
   3. UTILITIES
   ========================================= */
.otb-btn-main { background: #FF6600; color: white; width: 100%; height: 50px; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; }
.otb-btn-main:hover { background: #e55c00; }
.otb-action-area { padding: 0 20px 20px; }

.otb-slots-area { padding: 0 20px 20px; display: none; background: #fff; border-top: 1px solid #f0f0f0; }
.otb-slots-area.open { display: block; animation: slideDown 0.3s; }
.otb-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.otb-slot-pill { padding: 8px; border: 1px solid #ccc; border-radius: 6px; text-align: center; cursor: pointer; }
.otb-slot-pill:hover, .otb-slot-pill.selected { border-color: #FF6600; background: #FF6600; color: white; }

.single_add_to_cart_button, .quantity, form.cart { display: none !important; }
.elementor-widget-shortcode, .elementor-shortcode { overflow: visible !important; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }