/**
 * Elite Transfer 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.
 */

.etb {
	--etb-accent: #c8a24a;
	--etb-accent-soft: #f0d9a0;
	--etb-bg: #0d0f14;
	--etb-surface: #161a22;
	--etb-surface-2: #1e232d;
	--etb-text: #f4f5f7;
	--etb-muted: #98a1b3;
	--etb-border: #2a3140;
	--etb-success: #4ade80;
	--etb-radius: 16px;
	--etb-radius-sm: 8px;
	--etb-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55);
	--etb-font-heading: 'Cormorant Garamond', Georgia, serif;
	--etb-font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--etb-scale: 1;
	--etb-max: 1080px;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.etb-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.etb-badge--green { background: #34d399; color: #04231a; }
.etb-badge--gray { background: #94a3b8; color: #10131a; }
.etb-badge--blue { background: #60a5fa; color: #08172e; }
.etb-badge--plum { background: #c084fc; color: #23083a; }

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

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

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

.etb-price-meta { font-size: .76rem; color: var(--etb-muted); letter-spacing: .02em; }
.etb-price-value {
	font-family: var(--etb-font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--etb-accent);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.etb-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@media (prefers-reduced-motion: reduce) {
	.etb .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. */
.etb--fonts-inherit {
	font-family: inherit;
	font-size: calc(1em * var(--etb-scale));
}

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

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

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

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

.etb .etb-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. */
.etb .etb-captcha > div {
	max-width: 100%;
	overflow-x: auto;
}

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

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