/* =======================================================
   1. HOMEPAGE SEARCH BAR STYLING
   ======================================================= */
.otb-search-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}
.otb-search-item { display: flex; flex-direction: column; }
.otb-search-input-field {
    height: 48px; padding: 12px 16px; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: 14px; width: 100%;
    box-sizing: border-box; background-color: white;
}
#otb-search-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 36px;
}
.otb-guest-text { cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.otb-flex-center { display: flex; align-items: center; }
.otb-btn-container { display: flex; align-items: flex-end; }
.otb-btn-main {
    height: 48px; padding: 12px 32px; background-color: #ff6600;
    color: white; border: none; border-radius: 8px; font-size: 16px;
    font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color 0.2s;
}
.otb-btn-main:hover { background-color: #e55a00; }
#otb-search-guest-trigger { position: relative; }
#otb-search-count-display { min-width: 30px; text-align: center; font-weight: 600; }
#otb-search-close { color: #ff6600; cursor: pointer; font-weight: 500; }
#otb-search-close:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .otb-search-wrapper { grid-template-columns: 1fr; gap: 12px; }
    .otb-btn-main { width: 100%; }
}

/* =======================================================
   2. REBALANCING WOOCOMMERCE PRODUCT PAGE LAYOUT
   ======================================================= */
@media (min-width: 1024px) {
    .woocommerce #content div.product div.images, 
    .woocommerce div.product div.images, 
    .woocommerce-page #content div.product div.images, 
    .woocommerce-page div.product div.images {
        width: 60% !important;
        float: left !important;
        margin-right: 4% !important; 
        clear: none !important;
    }

    .woocommerce #content div.product div.summary, 
    .woocommerce div.product div.summary, 
    .woocommerce-page #content div.product div.summary, 
    .woocommerce-page div.product div.summary {
        width: 36% !important;
        float: right !important;
        clear: none !important;
    }
}

.woocommerce-product-details__short-description,
.woocommerce div.product form.cart,
.product_meta { margin-bottom: 25px !important; }

/* =======================================================
   3. WIZARD CARD MAIN STYLING
   ======================================================= */
.otb-wizard-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.otb-header-price h3 {
    font-size: 24px;
    margin: 0 0 20px 0;
    color: #1a1a1a;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.otb-per-person { font-size: 14px; font-weight: 400; color: #64748b; }

/* Unified Input Wrapper */
.otb-booking-inputs-wrapper {
    display: flex;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #ffffff;
    position: relative;
}
.otb-input-box { flex: 1; padding: 10px 14px; position: relative; }
.otb-date-box { border-right: 1px solid #b0b0b0; }
.otb-guest-box { cursor: pointer; }

.otb-label-small {
    display: block; font-size: 10px; text-transform: uppercase;
    font-weight: 700; color: #1a1a1a; margin-bottom: 4px;
}
.otb-date-hidden {
    border: none; background: transparent; padding: 0;
    font-size: 14px; color: #444; width: 100%; outline: none; cursor: pointer;
}
.otb-guest-display-text { font-size: 14px; color: #444; }

/* Language Selector */
.otb-select-field {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
    background-color: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}
.otb-select-field:focus { border-color: #ff6600; }

/* Trust Signals List */
.otb-trust-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 20px 0;
    font-size: 13px;
    color: #475569;
}
.otb-trust-list li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.otb-trust-list .otb-icon {
    font-weight: bold;
    margin-right: 8px;
    font-size: 14px;
    width: 16px;
    text-align: center;
}
.otb-trust-list .otb-icon.green { color: #10b981; }
.otb-trust-list .otb-icon.orange { color: #f59e0b; font-size: 16px; font-style: normal;}

/* Guest Popover & Perfect Circles */
.otb-guest-popover {
    display: none; position: absolute; top: calc(100% + 10px);
    left: 0; right: 0; background: white; border: 1px solid #d1d5db;
    border-radius: 8px; padding: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 100; min-width: 250px;
}
.otb-guest-popover.show { display: block; }

.otb-guest-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.otb-guest-label { font-size: 15px; font-weight: 500; color: #334155; line-height: 1.3; }
.otb-guest-label small { color: #64748b; font-weight: normal; }
.otb-guest-ctrl { display: flex; align-items: center; gap: 12px; }

.otb-btn-circle {
    width: 32px; height: 32px; min-width: 32px; min-height: 32px;
    flex-shrink: 0; border-radius: 50%; border: 1px solid #cbd5e1;
    background: white; color: #ff6600; cursor: pointer; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    padding: 0; line-height: 1; transition: all 0.2s;
}
.otb-btn-circle:hover { background-color: #fff1e6; border-color: #ff6600; }
.otb-guest-count { min-width: 20px; text-align: center; font-weight: 600; color: #1a1a1a; font-size: 15px; }
.otb-close-text { color: #ff6600; cursor: pointer; font-weight: 600; font-size: 14px; }

/* Time Slots & Call to Action */
.otb-slots-area { display: none; margin-bottom: 20px; }
.otb-slots-area.open { display: block; }
.otb-slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.otb-slot-pill {
    border: 1px solid #cbd5e1; padding: 8px 16px; border-radius: 6px;
    font-size: 14px; cursor: pointer; transition: all 0.2s; background: #f8fafc;
}
.otb-slot-pill:hover { border-color: #ff6600; }
.otb-slot-pill.selected { background-color: #fff1e6; border-color: #ff6600; color: #e55a00; font-weight: bold; }

.otb-btn-book {
    width: 100%; background-color: #ff6600; color: white; border: none;
    border-radius: 8px; padding: 14px 20px; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
}
.otb-btn-book:hover { background-color: #e55a00; }
.otb-btn-book:active { transform: scale(0.98); }
.otb-error-msg { color: #dc2626; font-size: 13px; margin-top: 8px; text-align: center; min-height: 18px; }

/* =======================================================
   4. FLATPICKR CALENDAR OVERRIDES
   ======================================================= */
.flatpickr-calendar {
    width: 360px !important;
    padding: 10px !important;
}

.flatpickr-days {
    width: 100% !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}

.flatpickr-day {
    width: 14.28% !important;
    max-width: none !important;
    height: 54px !important;
    line-height: 1.2 !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px !important;
}

.otb-cal-price {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
}

.flatpickr-day.selected .otb-cal-price, 
.flatpickr-day:hover .otb-cal-price,
.flatpickr-day:focus .otb-cal-price {
    color: #ffffff;
}