/*
 * Esplori Booking. Every colour, radius and font comes from the tokens below,
 * so matching a client's theme means changing only these.
 * Style: white cards with inset photos, hairline dividers, near-black primary, small dense type.
 * The trip pickers (place, dates, times) are one component, .esb-pick, used by the search bar and the booking form.
 */
.esb, .esb-fleet-wrap {
	--esb-primary: #0b1220;
	--esb-primary-text: #ffffff;
	--esb-text: #111827;
	--esb-muted: #6b7280;
	--esb-faint: #9ca3af;
	--esb-border: #e5e7eb;
	--esb-surface: #ffffff;
	--esb-panel: #f4f4f6;
	--esb-aside: var(--esb-panel); /* the car panel beside the form */
	--esb-fill: #f3f4f6;
	--esb-icon: #4f63d9;
	--esb-accent: var(--esb-primary); /* filter: the chosen part of the price range */
	--esb-required: #e5484d;
	--esb-ok: #22a06b;
	--esb-radius-card: 20px;
	--esb-radius: 10px;
	--esb-radius-btn: 12px; /* buttons; a theme can make them pills with 999px */
	--esb-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
	--esb-card-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	--esb-card-shadow-hover: 0 2px 4px rgba(16, 24, 40, .04), 0 16px 40px rgba(16, 24, 40, .1);
	--esb-font: inherit;
	--esb-font-head: var(--esb-font);
	/* The trip pickers (.esb-pick), as in the search bar. */
	--esb-cta: var(--esb-primary);
	--esb-cta-text: var(--esb-primary-text);
	--esb-today: var(--esb-primary);
	--esb-field-h: 52px;
	/* Behind a cutout car photo: a light studio backdrop, on the fleet cards and in the booking form's car panel. */
	--esb-studio: radial-gradient(120% 60% at 50% 38%, #ffffff 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(180deg, #eef0f2 0%, #e4e6e9 58%, #d3d6da 100%);
	/* Anything picked (filter tiles, pills, segments, checkbox, time slot, calendar days) reads these, set on any
	   ancestor. Unset, picked things keep the neutral look: --esb-text ring on --esb-fill, solid --esb-primary. */
	/* --esb-picked, --esb-picked-bg, --esb-picked-text */
	color: var(--esb-text);
	font-family: var(--esb-font);
	font-size: 14px;
	line-height: 1.45;
	box-sizing: border-box;
}
.esb *, .esb-fleet-wrap * { box-sizing: inherit; }
.esb [hidden], .esb-fleet-wrap [hidden] { display: none !important; }

/* ============================================================ fleet */
.esb-fleet-wrap {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	padding: 16px;
	background: var(--esb-panel);
	border-radius: 24px;
}
@media (min-width: 768px) { .esb-fleet-wrap { gap: 24px; padding: 20px; } }

/* ---- toolbar: car-type pills on the left, the result count and "Filters" on the right */
.esb-fleet-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.esb-cats { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
@media (max-width: 767px) {
	/* One scrolling row on phones, edge to edge. */
	.esb-fleet-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; } /* nowrap: a wrapped column is as wide as its widest item */
	.esb-cats { flex-wrap: nowrap; margin-inline: -16px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
	.esb-cats::-webkit-scrollbar { display: none; }
}
.esb-cat { position: relative; flex: none; cursor: pointer; }
.esb-cat input { position: absolute; opacity: 0; pointer-events: none; }
.esb-cat span, .esb-cat.is-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	color: var(--esb-text);
	background: var(--esb-surface);
	border: 1px solid var(--esb-border);
	border-radius: 999px;
	transition: background .15s, color .15s, border-color .15s;
}
.esb-cat span svg { width: 30px; height: 18px; margin-left: -4px; }
.esb-cat:hover span, .esb-cat.is-all:hover { border-color: var(--esb-text); }
.esb-cat input:checked + span, .esb-cat.is-all[aria-pressed="true"] { color: var(--esb-primary-text); background: var(--esb-primary); border-color: var(--esb-primary); }
.esb-cat input:focus-visible + span, .esb-cat.is-all:focus-visible { outline: 2px solid var(--esb-text); outline-offset: 2px; }
.esb-fleet-bar__end { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.esb-fleet-bar__count { margin: 0; font-size: 14px; color: var(--esb-muted); white-space: nowrap; }

.esb-filter-open {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	color: var(--esb-text);
	background: var(--esb-surface);
	border: 1px solid var(--esb-border);
	border-radius: 999px;
	cursor: pointer;
}
.is-enhanced .esb-filter-open { display: inline-flex; }
.esb-filter-open:hover, .esb-filter-open[aria-expanded="true"] { border-color: var(--esb-text); }
.esb-filter-open svg { width: 16px; height: 16px; }
/* The trip chip: the chosen dates (or "Add dates"), opening the search fields under the toolbar. Same pill as Filters. */
.esb-trip-open {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	color: var(--esb-text);
	background: var(--esb-surface);
	border: 1px solid var(--esb-border);
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
}
.is-enhanced .esb-trip-open { display: inline-flex; }
.esb-trip-open:hover, .esb-trip-open[aria-expanded="true"] { border-color: var(--esb-text); }
.esb-trip-open svg { flex: none; width: 16px; height: 16px; fill: currentColor; }
.esb-trip-open__edit { margin-left: 4px; color: var(--esb-muted); text-decoration: underline; text-underline-offset: 3px; }
.esb-trip { margin-top: 16px; }
@media (max-width: 767px) {
	/* Phones: the dates get a full row above the count and Filters. */
	.esb-fleet-bar__end { flex-wrap: wrap; }
	.esb-trip-open { flex: 1 1 100%; justify-content: center; }
}
.esb-trip[hidden] { display: none; }
.esb-filter-open__count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	font-size: 11px;
	font-weight: 700;
	color: var(--esb-primary-text);
	background: var(--esb-primary);
	border-radius: 999px;
}

/* ---- the panel. Without JS it stays an inline card above the grid (and filters nothing). */
.esb-filter {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--esb-surface);
	border: 1px solid var(--esb-border);
	border-radius: var(--esb-radius-card);
}
.esb-filter__head {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 8px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--esb-border);
}
.esb-filter__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: 0; }
.esb-filter__close {
	display: none;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: var(--esb-text);
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.esb-filter__close:hover { background: var(--esb-fill); }
.esb-filter__close:focus-visible { outline: 2px solid var(--esb-text); outline-offset: 2px; }
.esb-filter__close svg { width: 16px; height: 16px; }
.esb-filter__clear {
	padding: 0;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	color: var(--esb-text);
	background: none;
	border: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.esb-filter__clear:disabled { color: var(--esb-faint); text-decoration: none; cursor: default; }
.esb-filter__body { padding: 0 20px; }
.esb-filter__group { padding: 20px 0; border-top: 1px solid var(--esb-border); }
.esb-filter__group:first-child { border-top: 0; }
.esb-filter__legend { margin: 0 0 14px; font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.esb-filter__hint { margin: -10px 0 14px; font-size: 12px; color: var(--esb-muted); }
.esb-filter__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.esb-filter__row .esb-filter__legend { margin: 0; }
.esb-filter__row .esb-filter__hint { margin: 2px 0 0; }
.esb-filter__foot { display: none; }
.is-enhanced .esb-filter__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--esb-border);
}
.is-enhanced .esb-filter__foot .esb-filter__clear { font-size: 14px; }
.is-enhanced .esb-filter__head .esb-filter__clear { display: none; } /* it sits in the foot */

/* Dropdown from 900px: under the toolbar's right end, over the grid. */
@media (min-width: 900px) {
	.esb-fleet-wrap.is-enhanced .esb-filter {
		position: absolute;
		z-index: 30;
		top: 76px;
		right: 20px;
		width: 380px;
		max-height: min(640px, calc(100vh - 120px));
		box-shadow: 0 2px 6px rgba(16, 24, 40, .06), 0 24px 56px rgba(16, 24, 40, .18);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity .18s, transform .18s, visibility 0s .18s;
	}
	.esb-fleet-wrap.is-enhanced .esb-filter.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
	.is-enhanced .esb-filter__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
	.esb-filter__close, .esb-filter__backdrop { display: none !important; }
}
@media (max-width: 899px) {
	.esb-fleet-wrap.is-enhanced .esb-filter {
		position: fixed;
		z-index: 100000;
		right: 0;
		bottom: 0;
		left: 0;
		max-width: 640px;
		max-height: calc(100% - 24px);
		margin-inline: auto;
		border: 0;
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -8px 40px rgba(16, 24, 40, .2);
		transform: translateY(100%);
		visibility: hidden;
		transition: transform .3s cubic-bezier(.32, .72, 0, 1), visibility 0s .3s;
	}
	.esb-fleet-wrap.is-enhanced .esb-filter.is-open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.32, .72, 0, 1); }
	.is-enhanced .esb-filter__head { grid-template-columns: 40px 1fr 40px; padding: 12px 16px; }
	.is-enhanced .esb-filter__title { grid-column: 2; text-align: center; }
	.is-enhanced .esb-filter__close { display: grid; grid-area: 1 / 1; }
	.is-enhanced .esb-filter__body { flex: 1; padding: 0 24px; overflow-y: auto; overscroll-behavior: contain; }
	.is-enhanced .esb-filter__group { padding: 24px 0; }
	.is-enhanced .esb-filter__legend { font-size: 18px; }
	.is-enhanced .esb-filter__foot { padding-inline: 24px; }
	.esb-filter__backdrop { position: fixed; z-index: 99999; inset: 0; background: rgba(0, 0, 0, .4); }
}
html.esb-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .esb-fleet-wrap .esb-filter { transition: none !important; } }

/* chosen state, shared by tiles, segment and pills: a 2px ring in the text colour on a light fill */
.esb-tile, .esb-pill, .esb-segment label { position: relative; cursor: pointer; }
.esb-tile input, .esb-pill input, .esb-segment input { position: absolute; opacity: 0; pointer-events: none; }
.esb-tile input:focus-visible + span, .esb-pill input:focus-visible + span, .esb-segment input:focus-visible + span { outline: 2px solid var(--esb-text); outline-offset: 2px; }

.esb-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 899px) { .esb-tiles { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; } }
.esb-tile__box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 88px;
	padding: 12px 8px;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	color: var(--esb-text);
	background: var(--esb-surface);
	border: 1px solid var(--esb-border);
	border-radius: 14px;
	transition: border-color .12s, box-shadow .12s, background .12s;
}
.esb-tile__box svg { width: 46px; height: 28px; }
.esb-tile:hover .esb-tile__box { border-color: var(--esb-text); }
.esb-tile input:checked + .esb-tile__box { background: var(--esb-picked-bg, var(--esb-fill)); border-color: var(--esb-picked, var(--esb-text)); box-shadow: inset 0 0 0 1px var(--esb-picked, var(--esb-text)); }

.esb-segment {
	display: grid;
	grid-auto-columns: minmax(0, 1fr);
	grid-auto-flow: column;
	background: var(--esb-surface);
	border: 1px solid var(--esb-border);
	border-radius: 14px;
}
.esb-segment span {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 8px;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	border-radius: 13px;
	transition: background .12s, box-shadow .12s;
}
.esb-segment label + label span::before { content: ""; position: absolute; top: 14px; bottom: 14px; left: 0; width: 1px; background: var(--esb-border); }
.esb-segment input:checked + span::before, .esb-segment label:has(input:checked) + label span::before { content: none; }
.esb-segment label:hover span { background: var(--esb-fill); }
.esb-segment input:checked + span { font-weight: 600; background: var(--esb-picked-bg, var(--esb-fill)); box-shadow: inset 0 0 0 2px var(--esb-picked, var(--esb-text)); }

.esb-stepper { display: flex; flex: none; align-items: center; gap: 10px; }
.esb-stepper button {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	color: var(--esb-text);
	background: var(--esb-surface);
	border: 1px solid var(--esb-border);
	border-radius: 50%;
	cursor: pointer;
}
.esb-stepper button svg { width: 12px; height: 12px; }
.esb-stepper button:hover:not(:disabled) { border-color: var(--esb-text); }
.esb-stepper button:disabled { color: var(--esb-faint); opacity: .5; cursor: not-allowed; }
.esb-stepper output { min-width: 36px; font-size: 15px; text-align: center; }

.esb-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.esb-pill span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	font-size: 13px;
	font-weight: 500;
	background: var(--esb-surface);
	border: 1px solid var(--esb-border);
	border-radius: 999px;
	transition: border-color .12s, box-shadow .12s, background .12s;
}
.esb-pill svg { width: 15px; height: 15px; fill: currentColor; }
.esb-pill:hover span { border-color: var(--esb-text); }
.esb-pill input:checked + span { background: var(--esb-picked-bg, var(--esb-fill)); border-color: var(--esb-picked, var(--esb-text)); box-shadow: inset 0 0 0 1px var(--esb-picked, var(--esb-text)); }

/* price: the inputs overhang by half a thumb so its centre reaches both ends of the track */
.esb-range { position: relative; height: 28px; margin: 0 14px; }
.esb-range__track { position: absolute; right: 0; bottom: 13px; left: 0; height: 2px; background: var(--esb-border); }
.esb-range__fill { position: absolute; top: 0; bottom: 0; left: var(--lo, 0%); right: calc(100% - var(--hi, 100%)); background: var(--esb-accent); }
.esb-range input {
	position: absolute;
	bottom: 0;
	left: -14px;
	width: calc(100% + 28px);
	height: 28px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}
.esb-range input::-webkit-slider-runnable-track { height: 28px; background: none; border: 0; }
.esb-range input::-moz-range-track { height: 28px; background: none; border: 0; }
.esb-range input::-webkit-slider-thumb {
	width: 28px;
	height: 28px;
	background: var(--esb-surface);
	border: 1px solid #b0b0b0;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
	pointer-events: auto;
	cursor: grab;
	-webkit-appearance: none;
	appearance: none;
}
.esb-range input::-moz-range-thumb {
	box-sizing: border-box;
	width: 28px;
	height: 28px;
	background: var(--esb-surface);
	border: 1px solid #b0b0b0;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
	pointer-events: auto;
	cursor: grab;
}
.esb-range input:focus-visible { outline: none; }
.esb-range input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--esb-text); outline-offset: 2px; }
.esb-range input:focus-visible::-moz-range-thumb { outline: 2px solid var(--esb-text); outline-offset: 2px; }
.esb-range__values { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.esb-range__values p { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; font-size: 12px; color: var(--esb-muted); }
.esb-range__values output {
	min-width: 76px;
	padding: 9px 14px;
	font-size: 14px;
	text-align: center;
	color: var(--esb-text);
	background: var(--esb-surface);
	border: 1px solid var(--esb-border);
	border-radius: 999px;
}

/* the booking form's consent checkbox */
.esb-field--check input {
	appearance: none;
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	border: 1.5px solid #cbd0d8;
	border-radius: 4px;
	background: var(--esb-surface) center / 10px no-repeat;
	cursor: pointer;
}
.esb-field--check input:checked {
	background-color: var(--esb-picked, var(--esb-primary));
	border-color: var(--esb-picked, var(--esb-primary));
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.esb-field--check input:focus-visible { outline: 2px solid var(--esb-primary); outline-offset: 2px; }

.esb-fleet {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: 16px;
	align-content: start;
}
/* Car card: a white card, the photo inset on top with its own rounded corners. Under it the class (small caps),
   the name, the highlights, a spec row between two hairlines, then the price and a dark Book button. */
.esb-car {
	display: flex;
	flex-direction: column;
	padding: 10px;
	color: var(--esb-text);
	text-decoration: none;
	background: var(--esb-surface);
	border: 1px solid var(--esb-border);
	border-radius: var(--esb-radius-card);
	box-shadow: var(--esb-card-shadow);
	transition: box-shadow .2s, transform .2s;
}
/* Themes underline links on hover (Twenty Twenty-Five: a:hover, which outranks .esb-car); the card never is. */
.esb-car:hover, .esb-car:focus { color: var(--esb-text); text-decoration: none; }
.esb-car:hover { box-shadow: var(--esb-card-shadow-hover); transform: translateY(-2px); }
.esb-car:focus-visible { outline: 2px solid var(--esb-primary); outline-offset: 3px; }
.esb-car__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--esb-fill);
	border-radius: calc(var(--esb-radius-card) - 6px);
}
.esb-car__media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* Cutout photo (transparent PNG, with its own floor shadow): the whole car on the light studio backdrop. */
.esb-car.is-cutout .esb-car__media { background: var(--esb-studio); }
.esb-car.is-cutout .esb-car__media img { box-sizing: border-box; padding: 6% 7%; object-fit: contain; object-position: 50% 60%; }
/* "Or similar": a white pill in the photo's top right corner, its tooltip opening leftwards. (.esb-car first: .esb-tip,
   further down, sets position: relative.) */
.esb-car .esb-car__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 500;
	background: var(--esb-surface);
	border-radius: 999px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .1);
}
.esb-car__badge svg { width: 13px; height: 13px; }
.esb-car__badge .esb-tip__bubble { right: 0; left: auto; }
.esb-car__badge .esb-tip__bubble::before { right: 14px; left: auto; }
.esb-car__body { display: flex; flex: 1; flex-direction: column; padding: 16px 8px 6px; }
.esb-car__cat { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--esb-muted); }
.esb-car__name { margin: 6px 0 0; font-family: var(--esb-font-head); font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; }
.esb-car__perks { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; padding: 0; list-style: none; }
.esb-car__perks li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--esb-muted); }
.esb-car__perks svg { flex: none; width: 14px; height: 14px; color: var(--esb-ok); }
/* Specs, as the amenities row: icon + word, thin dividers between, hairlines above and below. */
.esb-car__specs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 0;
	margin: 16px 0 0;
	padding: 12px 0;
	list-style: none;
	border-top: 1px solid var(--esb-border);
	border-bottom: 1px solid var(--esb-border);
}
.esb-car__specs li { display: flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 13px; line-height: 1.2; }
.esb-car__specs li:first-child { padding-left: 0; }
.esb-car__specs li + li { border-left: 1px solid var(--esb-border); }
.esb-car__specs svg { flex: none; width: 15px; height: 15px; fill: currentColor; color: var(--esb-icon); }
.esb-car__specs svg[fill="none"] { fill: none; }
.esb-car__buy { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.esb-car__price { display: flex; flex-direction: column; gap: 2px; margin: 0; line-height: 1; white-space: nowrap; }
.esb-car__price span { font-size: 13px; color: var(--esb-muted); }
.esb-car__price strong { font-family: var(--esb-font-head); font-size: 30px; font-weight: 600; letter-spacing: -.025em; }
.esb-car__price strong small { font-size: 16px; font-weight: 600; }
.esb-car__price em { margin-left: 2px; font-size: 14px; font-style: normal; font-weight: 500; letter-spacing: 0; color: var(--esb-muted); }
.esb-car__cta {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--esb-primary-text);
	background: var(--esb-primary);
	border-radius: var(--esb-radius-btn);
	transition: gap .2s;
}
.esb-car__cta svg { width: 16px; height: 16px; }
.esb-car:hover .esb-car__cta { gap: 12px; }
@media (prefers-reduced-motion: reduce) { .esb-car, .esb-car__cta { transition: none; } .esb-car:hover { transform: none; } }
.esb-fleet__none { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--esb-muted); }

/* ---- tooltip: .esb-tip on any element, its .esb-tip__bubble opens under it on hover or keyboard focus.
   The text sits in the element itself, so a screen reader reads it with the label and no JS is needed. Works
   inside a link (a fleet card), where a separate button would not be allowed. */
.esb-tip { position: relative; cursor: help; }
.esb-tip__bubble {
	position: absolute;
	z-index: 10;
	top: calc(100% + 10px);
	left: 0;
	width: max-content;
	max-width: min(280px, calc(100vw - 48px));
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	white-space: normal;
	color: #ffffff;
	background: rgba(17, 17, 17, .94);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity .15s, transform .15s, visibility 0s .15s;
	pointer-events: none;
}
.esb-tip__bubble::before { content: ""; position: absolute; bottom: 100%; left: 14px; border: 6px solid transparent; border-bottom-color: rgba(17, 17, 17, .94); }
.esb-tip:hover .esb-tip__bubble, .esb-tip:focus-visible .esb-tip__bubble, .esb-tip:focus-within .esb-tip__bubble {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: .1s, .1s, 0s;
}
@media (prefers-reduced-motion: reduce) { .esb-tip__bubble { transition: none; transform: none; } }

/* ============================================================ form */
/* Two columns: the steps on the left, the chosen car, pickup and return and the total on the right (sticky). Below 900px
   the car panel sits above the form. */
.esb {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 16px;
	background: var(--esb-surface);
	border-radius: 22px;
	box-shadow: var(--esb-shadow);
}
.esb-main { min-width: 0; scroll-margin-top: 120px; }
.esb-aside {
	order: -1;
	align-self: start;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: 16px;
	background: var(--esb-aside);
	border-radius: var(--esb-radius-card);
}
@media (min-width: 560px) { .esb { padding: 24px; } .esb-aside { padding: 20px; } }
@media (min-width: 900px) {
	.esb { grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 28px; padding: 28px; }
	.esb-aside { order: 0; position: sticky; top: 24px; }
}

.esb-result { display: block; max-width: 1000px; } /* as wide as the Summary step */

.esb-progress { display: flex; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; font-size: 12px; font-weight: 500; color: var(--esb-faint); }
.esb-progress li { flex: 1; display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 2px solid var(--esb-border); }
.esb-progress span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--esb-fill); font-size: 11px; font-weight: 700; }
.esb-progress .is-current, .esb-progress .is-done { color: var(--esb-text); border-color: var(--esb-primary); }
.esb-progress .is-current span, .esb-progress .is-done span { background: var(--esb-primary); color: var(--esb-primary-text); }

.esb-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.esb-title { float: left; width: 100%; font-size: 20px; font-weight: 700; margin: 0 0 16px; padding: 0; letter-spacing: -.01em; }
.esb-step > .esb-title ~ * { clear: both; }
.esb-subtitle { font-size: 14px; font-weight: 600; margin: 24px 0 10px; }

.esb-row { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 560px) { .esb-row { grid-template-columns: 1fr 1fr; } }

.esb-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
/* Driver details: one grid of fields, two per row at most (one on phones), except the licence: number, issuing
   country and dates share one row once the step is 600px wide (a six-column grid: halves span 3, licence fields 2). */
.esb-step { container-type: inline-size; }
.esb-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
@media (min-width: 560px) { .esb-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 600px) {
	.esb-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.esb-fields > .esb-field { grid-column: span 3; }
	.esb-fields > .esb-field--licence { grid-column: span 2; }
	.esb-fields > :not(.esb-field--licence) + .esb-field--licence { grid-column: 1 / span 2; } /* the licence row starts on its own */
	.esb-fields > .esb-field--wide { grid-column: 1 / -1; }
}
.esb-field--wide { grid-column: 1 / -1; }
.esb-field > label, .esb-label { margin: 0; font-size: 14px; font-weight: 600; }
.esb-field:has([required]) > label::after, .esb-field:has([required]) > .esb-label::after { content: "*"; color: var(--esb-required); }
.esb-field small { font-weight: 400; color: var(--esb-faint); }
.esb-field input:not([type=checkbox]):not([type=radio]), .esb-field select, .esb-field textarea {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
	font: inherit;
	font-size: 16px; /* 16px keeps iOS from zooming in */
	color: var(--esb-text);
	background: var(--esb-fill);
	border: 1px solid transparent;
	border-radius: var(--esb-radius);
	transition: border-color .15s, background .15s;
}
@media (min-width: 560px) {
	.esb-field input:not([type=checkbox]):not([type=radio]), .esb-field select, .esb-field textarea { font-size: 14px; }
}
.esb-field input::placeholder, .esb-field textarea::placeholder { color: var(--esb-faint); }
.esb-field input:not([type=checkbox]):not([type=radio]):focus, .esb-field select:focus, .esb-field textarea:focus { outline: none; background: var(--esb-surface); border-color: var(--esb-primary); }
.esb-field .is-invalid { border-color: var(--esb-required) !important; }
.esb-field__error, .esb-error { color: var(--esb-required); font-size: 13px; margin: 0; }
.esb-field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; }
.esb-field--check label::after { content: none !important; }
.esb-field--check input { margin-top: 2px; }
.esb-field--check a { color: var(--esb-text); }

/* ---- car panel (.esb-aside) */
.esb-aside__empty { margin: 0; padding: 40px 16px; text-align: center; color: var(--esb-muted); border: 1px dashed var(--esb-border); border-radius: 14px; }
.esb-carpreview { display: flex; flex-direction: column; gap: 12px; }
.esb-carpreview p { margin: 0; }
.esb-carpreview__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.esb-carpreview__name { font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.esb-carpreview__cat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px !important; color: var(--esb-muted); } /* under the name, as on the fleet card */
/* "Or similar" beside the category: a pill with an info icon, like the chip on the fleet card. */
.esb-carpreview__similar { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 12px; font-weight: 500; color: var(--esb-text); border: 1px solid var(--esb-border); border-radius: 999px; }
.esb-carpreview__similar:focus-visible { outline: 2px solid var(--esb-primary); outline-offset: 2px; }
.esb-carpreview__similar svg { width: 12px; height: 12px; }
.esb-carpreview__img { display: block; width: 100%; aspect-ratio: 5 / 2; object-fit: cover; border-radius: 14px; }
/* Cutout photo: the whole car on the studio backdrop, as on its fleet card. */
.esb-carpreview__img.is-cutout { box-sizing: border-box; padding: 4% 6%; object-fit: contain; object-position: 50% 58%; background: var(--esb-studio); }

.esb-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.esb-pills li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font-size: 13px; font-weight: 500; border: 1px solid var(--esb-border); border-radius: 999px; }
.esb-pills svg { flex: none; width: 13px; height: 13px; }
.esb-pills svg:not([fill]) { fill: currentColor; } /* the gearbox icon is a stroke */

.esb-aside .esb-subtitle { margin: 0 0 10px; font-size: 15px; }

/* Phones: a thumbnail beside the name, so the form starts sooner. */
@media (max-width: 559px) {
	.esb-carpreview { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 12px 14px; }
	.esb-carpreview > * { grid-column: 1 / -1; }
	.esb-carpreview > .esb-carpreview__head { grid-column: 2; grid-row: 1; flex-direction: column; gap: 6px; }
	.esb-carpreview > .esb-carpreview__img { grid-column: 1; grid-row: 1; aspect-ratio: 1; border-radius: 12px; }
	.esb-carpreview__name { font-size: 20px; }
}

/* ---- trip pickers in step 1: the search bar's (.esb-pick, below) */
.esb-step .esb-pick { margin: 0 0 18px; }
.esb-pick .esb-field__error { margin-top: -2px; }

/* ---- total (in the car panel), summary */
.esb-price { padding-top: 14px; border-top: 1px solid var(--esb-border); font-size: 13px; color: var(--esb-muted); }
.esb-price:empty { display: none; }
.esb-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; }
.esb-total strong { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--esb-text); }
.esb-total__calc { margin: 2px 0 0; font-size: 12px; text-align: right; }
.esb-aside__incl { margin-top: 16px; } /* + the panel's 12px gap: clear of the total above */
.esb-aside__incl .esb-inclusions { margin: 0; }

/* Summary step: pickup, return and driver in the car panel, above the total (the panel is the one summary). */
.esb-summary { display: grid; gap: 10px; margin: 0; padding-top: 14px; border-top: 1px solid var(--esb-border); font-size: 13px; }
.esb-summary div { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.esb-summary dt { color: var(--esb-muted); }
.esb-summary dd { margin: 0; font-weight: 600; }
.esb-summary dd span { display: block; font-size: 12px; font-weight: 400; color: var(--esb-muted); }
/* Summary step: the car panel is hidden and the step itself is the one white box, full width, holding the car,
   everything entered, the total, the consent and the buttons (booking.js renderReview(); morph() animates the switch). */
.esb.is-summary { grid-template-columns: minmax(0, 1fr); max-width: 1000px; } /* slimmer: one column needs less */
.esb.is-summary .esb-aside { display: none; }
.esb-review { padding: 0; } /* no grey box: it sits straight on the white form card */
.esb-review > .esb-title { margin-bottom: 14px; }
.esb-review__title { margin: 0; font: inherit; font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.esb-review__body > * { padding: 16px 0; border-bottom: 1px solid var(--esb-border); }
.esb-review__body > :first-child { padding-top: 0; }
/* The car as one row: a small photo, then name, category with "Or similar", and the spec pills. */
.esb-review__car { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; }
.esb-review__thumb { flex: none; box-sizing: border-box; width: 120px; height: 84px; object-fit: cover; border-radius: 10px; }
.esb-review__thumb.is-cutout { padding: 6px; object-fit: contain; background: var(--esb-studio); }
.esb-review__car > div { min-width: 0; } /* lets the pills wrap on a phone */
.esb-review__car p { margin: 0; }
.esb-review__name { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.esb-review__cat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px !important; font-size: 16px; color: var(--esb-muted); }
.esb-review__cat .esb-carpreview__similar { font-size: 14px; }
.esb-review .esb-pills { margin-top: 10px; }
.esb-review .esb-pills li { font-size: 14px; }
.esb-review .esb-pills svg { width: 14px; height: 14px; }
@media (max-width: 559px) { .esb-review__thumb { width: 88px; height: 66px; } }
/* Trip and driver side by side when there's room. */
.esb-review__cols { display: grid; gap: 16px; } /* trip, then driver */
.esb-review__cols > section + section { padding-top: 16px; border-top: 1px solid var(--esb-border); } /* the line between them */
.esb-review__h { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
.esb-review__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 24px; margin: 0; font-size: 16px; }
.esb-review__list div { min-width: 0; }
.esb-review__list .is-wide { grid-column: 1 / -1; }
.esb-review__list dt { margin-bottom: 2px; font-size: 13px; color: var(--esb-muted); }
.esb-review__list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.esb-review__list dd span { display: block; margin-top: 1px; font-size: 14px; font-weight: 400; color: var(--esb-muted); }
/* The total, top right of the car row; under the car on a phone. */
.esb-review__price { margin-left: auto; text-align: right; }
.esb-review__price p { margin: 0; }
.esb-review__days { font-size: 16px; color: var(--esb-muted); }
.esb-review__amount { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.esb-review__calc { font-size: 14px; color: var(--esb-muted); }
@media (max-width: 559px) {
	.esb-review__price { flex-basis: 100%; margin-left: 0; text-align: left; }
	.esb-review__amount { font-size: 32px; }
}
.esb-review .esb-subtitle { margin: 0 0 12px; font-size: 18px; }
.esb-review .esb-inclusions li { padding: 6px 12px; font-size: 15px; }
.esb-review__incl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; } /* heading and chips on one line */
.esb-review__incl .esb-subtitle { margin: 0 !important; }
.esb-review__incl .esb-inclusions { margin: 0; }
.esb-review .esb-field--check { margin: 16px 0 0; }
.esb-review .esb-field--check label { font-size: 16px; }
.esb-review .esb-field--check input { margin-top: 4px; }
.esb-review .esb-hint, .esb-review .esb-error { font-size: 15px; }

.esb-inclusions { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.esb-inclusions li { padding: 5px 10px; font-size: 13px; border: 1px solid var(--esb-border); border-radius: 8px; }
.esb-inclusions li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: 1px; background: var(--esb-ok); border-radius: 50%; }

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

/* ---- actions */
.esb-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.esb-nav [data-back] { margin-right: auto; }
@media (max-width: 559px) {
	.esb-nav--submit { flex-direction: column-reverse; }
	.esb-nav--submit .esb-btn { width: 100%; }
}
.esb-hint { font-size: 12px; color: var(--esb-muted); margin: 12px 0 0; }

.esb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 20px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: var(--esb-primary-text);
	background: var(--esb-primary);
	border: 1px solid var(--esb-primary);
	border-radius: var(--esb-radius-btn);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .12), inset 0 1px 0 rgba(255, 255, 255, .12);
	cursor: pointer;
	transition: filter .12s;
}
.esb-btn:hover { filter: brightness(1.25); color: var(--esb-primary-text); }
.esb-btn:hover, .esb-btn:focus { text-decoration: none; } /* as on .esb-car: a theme's a:hover underline */
.esb-btn--ghost { color: var(--esb-text); background: var(--esb-surface); border-color: var(--esb-border); box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.esb-btn--ghost:hover { filter: none; color: var(--esb-text); background: var(--esb-fill); }
.esb-btn:disabled { opacity: .4; cursor: not-allowed; filter: none; }
/* Payment logos to the left of "Proceed to payment": white badges with each brand's own mark (Simple Icons, CC0). */
.esb-paymarks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.esb-paymarks[hidden] { display: none; }
.esb-paymark { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 42px; height: 28px; padding: 5px; background: #fff; border: 1px solid var(--esb-border); border-radius: 6px; }
.esb-paymark svg { display: block; width: 100%; height: 100%; }
.esb-paymark--bare { padding: 0; border: 0; } /* the Apple Pay mark carries its own frame */
@media (max-width: 559px) { .esb-nav--submit .esb-paymarks { justify-content: center; } }
/* Demo sites: the popup before Stripe (booking.js demoDialog()), over a darkened, blurred page. */
.esb-demo { box-sizing: border-box; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 28px; overflow: auto;
	color: var(--esb-text); background: #fff; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.esb-demo { --esb-fill: #f1f2f4; --esb-border: #e2e4e8; } /* solid, whatever a theme gives the glass form */
.esb-demo::backdrop { background: rgba(8, 12, 18, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.esb-demo[open] { animation: esb-demo-in .25s cubic-bezier(.22, 1, .36, 1); }
@keyframes esb-demo-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.esb-demo p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.esb-demo__title { margin: 0 0 12px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.esb-demo__card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; padding: 10px 10px 10px 16px; background: var(--esb-fill); border-radius: 12px; }
.esb-demo__card code { font-family: ui-monospace, Menlo, monospace; font-size: 18px; font-weight: 600; letter-spacing: .06em; white-space: nowrap; }
.esb-demo__copy { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--esb-text);
	background: #fff; border: 1px solid var(--esb-border); border-radius: 999px; cursor: pointer; }
.esb-demo__copy svg { width: 14px; height: 14px; }
.esb-demo__copy.is-done { color: var(--esb-primary-text); background: var(--esb-primary); border-color: var(--esb-primary); }
.esb-demo__small { font-size: 13px !important; color: var(--esb-muted); }
.esb-demo__nav { margin-top: 20px; }
.esb-demo__nav [data-demo-close]::before { content: "\2190"; margin-right: 8px; font-weight: 400; }
.esb-demo__nav [data-demo-go]::after { content: "\2192"; margin-left: 8px; font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .esb-demo[open] { animation: none; } }
/* Arrows on the step buttons: back points left, continue and submit point right. */
.esb-nav [data-back]::before { content: "\2190"; margin-right: 8px; font-weight: 400; }
.esb-nav [data-next]::after, .esb-nav [data-submit]::after { content: "\2192"; margin-left: 8px; font-weight: 400; }

.esb-done { padding: 32px 24px; }
.esb-done .esb-title, .esb-result .esb-title { float: none; }
/* Thank-you screens, left-aligned: the title with the booking ID in the top right corner, the text under them. */
.esb-done__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.esb-done__head .esb-title { width: auto; margin: 0 !important; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.esb-done__id { display: flex; align-items: center; gap: 8px; margin: 0 !important; font-size: 14px; color: var(--esb-muted); }
.esb-done__id .esb-id { margin: 0; color: var(--esb-text); }
.esb-done > p, .esb-result__box > p { margin: 0 0 12px; font-size: 16px; }
/* Then the Summary step's box, folded to its car row: the request one under the text, the Stripe one inside the
   result box, where it needs no second box of its own. */
.esb-done__summary { margin-top: 24px; }
.esb-result .esb-done__summary { margin-top: 20px; padding: 24px 0 0; background: none; border-top: 1px solid var(--esb-border); border-radius: 0; } /* the line under the header */
.esb-done__summary .esb-review__body > * { padding: 0; border: 0; }
.esb-fold__head { display: flex; align-items: center; gap: 16px; list-style: none; cursor: pointer; }
.esb-fold__head::-webkit-details-marker { display: none; }
.esb-fold__head:focus-visible { outline: 2px solid var(--esb-text); outline-offset: 4px; border-radius: 8px; }
.esb-fold__head .esb-review__car { flex: 1; min-width: 0; }
.esb-fold__icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border: 1px solid var(--esb-border); border-radius: 999px; transition: transform .32s; }
.esb-fold__icon svg { width: 16px; height: 16px; }
.esb-fold__head:hover .esb-fold__icon { border-color: var(--esb-text); }
.esb-fold[open]:not(.is-closing) .esb-fold__icon { transform: rotate(180deg); }
.esb-fold__body { display: flow-root; } /* holds its children's margins, so fold.js measures the full height */
.esb-fold__body > * { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--esb-border); }
@media (prefers-reduced-motion: reduce) { .esb-fold__icon { transition: none; } }
/* Back from Stripe: the white box of the Summary step inside the form's panel. */
.esb-result__box { padding: 0; }
.esb-result .esb-title { margin: 0 0 16px; font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.esb-result .esb-btn { margin-top: 12px; }
.esb-id { display: inline-block; margin-top: 4px; padding: 4px 10px; font-family: ui-monospace, Menlo, monospace; font-size: 16px; letter-spacing: .04em; background: var(--esb-fill); border-radius: 8px; }

/* ============================================================ search ([esplori_search]) */
/* A white bar: the trip pickers (.esb-pick, below) and a CTA button the boxes' height.
   --esb-cta / --esb-today default to the primary; a theme gives them its accent. */
.esb-search {
	--esb-primary: #0b1220;
	--esb-primary-text: #ffffff;
	--esb-cta: var(--esb-primary);
	--esb-cta-text: var(--esb-primary-text);
	--esb-today: var(--esb-primary);
	--esb-text: #111827;
	--esb-muted: #6b7280;
	--esb-faint: #c4c7cc;
	--esb-border: #d4d7dc;
	--esb-surface: #ffffff;
	--esb-fill: #f1f2f4;
	--esb-radius: 8px;
	--esb-field-h: 52px;
	--esb-font: inherit;
	--esb-font-head: var(--esb-font); /* labels, month titles, day numbers, button */
	position: relative;
	z-index: 20;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	padding: 20px;
	background: var(--esb-surface);
	border-radius: 16px;
	color: var(--esb-text);
	font-family: var(--esb-font);
	font-size: 14px;
	text-align: left;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 16px 40px rgba(16, 24, 40, .16);
	box-sizing: border-box;
}
.esb-search * { box-sizing: border-box; }
.esb-search [hidden] { display: none !important; }
.esb-search__submit {
	min-height: var(--esb-field-h);
	font-family: var(--esb-font-head);
	font-size: 16px;
	font-weight: 600;
	color: var(--esb-cta-text);
	background: var(--esb-cta);
	border-color: var(--esb-cta);
	border-radius: var(--esb-radius);
}
.esb-search__submit:hover { color: var(--esb-cta-text); filter: brightness(1.08); }
.esb-search__error { grid-column: 1 / -1; margin: 0; color: #e5484d; font-size: 13px; }
/* The button beside the pickers' last row. */
@media (min-width: 900px) {
	.esb-search { grid-template-columns: minmax(0, 1fr) 200px; align-items: end; }
	.esb-search__submit { padding-left: 28px; padding-right: 28px; }
}
@media (min-width: 1200px) { .esb-search { grid-template-columns: minmax(0, 1fr) 180px; } }

/* ============================================================ trip pickers (templates/trip-fields.php, pickers.js) */
/* Place, then each date as one box (date | time), as on Sixt. The boxes take --esb-field-bg / --esb-field-border /
   --esb-field-divider (default: surface, border, border), so a theme can drop the outline for a filled look. One component for the search bar and the booking
   form: it lays itself out by its own width (container queries), not the screen's, so it fits a full-width bar
   and a form column alike. Stacked when narrow; places on a row, then the two dates side by side; all in one
   row when wide. The calendar, slot grid and place list open over the content below. */
.esb-pick { position: relative; z-index: 5; min-width: 0; container: esb-pick / inline-size; }
.esb-pick__fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.esb-pick__group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* Type as in Airbnb's bar: a small semibold label over a regular value, grey when empty. */
.esb-pick__label { font-family: var(--esb-font-head); font-size: 14px; font-weight: 600; color: var(--esb-text); }
.esb-pick__box {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	height: var(--esb-field-h);
	background: var(--esb-field-bg, var(--esb-surface));
	border: 1px solid var(--esb-field-border, var(--esb-border));
	border-radius: var(--esb-radius);
}
.esb-pick__date, .esb-pick__time { position: relative; display: flex; align-items: center; min-width: 0; margin: 0; border-radius: var(--esb-radius); }
.esb-pick__date { gap: 10px; padding-left: 12px; }
.esb-pick__time { border-left: 1px solid var(--esb-field-divider, var(--esb-border)); border-radius: 0 var(--esb-radius) var(--esb-radius) 0; }
.esb-pick__icon { flex: none; width: 22px; height: 22px; fill: currentColor; pointer-events: none; }
.esb-pick__date input, .esb-pick__date-btn, .esb-pick__time select, .esb-pick__time-btn {
	width: 100%;
	height: 100%;
	min-width: 0;
	padding: 0;
	font: inherit;
	font-size: 16px; /* 16px stops iOS zooming into the field */
	font-weight: 400;
	line-height: 1;
	color: var(--esb-text);
	text-align: left;
	background: transparent;
	border: 0;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.esb-pick__time select, .esb-pick__time-btn { padding: 0 12px; }
.esb-pick__date-btn.is-empty { color: var(--esb-muted); }
/* The CTA-coloured ring of the active side, drawn over the box border. */
.esb-pick__date::after, .esb-pick__time::after {
	content: "";
	position: absolute;
	inset: -1px;
	border: 2px solid transparent;
	border-radius: var(--esb-radius);
	pointer-events: none;
}
.esb-pick__date.is-active::after, .esb-pick__date:focus-within::after, .esb-pick__time.is-active::after, .esb-pick__time:focus-within::after { border-color: var(--esb-cta); }

/* places: one field, or pickup + return side by side */
.esb-pick__places { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.esb-pick:not(.is-enhanced) .esb-pick__places { display: none; }
.esb-pick__place { flex: 1 1 0; }
.esb-pick__box--place { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 12px; }
.esb-pick__box--place:focus-within { border-color: var(--esb-text); box-shadow: inset 0 0 0 1px var(--esb-text); }
.esb-pick__place-input {
	flex: 1;
	width: 100%;
	min-width: 0;
	height: 100%;
	padding: 0;
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	color: var(--esb-text);
	text-overflow: ellipsis;
	background: transparent;
	border: 0;
	outline: none;
}
.esb-pick__place-input::placeholder { color: var(--esb-muted); font-weight: 400; }
.esb-pick__clear { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: var(--esb-text); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.esb-pick__clear svg { width: 22px; height: 22px; fill: currentColor; }
.esb-pick__clear:hover { background: var(--esb-fill); }
.esb-pick__add {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	padding: 4px 0;
	font: inherit;
	font-size: 15px;
	color: var(--esb-muted);
	background: none;
	border: 0;
	cursor: pointer;
	white-space: nowrap;
}
.esb-pick__add svg { width: 20px; height: 20px; fill: currentColor; }
.esb-pick__add:hover { color: var(--esb-text); }
/* Dropdown list (.esb-menu): the place field's, and every .esb-select's. */
.esb-menu {
	position: absolute;
	z-index: 2;
	top: calc(100% + 8px);
	left: -1px;
	width: max(100%, 320px);
	max-width: calc(100vw - 32px);
	padding: 8px;
	background: var(--esb-surface);
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(16, 24, 40, .08), 0 24px 56px rgba(16, 24, 40, .22);
}
.esb-menu__option { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--esb-radius); cursor: pointer; }
.esb-menu__option svg { flex: none; width: 22px; height: 22px; fill: currentColor; }
.esb-menu__option span { display: flex; flex-direction: column; min-width: 0; }
.esb-menu__option strong { font-family: var(--esb-font-head); font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esb-menu__option small { font-size: 13px; color: var(--esb-muted); }
.esb-menu__option:hover, .esb-menu__option.is-active { background: var(--esb-fill); }
.esb-menu__option.is-selected strong { font-weight: 700; }
.esb-menu__empty { margin: 0; padding: 12px; color: var(--esb-muted); }

/* ---- select (pickers.js select()): a text field over the hidden <select>, opening the .esb-menu list.
   The field itself takes the form's input style (.esb-field input); the list scrolls when long. */
.esb-select { position: relative; z-index: 4; }
/* Open, it rises above the date/place block that follows it (.esb-pick is z-index 5). */
.esb-select.is-open { z-index: 10; }
.esb-select .esb-select__input { padding-right: 40px; text-overflow: ellipsis; cursor: pointer; }
.esb-select.is-open .esb-select__input { cursor: text; }
.esb-select__chevron { position: absolute; top: 50%; right: 14px; width: 12px; height: 12px; margin-top: -6px; color: var(--esb-text); cursor: pointer; transition: transform .15s; }
.esb-select.is-open .esb-select__chevron { transform: rotate(180deg); }
.esb-select .esb-menu { width: 100%; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.esb-select .esb-menu__option { padding: 10px 12px; }
.esb-select .esb-menu__option strong { font-family: inherit; font-size: 14px; font-weight: 500; }

/* Phones keep 16px: below that iOS zooms into a focused field. */
@media (min-width: 640px) {
	.esb-pick__date input, .esb-pick__date-btn, .esb-pick__time select, .esb-pick__time-btn, .esb-pick__place-input { font-size: 15px; }
}
@container esb-pick (min-width: 520px) {
	.esb-pick__fields { grid-template-columns: 1fr 1fr; }
	.esb-pick__places { grid-column: 1 / -1; flex-direction: row; align-items: flex-end; gap: 16px; }
	.esb-pick__add { align-self: auto; height: var(--esb-field-h); padding: 0 8px; }
}
/* One row: places | pickup date | return date. */
@container esb-pick (min-width: 860px) {
	.esb-pick__fields { grid-template-columns: minmax(0, 1fr) 216px 216px; }
	.esb-pick__places { grid-column: auto; }
}
/* Column option (the booking form): pickup date over return date at every width; the places keep their row. */
.esb-pick--column .esb-pick__fields { grid-template-columns: minmax(0, 1fr); }
.esb-pick--column .esb-pick__places { grid-column: auto; }

/* time slots: a grid under the date|time box */
.esb-times {
	position: absolute;
	z-index: 3;
	top: calc(100% + 8px);
	left: -1px;
	width: max(100%, 340px);
	max-width: calc(100vw - 32px);
	background: var(--esb-surface);
	border-radius: 16px;
	box-shadow: 0 2px 6px rgba(16, 24, 40, .08), 0 24px 56px rgba(16, 24, 40, .22);
	overflow: hidden;
}
.esb-times__title { margin: 0; padding: 14px 16px 12px; font-family: var(--esb-font-head); font-size: 16px; font-weight: 600; text-align: center; border-bottom: 1px solid var(--esb-border); }
.esb-times__hours { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px 4px; font-size: 14px; color: var(--esb-text); }
.esb-times__hours svg { flex: none; width: 16px; height: 16px; }
.esb-times__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; max-height: 420px; padding: 8px 16px 16px; overflow-y: auto; overscroll-behavior: contain; }
/* Compact slots, as many per row as fit: office hours (25 slots) need no scroll; only a 24-hour office does. */
.esb-times__slot {
	height: 36px;
	padding: 0;
	font: inherit;
	font-size: 14px;
	color: var(--esb-text);
	background: var(--esb-fill);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
}
.esb-times__slot:hover:not(:disabled) { background: #e6e7ea; }
.esb-times__slot:focus-visible { outline: 2px solid var(--esb-cta); outline-offset: 2px; }
.esb-times__slot.is-selected { color: var(--esb-picked-text, var(--esb-primary-text)); background: var(--esb-picked, var(--esb-primary)); }
.esb-times__slot:disabled { color: var(--esb-faint); background: transparent; cursor: default; }

/* range calendar: as wide as the pickers, one month per ~300px of it */
.esb-cal {
	position: absolute;
	z-index: 4;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	padding: 24px 20px 20px;
	background: var(--esb-surface);
	border-radius: 16px;
	box-shadow: 0 2px 6px rgba(16, 24, 40, .08), 0 24px 56px rgba(16, 24, 40, .22);
}
.esb-cal__months { display: grid; grid-template-columns: 1fr; gap: 40px; }
.esb-cal__month:nth-child(n+2) { display: none; }
.esb-cal__title { margin: 0 0 16px; font-family: var(--esb-font-head); font-size: 22px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--esb-text); }
.esb-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.esb-cal__wd { padding-bottom: 12px; margin-bottom: 8px; font-size: 12px; font-weight: 400; text-align: center; text-transform: uppercase; color: var(--esb-muted); border-bottom: 1px solid var(--esb-border); }
.esb-cal__day {
	height: var(--esb-cal-day, 48px); /* pickers.js fitPop() shortens it so the calendar fits the screen */
	padding: 0;
	font: inherit;
	font-family: var(--esb-font-head);
	font-size: 15px;
	font-weight: 500;
	color: var(--esb-text);
	background: none;
	border: 0;
	border-radius: var(--esb-radius);
	cursor: pointer;
}
.esb-cal__day:hover:not(:disabled) { background: var(--esb-fill); }
.esb-cal__day:disabled { color: var(--esb-faint); font-weight: 400; cursor: default; }
.esb-cal__day:focus-visible { outline: 2px solid var(--esb-cta); outline-offset: -2px; }
.esb-cal__day.is-today { color: var(--esb-today); }
.esb-cal__day.is-range { background: var(--esb-picked-bg, var(--esb-fill)); border-radius: 0; }
.esb-cal__day.is-start, .esb-cal__day.is-end, .esb-cal__day.is-start:hover, .esb-cal__day.is-end:hover { color: var(--esb-picked-text, var(--esb-primary-text)); background: var(--esb-picked, var(--esb-primary)); }
.esb-cal__nav {
	position: absolute;
	top: 22px;
	width: 32px;
	height: 32px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	color: var(--esb-text);
}
.esb-cal__nav::before { content: ""; display: block; width: 9px; height: 9px; margin: auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(-45deg); }
.esb-cal__nav--prev { left: 12px; }
.esb-cal__nav--prev::before { transform: rotate(135deg); }
.esb-cal__nav--next { right: 12px; }
.esb-cal__nav:hover:not(:disabled) { background: var(--esb-fill); }
.esb-cal__nav:disabled { color: var(--esb-faint); cursor: default; }
/* Single-date popover (pickers.js date()): one month under its field, month and year dropdowns between the arrows. */
.esb-date { position: relative; z-index: 3; }
.esb-date.is-open { z-index: 6; }
.esb-date .esb-date__input { padding-right: 44px; }
.esb-date__btn { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; padding: 0; color: var(--esb-text); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.esb-date__btn svg { width: 20px; height: 20px; fill: currentColor; }
.esb-date__btn:hover { background: var(--esb-fill); }
.esb-cal--single { right: auto; width: min(360px, calc(100vw - 32px)); padding: 16px 16px 14px; }
.esb-cal--single .esb-cal__nav { top: 18px; }
.esb-cal__head { display: flex; gap: 8px; margin: 0 40px 14px; }
.esb-cal__head .esb-select { flex: 1 1 0; min-width: 0; }
.esb-cal__head .esb-select:first-child { flex-grow: 1.4; }
/* (class + element) to beat the form's own input style inside .esb-field */
.esb .esb-cal__head input.esb-select__input, .esb-cal__head input.esb-select__input {
	min-height: 36px;
	height: 36px;
	padding: 0 28px 0 12px;
	font-family: var(--esb-font-head);
	font-size: 14px;
	font-weight: 600;
	background: var(--esb-fill);
	border: 0;
	border-radius: var(--esb-radius);
}
.esb-cal__head .esb-select__chevron { right: 10px; }
.esb-cal__head .esb-menu { max-height: 240px; }
.esb-cal--single .esb-cal__day { height: var(--esb-cal-day, 42px); }

@container esb-pick (min-width: 600px) {
	.esb-cal { padding: 28px 32px 24px; }
	.esb-cal__months { grid-template-columns: 1fr 1fr; }
	.esb-cal__month:nth-child(2) { display: block; }
}
@container esb-pick (min-width: 920px) {
	.esb-cal__months { grid-template-columns: repeat(3, 1fr); }
	.esb-cal__month:nth-child(3) { display: block; }
}
/* Not enough room on screen (pickers.js fitPop()): tighter padding, titles and rows, before the days get shorter. */
.esb-cal.is-compact { padding: 14px 24px 12px; }
.esb-cal.is-compact .esb-cal__nav { top: 8px; }
.esb-cal.is-compact .esb-cal__title { margin-bottom: 8px; font-size: 17px; }
.esb-cal.is-compact .esb-cal__head { margin-bottom: 8px; }
.esb-cal.is-compact .esb-cal__wd { padding-bottom: 6px; margin-bottom: 4px; }
.esb-cal.is-compact .esb-cal__grid { row-gap: 2px; }
