/* ── PRICE CARD ─────────────────────────────────────────────── */
.tb-price-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    position: relative;
}
.tb-badge {
    display: inline-block;
    background: #f5a623;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.tb-prices {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
}
.tb-price-group { display: flex; flex-direction: column; gap: 4px; }
.tb-from { font-size: 13px; color: #888; }
.tb-from s { color: #e74c3c; }
.tb-main-price { font-size: 22px; color: #111; }
.tb-main-price strong { font-size: 26px; font-weight: 800; }
.tb-cta-btn {
    width: 100%;
    background: #f5a623;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.tb-cta-btn:hover { background: #e09510; transform: translateY(-1px); }
.tb-help { font-size: 13px; color: #888; text-align: center; margin-top: 12px; }
.tb-help a { color: #3498db; text-decoration: none; }

/* ── OVERLAY ────────────────────────────────────────────────── */
.tb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99998;
    align-items: center;
    justify-content: center;
}
.tb-overlay.active { display: flex; }

/* ── MODAL ──────────────────────────────────────────────────── */
.tb-modal {
    background: #fff;
    border-radius: 16px;
    width: 95%;
    max-width: 1100px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.tb-modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none; border: none;
    font-size: 22px; cursor: pointer;
    color: #555; z-index: 10;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background .2s;
}
.tb-modal-close:hover { background: #f0f0f0; }

/* ── MODAL TABS ─────────────────────────────────────────────── */
.tb-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0 24px;
}
.tb-tab {
    display: flex; align-items: center; gap: 8px;
    padding: 18px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #aaa;
    cursor: default;
    position: relative;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.tb-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
}
.tb-tab svg { width: 18px; height: 18px; }

/* ── MODAL BODY ─────────────────────────────────────────────── */
.tb-modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.tb-modal-main {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
}
.tb-modal-summary {
    width: 300px;
    background: #f4f8ff;
    padding: 28px 24px;
    border-left: 1px solid #e0ecff;
    overflow-y: auto;
    flex-shrink: 0;
}
.tb-modal-summary h3 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 16px;
}
.tb-summary-tour { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 8px; }
.tb-summary-date { font-size: 13px; color: #555; margin-bottom: 16px; }
.tb-summary-date strong { color: #111; }
.tb-summary-pkg {
    display: inline-block;
    background: #3498db;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.tb-summary-divider { border: none; border-top: 1px solid #dce8ff; margin: 16px 0; }
.tb-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
    color: #555;
}
.tb-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin-top: 12px;
}

/* ── CALENDAR ───────────────────────────────────────────────── */
.tb-calendar { max-width: 700px; margin: 0 auto; }
.tb-cal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}
.tb-cal-header select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
}
.tb-cal-nav {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 36px; height: 36px;
    cursor: pointer;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.tb-cal-nav:hover { background: #e8e8e8; }
.tb-cal-grid { border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.tb-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #fafafa;
    border-bottom: 1px solid #eee;
}
.tb-cal-weekday {
    text-align: center;
    padding: 12px 0;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    letter-spacing: .5px;
}
.tb-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.tb-cal-day {
    text-align: center;
    padding: 14px 0;
    font-size: 14px;
    cursor: pointer;
    color: #111;
    border: 1px solid #f5f5f5;
    transition: background .15s;
}
.tb-cal-day:hover:not(.tb-cal-empty):not(.tb-cal-past) { background: #edf5ff; color: #3498db; }
.tb-cal-day.tb-cal-empty { background: transparent; cursor: default; }
.tb-cal-day.tb-cal-past { color: #ccc; cursor: not-allowed; }
.tb-cal-day.tb-cal-selected { background: #3498db !important; color: #fff !important; border-radius: 4px; font-weight: 700; }

/* ── TRAVELLERS ─────────────────────────────────────────────── */
.tb-traveller-header {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #aaa;
    text-transform: uppercase;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}
.tb-traveller-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
}
.tb-traveller-label { font-size: 16px; font-weight: 700; color: #111; }
.tb-traveller-price { font-size: 13px; color: #555; margin-top: 2px; }
.tb-traveller-price s { color: #aaa; }
.tb-qty-control { display: flex; align-items: center; gap: 12px; }
.tb-qty-btn {
    width: 34px; height: 34px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f5f5f5;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.tb-qty-btn:hover { background: #e0e0e0; }
.tb-qty-val { font-size: 16px; font-weight: 700; min-width: 20px; text-align: center; }

/* ── CHECKOUT PAGE ──────────────────────────────────────────── */
.tb-checkout-page {
    display: none;
    background: #f9f9f9;
    min-height: 100vh;
    padding: 0 0 60px;
}
.tb-checkout-page.active { display: block; }
.tb-checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 28px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-bottom: 32px;
}
.tb-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #aaa;
}
.tb-step.done { color: #27ae60; }
.tb-step.active { color: #3498db; }
.tb-step-circle {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}
.tb-step.done .tb-step-circle { background: #27ae60; border-color: #27ae60; color: #fff; }
.tb-step.active .tb-step-circle { border-color: #3498db; color: #3498db; }
.tb-step-line { width: 80px; height: 2px; background: #eee; margin: 0 4px; }
.tb-step-line.done { background: #27ae60; }

.tb-checkout-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}
.tb-checkout-left {}
.tb-section-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
}
.tb-section-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tb-field { display: flex; flex-direction: column; gap: 6px; }
.tb-field label { font-size: 12px; font-weight: 600; color: #888; }
.tb-field input, .tb-field select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #111;
    transition: border .2s;
    width: 100%;
    box-sizing: border-box;
}
.tb-field input:focus, .tb-field select:focus {
    outline: none;
    border-color: #3498db;
}
.tb-ssl-notice {
    background: #f0fff4;
    border: 1px solid #b2dfdb;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13px;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.tb-payment-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border .2s;
}
.tb-payment-option:has(input:checked) { border-color: #3498db; background: #f0f7ff; }
.tb-payment-option label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.tb-payment-option img { height: 24px; }
.tb-terms { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; font-size: 13px; color: #555; }
.tb-terms a { color: #3498db; }
.tb-confirm-btn {
    width: 100%;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.tb-confirm-btn:hover { background: #2980b9; }
.tb-confirm-btn:disabled { background: #aaa; cursor: not-allowed; }

/* ── ORDER SUMMARY SIDEBAR ──────────────────────────────────── */
.tb-order-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 20px;
}
.tb-order-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 20px;
    display: flex;
    justify-content: space-between;
}
.tb-order-row { display: flex; justify-content: space-between; font-size: 13px; color: #555; margin-bottom: 8px; }
.tb-order-row strong { color: #111; }
.tb-order-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 800;
    color: #111;
    border-top: 2px solid #eee;
    padding-top: 14px;
    margin-top: 10px;
}

/* ── MODAL FOOTER ───────────────────────────────────────────── */
.tb-modal-footer {
    padding: 20px 28px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}
.tb-btn-back {
    background: none;
    border: none;
    color: #3498db;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tb-btn-continue {
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.tb-btn-continue:hover { background: #2980b9; }

/* ── SUCCESS ────────────────────────────────────────────────── */
.tb-success {
    text-align: center;
    padding: 60px 20px;
}
.tb-success-icon { font-size: 64px; margin-bottom: 16px; }
.tb-success h2 { font-size: 24px; font-weight: 800; color: #27ae60; margin-bottom: 8px; }
.tb-success p { color: #555; font-size: 15px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tb-modal-summary { display: none; }
    .tb-checkout-inner { grid-template-columns: 1fr; }
    .tb-form-grid { grid-template-columns: 1fr; }
    .tb-prices { flex-direction: column; gap: 12px; }
    .tb-modal { max-height: 100vh; border-radius: 0; }
}

/* ── THANK YOU POPUP ────────────────────────────────────────────────────────── */
.tb-thankyou-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tb-thankyou-modal {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px 36px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 32px 80px rgba(0,0,0,.22);
    animation: tb-pop .35s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes tb-pop {
    from { opacity:0; transform: scale(.82) translateY(20px); }
    to   { opacity:1; transform: scale(1)  translateY(0); }
}
.tb-ty-icon-wrap {
    margin-bottom: 20px;
}
.tb-ty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tb-ty-title {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin: 0 0 8px;
}
.tb-ty-subtitle {
    font-size: 15px;
    color: #777;
    margin: 0 0 24px;
}
.tb-ty-card {
    background: #f8faff;
    border: 1px solid #e0eaff;
    border-radius: 12px;
    padding: 18px 20px;
    text-align: left;
    margin-bottom: 20px;
}
.tb-ty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
    padding: 7px 0;
    border-bottom: 1px solid #eef2ff;
}
.tb-ty-row:last-child { border-bottom: none; }
.tb-ty-row strong { color: #111; font-weight: 700; }
.tb-ty-total {
    margin-top: 4px;
    padding-top: 12px !important;
    border-top: 2px solid #dde8ff !important;
    border-bottom: none !important;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}
.tb-ty-total strong { font-size: 18px; color: #2563eb; }
.tb-ty-email-note {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
}
.tb-ty-email-note strong { color: #444; }
.tb-ty-close-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 48px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(37,99,235,.35);
}
.tb-ty-close-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,99,235,.45);
}

/* ── CALENDAR FIX ────────────────────────────────────────────── */
.tb-cal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
}
.tb-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.tb-cal-day { cursor: pointer; border-radius: 6px; }
.tb-cal-day:not(.tb-cal-empty):not(.tb-cal-past):hover {
    background: #edf5ff;
    color: #3498db;
}
.tb-cal-selected {
    background: #3498db !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 6px;
}
.tb-cal-past { color: #ccc !important; cursor: not-allowed !important; pointer-events: none; }
.tb-cal-empty { pointer-events: none; }

/* ── ORDER CARD FIXES ────────────────────────────────────────── */
.tb-order-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
}
.tb-toggle-arrow { cursor: pointer; font-size: 18px; }
.tb-checkout-right { }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .tb-thankyou-modal { padding: 32px 20px 28px; }
    .tb-ty-title { font-size: 22px; }
}
