/**
 * Trip Booking Pro - Modern Frontend Design System
 */

/* Root tokens */
:root {
    --tbp-primary: #D75327;
    --tbp-primary-rgb: 254, 125, 33;
    --tbp-primary-hover: #D75327;
    --tbp-secondary: #000000;
    --tbp-secondary-hover: #1a1a1a;
    --tbp-slate-900: #000000;
    --tbp-slate-800: #1a1a1a;
    --tbp-slate-700: #444444;
    --tbp-slate-600: #666666;
    --tbp-slate-400: #888888;
    --tbp-slate-100: #D9D9D9;
    --tbp-slate-50: #ecf0f1;
    --tbp-success: #10b981;
    --tbp-success-hover: #059669;
    --tbp-error: #ef4444;

    /* Premium glass effects */
    --tbp-glass-bg: rgba(255, 255, 255, 0.85);
    --tbp-glass-border: rgba(226, 232, 240, 0.8);
    --tbp-glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);

    /* Radius */
    --tbp-radius-lg: 16px;
    --tbp-radius-md: 12px;
    --tbp-radius-sm: 8px;

    /* Fonts */
    --tbp-font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --tbp-font-display: 'Outfit', sans-serif;
}

/* Core Container Wrapper */
.tbp-container {
    font-family: var(--tbp-font-family);
    color: var(--tbp-slate-800);
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.tbp-container * {
    box-sizing: border-box;
}

/* -----------------------------------------
   PROGRESS BAR STEPS
----------------------------------------- */
.tbp-catalog-mode .tbp-progress-header {
    display: none;
}

.tbp-progress-header {
    background: transparent;
    border: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 20px 0;
    margin-bottom: 40px;
}

.tbp-progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Continuous solid black line behind the step indicators */
.tbp-progress-steps::before {
    content: '';
    position: absolute;
    top: 8px;
    /* Centered vertically on the 16px dot */
    left: 8px;
    /* Starts exactly at center of first dot */
    right: 8px;
    /* Ends exactly at center of last dot */
    height: 1.5px;
    background-color: #222222;
    z-index: 1;
}

/* Hide the individual HTML line nodes to use the continuous line above */
.tbp-step-line {
    display: none !important;
}

.tbp-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Small elegant dot-style circle replacing the numbers */
.tbp-step-indicator .step-num {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1.5px solid #222222;
    color: transparent;
    font-size: 0;
    /* Hide the text numbers */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: none !important;
}

/* Active indicator showing nested black dot */
.tbp-step-indicator.active .step-num {
    background-color: #ffffff;
    border-color: #222222;
}

.tbp-step-indicator.active .step-num::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #222222;
}

/* Completed indicator also displaying nested dot */
.tbp-step-indicator.completed .step-num {
    background-color: #ffffff;
    border-color: #222222;
}

.tbp-step-indicator.completed .step-num::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #222222;
}

/* Clean, standard typography matching mixed-case step labels */
.tbp-step-indicator .step-label {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #888888;
    text-transform: none;
    /* Mixed case as in client's layout */
    letter-spacing: 0px;
    font-family: var(--tbp-font-family);
    transition: color 0.3s, font-weight 0.3s;
}

.tbp-step-indicator.active .step-label {
    color: #222222;
    font-weight: 600;
}

.tbp-step-indicator.completed .step-label {
    color: #222222;
    font-weight: 600;
}

/* -----------------------------------------
   STEPS PANE VISIBILITY
----------------------------------------- */
.tbp-step-pane {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.tbp-step-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tbp-pane-header {
    margin-bottom: 30px;
}

.tbp-pane-header h2 {
    font-family: var(--tbp-font-display);
    font-size: 2.2em;
    font-weight: 800;
    color: var(--tbp-slate-900);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.tbp-pane-header p {
    color: var(--tbp-slate-600);
    font-size: 1.1em;
    margin: 0;
    line-height: 1.5;
}

/* -----------------------------------------
   STEP 1: FILTER BAR & TRIP CARDS
----------------------------------------- */
.tbp-filter-bar {
    margin-bottom: 35px;
    background: var(--tbp-slate-50);
    padding: 0;
}

.tbp-input-group {
    display: flex;
    flex-direction: column;
    max-width: 320px;
}

.tbp-input-group label {
    font-weight: 600;
    font-size: 0.9em;
    color: var(--tbp-slate-700);
    margin-bottom: 6px;
}

.tbp-select {
    padding: 0 0 0 15px;
    border: 1px solid #cbd5e1;
    border-radius: var(--tbp-radius-sm);
    font-size: 1em;
    color: var(--tbp-slate-800);
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tbp-select:focus {
    border-color: var(--tbp-primary);
    box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.1);
    outline: none;
}

.tbp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    margin-bottom: 0;
}

/* Container for the grid */
.tbp-cards-carousel {
    position: relative;
    display: block;
    margin-bottom: 40px;
}

.tbp-cards-scroll-viewport {
    width: 100%;
}

.tbp-cards-scroll-btn {
    display: none !important;
}

/* Trip Interactive Card Design — grid card layout */
.tbp-card {
    background-color: #d9d9d9;
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    width: 100%;
}

.tbp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.tbp-card-body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 200px;
    height: 100%;
}

.tbp-card-info {
    flex: 1 1 52%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tbp-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    min-height: 28px;
}

.tbp-card-date-badge {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 6px 12px;
    border-radius: 6px;
    line-height: 1;
}

.tbp-card-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1.5px solid #222222;
    border-radius: 6px;
    background: transparent;
    color: #222222;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tbp-card-favorite:hover,
.tbp-card-favorite.is-active {
    background-color: #222222;
    color: #ffffff;
}

.tbp-card-favorite svg {
    display: block;
}

.tbp-card-title {
    margin: 0 0 12px 0;
    font-family: var(--tbp-font-display);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
}

.tbp-card-desc {
    color: #1a1a1a;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 18px 0;
    max-width: 95%;
}

.tbp-card-price-badge {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--tbp-primary);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    margin-bottom: 22px;
}

.tbp-card-meta {
    list-style: none;
    margin: 0 0 auto 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tbp-card-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    line-height: 1.3;
}

.tbp-card-meta-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

img.tbp-card-meta-icon {
    object-fit: contain;
}

.tbp-card-meta-label {
    color: #666666;
    font-weight: 500;
}

.tbp-card-meta-value {
    color: #1a1a1a;
    font-weight: 600;
}

.tbp-card-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 24px;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--tbp-font-family);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    text-decoration: none !important;
}

.tbp-card-btn:hover {
    background-color: #1a1a1a;
}

.tbp-card-btn-arrow {
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 400;
}

.tbp-card-image {
    flex: 0 0 48%;
    max-width: 48%;
    position: relative;
    overflow: hidden;
    background-color: #c4c4c4;
}

.tbp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    transition: transform 0.5s ease;
}

.tbp-card:hover .tbp-card-image img {
    transform: scale(1.03);
}

@media (max-width: 1024px) {
    .tbp-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .tbp-grid {
        grid-template-columns: 1fr;
    }

    .tbp-card-body {
        flex-direction: column-reverse;
        min-height: 0;
    }

    .tbp-card-info {
        padding: 24px 20px;
    }

    .tbp-card-image {
        flex: none;
        max-width: 100%;
        height: 220px;
    }

    .tbp-card-image img {
        border-radius: 0;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .tbp-cards-carousel {
        margin-bottom: 20px;
    }
}

/* Spinner Loader */
.tbp-loader-spinner {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 80px 0;
    font-size: 1.1em;
    color: var(--tbp-slate-600);
    font-weight: 500;
}

/* -----------------------------------------
   STEP 2: CALENDAR & TIMING GRID
----------------------------------------- */
.tbp-scheduling-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--tbp-radius-lg);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.tbp-widget-title {
    font-family: var(--tbp-font-display);
    font-size: 1.3em;
    font-weight: 700;
    color: var(--tbp-slate-900);
    margin: 0 0 20px 0;
    border-bottom: 2px solid var(--tbp-slate-100);
    padding-bottom: 10px;
}

/* Interactive Calendar Design */
.tbp-calendar-root {
    display: flex;
    flex-direction: column;
}

.tbp-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 0 5px;
}

.tbp-calendar-header h4 {
    margin: 0;
    font-family: var(--tbp-font-display);
    font-size: 1.15em;
    font-weight: 700;
}

.tbp-calendar-nav-btn {
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
}

.tbp-calendar-nav-btn:hover {
    background-color: var(--tbp-slate-100);
}

.tbp-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.tbp-calendar-day-header {
    font-size: 0.8em;
    font-weight: 700;
    color: var(--tbp-slate-600);
    padding: 5px 0;
    text-transform: uppercase;
}

.tbp-calendar-cell {
    aspect-ratio: 1;
    border-radius: var(--tbp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.95em;
    color: var(--tbp-slate-400);
    border: 1px solid transparent;
}

/* Calendar states */
.tbp-calendar-cell.empty {
    border: none;
}

.tbp-calendar-cell.available {
    background-color: rgba(46, 196, 182, 0.08);
    color: var(--tbp-secondary);
    border-color: rgba(46, 196, 182, 0.2);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.tbp-calendar-cell.available:hover {
    background-color: var(--tbp-secondary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(46, 196, 182, 0.3);
}

.tbp-calendar-cell.selected {
    background-color: var(--tbp-primary) !important;
    color: #ffffff !important;
    border-color: var(--tbp-primary) !important;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(11, 87, 208, 0.3);
}

.tbp-calendar-cell.disabled {
    background-color: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
}

/* Time slots */
.tbp-time-slots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tbp-time-slot-btn {
    border: 2px solid #e2e8f0;
    background-color: #ffffff;
    border-radius: var(--tbp-radius-sm);
    padding: 14px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.tbp-time-slot-btn:hover {
    border-color: var(--tbp-primary);
    background-color: var(--tbp-slate-50);
}

.tbp-time-slot-btn.selected {
    border-color: var(--tbp-primary);
    background-color: rgba(11, 87, 208, 0.03);
    box-shadow: inset 0 0 0 1px var(--tbp-primary);
}

.tbp-time-slot-btn .slot-time {
    font-weight: 700;
    font-size: 1.05em;
    color: var(--tbp-slate-900);
}

.tbp-time-slot-btn .slot-capacity {
    font-size: 0.85em;
    color: var(--tbp-slate-600);
    margin-top: 3px;
}

.tbp-time-slot-btn.low-capacity .slot-capacity {
    color: var(--tbp-error);
    font-weight: 600;
}

.tbp-placeholder-text {
    color: var(--tbp-slate-600);
    text-align: center;
    padding: 40px 0;
    font-style: italic;
}

/* -----------------------------------------
   STEP 3: TRAVELER FORM ELEMENTS
----------------------------------------- */
.tbp-form {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--tbp-radius-lg);
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.tbp-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
    margin-bottom: 20px;
}

ul.tbp-card-meta {
    padding: 0 !important;
}

.tbp-form-group {
    padding-right: 12px;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
}

.tbp-form-group.col-6 {
    width: 50%;
}

.tbp-form-group.col-4 {
    width: 33.333%;
}

.tbp-form-group.col-8 {
    width: 66.666%;
}

.tbp-form-group.col-12 {
    width: 100%;
}

.tbp-form-group label {
    font-weight: 600;
    font-size: 0.92em;
    color: var(--tbp-slate-700);
    margin-bottom: 8px;
}

.tbp-form-group label .required {
    color: var(--tbp-error);
    margin-left: 2px;
}

.tbp-input {
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: var(--tbp-radius-sm);
    font-size: 1em;
    color: var(--tbp-slate-800);
    transition: all 0.25s;
    background-color: #ffffff;
}

.tbp-input:focus {
    border-color: var(--tbp-primary);
    box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.1);
    outline: none;
}

/* Slider Controls */
.tbp-capacity-config-section {
    border-top: 1px solid #e2e8f0;
    margin-top: 30px;
    padding-top: 25px;
}

.tbp-slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.tbp-slider {
    flex-grow: 1;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 5px;
    background: #cbd5e1;
    outline: none;
    cursor: pointer;
}

.tbp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tbp-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(11, 87, 208, 0.3);
    transition: transform 0.1s;
}

.tbp-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.tbp-slider-value {
    background-color: var(--tbp-slate-100);
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    min-width: 45px;
    text-align: center;
}

/* Toggle guide box */
.tbp-guide-optin-box {
    margin-top: 25px;
    background-color: rgba(46, 196, 182, 0.04);
    border: 1px dashed rgba(46, 196, 182, 0.3);
    border-radius: var(--tbp-radius-md);
    padding: 20px;
}

.tbp-guide-flex {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tbp-toggle {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tbp-guide-flex label {
    margin: 0;
    cursor: pointer;
}

.tbp-guide-flex label strong {
    display: block;
    color: var(--tbp-slate-900);
    font-size: 1.05em;
    margin-bottom: 4px;
}

.tbp-guide-flex label span {
    display: block;
    color: var(--tbp-slate-600);
    font-size: 0.9em;
    line-height: 1.4;
}

/* -----------------------------------------
   STEP 4: INVOICE & GATEWAYS
----------------------------------------- */
.tbp-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.tbp-checkout-invoice-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--tbp-radius-lg);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.tbp-checkout-invoice-card h3,
.tbp-checkout-payment-box h3 {
    font-family: var(--tbp-font-display);
    font-size: 1.3em;
    font-weight: 700;
    color: var(--tbp-slate-900);
    margin: 0 0 20px 0;
    border-bottom: 2px solid var(--tbp-slate-100);
    padding-bottom: 10px;
}

.tbp-invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.tbp-invoice-table tr {
    border-bottom: 1px solid var(--tbp-slate-100);
}

.tbp-invoice-table td {
    padding: 12px 0;
    font-size: 0.95em;
}

.tbp-invoice-table td.text-right {
    text-align: right;
    font-weight: 600;
}

.tbp-invoice-table tr.total-row {
    border-bottom: none;
    font-size: 1.15em;
    font-weight: 800;
}

.tbp-invoice-table tr.total-row td {
    padding-top: 20px;
}

.tbp-invoice-table tr.total-row td.text-right {
    color: var(--tbp-success);
    font-size: 1.25em;
}

/* Payment panel */
.tbp-checkout-payment-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--tbp-radius-lg);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.tbp-gateway-selectors {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.tbp-gateway-label {
    flex: 1;
    border: 2px solid #cbd5e1;
    border-radius: var(--tbp-radius-sm);
    padding: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.tbp-gateway-label input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.tbp-gateway-label.active {
    border-color: var(--tbp-primary);
    background-color: rgba(11, 87, 208, 0.02);
}

.gateway-icon-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gateway-icon-title .dashicons {
    color: var(--tbp-slate-600);
}

.tbp-gateway-label.active .gateway-icon-title .dashicons {
    color: var(--tbp-primary);
}

.tbp-gateway-card-panel {
    background-color: var(--tbp-slate-50);
    border: 1px solid #e2e8f0;
    border-radius: var(--tbp-radius-sm);
    padding: 24px;
}

/* Stripe elements */
#tbp-card-element-mount {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--tbp-radius-sm);
    padding: 14px;
    margin-bottom: 20px;
}

.tbp-payment-error-msg {
    color: var(--tbp-error);
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 15px;
}

/* -----------------------------------------
   STICKY LIVE PRICE DRAW
----------------------------------------- */
.tbp-sticky-pricing {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 900px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: var(--tbp-radius-lg);
    padding: 16px 24px;
    z-index: 99;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUpSticky 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpSticky {
    from {
        transform: translate(-50%, 80px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.tbp-sticky-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tbp-sticky-text {
    display: flex;
    flex-direction: column;
}

.tbp-sticky-selected-trip-name {
    color: var(--tbp-slate-400);
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tbp-sticky-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 3px;
}

.tbp-sticky-total-price-label {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 600;
}

.tbp-sticky-price-value {
    color: var(--tbp-secondary);
    font-size: 1.8em;
    font-weight: 900;
    font-family: var(--tbp-font-display);
}

/* -----------------------------------------
   MODAL DIALOG (STEP 1 DETAILS VIEW)
----------------------------------------- */
.tbp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tbp-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.tbp-modal-body {
    background-color: #ffffff;
    border-radius: var(--tbp-radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    padding: 35px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tbp-modal-overlay.active .tbp-modal-body {
    transform: scale(1);
}

.tbp-icon-close-btn,
.tbp-modal-close,
.tbp-product-cart-close {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    margin: 0;
    border: none !important;
    border-radius: 50% !important;
    background: #e8e8e8 !important;
    color: #1a1a1a !important;
    font-family: inherit;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tbp-icon-close-btn:hover,
.tbp-icon-close-btn:focus-visible,
.tbp-modal-close:hover,
.tbp-modal-close:focus-visible,
.tbp-product-cart-close:hover,
.tbp-product-cart-close:focus-visible {
    background: #d4d4d4 !important;
    color: #000000 !important;
}

.tbp-modal-scrollable-content {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 10px;
}

/* Modal Content Design Elements */
.tbp-modal-cover-img {
    height: 300px;
    border-radius: var(--tbp-radius-md);
    overflow: hidden;
    margin-bottom: 25px;
}

.tbp-modal-cover-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tbp-modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
}

.tbp-modal-title-row h2 {
    font-family: var(--tbp-font-display);
    font-size: 1.8em;
    font-weight: 800;
    margin: 0;
}

.tbp-modal-price {
    font-family: var(--tbp-font-display);
    font-size: 1.6em;
    font-weight: 900;
    color: var(--tbp-primary);
}

.tbp-modal-description {
    color: var(--tbp-slate-700);
    line-height: 1.6;
    font-size: 1em;
    margin-bottom: 30px;
}

/* WooCommerce Add-ons list inside modal */
.tbp-modal-addons-section {
    border-top: 2px solid var(--tbp-slate-100);
    padding-top: 25px;
    margin-top: 25px;
}

.tbp-modal-addons-section h3 {
    font-family: var(--tbp-font-display);
    font-size: 1.25em;
    font-weight: 700;
    color: var(--tbp-slate-900);
    margin: 0 0 15px 0;
}

.tbp-addon-item {
    background-color: var(--tbp-slate-50);
    border: 1px solid #e2e8f0;
    border-radius: var(--tbp-radius-md);
    padding: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.tbp-addon-item:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.tbp-addon-img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--tbp-slate-100);
}

.tbp-addon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tbp-addon-info {
    flex-grow: 1;
}

.tbp-addon-info h4 {
    margin: 0 0 4px 0;
    font-weight: 600;
    color: var(--tbp-slate-900);
}

.tbp-addon-price {
    font-weight: 700;
    color: var(--tbp-primary);
}

/* Variations Selector */
.tbp-addon-variation-selectors {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tbp-variation-select-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tbp-variation-select-group label {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--tbp-slate-600);
}

.tbp-addon-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background-color: #ffffff;
    overflow: hidden;
}

.tbp-addon-qty-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.tbp-addon-qty-btn:hover {
    background-color: var(--tbp-slate-100);
}

.tbp-addon-qty-val {
    width: 35px;
    text-align: center;
    font-weight: 700;
    border-left: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
    font-size: 0.95em;
}

/* Modal Select and Continue Cta */
.tbp-modal-action-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

/* -----------------------------------------
   BRANDED SUCCESS OVERLAY
----------------------------------------- */
.success-modal {
    background-color: rgba(15, 23, 42, 0.75);
}

.success-body {
    max-width: 460px;
    text-align: center;
    padding: 40px;
}

.tbp-success-check-badge {
    width: 70px;
    height: 70px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--tbp-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.tbp-success-check-badge .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.success-body h2 {
    font-family: var(--tbp-font-display);
    font-weight: 900;
    font-size: 1.8em;
    margin: 0 0 10px 0;
    color: var(--tbp-slate-900);
}

.tbp-success-msg {
    color: var(--tbp-slate-600);
    margin-bottom: 25px;
    line-height: 1.5;
}

.tbp-success-receipt-card {
    background-color: var(--tbp-slate-50);
    border: 1px dashed #cbd5e1;
    border-radius: var(--tbp-radius-md);
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

/* -----------------------------------------
   GENERAL BUTTONS
----------------------------------------- */
.tbp-btn {
    font-family: var(--tbp-font-display);
    font-weight: 700;
    font-size: 1em;
    padding: 12px 24px;
    border-radius: var(--tbp-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tbp-btn-primary {
    background-color: var(--tbp-primary);
    color: #ffffff;
}

.tbp-btn-primary:hover:not(:disabled) {
    background-color: var(--tbp-primary-hover);
    box-shadow: 0 4px 12px rgba(11, 87, 208, 0.2);
}

.tbp-btn-secondary {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: var(--tbp-slate-700);
}

.tbp-btn-secondary:hover:not(:disabled) {
    background-color: var(--tbp-slate-100);
    border-color: #94a3b8;
}

.tbp-btn-block {
    display: flex;
    width: 100%;
}

.tbp-btn:disabled {
    background-color: #e2e8f0;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Footer layout */
.tbp-actions-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* -----------------------------------------
   RESPONSIVENESS MEDIA QUERIES
----------------------------------------- */
@media (max-width: 900px) {

    .tbp-scheduling-layout,
    .tbp-checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {

    .tbp-form-group.col-6,
    .tbp-form-group.col-4,
    .tbp-form-group.col-8 {
        width: 100%;
        margin-bottom: 15px;
    }

    .tbp-form-row {
        margin-bottom: 0;
    }

    .tbp-progress-steps {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .tbp-step-line {
        display: none;
    }

    .tbp-step-indicator {
        min-width: 70px;
    }
}

/* -----------------------------------------
   BOOKING PAGE: CHECK AVAILABILITY LAYOUT
----------------------------------------- */
.tbp-has-preselected-trip {
    max-width: 1320px;
}

.tbp-has-preselected-trip .tbp-progress-header {
    margin-bottom: 48px;
}

.tbp-booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: start;
    margin-bottom: 40px;
}

.tbp-booking-trip-title {
    font-family: var(--tbp-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--tbp-slate-900);
    margin: 0 0 20px;
}

.tbp-booking-trip-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--tbp-slate-700);
    margin: 0 0 32px;
    max-width: 520px;
}

.tbp-booking-quick-info {
    list-style: none;
    margin: 0;
    padding: 0 !important;
}

.tbp-booking-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
    border-top: 1px solid #d9d9d9;
    font-size: 12px;
}

.tbp-booking-info-row:last-child {
    border-bottom: 1px solid #d9d9d9;
}

.tbp-booking-info-label {
    color: var(--tbp-slate-700);
}

.tbp-booking-info-value {
    font-weight: 700;
    color: var(--tbp-slate-900);
    text-align: right;
}

.tbp-booking-scheduler-card {
    background: #ececec;
    border-radius: 20px;
    padding: 28px 24px;
}

.tbp-booking-scheduler-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 1px minmax(0, 0.8fr);
    gap: 24px;
    align-items: start;
}

.tbp-booking-scheduler-divider {
    width: 1px;
    background: #c9c9c9;
    min-height: 100%;
}

.tbp-booking-scheduler-heading {
    font-family: var(--tbp-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--tbp-slate-900);
    margin: 0 0 18px;
}

.tbp-availability-view .tbp-calendar-header {
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.tbp-availability-view .tbp-calendar-selects {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tbp-availability-view .tbp-calendar-month-select,
.tbp-availability-view .tbp-calendar-year-select {
    appearance: none;
    border: none;
    background: transparent;
    font-family: var(--tbp-font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--tbp-slate-900);
    cursor: pointer;
    padding: 4px 8px;
}

.tbp-availability-view .tbp-calendar-nav-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--tbp-slate-900);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tbp-availability-view .tbp-calendar-nav-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.tbp-availability-view .tbp-calendar-grid {
    gap: 6px;
}

.tbp-availability-view .tbp-calendar-day-header {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--tbp-slate-600);
    text-transform: none;
}

.tbp-availability-view .tbp-calendar-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tbp-availability-view .tbp-calendar-cell.available {
    background: transparent;
    color: var(--tbp-slate-900);
    border-color: transparent;
}

.tbp-availability-view .tbp-calendar-cell.available:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--tbp-slate-900);
    box-shadow: none;
}

.tbp-availability-view .tbp-calendar-cell.selected {
    background-color: #333333 !important;
    color: #ffffff !important;
    border-color: #333333 !important;
    box-shadow: none;
}

.tbp-availability-view .tbp-calendar-cell.disabled {
    background: transparent;
    color: #b8b8b8;
}

.tbp-availability-view .tbp-time-slots-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tbp-booking-time-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: #d9d9d9;
    color: var(--tbp-slate-900);
    font-family: var(--tbp-font-family);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tbp-booking-time-slot:hover {
    background: #cfcfcf;
}

.tbp-booking-time-slot.selected {
    background: #333333;
    color: #ffffff;
}

.tbp-availability-view .tbp-placeholder-text {
    padding: 24px 0;
    font-style: normal;
    text-align: left;
    color: var(--tbp-slate-600);
}

.tbp-booking-step-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 8px;
}

.tbp-booking-login-prompt {
    margin: 0;
    font-size: 0.95rem;
    color: var(--tbp-slate-700);
}

.tbp-booking-login-link {
    color: var(--tbp-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tbp-booking-login-link:hover {
    color: var(--tbp-primary-hover);
}

.tbp-booking-next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 180px;
    min-height: 52px;
    padding: 0 28px;
    border: none;
    border-radius: 6px;
    background: #000000;
    color: #ffffff;
    font-family: var(--tbp-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.tbp-booking-next-btn:hover:not(:disabled) {
    background: #1a1a1a;
}

.tbp-booking-next-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tbp-booking-next-arrow {
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 992px) {
    .tbp-booking-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tbp-booking-scheduler-inner {
        grid-template-columns: 1fr;
    }

    .tbp-booking-scheduler-divider {
        display: none;
    }
}

@media (max-width: 640px) {
    .tbp-booking-step-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .tbp-booking-next-btn {
        width: 100%;
    }
}

/* -----------------------------------------
   TRIP OPTIONS PAGE (STEP 2)
----------------------------------------- */
.tbp-options-layout {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: clamp(24px, 3vw, 40px);
}

.tbp-options-main {
    width: 70%;
    max-width: 70%;
    flex: 0 1 80%;
    min-width: 0;
}

.tbp-options-section {
    margin-bottom: 40px;
    width: 90%;
}

.tbp-options-section-title {
    font-family: var(--tbp-font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--tbp-slate-900);
    margin: 0 0 20px;
}

.tbp-people-section {
    margin-bottom: 40px;
}

.tbp-people-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: nowrap;
}

.tbp-people-row .tbp-options-section-title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.tbp-people-row .tbp-people-stepper {
    flex: 0 0 auto;
    margin-left: auto;
}

.tbp-people-divider {
    display: block;
    width: 100%;
    height: 0;
    margin: 18px 0 12px;
    padding: 0;
    border: 0;
    border-top: 1px solid #d9d9d9;
    background: transparent;
}

.tbp-options-subtitle {
    font-family: var(--tbp-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--tbp-slate-900);
}

.tbp-options-desc {
    margin: 0 0 18px;
    color: var(--tbp-slate-600);
    line-height: 1.6;
    max-width: 720px;
}

.tbp-people-stepper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}

.tbp-people-step-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.tbp-people-step-btn--minus {
    border: none;
    background: #e3e3e3;
    color: #1a1a1a;
}

.tbp-people-step-btn--minus:hover:not(:disabled) {
    background: #d4d4d4;
}

.tbp-people-step-btn--plus {
    border: 1.5px solid #1a1a1a;
    background: #ffffff;
    color: #1a1a1a;
}

.tbp-people-step-btn--plus:hover:not(:disabled),
.tbp-people-step-btn--plus:focus-visible:not(:disabled) {
    background: #f5f5f5 !important;
    border-color: #1a1a1a !important;
    color: #1a1a1a !important;
}

.tbp-people-step-btn--minus:hover:not(:disabled),
.tbp-people-step-btn--minus:focus-visible:not(:disabled) {
    background: #d4d4d4 !important;
    color: #1a1a1a !important;
}

.tbp-people-step-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.tbp-people-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 44px;
    padding: 0 18px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    background: #ffffff;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    box-sizing: border-box;
}

.tbp-capacity-note {
    display: block;
    margin-top: 0;
    font-size: 0.88rem;
    color: var(--tbp-slate-600);
}

.tbp-options-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.tbp-filter-pill {
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    background: #ececec;
    color: var(--tbp-slate-800);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tbp-filter-pill.is-active {
    background: #000;
    color: #fff;
}

.tbp-options-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tbp-option-product-card {
    background: #D9D9D9;
    border: 1px solid #D9D9D9;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tbp-option-product-card.is-selected {
    border-color: var(--tbp-primary);
    box-shadow: 0 8px 24px rgba(254, 125, 33, 0.12);
}

.tbp-option-product-image {
    aspect-ratio: 1.15;
    background: #D9D9D9;
    overflow: hidden;
}

.tbp-option-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tbp-option-product-body {
    padding: 16px 16px 0 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tbp-option-product-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tbp-slate-900);
}

.tbp-option-product-desc {
    margin: 0 0 12px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--tbp-slate-600);
    flex: 1;
}

.tbp-option-variations {
    display: none !important;
}

.tbp-option-variation-select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.85rem;
    background: #fff;
}

.tbp-option-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.tbp-option-product-price {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--tbp-slate-900);
}

.tbp-option-add-btn {
    width: auto;
    height: auto;
    padding: 6px;
    border: none;
    border-radius: 2px;
    background: transparent;
    color: var(--tbp-slate-900);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 0;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    box-shadow: none !important;
}

.tbp-option-add-btn .tbp-option-cart-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.tbp-option-product-card:hover .tbp-option-add-btn,
.tbp-option-add-btn:hover,
.tbp-option-add-btn:focus-visible {
    background: var(--tbp-primary, #d75327) !important;
    border-radius: 6px;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.tbp-option-product-card.is-selected .tbp-option-add-btn {
    background: var(--tbp-primary, #d75327);
    border-radius: 2px;
    color: #ffffff !important;
}

/* Product add-to-cart popup (Trip options) */
.tbp-product-cart-overlay {
    z-index: 100050;
    padding: 24px 16px;
}

.tbp-product-cart-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.tbp-product-cart-dialog {
    position: relative;
    width: min(100%, 640px);
    max-height: calc(100vh - 48px);
    background: #ECF0F1;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

/* Row 1: image + product info */
.tbp-product-cart-header {
    display: grid;
    grid-template-columns: minmax(140px, 42%) 1fr;
    gap: 20px;
    padding: 20px 22px 16px;
    align-items: stretch;
}

.tbp-product-cart-media {
    border-radius: 12px;
    background: #D9D9D9;
    overflow: hidden;
    min-height: 160px;
}

.tbp-product-cart-media img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    display: block;
}

.tbp-product-cart-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-right: 28px;
}

.tbp-product-cart-main h3 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--tbp-slate-900);
    line-height: 1.25;
}

.tbp-product-cart-desc {
    margin: 0 0 auto;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--tbp-slate-500);
    flex: 1;
}

.tbp-product-cart-price {
    margin: 16px 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tbp-primary, #fe7d21);
}

/* Row 2: meal options */
.tbp-product-cart-meals-panel {
    padding: 0 22px 16px;
}

.tbp-product-cart-meals {
    background: #D9D9D9;
    border-radius: 14px;
    padding: 16px 18px;
}

.tbp-product-cart-meals-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.tbp-product-cart-meals-title {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tbp-slate-900);
    margin-bottom: 0;
}

.tbp-product-cart-meals-hint {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--tbp-slate-500);
}

.tbp-product-cart-meals-badge {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 4px;
    background: var(--tbp-primary, #fe7d21);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.tbp-product-cart-variation-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid #e0e0e0;
}

.tbp-product-cart-variation-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s ease;
}

.tbp-product-cart-variation-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tbp-product-cart-variation-row:first-of-type {
    padding-top: 14px;
}

.tbp-product-cart-variation-row:hover {
    background: rgba(255, 255, 255, 0.45);
}

.tbp-product-cart-variation-row__title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--tbp-slate-900);
    line-height: 1.4;
}

.tbp-product-cart-variation-row__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.tbp-product-cart-variation-row__price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tbp-slate-900);
    white-space: nowrap;
}

.tbp-product-cart-variation-row__check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #9ca3af;
    background: #fff;
    color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tbp-product-cart-variation-row.is-selected .tbp-product-cart-variation-row__check {
    border-color: #111;
    background: #111;
    color: #fff;
}

.tbp-product-cart-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px 20px;
    background: #f0f0f0;
    border-top: 1px solid #e5e5e5;
}

.tbp-product-cart-footer .tbp-product-cart-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tbp-product-cart-qty-btn {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #1a1a1a !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
}

.tbp-product-cart-qty-btn:hover:not(:disabled),
.tbp-product-cart-qty-btn:focus-visible:not(:disabled),
#tbp-product-cart-modal .tbp-product-cart-qty-btn:hover:not(:disabled),
#tbp-product-cart-modal .tbp-product-cart-qty-btn:focus-visible:not(:disabled) {
    background: #f3f3f3 !important;
    border-color: #1a1a1a !important;
    color: #1a1a1a !important;
}

#trip-booking-wizard-container .tbp-people-step-btn:hover:not(:disabled),
#trip-booking-wizard-container .tbp-people-step-btn:focus-visible:not(:disabled) {
    color: #1a1a1a !important;
}

.tbp-product-cart-qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.tbp-product-cart-qty-val {
    min-width: 36px;
    height: 40px;
    padding: 0 10px;
    border: 1.5px solid #111;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

.tbp-product-cart-btn {
    flex: 1;
    min-width: 0;
    height: 44px;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tbp-product-cart-btn--outline,
.tbp-product-cart-btn--outline:hover,
.tbp-product-cart-btn--outline:focus-visible {
    border: 1.5px solid #111111 !important;
    background: #ffffff !important;
    color: #111111 !important;
}

.tbp-product-cart-btn--outline:hover,
.tbp-product-cart-btn--outline:focus-visible {
    background: #f3f3f3 !important;
    color: #111111 !important;
}

@media (max-width: 768px) {
    .tbp-product-cart-dialog {
        width: min(100%, 560px);
        border-radius: 16px;
    }

    .tbp-icon-close-btn,
    .tbp-modal-close,
    .tbp-product-cart-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .tbp-product-cart-header {
        grid-template-columns: 1fr;
        padding: 18px 18px 14px;
    }

    .tbp-product-cart-media {
        min-height: 200px;
    }

    .tbp-product-cart-main {
        padding-right: 0;
    }

    .tbp-product-cart-meals-panel {
        padding: 0 18px 14px;
    }

    .tbp-product-cart-footer {
        flex-wrap: wrap;
        padding: 14px 18px 18px;
    }

    .tbp-product-cart-footer .tbp-product-cart-qty {
        width: 100%;
        justify-content: center;
    }

    #tbp-product-cart-add {
        width: 100%;
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .tbp-product-cart-overlay {
        padding: 12px;
    }

    .tbp-product-cart-dialog {
        max-height: calc(100vh - 24px);
    }

    .tbp-product-cart-main h3 {
        font-size: 1.15rem;
    }
}

.tbp-guide-message {
    width: 100%;
    min-height: 140px;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    padding: 16px 18px;
    font-family: var(--tbp-font-family);
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    background: #fff;
}

.tbp-guide-message:focus {
    outline: none;
    border-color: #999;
}

.tbp-options-footer {
    margin-top: 12px;
    padding-top: 8px;
}

.tbp-options-nav-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tbp-booking-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 150px;
    min-height: 52px;
    padding: 0 24px;
    border: 1.5px solid #000;
    border-radius: 6px;
    background: #fff;
    color: #000;
    font-family: var(--tbp-font-display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tbp-booking-back-btn:hover {
    background: #f5f5f5;
}

.tbp-options-summary {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 40%;
    min-width: min(100%, 280px);
    max-width: 400px;
}

.tbp-options-summary-card {
    background: #D9D9D9;
    border-radius: 20px;
    padding: 24px 22px;
}

.tbp-summary-policy-card {
    background: #f3f3f3;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 6px 20px;
}

.tbp-summary-policy-list {
    list-style: none;
    margin: 0;
    padding: 0 !important;
}

.tbp-summary-policy-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 11px;
    line-height: 1.35;
    color: #1a1a1a;
}

.tbp-summary-policy-item:last-child {
    margin-bottom: 0;
}

.tbp-summary-policy-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.tbp-summary-trip-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    justify-content: space-between;
    flex-direction: row-reverse;
    border-bottom: 1px solid black;
    padding-bottom: 1em;
}

.tbp-summary-trip-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #ddd;
}

.tbp-summary-trip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tbp-summary-trip-title {
    margin: 0;
    font-family: var(--tbp-font-display);
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--tbp-slate-900);
}

.tbp-summary-meta {
    list-style: none;
    margin: 0 0 20px;
    padding: 0 !important;
}

.tbp-summary-meta li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0;
    padding: 14px 0 5px 0;
    font-size: 12px;
    flex-direction: column;
}

.tbp-summary-meta li span {
    color: var(--tbp-slate-600);
}

.tbp-summary-meta li strong {
    text-align: right;
    color: var(--tbp-slate-900);
    font-weight: 700;
}

.tbp-summary-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 0;
    border-top: 1px solid black;
    font-size: 1rem;
    font-weight: 700;
}

.tbp-summary-addons {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #d4d4d4;
}

.tbp-summary-addon-group + .tbp-summary-addon-group {
    margin-top: 14px;
}

.tbp-summary-addon-category {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 0 !important;
}

.tbp-summary-addon-list {
    list-style: none;
    margin: 0;
    padding: 0 !important;
    margin-top: 0.5em !important;
}

.tbp-summary-addon-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 6px;
    font-size: 11px;
    line-height: 1.35;
    color: #1a1a1a;
}

.tbp-summary-addon-item:last-child {
    margin-bottom: 0;
}

.tbp-summary-addon-name {
    flex: 1 1 auto;
    min-width: 0;
}

.tbp-summary-addon-qty {
    flex-shrink: 0;
    font-weight: 700;
    white-space: nowrap;
}

.tbp-checkout-traveler-form {
    margin-bottom: 28px;
}

@media (max-width: 1280px) {
    .tbp-options-main {
        width: 70%;
        max-width: 70%;
        flex-basis: 70%;
    }
}

@media (max-width: 1100px) {
    .tbp-options-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tbp-options-layout {
        flex-direction: column;
    }

    .tbp-options-main {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
    }

    .tbp-options-section {
        width: 100%;
    }

    .tbp-options-summary {
        position: static;
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
    }
}

@media (max-width: 640px) {
    .tbp-options-product-grid {
        grid-template-columns: 1fr;
    }

    .tbp-people-row {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .tbp-people-row .tbp-options-section-title {
        font-size: 1.25rem;
        flex: 1 1 auto;
    }

    .tbp-people-stepper {
        gap: 10px;
    }

    .tbp-people-step-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .tbp-people-count {
        min-width: 48px;
        height: 40px;
        padding: 0 14px;
        font-size: 0.95rem;
    }

    .tbp-options-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .tbp-options-nav-buttons {
        flex-direction: column;
        width: 100%;
    }

    .tbp-booking-back-btn,
    .tbp-options-nav-buttons .tbp-booking-next-btn {
        width: 100%;
    }
}

/* -----------------------------------------
   CHECKOUT PAGE (STEP 3)
----------------------------------------- */
.tbp-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 40px;
    align-items: start;
}

.tbp-checkout-main {
    min-width: 0;
}

.tbp-checkout-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tbp-checkout-section-title {
    font-family: var(--tbp-font-display);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--tbp-slate-900);
    margin: 0 0 24px;
}

.tbp-checkout-section-head .tbp-checkout-section-title {
    margin: 0;
}

.tbp-checkout-login-prompt {
    margin: 0;
    font-size: 0.92rem;
    color: var(--tbp-slate-700);
}

.tbp-checkout-fields .tbp-form-row {
    margin-bottom: 16px;
}

.tbp-checkout-input,
.tbp-checkout-form .tbp-input {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    min-height: 48px;
}

.tbp-checkout-checkboxes {
    display: grid;
    gap: 14px;
    margin: 28px 0 36px;
}

.tbp-checkout-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--tbp-slate-700);
    cursor: pointer;
}

.tbp-checkout-checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
}

.tbp-checkout-payment-section {
    margin-bottom: 32px;
}

.tbp-checkout-payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tbp-checkout-payment-header .tbp-checkout-section-title {
    margin-bottom: 0;
}

.tbp-card-brands {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tbp-card-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.tbp-card-brand svg {
    display: block;
    width: 100%;
    height: 100%;
}

.tbp-checkout-card-form {
    margin-top: 0;
}

.tbp-checkout-card-note {
    margin: 0 0 16px;
    color: var(--tbp-slate-500, #64748b);
    font-size: 0.9rem;
}

.tbp-checkout-payment-options {
    display: grid;
    gap: 0;
}

.tbp-checkout-payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.tbp-checkout-payment-option input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
}

.tbp-checkout-payment-option-label {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tbp-slate-900);
}

.tbp-checkout-payment-option.is-active {
    border-color: #111;
    background: #fff;
}

.tbp-checkout-payment-option--wallet {
    min-height: 64px;
}

.tbp-wallet-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ddd;
    font-size: 0.78rem;
    font-weight: 700;
    color: #111;
    flex-shrink: 0;
}

.tbp-wallet-badge--apple {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.tbp-wallet-badge--google {
    color: #5f6368;
}

.tbp-wallet-badge--paypal {
    color: #003087;
}

.tbp-checkout-payment-panel {
    margin: -4px 0 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.tbp-stripe-field {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    min-height: 48px;
}

.tbp-wallet-panel {
    text-align: center;
}

.tbp-wallet-note {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: var(--tbp-slate-600);
}

.tbp-checkout-footer {
    margin-top: 8px;
    padding-top: 0;
}

.tbp-checkout-footer .tbp-options-nav-buttons {
    justify-content: flex-start;
}

#tbp-confirm-pay-btn {
    min-width: 220px;
}

.tbp-checkout-summary {
    position: sticky;
    top: 24px;
}

@media (max-width: 1100px) {
    .tbp-checkout-layout {
        grid-template-columns: 1fr;
    }

    .tbp-checkout-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .tbp-checkout-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tbp-checkout-footer .tbp-options-nav-buttons {
        flex-direction: column;
        width: 100%;
    }

    #tbp-confirm-pay-btn,
    .tbp-checkout-footer .tbp-booking-back-btn {
        width: 100%;
    }
}

/* -----------------------------------------
   CONFIRMATION PAGE (STEP 4)
----------------------------------------- */
.tbp-confirmation-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 0 60px;
    text-align: center;
}

.tbp-confirmation-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.28);
}

.tbp-confirmation-title {
    font-family: var(--tbp-font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--tbp-slate-900);
    margin: 0 0 16px;
}

.tbp-confirmation-subtitle {
    max-width: 520px;
    margin: 0 auto 36px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--tbp-slate-600);
}

.tbp-confirmation-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 8px 28px;
    margin-bottom: 32px;
    text-align: left;
}

.tbp-confirmation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.95rem;
}

.tbp-confirmation-row:last-child {
    border-bottom: none;
}

.tbp-confirmation-row--dotted {
    border-bottom-style: dotted;
    border-bottom-color: #bdbdbd;
}

.tbp-confirmation-row span {
    color: var(--tbp-slate-600);
}

.tbp-confirmation-row strong {
    color: var(--tbp-slate-900);
    font-weight: 700;
    text-align: right;
}

.tbp-confirmation-addons {
    padding: 12px 0 4px;
    border-bottom: 1px solid #e5e5e5;
}

.tbp-confirmation-addon-group + .tbp-confirmation-addon-group {
    margin-top: 12px;
}

.tbp-confirmation-addon-category {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--tbp-slate-900);
}

.tbp-confirmation-addon-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 6px;
    font-size: 0.82rem;
    color: var(--tbp-slate-700);
}

.tbp-confirmation-addon-item:last-child {
    margin-bottom: 0;
}

.tbp-confirmation-addon-item strong {
    font-weight: 700;
    color: var(--tbp-slate-900);
    white-space: nowrap;
}

.tbp-confirmation-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    min-height: 56px;
    padding: 0 28px;
    border: none;
    border-radius: 6px;
    background: #000;
    color: #fff;
    font-family: var(--tbp-font-display);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tbp-confirmation-download-btn:hover {
    background: #1a1a1a;
}

@media (max-width: 640px) {
    .tbp-confirmation-card {
        padding: 8px 18px;
    }

    .tbp-confirmation-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .tbp-confirmation-row strong {
        text-align: left;
    }
}