/**
 * RideGrowth Booking — front end.
 * Every colour, radius and font comes from a custom property so the Design
 * screen and Elementor can retheme the whole widget without touching this file.
 */

.tpb {
	--tpb-accent: #f5b301;
	--tpb-accent-soft: #ffd45c;
	--tpb-accent-ink: var(--tpb-accent);
	--tpb-on-accent: #0b1b2b;
	--tpb-bg: #0b1b2b;
	--tpb-surface: #10243a;
	--tpb-surface-2: #16304b;
	--tpb-text: #f4f6f9;
	--tpb-muted: #9fb0c3;
	--tpb-border: #22405f;
	--tpb-success: #22c55e;
	--tpb-radius: 16px;
	--tpb-radius-sm: 8px;
	--tpb-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55);
	--tpb-font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
	--tpb-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--tpb-scale: 1;
	--tpb-max: 1080px;

	max-width: var(--tpb-max);
	margin: 0 auto;
	color: var(--tpb-text);
	font-family: var(--tpb-font-body);
	font-size: calc(16px * var(--tpb-scale));
	line-height: 1.55;
	box-sizing: border-box;
}

.tpb *,
.tpb *::before,
.tpb *::after { box-sizing: border-box; }

.tpb--card .tpb-app {
	background: var(--tpb-bg);
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius);
	box-shadow: var(--tpb-shadow);
	padding: clamp(18px, 4vw, 36px);
}

.tpb-app-title {
	font-family: var(--tpb-font-heading);
	font-size: calc(2.1rem * var(--tpb-scale));
	font-weight: 600;
	letter-spacing: -.01em;
	margin: 0 0 .3em;
	color: var(--tpb-text);
}

.tpb-app-intro {
	color: var(--tpb-muted);
	margin: 0 0 1.4em;
	max-width: 62ch;
}

.tpb-skeleton {
	height: 340px;
	border-radius: var(--tpb-radius);
	background: linear-gradient(100deg, var(--tpb-surface) 30%, var(--tpb-surface-2) 50%, var(--tpb-surface) 70%);
	background-size: 220% 100%;
	animation: tpb-shimmer 1.4s linear infinite;
}

@keyframes tpb-shimmer {
	to { background-position: -220% 0; }
}

/* ------------------------------------------------------------ mode chooser */

.tpb-chooser {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tpb-choice {
	display: grid;
	gap: 6px;
	justify-items: start;
	text-align: left;
	padding: 22px;
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius);
	background: var(--tpb-surface);
	color: inherit;
	cursor: pointer;
	font: inherit;
	transition: border-color .15s, background .15s;
}

.tpb-choice:hover,
.tpb-choice:focus-visible { border-color: var(--tpb-accent-ink); }

.tpb-choice strong {
	font-family: var(--tpb-font-heading);
	font-size: 1.4rem;
	font-weight: 600;
}

.tpb-choice span { color: var(--tpb-muted); font-size: .92rem; }

.tpb-choice-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--tpb-surface-2);
	color: var(--tpb-accent-ink);
	margin-bottom: 4px;
}

/* --------------------------------------------------------------- progress */

.tpb-progress {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	counter-reset: none;
}

.tpb-progress li {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: var(--tpb-muted);
	font-size: .86rem;
}

.tpb-progress li::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--tpb-border);
}

.tpb-progress li:last-child::after { display: none; }

.tpb-progress-dot {
	flex: none;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid var(--tpb-border);
	background: var(--tpb-surface);
	font-variant-numeric: tabular-nums;
	font-size: .85rem;
}

.tpb-progress-label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tpb-progress .is-current { color: var(--tpb-text); }
.tpb-progress .is-current .tpb-progress-dot {
	border-color: var(--tpb-accent-ink);
	color: var(--tpb-accent-ink);
}

.tpb-progress .is-done .tpb-progress-dot {
	background: var(--tpb-accent);
	border-color: var(--tpb-accent);
	color: var(--tpb-on-accent);
}

@media (max-width: 620px) {
	.tpb-progress-label { display: none; }
	.tpb-progress li::after { display: block; }
}

/* ------------------------------------------------------------------ forms */

.tpb-step { display: grid; gap: 18px; }

.tpb-lead { color: var(--tpb-muted); margin: 0; max-width: 62ch; }

.tpb-field-row {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tpb-field { position: relative; display: grid; gap: 6px; min-width: 0; }

.tpb-field label {
	font-size: .82rem;
	color: var(--tpb-muted);
	letter-spacing: .01em;
}

.tpb input[type="text"],
.tpb input[type="email"],
.tpb input[type="tel"],
.tpb input[type="url"],
.tpb input[type="date"],
.tpb input[type="number"],
.tpb select,
.tpb textarea {
	width: 100%;
	padding: 13px 14px;
	background: var(--tpb-surface-2);
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius-sm);
	color: var(--tpb-text);
	font: inherit;
	font-size: .95rem;
	appearance: none;
}

.tpb textarea { resize: vertical; min-height: 90px; }

.tpb input:focus,
.tpb select:focus,
.tpb textarea:focus {
	outline: 2px solid var(--tpb-accent-ink);
	outline-offset: 1px;
	border-color: var(--tpb-accent-ink);
}

.tpb ::placeholder { color: var(--tpb-muted); opacity: .75; }

.tpb-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ------------------------------------------------------------- trip cards */

.tpb-trip {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tpb-trip-card {
	display: grid;
	gap: 3px;
	text-align: left;
	padding: 16px 18px;
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius-sm);
	background: var(--tpb-surface);
	color: inherit;
	font: inherit;
	cursor: pointer;
	transition: border-color .15s;
}

.tpb-trip-card strong { font-size: 1rem; }
.tpb-trip-card span { color: var(--tpb-muted); font-size: .84rem; }
.tpb-trip-card.is-on {
	border-color: var(--tpb-accent-ink);
	box-shadow: inset 0 0 0 1px var(--tpb-accent-ink);
}

/* ----------------------------------------------------------- autocomplete */

.tpb-ac-list {
	position: absolute;
	z-index: 40;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 4px;
	background: var(--tpb-surface);
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius-sm);
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
	overflow: hidden;
	max-height: 300px;
	overflow-y: auto;
}

.tpb-ac-item {
	display: flex;
	gap: 12px;
	align-items: center;
	width: 100%;
	padding: 11px 14px;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.tpb-ac-item:hover,
.tpb-ac-item.is-active { background: var(--tpb-surface-2); }
.tpb-ac-item strong { display: block; font-size: .93rem; font-weight: 500; }
.tpb-ac-item em { display: block; font-style: normal; font-size: .78rem; color: var(--tpb-muted); }
.tpb-ac-icon { color: var(--tpb-accent-ink); display: grid; place-items: center; }

/* ------------------------------------------------------------ route panel */

.tpb-route-result {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	padding: 16px 18px;
	background: var(--tpb-surface);
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius-sm);
}

.tpb-route-result div { display: grid; gap: 2px; }
.tpb-route-result span { font-size: .78rem; color: var(--tpb-muted); }
.tpb-route-result strong { font-size: 1.05rem; font-weight: 600; }
.tpb-route-result.is-loading { display: flex; align-items: center; gap: 10px; color: var(--tpb-muted); }
.tpb-route-result.is-error { display: block; border-color: #b45309; color: var(--tpb-text); }

.tpb-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid var(--tpb-border);
	border-top-color: var(--tpb-accent-ink);
	border-radius: 50%;
	animation: tpb-spin .7s linear infinite;
}

@keyframes tpb-spin { to { transform: rotate(360deg); } }

.tpb-route-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	background: var(--tpb-surface);
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius-sm);
	font-size: .95rem;
}

.tpb-route-strip svg { color: var(--tpb-accent-ink); }
.tpb-route-strip span { width: 100%; color: var(--tpb-muted); font-size: .82rem; }

/* ------------------------------------------------------------- badges row */

.tpb-badges {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
}

.tpb-badges li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .84rem;
	color: var(--tpb-muted);
}

.tpb-badges svg { color: var(--tpb-accent-ink); flex: none; }

/* ----------------------------------------------------------- vehicle grid */

.tpb-vgrid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.tpb-vcard {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius);
	background: var(--tpb-surface);
	overflow: hidden;
	cursor: pointer;
	transition: border-color .15s, transform .15s;
}

.tpb-vcard:focus-visible { outline: 2px solid var(--tpb-accent-ink); outline-offset: 2px; }
.tpb-vcard.is-on { border-color: var(--tpb-accent-ink); box-shadow: inset 0 0 0 1px var(--tpb-accent-ink); }

.tpb-vcard-media { position: relative; aspect-ratio: 16 / 9; background: var(--tpb-surface-2); }
.tpb-vcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpb-vcard-blank { width: 100%; height: 100%; }

.tpb-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	border-radius: 100px;
	font-size: .72rem;
	letter-spacing: .04em;
	font-weight: 600;
	background: var(--tpb-accent);
	color: var(--tpb-on-accent);
}

.tpb-badge--green { background: #34d399; color: #04231a; }
.tpb-badge--gray { background: #94a3b8; color: var(--tpb-on-accent); }
.tpb-badge--blue { background: #60a5fa; color: #08172e; }
.tpb-badge--plum { background: #c084fc; color: #23083a; }

.tpb-vcard-body { padding: 16px 18px; display: grid; gap: 6px; flex: 1; }
.tpb-vcard-body h3 {
	margin: 0;
	font-family: var(--tpb-font-heading);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--tpb-text);
}
.tpb-vcard-cat { margin: 0; color: var(--tpb-muted); font-size: .85rem; }
.tpb-vcard-meta { margin: 4px 0 0; display: flex; gap: 16px; align-items: center; font-size: .85rem; color: var(--tpb-muted); }
.tpb-vcard-meta span { display: flex; gap: 6px; align-items: center; }
.tpb-vcard-meta svg { color: var(--tpb-accent-ink); }

.tpb-features { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.tpb-features li { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--tpb-muted); }
.tpb-features svg { color: var(--tpb-accent-ink); flex: none; margin-top: 1px; }

.tpb-vcard-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 10px;
	padding: 14px 18px;
	border-top: 1px solid var(--tpb-border);
	background: var(--tpb-surface-2);
}

.tpb-price-meta { font-size: .76rem; color: var(--tpb-muted); letter-spacing: .02em; min-width: 0; }
.tpb-price-value { white-space: nowrap; margin-left: auto; letter-spacing: -.01em; }
.tpb-price-value {
	font-family: var(--tpb-font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--tpb-accent-ink);
}

.tpb-selected {
	display: flex;
	gap: 8px;
	align-items: center;
	color: var(--tpb-accent-ink);
	font-weight: 600;
}

/* ---------------------------------------------------------------- summary */

.tpb-summary {
	display: grid;
	gap: 10px;
	padding: 18px;
	background: var(--tpb-surface);
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius-sm);
}

.tpb-summary h3 {
	margin: 0 0 4px;
	font-family: var(--tpb-font-heading);
	font-size: 1.25rem;
	font-weight: 600;
}

.tpb-summary div { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; }
.tpb-summary span { color: var(--tpb-muted); }
.tpb-summary strong { font-weight: 500; text-align: right; }

/* ---------------------------------------------------------------- payment */

.tpb-total {
	display: grid;
	gap: 4px;
	justify-items: center;
	text-align: center;
	padding: 26px 18px;
	background: var(--tpb-surface);
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius);
}

.tpb-total span { color: var(--tpb-muted); font-size: .82rem; }
.tpb-total strong {
	font-family: var(--tpb-font-heading);
	font-size: clamp(2.2rem, 7vw, 3.1rem);
	font-weight: 600;
	color: var(--tpb-accent-ink);
	line-height: 1.1;
}
.tpb-total em { font-style: normal; color: var(--tpb-muted); font-size: .85rem; }

.tpb-pays { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.tpb-pay {
	display: grid;
	gap: 4px;
	text-align: left;
	padding: 18px;
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius-sm);
	background: var(--tpb-surface);
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.tpb-pay.is-on { border-color: var(--tpb-accent-ink); box-shadow: inset 0 0 0 1px var(--tpb-accent-ink); }
.tpb-pay span { color: var(--tpb-muted); font-size: .85rem; }
.tpb-cards { font-size: .74rem !important; letter-spacing: .02em; }

.tpb-stripe { padding: 18px; background: var(--tpb-surface); border: 1px solid var(--tpb-border); border-radius: var(--tpb-radius-sm); }
.tpb-terms { margin: 0; color: var(--tpb-muted); font-size: .8rem; }

/* ---------------------------------------------------------------- buttons */

.tpb-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }

.tpb-cta {
	padding: 15px 30px;
	border: 0;
	border-radius: var(--tpb-radius-sm);
	background: var(--tpb-accent);
	color: var(--tpb-on-accent);
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: filter .15s;
}

.tpb-cta:hover { filter: brightness(1.08); }
.tpb-cta:disabled { opacity: .6; cursor: progress; }
.tpb-step > .tpb-cta { justify-self: stretch; width: 100%; }

.tpb-ghost {
	padding: 14px 24px;
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius-sm);
	background: transparent;
	color: var(--tpb-text);
	font: inherit;
	cursor: pointer;
}

.tpb-ghost:hover { border-color: var(--tpb-accent-ink); }

.tpb-link {
	margin-top: 8px;
	background: none;
	border: 0;
	padding: 0;
	color: var(--tpb-accent-ink);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.tpb-error {
	padding: 12px 16px;
	border-radius: var(--tpb-radius-sm);
	background: rgba(220, 38, 38, .12);
	border: 1px solid rgba(220, 38, 38, .45);
	color: var(--tpb-text);
	font-size: .9rem;
}

/* ------------------------------------------------------------------- done */

.tpb-done {
	display: grid;
	gap: 14px;
	justify-items: center;
	text-align: center;
	padding: 40px 20px;
}

.tpb-done-mark {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: var(--tpb-accent);
	color: var(--tpb-on-accent);
}

.tpb-done-mark svg { width: 30px; height: 30px; }

.tpb-done h2 {
	margin: 0;
	font-family: var(--tpb-font-heading);
	font-size: clamp(1.7rem, 5vw, 2.4rem);
	font-weight: 600;
}

.tpb-done p { margin: 0; color: var(--tpb-muted); max-width: 46ch; }

.tpb-ref {
	display: grid;
	gap: 2px;
	padding: 14px 26px;
	border: 1px dashed var(--tpb-border);
	border-radius: var(--tpb-radius-sm);
}

.tpb-ref span { font-size: .76rem; color: var(--tpb-muted); }
.tpb-ref strong { font-size: 1.25rem; letter-spacing: .06em; }
.tpb-done-price { font-family: var(--tpb-font-heading); font-size: 1.8rem; color: var(--tpb-accent-ink); }

/* -------------------------------------------------------- fleet, coverage */

.tpb-fleet {
	--tpb-cols: 3;
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(var(--tpb-cols), minmax(0, 1fr));
}

.tpb-fleet-card {
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius);
	background: var(--tpb-surface);
	overflow: hidden;
}

.tpb-fleet-media { position: relative; aspect-ratio: 16 / 10; background: var(--tpb-surface-2); }
.tpb-fleet-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tpb-fleet-placeholder { width: 100%; height: 100%; }
.tpb-fleet-body { padding: 18px; }
.tpb-fleet-body h3 { margin: 0 0 4px; font-family: var(--tpb-font-heading); font-size: 1.4rem; font-weight: 600; }
.tpb-muted { color: var(--tpb-muted); margin: 0 0 4px; font-size: .88rem; }
.tpb-meta { color: var(--tpb-muted); margin: 0 0 8px; font-size: .84rem; }

.tpb-coverage {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tpb-coverage-card {
	padding: 20px;
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius);
	background: var(--tpb-surface);
}

.tpb-coverage-flag { font-size: 2rem; line-height: 1; }
.tpb-coverage-card h3 { margin: 8px 0 4px; font-family: var(--tpb-font-heading); font-size: 1.3rem; font-weight: 600; }

@media (max-width: 900px) {
	.tpb-fleet { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* ------------------------------------------------------------- whatsapp */

.tpb-wa {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9999;
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .5);
	text-decoration: none;
}

.tpb-wa:hover { filter: brightness(1.05); }

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

/* ------------------------------------------------------------------ map */

.tpb .tpb-map-wrap {
	margin-top: 14px;
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius-sm);
	overflow: hidden;
	background: var(--tpb-surface-2);
	position: relative;
}

.tpb .tpb-map {
	width: 100%;
	min-height: 180px;
}

.tpb .tpb-map.is-unavailable {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	text-align: center;
	color: var(--tpb-muted);
	font-size: calc(13px * var(--tpb-scale));
}

/* MapLibre paints its own light chrome; tone it down to match the palette. */
.tpb .maplibregl-ctrl-group {
	background: var(--tpb-surface);
	border: 1px solid var(--tpb-border);
	box-shadow: none;
}

.tpb .maplibregl-ctrl-group button + button {
	border-top: 1px solid var(--tpb-border);
}

.tpb .maplibregl-ctrl-group button .maplibregl-ctrl-icon {
	filter: invert(var(--tpb-map-invert, 0));
}

.tpb .maplibregl-ctrl-attrib {
	background: color-mix(in srgb, var(--tpb-surface) 88%, transparent);
	font-size: 10px;
}

.tpb .maplibregl-ctrl-attrib a {
	color: var(--tpb-muted);
}

/* Route end markers. */
.tpb .tpb-marker {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--tpb-accent);
	border: 3px solid var(--tpb-bg);
	box-shadow: 0 0 0 2px var(--tpb-accent);
	cursor: default;
}

.tpb .tpb-marker.is-end {
	background: var(--tpb-bg);
	box-shadow: 0 0 0 2px var(--tpb-accent);
}

@media (max-width: 640px) {
	.tpb .tpb-map {
		height: 240px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tpb .maplibregl-map * {
		transition: none !important;
	}
}

/* --------------------------------------------- inherited typography mode */

/* When the Design screen is set to inherit, the form must not assert a font
   or a base size of its own — Elementor's global typography cascades in. */
.tpb--fonts-inherit {
	font-family: inherit;
	font-size: calc(1em * var(--tpb-scale));
}

.tpb--fonts-inherit h1,
.tpb--fonts-inherit h2,
.tpb--fonts-inherit h3,
.tpb--fonts-inherit h4,
.tpb--fonts-inherit .tpb-app-title,
.tpb--fonts-inherit .tpb-step-title {
	font-family: inherit;
}

.tpb--fonts-inherit input,
.tpb--fonts-inherit select,
.tpb--fonts-inherit textarea,
.tpb--fonts-inherit button {
	font-family: inherit;
}

/* ------------------------------------------------------------- captcha */

.tpb .tpb-captcha {
	margin: 16px 0 4px;
	min-height: 78px;
}

.tpb .tpb-captcha:empty {
	min-height: 0;
	margin: 0;
}

/* The vendor iframe has a fixed width; let it scroll rather than overflow
   the card on a narrow phone. */
.tpb .tpb-captcha > div {
	max-width: 100%;
	overflow-x: auto;
}

.tpb .tpb-captcha-note {
	margin: 8px 0 0;
	font-size: calc(11px * var(--tpb-scale));
	line-height: 1.5;
	color: var(--tpb-muted);
}

.tpb .tpb-captcha-note a {
	color: var(--tpb-muted);
	text-decoration: underline;
}

/* ------------------------------------------------- services (2.0) */

.tpb [hidden] { display: none !important; }

.tpb-services {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding: 5px;
	margin-bottom: 18px;
	background: var(--tpb-surface-2);
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius-sm);
}

.tpb-service {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: calc(var(--tpb-radius-sm) - 2px);
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}

.tpb-service > span:last-child { display: grid; gap: 2px; min-width: 0; }
.tpb-service strong { font-size: 1rem; }
.tpb-service em { font-style: normal; color: var(--tpb-muted); font-size: .82rem; }
.tpb-service-icon { display: inline-flex; color: var(--tpb-muted); }
.tpb-service.is-on { background: var(--tpb-surface); border-color: var(--tpb-accent-ink); }
.tpb-service.is-on .tpb-service-icon { color: var(--tpb-accent-ink); }
.tpb-service:focus-visible,
.tpb-seg button:focus-visible { outline: 2px solid var(--tpb-accent-ink); outline-offset: 2px; }

.tpb-seg {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	background: var(--tpb-surface-2);
	border: 1px solid var(--tpb-border);
	border-radius: var(--tpb-radius-sm);
}

.tpb-seg button {
	padding: 9px 10px;
	border: 0;
	border-radius: calc(var(--tpb-radius-sm) - 3px);
	background: transparent;
	color: var(--tpb-muted);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.tpb-seg button.is-on { background: var(--tpb-accent); color: var(--tpb-on-accent); }

.tpb-help { display: block; margin-top: 6px; color: var(--tpb-muted); font-size: .8rem; }

.tpb-note {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-left: 3px solid var(--tpb-accent-ink);
	background: var(--tpb-surface-2);
	border-radius: 0 var(--tpb-radius-sm) var(--tpb-radius-sm) 0;
	color: var(--tpb-muted);
	font-size: .86rem;
	line-height: 1.5;
}

.tpb-breakdown { margin: -8px 0 18px; padding: 0 4px; text-align: left; font-size: .86rem; }
.tpb-breakdown summary { cursor: pointer; color: var(--tpb-muted); }
.tpb-breakdown ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.tpb-breakdown li { display: flex; justify-content: space-between; gap: 16px; }
.tpb-breakdown li span { color: var(--tpb-muted); }

.tpb-credit { margin: 10px 0 0; text-align: center; font-size: .75rem; opacity: .7; }
.tpb-credit a { color: inherit; }

@media (max-width: 560px) {
	.tpb-services { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ 2.3: boxed fields, tabs, rows */

.tpb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tpb-si { flex: none; }

/* Field box: leading icon, small label inside, borderless control. */
.tpb-box {
	display: block;
	position: relative;
	gap: 0;
	background: var(--tpb-surface);
	border: 1px solid var(--tpb-border);
	border-radius: calc(var(--tpb-radius) - 2px);
	transition: border-color .15s, box-shadow .15s;
}
.tpb-box:hover { border-color: color-mix(in srgb, var(--tpb-border) 55%, var(--tpb-text)); }
.tpb-box:focus-within { border-color: var(--tpb-accent-ink); box-shadow: 0 0 0 3px var(--tpb-accent-tint, rgba(245, 179, 1, .14)); }
.tpb-box-ic {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	color: var(--tpb-accent-ink);
	pointer-events: none;
}
.tpb-box label {
	position: absolute;
	top: 9px;
	left: 52px;
	right: 14px;
	font-size: .75rem;
	line-height: 1.2;
	color: var(--tpb-muted);
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tpb .tpb-box input,
.tpb .tpb-box select {
	display: block;
	height: 58px;
	padding: 24px 14px 8px 52px;
	background: transparent;
	border: 0;
	border-radius: inherit;
	color: var(--tpb-text);
	font-size: .98rem;
	font-weight: 500;
}
.tpb .tpb-box input:focus,
.tpb .tpb-box select:focus { outline: none; }
.tpb .tpb-box select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	cursor: pointer;
}
.tpb .tpb-box input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.tpb-box.tpb-ac .tpb-ac-list { margin-top: 6px; }
.tpb-field-stack { display: grid; gap: 6px; min-width: 0; }

/* Service tabs: icon + label, amber outline and tint when chosen. */
.tpb-services { padding: 0; gap: 12px; background: transparent; border: 0; }
.tpb-service {
	justify-content: center;
	gap: 12px;
	min-height: 60px;
	padding: 12px 18px;
	border: 1px solid var(--tpb-border);
	border-radius: calc(var(--tpb-radius) - 2px);
	background: var(--tpb-surface);
}
.tpb-service:hover { border-color: color-mix(in srgb, var(--tpb-border) 50%, var(--tpb-accent)); }
.tpb-service .tpb-service-icon { color: var(--tpb-text); }
.tpb-service strong { font-weight: 600; font-size: 1.02rem; }
.tpb-service.is-on {
	background: var(--tpb-accent-tint, rgba(245, 179, 1, .1));
	border-color: var(--tpb-accent);
	box-shadow: inset 0 0 0 1px var(--tpb-accent);
}
.tpb-service.is-on .tpb-service-icon { color: var(--tpb-text); }

/* One way / round trip: compact pills. */
.tpb-trip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tpb-trip-card {
	grid-template-columns: 20px 1fr;
	column-gap: 12px;
	align-items: center;
	padding: 12px 16px;
	border-radius: calc(var(--tpb-radius) - 2px);
}
.tpb-trip-card::before {
	content: "";
	grid-row: span 2;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid var(--tpb-border);
	background: var(--tpb-surface);
}
.tpb-trip-card.is-on { background: var(--tpb-accent-tint, transparent); border-color: var(--tpb-accent); box-shadow: inset 0 0 0 1px var(--tpb-accent); }
.tpb-trip-card.is-on::before { border: 6px solid var(--tpb-accent); }
.tpb-trip-card:focus-visible { outline: 2px solid var(--tpb-accent-ink); outline-offset: 2px; }

/* Primary button: amber pill with an arrow. */
.tpb-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 56px;
	padding: 14px 32px;
	border-radius: 999px;
	font-family: var(--tpb-font-heading);
	font-weight: 700;
	font-size: 1.08rem;
	box-shadow: 0 14px 28px -16px color-mix(in srgb, var(--tpb-accent) 80%, transparent);
}
.tpb-cta[data-next]::after,
.tpb-cta[data-submit]::after {
	content: "";
	width: 22px;
	height: 22px;
	flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .15s;
}
.tpb-cta:hover::after { transform: translateX(3px); }
.tpb-cta:focus-visible { outline: 3px solid var(--tpb-text); outline-offset: 3px; }
.tpb-ghost { border-radius: 999px; min-height: 56px; }

/* Trust points: icon over a title and a short line. */
.tpb-badges { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 8px; }
.tpb-badges li {
	flex-direction: column;
	gap: 6px;
	padding: 6px 8px;
	text-align: center;
	color: var(--tpb-text);
}
.tpb-badge-ic {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--tpb-accent-tint, transparent);
	color: var(--tpb-text);
}
.tpb-badge-ic .tpb-si { width: 26px; height: 26px; }
.tpb-badge-text { display: grid; gap: 1px; }
.tpb-badge-text strong { font-family: var(--tpb-font-heading); font-size: .95rem; font-weight: 700; }
.tpb-badge-text small { color: var(--tpb-muted); font-size: .8rem; }

/* Vehicle rows */
.tpb-vlist { display: grid; gap: 12px; }
.tpb-vrow {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr) auto auto 30px;
	align-items: center;
	gap: 18px;
	padding: 12px 18px 12px 12px;
	background: var(--tpb-surface);
	border: 1px solid var(--tpb-border);
	border-radius: calc(var(--tpb-radius) - 2px);
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.tpb-vrow:hover { border-color: color-mix(in srgb, var(--tpb-border) 45%, var(--tpb-accent)); }
.tpb-vrow:focus-visible { outline: 2px solid var(--tpb-accent-ink); outline-offset: 2px; }
.tpb-vrow.is-on { background: var(--tpb-accent-tint, transparent); border-color: var(--tpb-accent); box-shadow: inset 0 0 0 1px var(--tpb-accent); }
.tpb-vrow-media {
	display: grid;
	place-items: center;
	height: 76px;
	border-radius: calc(var(--tpb-radius-sm) + 2px);
	background: var(--tpb-surface-2);
	color: var(--tpb-muted);
	overflow: hidden;
}
.tpb-vrow-media img { width: 100%; height: 100%; object-fit: contain; }
.tpb-vrow-media .tpb-si { width: 40px; height: 40px; stroke-width: 1.3; }
.tpb-vrow-body { min-width: 0; }
.tpb-vrow-body h3 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 2px;
	font-family: var(--tpb-font-heading);
	font-size: 1.08rem;
	font-weight: 700;
	color: var(--tpb-text);
}
.tpb-vrow-body p { margin: 0; color: var(--tpb-muted); font-size: .88rem; }
.tpb-vrow-body .tpb-vrow-feat { margin-top: 3px; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpb-tag { padding: 2px 8px; border-radius: 999px; font-family: var(--tpb-font-body); font-size: .68rem; font-weight: 700; letter-spacing: .03em; background: var(--tpb-accent); color: var(--tpb-on-accent); }
.tpb-vrow-meta { display: flex; gap: 16px; color: var(--tpb-text); font-weight: 600; font-size: .95rem; }
.tpb-vrow-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.tpb-vrow-meta .tpb-si { width: 20px; height: 20px; color: var(--tpb-text); }
.tpb-vrow-price { display: grid; justify-items: end; text-align: right; }
.tpb-vrow-price .tpb-price-value { margin: 0; font-size: 1.3rem; font-weight: 700; }
.tpb-vrow-price .tpb-price-meta { font-size: .72rem; }
.tpb-vrow-check {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid var(--tpb-border);
	color: transparent;
}
.tpb-vrow-check .tpb-si { width: 18px; height: 18px; stroke-width: 3; }
.tpb-vrow.is-on .tpb-vrow-check { background: var(--tpb-accent); border-color: var(--tpb-accent); color: var(--tpb-on-accent); }

@media (max-width: 640px) {
	.tpb-vrow {
		position: relative;
		grid-template-columns: 72px minmax(0, 1fr) auto;
		grid-template-areas: "media body body" "meta meta price";
		gap: 10px 12px;
		padding: 12px;
	}
	.tpb-vrow-media { grid-area: media; height: 56px; align-self: start; }
	.tpb-vrow-body { grid-area: body; padding-right: 30px; }
	.tpb-vrow-meta { grid-area: meta; gap: 14px; font-size: .88rem; align-self: center; }
	.tpb-vrow-price { grid-area: price; }
	.tpb-vrow-price .tpb-price-meta { display: none; }
	.tpb-vrow-check { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; }
	.tpb-actions .tpb-cta { flex: 1; padding: 14px 20px; }
	.tpb-vrow-body .tpb-vrow-feat { display: none; }
	.tpb-trip { grid-template-columns: 1fr 1fr; }
	.tpb-trip-card span { display: none; }
	.tpb .tpb-services { grid-template-columns: 1fr 1fr; gap: 8px; }
	.tpb-service { gap: 8px; padding: 10px; min-height: 54px; }
	.tpb-service em { display: none; }
	.tpb-service strong { font-size: .95rem; }
	.tpb-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
	.tpb-badges:has(> li:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tpb-badge-text small { display: none; }
	.tpb-badge-text strong { font-size: .85rem; }
}
.tpb-tag.tpb-badge--green { background: #34d399; color: #04231a; }
.tpb-tag.tpb-badge--gray { background: #94a3b8; color: #0b1b2b; }
.tpb-tag.tpb-badge--blue { background: #60a5fa; color: #08172e; }
.tpb-tag.tpb-badge--plum { background: #c084fc; color: #23083a; }
.tpb-box-ic { color: var(--tpb-text); }
.tpb-ac .tpb-box-ic { color: var(--tpb-accent); }
