/* ============================================================================
   Travel by Haddi — Flight Search  ·  v3.0.0
   Fully-responsive, fluid-grid stylesheet. Everything is scoped under .tbh-app
   so it never leaks into (or inherits awkwardly from) the host theme.
   ========================================================================== */

.tbh-app {
	/* palette (primary/accent injected inline by PHP; these are fallbacks) */
	--tbh-primary: #0d5c63;
	--tbh-primary-hover: #0a474d;
	--tbh-primary-soft: rgba(13, 92, 99, 0.08);
	--tbh-accent: #e0892e;

	--tbh-ink: #1c2530;
	--tbh-ink-soft: #55626f;
	--tbh-ink-faint: #8895a3;
	--tbh-line: #e7e2d8;
	--tbh-line-2: #efebe3;
	--tbh-paper: #fbf9f4;
	--tbh-card: #ffffff;
	--tbh-cream: #f5f1e8;
	--tbh-ok: #1f9d63;
	--tbh-err: #d8543d;

	--tbh-r: 14px;
	--tbh-r-lg: 22px;
	--tbh-r-sm: 10px;
	--tbh-shadow: 0 1px 2px rgba(28, 37, 48, .04), 0 18px 40px -22px rgba(28, 37, 48, .28);
	--tbh-shadow-sm: 0 1px 2px rgba(28, 37, 48, .05), 0 6px 16px -10px rgba(28, 37, 48, .22);
	--tbh-t: .22s cubic-bezier(.4, 0, .2, 1);

	--tbh-sans: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tbh-serif: "Fraunces", "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

	box-sizing: border-box;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 clamp(14px, 4vw, 28px);
	font-family: var(--tbh-sans);
	color: var(--tbh-ink);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.tbh-app *, .tbh-app *::before, .tbh-app *::after { box-sizing: border-box; }
.tbh-app img { max-width: 100%; display: block; }
.tbh-app button { font-family: inherit; cursor: pointer; }
.tbh-app [hidden] { display: none !important; }

/* ── HERO ─────────────────────────────────────────────────────────────── */
.tbh-hero {
	position: relative;
	padding: clamp(26px, 5vw, 52px) clamp(18px, 4vw, 48px) clamp(80px, 11vw, 130px);
	margin-bottom: clamp(-64px, -8vw, -96px);
	border-radius: var(--tbh-r-lg);
	overflow: hidden;
	background: var(--tbh-hero-bg, #E8F4FB);
	color: var(--tbh-hero-title, #000);
	text-align: center;
}
.tbh-hero::after { content: none; } /* flat, uniform banner background (no dot texture) */
.tbh-hero-inner { position: relative; z-index: 1; max-width: 660px; margin: 0 auto; }
.tbh-hero-tag {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	color: var(--tbh-primary);
	background: color-mix(in srgb, var(--tbh-primary) 8%, #fff);
	border: 1px solid color-mix(in srgb, var(--tbh-primary) 18%, transparent);
	padding: 6px 14px; border-radius: 999px; margin: 0 0 18px;
}
.tbh-hero-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tbh-accent); box-shadow: 0 0 0 4px rgba(224, 137, 46, .25); }
.tbh-hero-title {
	font-family: var(--tbh-serif);
	font-weight: 600;
	font-size: clamp(28px, 5.4vw, 50px);
	line-height: 1.05;
	letter-spacing: -.01em;
	margin: 0 0 12px;
	color: var(--tbh-hero-title, #000);
}
.tbh-hero-sub { font-size: clamp(15px, 2vw, 18px); color: var(--tbh-hero-sub, #000); margin: 0; }

/* ── SEARCH CARD ──────────────────────────────────────────────────────── */
.tbh-card {
	position: relative; z-index: 2;
	background: var(--tbh-card);
	border: 1px solid var(--tbh-line);
	border-radius: var(--tbh-r-lg);
	box-shadow: var(--tbh-shadow);
	padding: clamp(16px, 3vw, 26px);
	max-width: 1080px;
	margin: 0 auto;
}

/* tabs */
.tbh-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--tbh-cream); border-radius: 999px; margin-bottom: 20px; }
.tbh-tab {
	display: inline-flex; align-items: center; gap: 7px;
	border: 0; background: transparent; color: var(--tbh-ink-soft);
	font-size: 14.5px; font-weight: 600; padding: 9px 18px; border-radius: 999px;
	transition: var(--tbh-t);
}
.tbh-tab svg { opacity: .8; }
.tbh-tab.is-active { background: var(--tbh-card); color: var(--tbh-primary); box-shadow: var(--tbh-shadow-sm); }

/* top controls: fluid auto-fit */
.tbh-controls {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}
.tbh-select-wrap, .tbh-pax-trigger {
	position: relative; display: flex; flex-direction: column; gap: 3px;
	background: var(--tbh-paper); border: 1px solid var(--tbh-line);
	border-radius: var(--tbh-r-sm); padding: 9px 13px; transition: var(--tbh-t); text-align: left; width: 100%;
}
.tbh-select-wrap:focus-within, .tbh-pax-trigger:hover, .tbh-pax.is-open .tbh-pax-trigger {
	border-color: var(--tbh-primary); background: #fff;
}
.tbh-select-cap { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tbh-ink-faint); }
.tbh-select { border: 0; background: transparent; font-size: 15px; font-weight: 600; color: var(--tbh-ink); padding: 0; width: 100%; appearance: none; cursor: pointer; outline: none; }

/* travellers */
.tbh-pax { position: relative; }
.tbh-pax-trigger { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; }
.tbh-pax-trigger .tbh-select-cap { flex: 0 0 100%; }
.tbh-pax-label { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; }
.tbh-pax-trigger svg { color: var(--tbh-ink-faint); transition: var(--tbh-t); }
.tbh-pax.is-open .tbh-pax-trigger svg { transform: rotate(180deg); }
.tbh-pax-pop {
	position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; right: auto;
	min-width: 290px; max-width: min(340px, 86vw);
	background: #fff; border: 1px solid var(--tbh-line); border-radius: var(--tbh-r);
	box-shadow: var(--tbh-shadow); padding: 8px;
	animation: tbh-pop .18s ease;
}
.tbh-pax-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px; border-bottom: 1px solid var(--tbh-line-2); }
.tbh-pax-row:last-of-type { border-bottom: 0; }
.tbh-pax-meta { display: flex; flex-direction: column; }
.tbh-pax-cat { font-weight: 600; font-size: 14.5px; }
.tbh-pax-age { font-size: 12.5px; color: var(--tbh-ink-faint); }
.tbh-pax-step { display: flex; align-items: center; gap: 4px; }
.tbh-pax-btn {
	width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--tbh-line);
	background: #fff; color: var(--tbh-primary); font-size: 19px; font-weight: 500; line-height: 1;
	display: grid; place-items: center; transition: var(--tbh-t);
}
.tbh-pax-btn:hover:not(:disabled) { border-color: var(--tbh-primary); background: var(--tbh-primary-soft); }
.tbh-pax-btn:disabled { opacity: .35; cursor: not-allowed; }
.tbh-pax-num { min-width: 26px; text-align: center; font-weight: 700; font-size: 15px; }
.tbh-pax-done {
	width: 100%; margin-top: 6px; border: 0; border-radius: 9px;
	background: var(--tbh-primary); color: #fff; font-weight: 600; font-size: 14.5px; padding: 11px;
	transition: var(--tbh-t);
}
.tbh-pax-done:hover { background: var(--tbh-primary-hover); }

/* error banner */
.tbh-banner {
	background: #fdece8; border: 1px solid #f4c4b8; color: #9a3520;
	border-radius: var(--tbh-r-sm); padding: 11px 15px; font-size: 14px; margin-bottom: 14px; line-height: 1.45;
}

/* main search grid — fluid */
.tbh-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr 1fr 1fr;
	gap: 12px;
	align-items: end;
	margin-bottom: 8px;
}
.tbh-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tbh-lbl { font-size: 13px; font-weight: 600; color: var(--tbh-ink-soft); padding-left: 2px; }
.tbh-input-wrap { position: relative; display: flex; align-items: center; }
.tbh-i { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--tbh-primary); pointer-events: none; opacity: .85; }
.tbh-input {
	width: 100%; border: 1.5px solid var(--tbh-line); background: var(--tbh-paper);
	border-radius: var(--tbh-r-sm); padding: 13px 13px 13px 38px; font-size: 15px; color: var(--tbh-ink);
	transition: var(--tbh-t); outline: none; min-width: 0; font-family: inherit;
}
.tbh-input::placeholder { color: var(--tbh-ink-faint); }
.tbh-input:focus { border-color: var(--tbh-primary); background: #fff; box-shadow: 0 0 0 4px var(--tbh-primary-soft); }
.tbh-input.tbh-plain { padding-left: 13px; }
.tbh-input.tbh-err { border-color: var(--tbh-err); background: #fdf3f1; }
input[type="date"].tbh-input { cursor: pointer; }

/* swap */
.tbh-swap {
	align-self: end; margin-bottom: 5px;
	width: 42px; height: 42px; flex-shrink: 0;
	border: 1.5px solid var(--tbh-line); background: #fff; color: var(--tbh-primary);
	border-radius: 50%; display: grid; place-items: center; transition: var(--tbh-t);
}
.tbh-swap:hover { border-color: var(--tbh-primary); background: var(--tbh-primary-soft); transform: rotate(180deg); }

/* autocomplete */
.tbh-ac { position: relative; }
.tbh-ac-pop {
	position: absolute; z-index: 35; top: calc(100% + 6px); left: 0; right: 0;
	background: #fff; border: 1px solid var(--tbh-line); border-radius: var(--tbh-r);
	box-shadow: var(--tbh-shadow); max-height: 320px; overflow-y: auto;
	animation: tbh-pop .16s ease;
}
.tbh-ac-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer; border-bottom: 1px solid var(--tbh-line-2); transition: background .12s; }
.tbh-ac-item:last-child { border-bottom: 0; }
.tbh-ac-item:hover, .tbh-ac-item.is-active { background: var(--tbh-primary-soft); }
.tbh-ac-code {
	flex-shrink: 0; min-width: 42px; text-align: center; font-weight: 700; font-size: 12.5px; letter-spacing: .03em;
	color: var(--tbh-primary); background: var(--tbh-primary-soft); border-radius: 7px; padding: 5px 7px;
}
.tbh-ac-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tbh-ac-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbh-ac-loc { font-size: 12.5px; color: var(--tbh-ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbh-ac-empty { padding: 16px; text-align: center; color: var(--tbh-ink-faint); font-size: 13.5px; }

/* airline searchable combobox (filter) */
.tbh-airline { position: relative; }
.tbh-airline-input { width: 100%; cursor: text; padding-right: 18px; }
.tbh-airline-input::placeholder { color: var(--tbh-ink); opacity: 1; } /* shows "All airlines" as the resting state */
.tbh-airline-caret { position: absolute; right: 12px; bottom: 13px; color: var(--tbh-ink-faint); cursor: pointer; }
.tbh-airline-pop {
	position: absolute; z-index: 36; top: calc(100% + 6px); left: 0; right: 0;
	background: #fff; border: 1px solid var(--tbh-line); border-radius: var(--tbh-r);
	box-shadow: var(--tbh-shadow); max-height: 340px; overflow-y: auto;
	animation: tbh-pop .16s ease;
}
.tbh-airline-pop .tbh-ac-item { gap: 10px; }
.tbh-airline-all { border-bottom: 1px solid var(--tbh-line); }
.tbh-airline-all .tbh-ac-code { background: var(--tbh-cream); color: var(--tbh-ink-soft); }

/* browse link */
.tbh-browse-link { margin: 12px 0 4px; }
.tbh-browse-btn {
	display: inline-flex; align-items: center; gap: 7px; border: 0; background: none;
	color: var(--tbh-primary); font-size: 13.5px; font-weight: 600; padding: 4px 2px; transition: var(--tbh-t);
}
.tbh-browse-btn:hover { color: var(--tbh-primary-hover); text-decoration: underline; }

/* passenger grid */
.tbh-pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; padding-top: 18px; border-top: 1px solid var(--tbh-line-2); }

/* footer + search */
.tbh-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tbh-note { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; color: var(--tbh-ink-faint); margin: 0; flex: 1; min-width: 220px; line-height: 1.4; }
.tbh-note svg { flex-shrink: 0; margin-top: 2px; color: var(--tbh-primary); }
.tbh-search-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	border: 0; border-radius: 999px; padding: 15px 34px; font-size: 16px; font-weight: 700; color: #fff;
	background: linear-gradient(135deg, var(--tbh-primary), var(--tbh-primary-hover));
	box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--tbh-primary) 70%, transparent);
	transition: var(--tbh-t); white-space: nowrap;
}
.tbh-search-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--tbh-primary) 75%, transparent); }
.tbh-search-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.tbh-btn-label { display: inline-flex; align-items: center; gap: 9px; }

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

/* ── RESULTS ──────────────────────────────────────────────────────────── */
.tbh-results { margin-top: clamp(34px, 6vw, 64px); }
.tbh-results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.tbh-results-title-row { display: flex; align-items: baseline; gap: 12px; }
.tbh-results-title { font-family: var(--tbh-serif); font-weight: 600; font-size: clamp(22px, 3.4vw, 30px); margin: 0; letter-spacing: -.01em; color: #ffffff; }
.tbh-results-count { font-size: 14px; color: #ffffff; font-weight: 500; }
.tbh-sort { display: flex; align-items: center; gap: 4px; background: var(--tbh-cream); border-radius: 999px; padding: 4px; }
.tbh-sort-cap { font-size: 12.5px; color: var(--tbh-ink-faint); padding: 0 8px 0 10px; font-weight: 600; }
.tbh-sort-btn { border: 0; background: transparent; color: var(--tbh-ink-soft); font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; transition: var(--tbh-t); }
.tbh-sort-btn.is-active { background: #fff; color: var(--tbh-primary); box-shadow: var(--tbh-shadow-sm); }

.tbh-cards { display: flex; flex-direction: column; gap: 14px; }

/* flight card */
.tbh-fcard {
	background: var(--tbh-card); border: 1px solid var(--tbh-line); border-radius: var(--tbh-r);
	box-shadow: var(--tbh-shadow-sm); overflow: hidden; transition: var(--tbh-t);
	animation: tbh-rise .4s both;
}
.tbh-fcard:hover { border-color: color-mix(in srgb, var(--tbh-primary) 40%, var(--tbh-line)); box-shadow: var(--tbh-shadow); transform: translateY(-2px); }
@keyframes tbh-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.tbh-fcard-main { display: grid; grid-template-columns: 168px 1fr 220px; gap: 18px; align-items: center; padding: 18px 22px; }
.tbh-fc-airline { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tbh-fc-logo { width: 46px; height: 46px; flex-shrink: 0; border-radius: 11px; background: var(--tbh-cream); overflow: hidden; display: grid; place-items: center; position: relative; }
.tbh-fc-logo-img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; display: block; }
.tbh-fc-logo-fb { width: 100%; height: 100%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--tbh-primary); letter-spacing: .04em; background: var(--tbh-primary-soft); }
.tbh-fc-logo-icon { background: var(--tbh-primary-soft); color: var(--tbh-primary); }
.tbh-fc-logo-icon svg { width: 60%; height: 60%; }
.tbh-fc-airline-meta { display: flex; flex-direction: column; min-width: 0; }
.tbh-fc-airline-name { font-weight: 600; font-size: 14.5px; line-height: 1.25; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.tbh-fc-airline-num { font-size: 12px; color: var(--tbh-ink-faint); font-weight: 600; margin-top: 2px; letter-spacing: .02em; }
.tbh-fc-route { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.tbh-fc-point { text-align: center; min-width: 60px; }
.tbh-fc-time { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.tbh-fc-code { font-size: 13px; color: var(--tbh-primary); font-weight: 700; letter-spacing: .04em; margin-top: 3px; }
.tbh-fc-city { font-size: 11.5px; color: var(--tbh-ink-faint); font-weight: 500; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; margin-left: auto; margin-right: auto; }
.tbh-fc-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tbh-fc-dur { font-size: 12px; color: var(--tbh-ink-soft); font-weight: 600; }
.tbh-fc-line { position: relative; width: 100%; height: 2px; background: var(--tbh-line); border-radius: 2px; }
.tbh-fc-line::before { content: "✈"; position: absolute; right: -2px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--tbh-primary); background: #fff; padding-left: 3px; }
.tbh-fc-stops { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.tbh-stops-direct { color: var(--tbh-ok); }
.tbh-stops-one { color: var(--tbh-accent); }
.tbh-stops-multi { color: var(--tbh-ink-faint); }
.tbh-fc-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.tbh-fc-pricewrap { text-align: right; }
.tbh-fc-amount { font-size: 26px; font-weight: 800; color: var(--tbh-primary); letter-spacing: -.02em; line-height: 1; }
.tbh-fc-cur { font-size: 14px; font-weight: 600; color: var(--tbh-ink-soft); }
.tbh-fc-per { font-size: 11.5px; color: var(--tbh-ink-faint); margin-top: 4px; }
.tbh-fc-actions { display: flex; gap: 8px; }
.tbh-fc-details { border: 1.5px solid var(--tbh-line); background: #fff; color: var(--tbh-ink-soft); font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 9px; transition: var(--tbh-t); }
.tbh-fc-details:hover { border-color: var(--tbh-primary); color: var(--tbh-primary); }
.tbh-fc-book { border: 0; background: var(--tbh-accent); color: #fff; font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: 9px; transition: var(--tbh-t); }
.tbh-fc-book:hover { filter: brightness(.94); }
.tbh-fcard-foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 11px 22px; background: var(--tbh-paper); border-top: 1px solid var(--tbh-line-2); }
.tbh-ftag { font-size: 12px; color: var(--tbh-ink-soft); display: inline-flex; align-items: center; gap: 5px; }

/* load more */
.tbh-more-wrap { text-align: center; margin-top: 22px; }
.tbh-more { border: 1.5px solid var(--tbh-primary); background: #fff; color: var(--tbh-primary); font-weight: 600; font-size: 14.5px; padding: 12px 30px; border-radius: 999px; transition: var(--tbh-t); }
.tbh-more:hover { background: var(--tbh-primary); color: #fff; }

/* loading / empty states */
.tbh-loading, .tbh-empty { text-align: center; padding: 56px 20px; color: #ffffff; }
.tbh-loading-plane { font-size: 40px; animation: tbh-fly 1.5s ease-in-out infinite; }
@keyframes tbh-fly { 0%, 100% { transform: translateX(-10px) rotate(0); } 50% { transform: translateX(10px) rotate(8deg); } }
.tbh-empty-icon { font-size: 40px; margin-bottom: 8px; }
.tbh-empty h4 { font-size: 18px; color: #ffffff; margin: 8px 0 4px; }
.tbh-empty p { font-size: 14px; margin: 0; }

/* ── OVERLAYS (drawer / modal / browse) ───────────────────────────────── */
.tbh-overlay {
	position: fixed; inset: 0; z-index: 99990; display: flex;
	background: rgba(20, 27, 35, .55); backdrop-filter: blur(3px);
	animation: tbh-fade .2s ease;
}
@keyframes tbh-fade { from { opacity: 0; } to { opacity: 1; } }

/* detail drawer (slides from right) */
.tbh-drawer { margin-left: auto; width: min(560px, 100%); height: 100%; background: var(--tbh-paper); display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .4); animation: tbh-slide .28s cubic-bezier(.4, 0, .2, 1); }
@keyframes tbh-slide { from { transform: translateX(40px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }
.tbh-drawer-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: #fff; border-bottom: 1px solid var(--tbh-line); position: sticky; top: 0; }
.tbh-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--tbh-cream); color: var(--tbh-ink-soft); font-weight: 600; font-size: 13.5px; padding: 8px 14px; border-radius: 999px; transition: var(--tbh-t); }
.tbh-back:hover { background: var(--tbh-primary-soft); color: var(--tbh-primary); }
.tbh-drawer-title { font-family: var(--tbh-serif); font-size: 19px; font-weight: 600; margin: 0; }
.tbh-drawer-body { padding: 22px; overflow-y: auto; }

.tbh-d-section { background: #fff; border: 1px solid var(--tbh-line); border-radius: var(--tbh-r); padding: 18px; margin-bottom: 14px; }
.tbh-d-title { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tbh-ink-faint); margin: 0 0 14px; }
.tbh-d-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.tbh-d-point { text-align: center; }
.tbh-d-time { font-size: 23px; font-weight: 700; }
.tbh-d-date { font-size: 12.5px; color: var(--tbh-ink-faint); }
.tbh-d-airport { font-size: 13px; font-weight: 700; color: var(--tbh-primary); margin-top: 2px; letter-spacing: .04em; }
.tbh-d-city { font-size: 12px; color: var(--tbh-ink-faint); font-weight: 500; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; margin-left: auto; margin-right: auto; }
.tbh-d-mid { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 80px; }
.tbh-d-dur { font-size: 12px; font-weight: 600; color: var(--tbh-ink-soft); }
.tbh-d-line { width: 100%; height: 2px; background: var(--tbh-line); position: relative; }
.tbh-d-plane { font-size: 14px; color: var(--tbh-primary); }
.tbh-d-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.tbh-d-info-l { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--tbh-ink-faint); font-weight: 600; }
.tbh-d-info-v { font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.tbh-seg { display: flex; gap: 12px; padding: 12px 0; }
.tbh-seg-badge { width: 38px; height: 38px; flex-shrink: 0; border-radius: 9px; background: var(--tbh-cream); display: grid; place-items: center; overflow: hidden; position: relative; }
.tbh-seg-badge .tbh-fc-logo-img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.tbh-seg-badge .tbh-fc-logo-fb { width: 100%; height: 100%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--tbh-primary); background: var(--tbh-primary-soft); }
.tbh-seg-flight { font-weight: 700; font-size: 14px; }
.tbh-seg-route { font-size: 13.5px; color: var(--tbh-ink-soft); margin: 2px 0; }
.tbh-seg-time { font-size: 12.5px; color: var(--tbh-ink-faint); }
.tbh-layover { display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin: 4px 0 4px 50px; background: var(--tbh-cream); border-radius: 8px; font-size: 12.5px; color: var(--tbh-ink-soft); }
.tbh-price-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tbh-d-price-big { font-size: 28px; font-weight: 800; color: var(--tbh-primary); letter-spacing: -.02em; }
.tbh-d-price-note { font-size: 12px; color: var(--tbh-ink-faint); }
.tbh-d-book { border: 0; background: var(--tbh-accent); color: #fff; font-weight: 700; font-size: 14.5px; padding: 13px 26px; border-radius: 999px; transition: var(--tbh-t); }
.tbh-d-book:hover { filter: brightness(.94); }

/* booking modal (centred) */
.tbh-modal { margin: auto; width: min(480px, 100%); max-height: 92vh; overflow-y: auto; background: #fff; border-radius: var(--tbh-r-lg); box-shadow: var(--tbh-shadow); animation: tbh-zoom .24s cubic-bezier(.4, 0, .2, 1); }
@keyframes tbh-zoom { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tbh-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 16px; }
.tbh-modal-title { font-family: var(--tbh-serif); font-size: 21px; font-weight: 600; margin: 0; }
.tbh-modal-sub { font-size: 13.5px; color: var(--tbh-ink-faint); margin: 4px 0 0; }
.tbh-modal-x { border: 0; background: var(--tbh-cream); color: var(--tbh-ink-soft); width: 32px; height: 32px; border-radius: 50%; font-size: 15px; flex-shrink: 0; transition: var(--tbh-t); }
.tbh-modal-x:hover { background: #f0d9d2; color: var(--tbh-err); }
.tbh-modal-summary { margin: 0 24px 16px; padding: 16px; background: var(--tbh-paper); border: 1px solid var(--tbh-line); border-radius: var(--tbh-r); }
.tbh-sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 4px 0; }
.tbh-sum-row span:first-child { color: var(--tbh-ink-faint); }
.tbh-sum-row span:last-child { font-weight: 600; text-align: right; }
.tbh-sum-price { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--tbh-line-2); font-size: 22px; font-weight: 800; color: var(--tbh-primary); text-align: right; }
.tbh-modal-body { padding: 0 24px; }
.tbh-mfield { margin-bottom: 14px; }
.tbh-mfield label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.tbh-mfield input { width: 100%; border: 1.5px solid var(--tbh-line); border-radius: var(--tbh-r-sm); padding: 12px 14px; font-size: 15px; transition: var(--tbh-t); outline: none; font-family: inherit; }
.tbh-mfield input:focus { border-color: var(--tbh-primary); box-shadow: 0 0 0 4px var(--tbh-primary-soft); }
.tbh-mfield input.tbh-err { border-color: var(--tbh-err); background: #fdf3f1; }
.tbh-mfield small { display: block; font-size: 12px; color: var(--tbh-ink-faint); margin-top: 5px; }
.tbh-req { color: var(--tbh-err); }
.tbh-modal-foot { display: flex; gap: 10px; padding: 18px 24px 24px; }
.tbh-btn-ghost { flex: 0 0 auto; border: 1.5px solid var(--tbh-line); background: #fff; color: var(--tbh-ink-soft); font-weight: 600; font-size: 14.5px; padding: 13px 22px; border-radius: 999px; transition: var(--tbh-t); }
.tbh-btn-ghost:hover { border-color: var(--tbh-ink-faint); }
.tbh-btn-primary { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: linear-gradient(135deg, var(--tbh-primary), var(--tbh-primary-hover)); color: #fff; font-weight: 700; font-size: 14.5px; padding: 13px; border-radius: 999px; transition: var(--tbh-t); }
.tbh-btn-primary:hover { filter: brightness(1.05); }
.tbh-btn-primary:disabled { opacity: .7; cursor: wait; }

/* ── BROWSE MODAL ─────────────────────────────────────────────────────── */
.tbh-browse-modal { margin: auto; width: min(640px, 100%); max-height: 90vh; display: flex; flex-direction: column; background: #fff; border-radius: var(--tbh-r-lg); box-shadow: var(--tbh-shadow); animation: tbh-zoom .24s cubic-bezier(.4, 0, .2, 1); overflow: hidden; }
.tbh-browse-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 14px; }
.tbh-browse-title { font-family: var(--tbh-serif); font-size: 21px; font-weight: 600; margin: 0; }
.tbh-browse-search { display: flex; align-items: center; gap: 10px; margin: 0 24px 14px; padding: 11px 15px; background: var(--tbh-paper); border: 1.5px solid var(--tbh-line); border-radius: var(--tbh-r-sm); }
.tbh-browse-search svg { color: var(--tbh-ink-faint); flex-shrink: 0; }
.tbh-browse-search input { border: 0; background: transparent; outline: none; font-size: 15px; width: 100%; font-family: inherit; }
.tbh-alpha { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 24px 14px; }
.tbh-alpha-btn { width: 30px; height: 30px; border: 1px solid var(--tbh-line); background: #fff; color: var(--tbh-ink-soft); font-size: 12.5px; font-weight: 600; border-radius: 7px; transition: var(--tbh-t); }
.tbh-alpha-btn:hover { border-color: var(--tbh-primary); color: var(--tbh-primary); }
.tbh-alpha-btn.is-active { background: var(--tbh-primary); border-color: var(--tbh-primary); color: #fff; }
.tbh-browse-target { padding: 0 24px; font-size: 12.5px; color: var(--tbh-ink-faint); }
.tbh-browse-target b { color: var(--tbh-primary); }
.tbh-browse-list { flex: 1; overflow-y: auto; padding: 8px 14px 14px; }
.tbh-browse-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.tbh-browse-item:hover { background: var(--tbh-primary-soft); }
.tbh-browse-code { flex-shrink: 0; min-width: 44px; text-align: center; font-weight: 700; font-size: 12.5px; color: var(--tbh-primary); background: var(--tbh-primary-soft); border-radius: 7px; padding: 6px; }
.tbh-browse-info { min-width: 0; }
.tbh-browse-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbh-browse-loc { font-size: 12.5px; color: var(--tbh-ink-faint); }
.tbh-browse-empty { text-align: center; padding: 30px; color: var(--tbh-ink-faint); font-size: 14px; }
.tbh-browse-pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 24px 20px; border-top: 1px solid var(--tbh-line-2); }
.tbh-pager-btn { border: 1.5px solid var(--tbh-line); background: #fff; color: var(--tbh-ink-soft); font-weight: 600; font-size: 13.5px; padding: 8px 18px; border-radius: 999px; transition: var(--tbh-t); }
.tbh-pager-btn:hover:not(:disabled) { border-color: var(--tbh-primary); color: var(--tbh-primary); }
.tbh-pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.tbh-pager-info { font-size: 13px; color: var(--tbh-ink-faint); }

/* toast */
.tbh-toast {
	position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(120%);
	z-index: 99999; max-width: min(440px, 92vw);
	background: var(--tbh-ink); color: #fff; padding: 14px 22px; border-radius: 12px; font-size: 14.5px; font-weight: 500;
	box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); opacity: 0; transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .35s;
}
.tbh-toast.is-show { transform: translateX(-50%) translateY(0); opacity: 1; }
.tbh-toast.is-ok { background: linear-gradient(135deg, #14794a, var(--tbh-ok)); }
.tbh-toast.is-err { background: linear-gradient(135deg, #b23a26, var(--tbh-err)); }

/* ============================ RESPONSIVE ================================= */
@media (max-width: 1024px) {
	.tbh-fcard-main { grid-template-columns: 150px 1fr 200px; gap: 14px; }
}
@media (max-width: 860px) {
	.tbh-grid { grid-template-columns: 1fr 1fr; }
	.tbh-grid .tbh-swap { order: 3; grid-column: 1 / -1; justify-self: center; margin: -2px 0 2px; transform: rotate(90deg); }
	.tbh-grid .tbh-swap:hover { transform: rotate(270deg); }
	.tbh-fcard-main { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
	.tbh-fc-airline { justify-content: flex-start; }
	.tbh-fc-price { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--tbh-line-2); }
	.tbh-fc-actions { flex-shrink: 0; }
}
@media (max-width: 620px) {
	.tbh-app { padding: 0 14px; }
	.tbh-controls { grid-template-columns: 1fr 1fr; }
	.tbh-grid { grid-template-columns: 1fr; }
	.tbh-grid .tbh-swap { grid-column: auto; }
	.tbh-foot { flex-direction: column; align-items: stretch; }
	.tbh-search-btn { width: 100%; }
	.tbh-results-head { flex-direction: column; align-items: stretch; }
	.tbh-sort { overflow-x: auto; }
	.tbh-pax-pop { left: 0; right: 0; min-width: 0; max-width: none; }
	.tbh-modal-foot { flex-direction: column-reverse; }
	.tbh-btn-ghost { width: 100%; }
	.tbh-fc-route { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 440px) {
	.tbh-controls { grid-template-columns: 1fr; }
	.tbh-fc-time, .tbh-d-time { font-size: 18px; }
	.tbh-fc-amount { font-size: 23px; }
	.tbh-tabs { width: 100%; }
	.tbh-tab { flex: 1; justify-content: center; }
	.tbh-alpha-btn { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.tbh-app *, .tbh-app *::before, .tbh-app *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================================
   THEME-HARDENING OVERRIDES (v3.0.1)
   Some host themes set aggressive global colors (e.g. .entry-content span
   { color:#fff }) that bleed into plugin output and make text invisible.
   Every text element below is given an explicit, theme-proof colour scoped
   under .tbh-app so it always wins against generic theme rules.
   ========================================================================== */

/* primary, ink-coloured text */
.tbh-app .tbh-ac-name,
.tbh-app .tbh-browse-name,
.tbh-app .tbh-pax-cat,
.tbh-app .tbh-pax-num,
.tbh-app .tbh-pax-label,
.tbh-app .tbh-fc-airline-name,
.tbh-app .tbh-fc-time,
.tbh-app .tbh-d-time,
.tbh-app .tbh-seg-flight,
.tbh-app .tbh-modal-title,
.tbh-app .tbh-drawer-title,
.tbh-app .tbh-browse-title,
.tbh-app .tbh-mfield label,
.tbh-app .tbh-d-info-v,
.tbh-app .tbh-sum-row span:last-child { color: var(--tbh-ink) !important; }

/* secondary / muted text */
.tbh-app .tbh-ac-loc,
.tbh-app .tbh-browse-loc,
.tbh-app .tbh-pax-age,
.tbh-app .tbh-fc-airline-num,
.tbh-app .tbh-fc-city,
.tbh-app .tbh-d-city,
.tbh-app .tbh-fc-per,
.tbh-app .tbh-fc-dur,
.tbh-app .tbh-select-cap,
.tbh-app .tbh-d-date,
.tbh-app .tbh-d-info-l,
.tbh-app .tbh-seg-route,
.tbh-app .tbh-seg-time,
.tbh-app .tbh-modal-sub,
.tbh-app .tbh-browse-empty,
.tbh-app .tbh-pager-info,
.tbh-app .tbh-sort-cap,
.tbh-app .tbh-sum-row span:first-child { color: var(--tbh-ink-faint) !important; }

/* results-area text sits on the page/theme background (often dark) — keep it white */
.tbh-app .tbh-results-title,
.tbh-app .tbh-empty h4 { color: #ffffff !important; }
.tbh-app .tbh-results-count,
.tbh-app .tbh-empty p,
.tbh-app .tbh-empty,
.tbh-app .tbh-loading,
.tbh-app .tbh-loading p { color: #ffffff !important; }

/* form inputs — also override -webkit-text-fill-color which some themes set */
.tbh-app .tbh-input,
.tbh-app .tbh-select,
.tbh-app .tbh-browse-search input,
.tbh-app .tbh-mfield input,
.tbh-app .tbh-pax-pop textarea,
.tbh-app .tbh-pax-pop input { color: var(--tbh-ink) !important; -webkit-text-fill-color: var(--tbh-ink); }
.tbh-app .tbh-input::placeholder,
.tbh-app .tbh-mfield input::placeholder,
.tbh-app .tbh-browse-search input::placeholder { color: var(--tbh-ink-faint) !important; -webkit-text-fill-color: var(--tbh-ink-faint); opacity: 1; }

/* code badges and accents */
.tbh-app .tbh-ac-code,
.tbh-app .tbh-browse-code,
.tbh-app .tbh-fc-code,
.tbh-app .tbh-d-airport { color: var(--tbh-primary) !important; }
.tbh-app .tbh-fc-amount,
.tbh-app .tbh-d-price-big,
.tbh-app .tbh-sum-price { color: var(--tbh-primary) !important; }
.tbh-app .tbh-fc-cur { color: var(--tbh-ink-soft) !important; }

/* tabs / sort pills */
.tbh-app .tbh-tab { color: var(--tbh-ink-soft) !important; }
.tbh-app .tbh-tab.is-active { color: var(--tbh-primary) !important; }
.tbh-app .tbh-sort-btn { color: var(--tbh-ink-soft) !important; }
.tbh-app .tbh-sort-btn.is-active { color: var(--tbh-primary) !important; }

/* hero text — black on the light banner background (overridable via inline vars) */
.tbh-app .tbh-hero-title { color: var(--tbh-hero-title, #000) !important; }
.tbh-app .tbh-hero-sub { color: var(--tbh-hero-sub, #000) !important; }
.tbh-app .tbh-hero-tag { color: var(--tbh-primary) !important; }

/* search & primary buttons keep white label even if theme styles all buttons */
.tbh-app .tbh-search-btn,
.tbh-app .tbh-btn-primary,
.tbh-app .tbh-d-book,
.tbh-app .tbh-fc-book,
.tbh-app .tbh-pax-done { color: #fff !important; }

