/* ── Tour Booking Plugin Styles ─────────────────────────────── */

:root {
    --tb-primary: #1a6b3c;
    --tb-primary-dark: #124d2c;
    --tb-accent: #f5a623;
    --tb-light: #f8faf9;
    --tb-border: #d8e4dc;
    --tb-text: #2c3e30;
    --tb-radius: 12px;
    --tb-shadow: 0 4px 24px rgba(0,0,0,.10);
}

/* ── Wrapper ── */
.tb-booking-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 640px;
    margin: 0 auto;
    color: var(--tb-text);
}

/* ── Steps indicator ── */
.tb-steps-indicator {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 28px;
}
.tb-step-dot {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    background: #ddd; color: #888;
    transition: all .3s;
}
.tb-step-dot.active {
    background: var(--tb-primary);
    color: #fff;
    transform: scale(1.1);
}
.tb-step-dot.done {
    background: var(--tb-accent);
    color: #fff;
}

/* ── Step box ── */
.tb-step {
    background: #fff;
    border: 1.5px solid var(--tb-border);
    border-radius: var(--tb-radius);
    padding: 28px;
    box-shadow: var(--tb-shadow);
    animation: tbFadeIn .35s ease;
}
@keyframes tbFadeIn { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:translateY(0) } }

.tb-hidden { display: none !important; }

/* ── Step title ── */
.tb-step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    font-size: 18px;
    font-weight: 700;
    color: var(--tb-primary-dark);
}
.tb-step-num {
    width: 30px; height: 30px;
    background: var(--tb-primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    flex-shrink: 0;
}

/* ── Form grid ── */
.tb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 480px) { .tb-form-grid { grid-template-columns: 1fr; } }

.tb-field { display: flex; flex-direction: column; gap: 6px; }
.tb-field.tb-full { grid-column: 1 / -1; }
.tb-field label { font-size: 13px; font-weight: 600; color: #555; }
.tb-field label small { font-weight: 400; color: #888; }
.tb-field input, .tb-field select, .tb-field textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--tb-border);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color .2s;
    background: var(--tb-light);
}
.tb-field input:focus, .tb-field select:focus, .tb-field textarea:focus {
    outline: none;
    border-color: var(--tb-primary);
    background: #fff;
}

/* ── Counter ── */
.tb-counter {
    display: flex; align-items: center; gap: 0;
    border: 1.5px solid var(--tb-border);
    border-radius: 8px; overflow: hidden;
    background: var(--tb-light);
}
.tb-counter button {
    width: 40px; height: 44px;
    border: none; background: var(--tb-primary);
    color: #fff; font-size: 20px; cursor: pointer;
    transition: background .2s;
}
.tb-counter button:hover { background: var(--tb-primary-dark); }
.tb-counter input {
    flex: 1; border: none !important; text-align: center;
    font-size: 16px; font-weight: 700; background: transparent !important;
}

/* ── Price summary ── */
.tb-price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--tb-primary), var(--tb-primary-dark));
    color: #fff;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 16px;
}
.tb-total-display { font-size: 24px; font-weight: 800; }

/* ── Buttons ── */
.tb-btn-next, .tb-btn-pay {
    display: block; width: 100%;
    padding: 14px;
    background: var(--tb-primary);
    color: #fff;
    border: none; border-radius: 10px;
    font-size: 16px; font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: background .2s, transform .1s;
    text-align: center;
}
.tb-btn-next:hover, .tb-btn-pay:hover {
    background: var(--tb-primary-dark);
    transform: translateY(-1px);
}
.tb-btn-row { display: flex; gap: 12px; margin-top: 20px; }
.tb-btn-back {
    flex: 0 0 auto;
    padding: 12px 20px;
    background: transparent;
    color: var(--tb-primary);
    border: 2px solid var(--tb-primary);
    border-radius: 10px;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.tb-btn-back:hover { background: var(--tb-light); }

/* ── Payment methods ── */
.tb-payment-methods {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin: 20px 0;
}
.tb-pm-option {
    flex: 1 1 140px;
    padding: 14px;
    border: 2px solid var(--tb-border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    font-size: 14px; font-weight: 600;
    display: flex; flex-direction: column;
    align-items: center; gap: 6px;
}
.tb-pm-option:hover { border-color: var(--tb-primary); background: var(--tb-light); }
.tb-pm-option.selected { border-color: var(--tb-primary); background: #e8f5ee; }
.tb-pm-option img { height: 24px; }

/* ── Booking summary ── */
.tb-booking-summary {
    background: var(--tb-light);
    border: 1px solid var(--tb-border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}
.tb-booking-summary strong { color: var(--tb-primary); }

/* ── Transfer info ── */
.tb-transfer-info {
    background: #fffbf0;
    border: 1px solid #ffe08a;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.8;
}

/* ── Success ── */
.tb-success {
    text-align: center;
    padding: 20px 0;
}
.tb-success-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, #27ae60, #1a8a46);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    animation: tbPop .5s cubic-bezier(.175,.885,.32,1.275);
}
@keyframes tbPop { from { transform: scale(0) } to { transform: scale(1) } }
.tb-success h2 { color: var(--tb-primary); margin-bottom: 10px; }

/* ── Error ── */
.tb-error { color: #e74c3c; font-size: 13px; margin-top: 8px; min-height: 20px; }

/* ═══════════════════════════════════════════════════
   Tours List Grid
════════════════════════════════════════════════════ */
.tb-tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 10px 0;
}
.tb-tour-card {
    border-radius: var(--tb-radius);
    overflow: hidden;
    box-shadow: var(--tb-shadow);
    border: 1px solid var(--tb-border);
    transition: transform .25s, box-shadow .25s;
    background: #fff;
}
.tb-tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.14);
}
.tb-card-img {
    height: 200px;
    background-size: cover; background-position: center;
    position: relative;
}
.tb-badge {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 700; color: #fff;
}
.tb-card-body { padding: 20px; }
.tb-card-body h3 { margin: 0 0 8px; font-size: 18px; color: var(--tb-text); }
.tb-card-excerpt { font-size: 14px; color: #666; margin-bottom: 14px; line-height: 1.5; }
.tb-card-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; font-size: 14px;
}
.tb-price { font-weight: 800; font-size: 18px; color: var(--tb-primary); }
.tb-btn-card {
    display: block;
    text-align: center;
    padding: 11px;
    background: var(--tb-primary);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600; font-size: 14px;
    text-decoration: none;
    transition: background .2s;
}
.tb-btn-card:hover { background: var(--tb-primary-dark); }

/* ── Stripe card element ── */
#tb-card-element {
    padding: 12px 16px;
    border: 1.5px solid var(--tb-border);
    border-radius: 8px;
    background: var(--tb-light);
    margin-top: 16px;
}

/* ═══════════════════════════════════════════════════
   WooCommerce Integration Styles
════════════════════════════════════════════════════ */

.tb-woo-checkout-info {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    border: 1.5px solid #b3d7f5;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 16px 0;
    font-size: 14px;
    line-height: 1.6;
}
.tb-woo-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.tb-woo-checkout-info strong { display: block; font-size: 15px; margin-bottom: 4px; color: #1a4a7a; }
.tb-woo-checkout-info p { margin: 0; color: #444; }

/* Loading spinner */
#tb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    color: #555;
    font-size: 14px;
}
.tb-spinner {
    width: 24px; height: 24px;
    border: 3px solid #ddd;
    border-top-color: var(--tb-primary);
    border-radius: 50%;
    animation: tbSpin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes tbSpin { to { transform: rotate(360deg) } }

/* Btn-row flex */
.tb-btn-row .tb-btn-pay { flex: 1; margin-top: 0; }
