/*
 * Travel by Haddi – Flight Search CSS  v2.5.0
 * Complete rewrite for perfect PC + mobile responsiveness
 * Author: Abdul Hadi | ranklocalengine.com
 */

/* ── Variables ───────────────────────────────────────────────── */
:root {
    --tbh-primary       : #0057b7;
    --tbh-primary-hover : #003d82;
    --tbh-accent        : #f59e0b;
    --tbh-dark          : #0d1b2a;
    --tbh-dark-mid      : #1e3a5f;
    --tbh-slate         : #1a202c;
    --tbh-slate-mid     : #2d3748;
    --tbh-slate-lt      : #718096;
    --tbh-border        : #e2e8f0;
    --tbh-bg            : #f7f9fc;
    --tbh-bg-soft       : #fafbfc;
    --tbh-white         : #ffffff;
    --tbh-red           : #e53e3e;
    --tbh-green         : #38a169;
    --tbh-orange        : #dd6b20;
    --tbh-r             : 10px;
    --tbh-r-sm          : 7px;
    --tbh-r-pill        : 100px;
    --tbh-sh-sm         : 0 1px 4px rgba(0,0,0,.07);
    --tbh-sh-md         : 0 4px 18px rgba(0,0,0,.10);
    --tbh-sh-lg         : 0 12px 40px rgba(0,0,0,.14);
    --tbh-t             : .18s cubic-bezier(.4,0,.2,1);
}

/* ── Scoped reset ────────────────────────────────────────────── */
#tbh-app,
#tbh-app *,
#tbh-app *::before,
#tbh-app *::after { box-sizing: border-box; margin: 0; padding: 0; }
#tbh-app {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--tbh-slate);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}
#tbh-app a   { text-decoration: none; color: inherit; }
#tbh-app img { max-width: 100%; display: block; }

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.tbh-hero {
    background: linear-gradient(150deg, #0d1b2a 0%, #1e3a5f 55%, #0f3460 100%);
    padding: 52px 16px 100px;
    position: relative;
    overflow: hidden;
}
.tbh-hero-inner {
    max-width: 680px;
    margin: 0 auto 36px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.tbh-hero-tag {
    display: inline-block;
    background: rgba(245,158,11,.15);
    border: 1px solid rgba(245,158,11,.35);
    color: var(--tbh-accent);
    border-radius: var(--tbh-r-pill);
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.tbh-hero-title {
    font-size: clamp(24px, 4.5vw, 46px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -.02em;
}
.tbh-hero-sub {
    color: rgba(255,255,255,.6);
    font-size: 15px;
}

/* ════════════════════════════════════════════════════════════
   SEARCH CARD
   ════════════════════════════════════════════════════════════ */
.tbh-search-card {
    max-width: 1080px;
    margin: 0 auto;
    background: var(--tbh-white);
    border-radius: var(--tbh-r);
    box-shadow: var(--tbh-sh-lg);
    overflow: visible;
    position: relative;
    z-index: 10;
}

/* ── Tabs ── */
.tbh-tabs {
    display: flex;
    background: var(--tbh-bg-soft);
    border-bottom: 1px solid var(--tbh-border);
    padding: 0 20px;
    border-radius: var(--tbh-r) var(--tbh-r) 0 0;
    overflow: hidden;
}
.tbh-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 13px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tbh-slate-lt);
    cursor: pointer;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    margin-bottom: -1px;
    transition: color var(--tbh-t), border-color var(--tbh-t);
    font-family: inherit;
    white-space: nowrap;
    border-radius: 0;
    outline: none;
    line-height: 1;
}
.tbh-tab input[type="radio"] { display: none !important; }
.tbh-tab:hover               { color: var(--tbh-primary); }
.tbh-tab.tbh-tab-active      { color: var(--tbh-primary); border-bottom-color: var(--tbh-primary); }
.tbh-tab:focus-visible        { outline: 2px solid var(--tbh-primary); outline-offset: -2px; }

/* ── Controls bar ── */
.tbh-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--tbh-bg-soft);
    border-bottom: 1px solid var(--tbh-border);
    flex-wrap: wrap;
}
.tbh-ctrl {
    height: 34px;
    padding: 0 26px 0 11px;
    border: 1.5px solid var(--tbh-border);
    border-radius: var(--tbh-r-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--tbh-slate-mid);
    background: var(--tbh-white);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
    font-family: inherit;
    transition: border-color var(--tbh-t);
    white-space: nowrap;
    flex-shrink: 0;
}
.tbh-ctrl:hover { border-color: var(--tbh-primary); }
.tbh-ctrl:focus { border-color: var(--tbh-primary); box-shadow: 0 0 0 3px rgba(0,87,183,.10); }

/* ── Error banner ── */
.tbh-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: var(--tbh-red);
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--tbh-r-sm);
    margin: 12px 20px 0;
    line-height: 1.55;
}

/* ════════════════════════════════════════════════════════════
   FORM BODY
   ════════════════════════════════════════════════════════════ */
.tbh-form-body { padding: 18px 20px 0; }

/* Search row — 5-col desktop grid */
.tbh-search-row {
    display: grid;
    grid-template-columns: 1fr 44px 1fr 160px 160px;
    align-items: end;
    gap: 10px;
    margin-bottom: 14px;
}

/* Field */
.tbh-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    min-width: 0;
}
.tbh-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tbh-slate-lt);
    white-space: nowrap;
}

/* Input + icon */
.tbh-input-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.tbh-icon {
    position: absolute;
    left: 10px;
    width: 15px;
    height: 15px;
    color: var(--tbh-slate-lt);
    pointer-events: none;
    flex-shrink: 0;
}
.tbh-icon-land { left: 10px; }

.tbh-input {
    width: 100%;
    height: 46px;
    padding: 0 12px 0 34px;
    border: 1.5px solid var(--tbh-border);
    border-radius: var(--tbh-r-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--tbh-slate);
    background: var(--tbh-white);
    outline: none;
    transition: border-color var(--tbh-t), box-shadow var(--tbh-t);
    font-family: inherit;
    min-width: 0;
}
input[type="date"].tbh-input { padding-left: 34px; min-width: 0; }
.tbh-input::placeholder { color: #a0aec0; font-weight: 400; font-size: 12px; }
.tbh-input:focus {
    border-color: var(--tbh-primary);
    box-shadow: 0 0 0 3px rgba(0,87,183,.10);
}
.tbh-input.tbh-err  { border-color: var(--tbh-red); animation: tbh-shake .3s; }
.tbh-input.sufi-err { border-color: var(--tbh-red); }
@keyframes tbh-shake {
    0%,100% { transform: translateX(0); }
    25%     { transform: translateX(-4px); }
    75%     { transform: translateX(4px); }
}

/* Swap */
.tbh-swap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tbh-primary);
    border: 2px solid var(--tbh-white);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--tbh-sh-md);
    transition: background var(--tbh-t), transform var(--tbh-t);
    align-self: flex-end;
    flex-shrink: 0;
    font-family: inherit;
    line-height: 1;
}
.tbh-swap:hover { background: var(--tbh-primary-hover); transform: rotate(180deg); }
.tbh-swap:focus-visible { outline: 2px solid var(--tbh-primary); outline-offset: 3px; }

/* Return group hide */
#sufi-ret-group.tbh-hidden,
#sufi-ret-group[style*="display: none"] { display: none !important; }

/* Passenger/contact row */
.tbh-passenger-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding-bottom: 16px;
}
.tbh-passenger-row .tbh-input { padding-left: 12px; }

/* Search footer */
.tbh-search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 20px 20px;
    border-top: 1px solid var(--tbh-border);
    flex-wrap: wrap;
}
.tbh-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: var(--tbh-slate-lt);
    flex: 1;
    min-width: 0;
    line-height: 1.5;
}
.tbh-disclaimer svg { flex-shrink: 0; margin-top: 1px; }

.tbh-btn-search {
    height: 50px;
    padding: 0 32px;
    background: linear-gradient(135deg, var(--tbh-primary) 0%, #0072e5 100%);
    color: #fff;
    border: none;
    border-radius: var(--tbh-r-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0,87,183,.38);
    transition: var(--tbh-t);
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: .01em;
}
.tbh-btn-search .tbh-btn-label { display: flex; align-items: center; gap: 8px; }
.tbh-btn-search:hover {
    background: linear-gradient(135deg, var(--tbh-primary-hover) 0%, var(--tbh-primary) 100%);
    box-shadow: 0 6px 22px rgba(0,87,183,.48);
    transform: translateY(-1px);
}
.tbh-btn-search:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Spinner */
.tbh-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tbh-spin .7s linear infinite;
}
@keyframes tbh-spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════
   AUTOCOMPLETE
   ════════════════════════════════════════════════════════════ */
.tbh-ac-wrap    { position: relative; overflow: visible; }
.tbh-field      { overflow: visible; }

.tbh-ac-dropdown,
.sufi-ac-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    min-width: 100%;
    z-index: 99999;
    background: var(--tbh-white);
    border: 1.5px solid var(--tbh-primary);
    border-radius: var(--tbh-r-sm);
    box-shadow: var(--tbh-sh-lg);
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.tbh-ac-dropdown::-webkit-scrollbar { width: 4px; }
.tbh-ac-dropdown::-webkit-scrollbar-thumb { background: var(--tbh-border); border-radius: 2px; }

.sufi-ac-dropdown         { display: block; }
.sufi-ac-dropdown[hidden] { display: none; }

.tbh-ac-item,
.sufi-ac-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f4f8;
    transition: background var(--tbh-t);
}
.tbh-ac-item:last-child, .sufi-ac-item:last-child { border-bottom: none; }
.tbh-ac-item:hover, .tbh-ac-item.tbh-ac-active,
.sufi-ac-item:hover, .sufi-ac-item.sufi-ac-active { background: rgba(0,87,183,.06); }

.tbh-ac-code,
.sufi-ac-code {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 800;
    color: var(--tbh-primary);
    min-width: 36px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: .04em;
}
.tbh-ac-info, .sufi-ac-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.tbh-ac-name, .sufi-ac-name { font-size: 13px; font-weight: 600; color: var(--tbh-slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbh-ac-loc,  .sufi-ac-loc  { font-size: 11px; color: var(--tbh-slate-lt); }
.tbh-ac-empty,.sufi-ac-empty { padding: 14px 16px; text-align: center; font-size: 13px; color: var(--tbh-slate-lt); font-style: italic; }

/* ════════════════════════════════════════════════════════════
   PASSENGERS DROPDOWN
   ════════════════════════════════════════════════════════════ */
.tbh-pax-wrap    { position: relative; flex-shrink: 0; }
.tbh-pax-trigger {
    height: 34px;
    padding: 0 10px 0 12px;
    border: 1.5px solid var(--tbh-border);
    border-radius: var(--tbh-r-pill);
    background: var(--tbh-white);
    font-size: 13px;
    font-weight: 600;
    color: var(--tbh-slate-mid);
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color var(--tbh-t);
    white-space: nowrap;
    flex-shrink: 0;
}
.tbh-pax-trigger:hover { border-color: var(--tbh-primary); color: var(--tbh-primary); }
.tbh-pax-trigger svg { flex-shrink: 0; transition: transform var(--tbh-t); color: var(--tbh-slate-lt); }
.tbh-pax-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.tbh-pax-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 99999;
    background: var(--tbh-white);
    border: 1.5px solid var(--tbh-border);
    border-radius: var(--tbh-r);
    box-shadow: var(--tbh-sh-lg);
    min-width: 240px;
    padding: 8px 0 0;
}
.tbh-pax-dropdown[hidden] { display: none; }

.tbh-pax-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-bottom: 1px solid #f0f4f8;
}
.tbh-pax-row:last-of-type { border-bottom: none; }
.tbh-pax-info  { display: flex; flex-direction: column; gap: 1px; }
.tbh-pax-cat   { font-size: 14px; font-weight: 600; color: var(--tbh-slate); }
.tbh-pax-age   { font-size: 11px; color: var(--tbh-slate-lt); }
.tbh-pax-counter { display: flex; align-items: center; gap: 10px; }

.tbh-pax-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--tbh-border);
    background: var(--tbh-white);
    color: var(--tbh-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--tbh-t), border-color var(--tbh-t), color var(--tbh-t);
    padding: 0;
}
.tbh-pax-btn:hover:not(:disabled) { background: var(--tbh-primary); border-color: var(--tbh-primary); color: #fff; }
.tbh-pax-btn:disabled { opacity: .35; cursor: not-allowed; }
.tbh-pax-num { font-size: 15px; font-weight: 700; color: var(--tbh-slate); min-width: 18px; text-align: center; user-select: none; }

.tbh-pax-done {
    display: block;
    width: calc(100% - 32px);
    margin: 8px 16px 12px;
    height: 36px;
    border: none;
    border-radius: var(--tbh-r-sm);
    background: var(--tbh-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--tbh-t);
}
.tbh-pax-done:hover { background: var(--tbh-primary-hover); }

/* ════════════════════════════════════════════════════════════
   RESULTS SECTION
   ════════════════════════════════════════════════════════════ */
#tbh-results {
    max-width: 1080px;
    margin: 0 auto;
    padding: 36px 16px 60px;
}
.tbh-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.tbh-results-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tbh-section-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--tbh-dark);
    letter-spacing: -.02em;
}
.tbh-results-count {
    background: var(--tbh-primary);
    color: #fff;
    border-radius: var(--tbh-r-pill);
    padding: 2px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.tbh-sort-row   { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tbh-sort-label { font-size: 12px; color: var(--tbh-slate-lt); white-space: nowrap; }
.tbh-sort-btn {
    height: 30px;
    padding: 0 13px;
    border: 1.5px solid var(--tbh-border);
    border-radius: var(--tbh-r-pill);
    background: var(--tbh-white);
    font-size: 12px;
    font-weight: 600;
    color: var(--tbh-slate-lt);
    cursor: pointer;
    font-family: inherit;
    transition: var(--tbh-t);
    white-space: nowrap;
}
.tbh-sort-btn:hover          { border-color: var(--tbh-primary); color: var(--tbh-primary); }
.tbh-sort-btn.tbh-sort-active { background: var(--tbh-primary); border-color: var(--tbh-primary); color: #fff; }

.tbh-results-grid { display: flex; flex-direction: column; gap: 12px; }

/* ════════════════════════════════════════════════════════════
   FLIGHT CARD
   ════════════════════════════════════════════════════════════ */
.tbh-fcard {
    background: var(--tbh-white);
    border: 1.5px solid var(--tbh-border);
    border-radius: var(--tbh-r);
    box-shadow: var(--tbh-sh-sm);
    overflow: hidden;
    transition: border-color var(--tbh-t), box-shadow var(--tbh-t), transform var(--tbh-t);
    animation: tbh-slide-up .3s ease both;
}
.tbh-fcard:hover { border-color: var(--tbh-primary); box-shadow: var(--tbh-sh-md); transform: translateY(-2px); }
@keyframes tbh-slide-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card layout: [airline 70px] [route flex] [price 145px] */
.tbh-fcard-body {
    display: grid;
    grid-template-columns: 70px 1fr 145px;
    align-items: center;
    gap: 14px;
    padding: 18px 18px 12px;
}

/* Airline */
.tbh-airline-block { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.tbh-airline-logo {
    width: 48px; height: 48px;
    border-radius: 9px;
    background: var(--tbh-bg);
    border: 1px solid var(--tbh-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.tbh-airline-name { font-size: 10px; font-weight: 600; color: var(--tbh-slate-lt); max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Route */
.tbh-route-block { display: flex; align-items: center; min-width: 0; flex: 1; }
.tbh-route-point  { text-align: center; flex-shrink: 0; }
.tbh-route-time   { font-size: 22px; font-weight: 800; color: var(--tbh-dark); line-height: 1; letter-spacing: -.02em; }
.tbh-route-code   { font-size: 12px; font-weight: 700; color: var(--tbh-primary); letter-spacing: .06em; margin-top: 2px; }
.tbh-route-line-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0 8px;
    min-width: 50px;
}
.tbh-route-duration { font-size: 11px; color: var(--tbh-slate-lt); font-weight: 600; white-space: nowrap; }
.tbh-route-line {
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--tbh-primary) 0%, var(--tbh-border) 50%, var(--tbh-primary) 100%);
    border-radius: 1px;
    position: relative;
}
.tbh-route-line::before,
.tbh-route-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--tbh-primary);
    border: 2px solid var(--tbh-white);
    box-shadow: 0 0 0 1px var(--tbh-primary);
}
.tbh-route-line::before { left: -3px; }
.tbh-route-line::after  { right: -3px; }
.tbh-route-stops  { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.tbh-stops-direct { color: var(--tbh-green); }
.tbh-stops-one    { color: var(--tbh-orange); }
.tbh-stops-multi  { color: var(--tbh-red); }

/* Price */
.tbh-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.tbh-price-label   { font-size: 10px; color: var(--tbh-slate-lt); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tbh-price-amount  { font-size: 24px; font-weight: 900; color: var(--tbh-primary); line-height: 1; letter-spacing: -.02em; }
.tbh-price-currency{ font-size: 13px; font-weight: 600; }
.tbh-price-per     { font-size: 10px; color: var(--tbh-slate-lt); white-space: nowrap; }
.tbh-price-actions { display: flex; flex-direction: column; gap: 5px; width: 100%; }

.tbh-btn-details {
    height: 32px; padding: 0 12px;
    border: 1.5px solid var(--tbh-primary);
    border-radius: var(--tbh-r-sm);
    background: transparent;
    color: var(--tbh-primary);
    font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: var(--tbh-t);
    width: 100%; white-space: nowrap;
}
.tbh-btn-details:hover { background: rgba(0,87,183,.06); }

.tbh-btn-book-now {
    height: 34px; padding: 0 12px;
    border: none;
    border-radius: var(--tbh-r-sm);
    background: linear-gradient(135deg, var(--tbh-primary) 0%, #0072e5 100%);
    color: #fff;
    font-size: 12px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    transition: var(--tbh-t);
    box-shadow: 0 2px 8px rgba(0,87,183,.30);
    width: 100%; white-space: nowrap;
}
.tbh-btn-book-now:hover { box-shadow: 0 4px 14px rgba(0,87,183,.42); }

/* Card footer */
.tbh-fcard-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 18px 12px;
    border-top: 1px solid #f0f4f8;
    flex-wrap: wrap;
}
.tbh-ftag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px; font-weight: 600;
    color: var(--tbh-slate-lt);
    padding: 3px 8px;
    background: var(--tbh-bg);
    border-radius: var(--tbh-r-pill);
    border: 1px solid var(--tbh-border);
    white-space: nowrap;
}
.tbh-ftag-provider { background: rgba(0,87,183,.06); border-color: rgba(0,87,183,.15); color: var(--tbh-primary); }

/* States */
.tbh-no-results      { text-align: center; padding: 56px 20px; color: var(--tbh-slate-lt); }
.tbh-no-results-icon { font-size: 46px; margin-bottom: 14px; }
.tbh-no-results h3   { font-size: 18px; font-weight: 700; color: var(--tbh-dark); margin-bottom: 8px; }
.tbh-no-results p    { font-size: 14px; line-height: 1.6; }

.tbh-loading-state { text-align: center; padding: 56px 20px; color: var(--tbh-slate-lt); }
.tbh-loading-plane { font-size: 42px; margin-bottom: 14px; animation: tbh-fly 1.5s ease-in-out infinite; }
@keyframes tbh-fly {
    0%,100% { transform: translateX(-8px) rotate(-5deg); }
    50%     { transform: translateX(8px) rotate(5deg); }
}
.tbh-loading-state p { font-size: 14px; font-weight: 500; }

.tbh-load-more-wrap { text-align: center; margin-top: 20px; }
.tbh-load-more {
    height: 40px; padding: 0 26px;
    border: 2px solid var(--tbh-primary);
    border-radius: var(--tbh-r-sm);
    background: transparent;
    color: var(--tbh-primary);
    font-size: 13px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    transition: var(--tbh-t);
}
.tbh-load-more:hover { background: var(--tbh-primary); color: #fff; }

/* ════════════════════════════════════════════════════════════
   FLIGHT DETAIL PANEL
   ════════════════════════════════════════════════════════════ */
.tbh-detail-overlay {
    position: fixed; inset: 0;
    background: rgba(13,27,42,.55);
    z-index: 999998;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    backdrop-filter: blur(2px);
}
.tbh-detail-panel {
    width: 100%; max-width: 600px;
    background: var(--tbh-white);
    display: flex; flex-direction: column;
    box-shadow: var(--tbh-sh-lg);
    animation: tbh-slide-right .26s ease;
    overflow: hidden;
}
@keyframes tbh-slide-right {
    from { transform: translateX(40px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
.tbh-detail-header {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 18px;
    background: var(--tbh-dark);
    flex-shrink: 0;
}
.tbh-back-btn {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff; border-radius: var(--tbh-r-sm);
    padding: 7px 12px; font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: inherit; white-space: nowrap;
    transition: background var(--tbh-t);
}
.tbh-back-btn:hover { background: rgba(255,255,255,.22); }
.tbh-detail-title { font-size: 16px; font-weight: 700; color: #fff; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbh-detail-body { flex: 1; overflow-y: auto; padding: 0; }
.tbh-detail-body::-webkit-scrollbar { width: 4px; }
.tbh-detail-body::-webkit-scrollbar-thumb { background: var(--tbh-border); border-radius: 2px; }
.tbh-detail-section { padding: 18px 20px; border-bottom: 1px solid var(--tbh-border); }
.tbh-detail-section:last-child { border-bottom: none; }
.tbh-detail-section-title { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tbh-slate-lt); margin-bottom: 13px; }
.tbh-detail-route  { display: flex; align-items: center; gap: 0; }
.tbh-detail-point  { flex-shrink: 0; }
.tbh-detail-time   { font-size: 28px; font-weight: 900; color: var(--tbh-dark); line-height: 1; letter-spacing: -.03em; }
.tbh-detail-date   { font-size: 11px; color: var(--tbh-slate-lt); margin-top: 3px; }
.tbh-detail-airport{ font-size: 13px; font-weight: 800; color: var(--tbh-primary); margin-top: 2px; letter-spacing: .05em; }
.tbh-detail-line-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 14px; min-width: 50px; }
.tbh-detail-dur   { font-size: 12px; font-weight: 700; color: var(--tbh-slate); background: var(--tbh-bg); border-radius: var(--tbh-r-pill); padding: 2px 10px; border: 1px solid var(--tbh-border); white-space: nowrap; }
.tbh-detail-line  { width: 100%; height: 2px; background: linear-gradient(90deg, var(--tbh-primary) 0%, #0072e5 100%); border-radius: 1px; }
.tbh-detail-plane { font-size: 14px; }
.tbh-info-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tbh-info-item    { background: var(--tbh-bg); border-radius: var(--tbh-r-sm); padding: 10px 12px; border: 1px solid var(--tbh-border); }
.tbh-info-label   { font-size: 10px; font-weight: 700; color: var(--tbh-slate-lt); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px; }
.tbh-info-value   { font-size: 14px; font-weight: 700; color: var(--tbh-dark); }
.tbh-detail-price-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.tbh-detail-price-big { font-size: 30px; font-weight: 900; color: var(--tbh-primary); letter-spacing: -.03em; line-height: 1; }
.tbh-detail-price-note { font-size: 11px; color: var(--tbh-slate-lt); margin-top: 3px; }
.tbh-btn-book-detail {
    height: 44px; padding: 0 24px;
    border: none; border-radius: var(--tbh-r-sm);
    background: linear-gradient(135deg, var(--tbh-primary) 0%, #0072e5 100%);
    color: #fff; font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    box-shadow: 0 3px 12px rgba(0,87,183,.35);
    transition: var(--tbh-t); white-space: nowrap;
}
.tbh-btn-book-detail:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(0,87,183,.46); }

/* Segments */
.tbh-segment { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--tbh-border); }
.tbh-segment:last-child { border-bottom: none; padding-bottom: 0; }
.tbh-segment-carrier-badge { width: 36px; height: 36px; border-radius: 7px; background: var(--tbh-bg); border: 1px solid var(--tbh-border); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.tbh-segment-info   { flex: 1; min-width: 0; }
.tbh-segment-flight { font-size: 13px; font-weight: 700; color: var(--tbh-dark); margin-bottom: 2px; }
.tbh-segment-route  { font-size: 13px; color: var(--tbh-slate-mid); }
.tbh-segment-time   { font-size: 11px; color: var(--tbh-slate-lt); margin-top: 2px; }
.tbh-layover        { display: flex; align-items: center; gap: 7px; padding: 7px 11px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--tbh-r-sm); margin: 4px 0; }
.tbh-layover-icon   { font-size: 13px; }
.tbh-layover-text   { font-size: 12px; font-weight: 600; color: #92400e; }
.tbh-detail-standalone { max-width: 780px; margin: 36px auto; padding: 0 16px; }

/* ════════════════════════════════════════════════════════════
   BOOKING MODAL
   ════════════════════════════════════════════════════════════ */
.tbh-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(13,27,42,.65);
    z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
}
.tbh-modal {
    background: var(--tbh-white);
    border-radius: var(--tbh-r);
    width: 100%; max-width: 480px;
    box-shadow: var(--tbh-sh-lg);
    animation: tbh-modal-pop .24s cubic-bezier(.34,1.56,.64,1);
    overflow: hidden;
}
@keyframes tbh-modal-pop {
    from { opacity: 0; transform: scale(.92) translateY(14px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.tbh-modal-header {
    background: linear-gradient(135deg, var(--tbh-dark) 0%, var(--tbh-dark-mid) 100%);
    padding: 16px 18px;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.tbh-modal-title { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.tbh-modal-sub   { font-size: 12px; color: rgba(255,255,255,.55); }
.tbh-modal-close {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
    color: #fff; font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-family: inherit; transition: background var(--tbh-t); line-height: 1;
}
.tbh-modal-close:hover { background: rgba(255,255,255,.26); }

.tbh-modal-flight-summary {
    background: var(--tbh-bg);
    padding: 11px 18px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
    border-bottom: 1px solid var(--tbh-border);
}
.tbh-sum-item label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--tbh-slate-lt); margin-bottom: 2px; }
.tbh-sum-item span  { font-size: 13px; font-weight: 700; color: var(--tbh-dark); }
.tbh-modal-price    { font-size: 20px; font-weight: 900; color: var(--tbh-primary); letter-spacing: -.02em; white-space: nowrap; }

.tbh-modal-body  { padding: 16px 18px 6px; }
.tbh-mfield      { margin-bottom: 12px; }
.tbh-mfield label {
    display: block; font-size: 11px; font-weight: 800;
    color: var(--tbh-slate-lt); text-transform: uppercase;
    letter-spacing: .07em; margin-bottom: 5px;
}
.tbh-req { color: var(--tbh-red); }
.tbh-mfield input {
    width: 100%; height: 42px; padding: 0 12px;
    border: 1.5px solid var(--tbh-border);
    border-radius: var(--tbh-r-sm);
    font-size: 14px; color: var(--tbh-slate);
    outline: none; font-family: inherit;
    transition: border-color var(--tbh-t), box-shadow var(--tbh-t);
    background: var(--tbh-white);
}
.tbh-mfield input:focus { border-color: var(--tbh-primary); box-shadow: 0 0 0 3px rgba(0,87,183,.10); }
.tbh-mfield input.tbh-err { border-color: var(--tbh-red); }
.tbh-mfield small { display: block; font-size: 11px; color: var(--tbh-slate-lt); margin-top: 3px; }

.tbh-modal-error {
    background: #fff5f5; border: 1px solid #fed7d7; color: var(--tbh-red);
    padding: 9px 12px; border-radius: var(--tbh-r-sm);
    font-size: 13px; margin-bottom: 6px; line-height: 1.5;
}
.tbh-modal-footer { padding: 10px 18px 18px; display: flex; gap: 10px; }
.tbh-btn-cancel {
    height: 42px; padding: 0 16px;
    border: 1.5px solid var(--tbh-border);
    border-radius: var(--tbh-r-sm);
    background: transparent; color: var(--tbh-slate-lt);
    font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: var(--tbh-t); white-space: nowrap;
}
.tbh-btn-cancel:hover { border-color: var(--tbh-slate-mid); color: var(--tbh-slate); }
.tbh-btn-book {
    flex: 1; height: 42px;
    border: none; border-radius: var(--tbh-r-sm);
    background: linear-gradient(135deg, var(--tbh-primary) 0%, #0072e5 100%);
    color: #fff; font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    box-shadow: 0 3px 12px rgba(0,87,183,.30);
    transition: var(--tbh-t);
}
.tbh-btn-book .tbh-btn-label { display: flex; align-items: center; gap: 7px; }
.tbh-btn-book:hover { box-shadow: 0 5px 18px rgba(0,87,183,.44); }
.tbh-btn-book:disabled { opacity: .65; cursor: not-allowed; }

/* ════════════════════════════════════════════════════════════
   RESULTS-PAGE HEADER
   ════════════════════════════════════════════════════════════ */
.tbh-results-only { padding: 0 16px 60px; }
.tbh-results-page-header { background: var(--tbh-dark); padding: 14px 16px; }
.tbh-results-page-search { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.tbh-back-link { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.7); text-decoration: none; font-size: 13px; font-weight: 600; transition: color var(--tbh-t); white-space: nowrap; }
.tbh-back-link:hover { color: #fff; }
.tbh-route-pill { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: var(--tbh-r-pill); padding: 5px 14px; font-size: 13px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ════════════════════════════════════════════════════════════
   TOAST
   ════════════════════════════════════════════════════════════ */
.tbh-toast,
.sufi-toast {
    position: fixed; bottom: 20px; right: 20px; z-index: 1000000;
    background: var(--tbh-dark); color: #fff;
    padding: 12px 18px; border-radius: var(--tbh-r-sm);
    font-size: 13px; font-weight: 600;
    box-shadow: var(--tbh-sh-lg); max-width: 340px;
    transform: translateY(80px); opacity: 0;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .26s;
    pointer-events: none; line-height: 1.5;
}
.tbh-toast.tbh-toast-show,
.sufi-toast.sufi-show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.tbh-toast.tbh-toast-ok,  .sufi-toast.sufi-ok  { border-left: 4px solid var(--tbh-green); }
.tbh-toast.tbh-toast-err, .sufi-toast.sufi-err  { border-left: 4px solid var(--tbh-red); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤960px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
    .tbh-search-row {
        grid-template-columns: 1fr 44px 1fr;
        grid-template-rows: auto auto;
    }
    /* Date fields move to second row */
    .tbh-search-row > .tbh-field:nth-child(4),
    .tbh-search-row > #sufi-ret-group {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        align-items: end;
    }
    /* Actually simpler — just let the dates stack on their own */
    .tbh-search-row > .tbh-field:nth-child(4) { grid-column: 1 / 2; }
    .tbh-search-row > #sufi-ret-group          { grid-column: 2 / 3; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Hero */
    .tbh-hero       { padding: 34px 14px 78px; }
    .tbh-hero-sub   { font-size: 14px; }
    .tbh-hero-inner { margin-bottom: 28px; }

    /* Tabs */
    .tbh-tabs { padding: 0 14px; }
    .tbh-tab  { padding: 11px 14px; font-size: 13px; }

    /* Controls */
    .tbh-controls      { padding: 10px 14px; gap: 6px; }
    .tbh-ctrl          { height: 32px; font-size: 12px; }
    .tbh-pax-trigger   { height: 32px; font-size: 12px; }
    .tbh-pax-dropdown  { left: auto; right: 0; min-width: 220px; }

    /* Form body */
    .tbh-form-body { padding: 14px 14px 0; }

    /* All search fields stack vertically */
    .tbh-search-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 12px;
    }
    .tbh-swap {
        width: 38px; height: 38px;
        align-self: center;
    }

    /* Passenger row stacks */
    .tbh-passenger-row {
        grid-template-columns: 1fr;
        padding-bottom: 12px;
        gap: 10px;
    }

    /* Search footer — button goes full width */
    .tbh-search-footer {
        padding: 12px 14px 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .tbh-btn-search  { width: 100%; justify-content: center; height: 48px; font-size: 15px; }
    .tbh-disclaimer  { font-size: 11px; }

    /* Results */
    #tbh-results         { padding: 22px 12px 40px; }
    .tbh-results-header  { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Flight card: 2-col then price full-width */
    .tbh-fcard-body {
        grid-template-columns: 52px 1fr;
        gap: 10px;
        padding: 14px 14px 10px;
    }
    .tbh-price-block {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-width: auto;
    }
    .tbh-price-actions { flex-direction: row; gap: 6px; flex: 1; margin-left: 10px; }
    .tbh-btn-details,
    .tbh-btn-book-now  { font-size: 11px; height: 32px; flex: 1; }
    .tbh-route-time    { font-size: 18px; }
    .tbh-price-amount  { font-size: 20px; }
    .tbh-fcard-footer  { padding: 7px 14px 11px; }

    /* Detail panel full-screen */
    .tbh-detail-panel { max-width: 100%; }
    .tbh-info-grid    { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL PHONE (≤480px)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .tbh-hero      { padding: 26px 12px 68px; }
    .tbh-form-body { padding: 12px 12px 0; }
    .tbh-controls  { padding: 8px 12px; }

    /* Modal slides up from bottom */
    .tbh-modal-overlay { align-items: flex-end; padding: 0; }
    .tbh-modal { max-width: 100%; border-radius: var(--tbh-r) var(--tbh-r) 0 0; }

    /* Price actions stack */
    .tbh-price-actions { flex-direction: column; margin-left: 0; }
    .tbh-btn-details,
    .tbh-btn-book-now  { width: 100%; }
    .tbh-price-block   { flex-direction: column; align-items: flex-start; }

    .tbh-info-grid       { grid-template-columns: 1fr; }
    .tbh-detail-price-bar{ flex-direction: column; align-items: flex-start; }
    .tbh-btn-book-detail { width: 100%; }
    .tbh-airline-logo    { width: 42px; height: 42px; font-size: 20px; }
    .tbh-route-time      { font-size: 16px; }
}
