/* ==========================================================================
   BonziVan Layout - Header, Footer, Containers
   ========================================================================== */

/* --------------------------------------------------------------------------
   Site Header — one slim sticky bar: wordmark, a few plain links, the
   "¿A dónde vas?" trigger, language, account and one action. No rule under
   it; the search opens as an overlay instead of a second sticky row.
   -------------------------------------------------------------------------- */
.site-header {
	background: var(--paper);
	position: sticky;
	top: 0;
	z-index: var(--z-sticky);
	transition: transform var(--dur-base) var(--ease-in-out-soft);
}

@media (prefers-reduced-motion: reduce) {
	.site-header {
		transition: none;
	}
}

/* Auto-hide on scroll-down (single product pages only; vehicle-detail.js). */
.site-header.is-hidden {
	transform: translateY(-100%);
}

.site-header .bv-header-main {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
	height: var(--header-h);
	max-width: var(--container-xl);
	margin: 0 auto;
	padding: 0 var(--space-md);
}

.site-branding {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.bv-logo-link {
	display: flex;
	align-items: center;
	min-height: 44px;
}

.bv-logo {
	height: 30px;
	width: auto;
	object-fit: contain;
	display: block;
}

.site-branding .site-title {
	font-size: var(--step-lead);
	font-weight: var(--font-bold);
	margin: 0;
}

.site-branding .site-title a {
	color: var(--ink);
	text-decoration: none;
}

.site-branding .site-description {
	display: none;
}

/* Background hierarchy:
   - html/body use the footer's paper-2 so any area outside #page (e.g. the
     32px gap the WP admin bar introduces below body, or scroll-overshoot)
     blends with the footer instead of showing a different strip.
   - .site-header + .site-main have their own paper background. */
html, body {
	background-color: var(--paper-2);
}

/* Sticky-footer pattern: when content is shorter than the viewport, push the
   footer to the bottom instead of leaving body background showing under it. */
body { display: flex; flex-direction: column; min-height: 100svh; }
#page { flex: 1; display: flex; flex-direction: column; }
.site-main { flex: 1; background: var(--paper); }

/* Header Navigation (`.site-header` prefix beats the _s rules in style.css,
   which loads later): three links, centred in the room the actions leave. */
.site-header .main-navigation {
	display: flex;
	justify-content: center;
	flex: 1;
	min-width: 0;
	width: auto;
}

.site-header .main-navigation ul {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Bar links: plain ink text on a pill that fills on hover. */
.site-header .main-navigation a,
.site-header .main-navigation a:visited,
.bv-header-link,
.bv-header-link:visited {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.875rem;
	border-radius: var(--radius-full);
	color: var(--ink);
	text-decoration: none;
	font-size: var(--text-base);
	font-weight: var(--font-medium);
	white-space: nowrap;
	transition: background-color var(--transition-fast);
}

.bv-header-link,
.bv-header-link:visited {
	font-weight: var(--font-semibold);
}

.site-header .main-navigation a:hover,
.bv-header-link:hover {
	background: var(--paper-2);
	color: var(--ink);
}

.site-header .main-navigation a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

.site-header .main-navigation a:focus-visible,
.bv-header-link:focus-visible,
.bv-lang__toggle:focus-visible,
.bv-acct__toggle:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 2px;
}

/* Header Actions */
.bv-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-xs);
	margin-left: auto;
	flex-shrink: 0;
}

/* "¿A dónde vas?" — opens the search overlay. On the front page it waits until
   the hero form scrolls away (visibility keeps its slot, so nothing shifts). */
.bv-search-trigger {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
	min-height: 44px;
	margin-right: var(--space-xs);
	padding: 0 1.125rem 0 0.875rem;
	background: var(--paper-2);
	color: var(--ink);
	border: 0;
	border-radius: var(--radius-full);
	font-family: var(--font-ui);
	font-size: var(--text-base);
	font-weight: var(--font-medium);
	line-height: 1;
	cursor: pointer;
	transition: background-color var(--transition-fast), opacity var(--transition-fast);
}

.bv-search-trigger:hover {
	background: var(--paper-3);
}

.bv-search-trigger:focus-visible {
	outline: var(--focus-ring);
	outline-offset: 2px;
}

.site-header.has-hero-search:not(.header--search-ready) .bv-search-trigger {
	visibility: hidden;
	opacity: 0;
}

/* Language: a globe and the current code; the list drops under it. */
.bv-lang,
.bv-acct {
	position: relative;
}

.bv-lang__toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.75rem;
	background: transparent;
	border: 0;
	border-radius: var(--radius-full);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: var(--step-small);
	font-weight: var(--font-semibold);
	line-height: 1;
	cursor: pointer;
}

.bv-lang__toggle:hover,
.bv-lang__toggle[aria-expanded="true"] {
	background: var(--paper-2);
}

/* Account: menu icon + avatar in one pill on paper, edged like a field; flat at rest. */
.bv-acct__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	min-height: 44px;
	padding: 0 6px 0 0.875rem;
	background: var(--paper);
	border: 1px solid var(--field-line); /* taste-skill-ignore: the approved Airbnb-style account pill keeps a field edge so it reads apart from the paper-2 search pill */
	border-radius: var(--radius-full);
	color: var(--ink);
	line-height: 1;
	cursor: pointer;
}

.bv-acct__toggle:hover,
.bv-acct__toggle[aria-expanded="true"] {
	background: var(--paper-2);
}

.bv-acct__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: var(--radius-full);
	background: var(--night);
	color: var(--on-night);
	font-size: var(--step-small);
	font-weight: var(--font-semibold);
}

/* Menus (language, account) are real overlays, so they float. The overlay
   contract of motion.css (.bv-appear): [hidden] is the closed state; opening
   grows from .96 at the trigger's corner and drops 4px (--dur-fast, expo),
   the rows follow 25 ms apart (opacity only); closing is quicker on the
   in-out curve and `display` flips at its end. Reduced motion: opacity only. */
.bv-pop {
	position: absolute;
	top: calc(100% + var(--space-sm));
	right: 0;
	z-index: var(--z-dropdown);
	padding: var(--space-sm);
	background: var(--paper);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-float); /* taste-skill-ignore: account and language menus are real overlays */
	transform-origin: top right;
	transition:
		opacity var(--dur-fast) var(--ease-out-soft),
		scale var(--dur-base) var(--ease-out-expo),
		translate var(--dur-base) var(--ease-out-expo),
		display var(--dur-base) allow-discrete;
}

.bv-pop[hidden] {
	display: none;
	opacity: 0;
	scale: 0.96;
	translate: 0 -4px;
	transition-duration: var(--dur-fast);
	transition-timing-function: var(--ease-in-out-soft);
}

@starting-style {
	.bv-pop:not([hidden]) {
		opacity: 0;
		scale: 0.96;
		translate: 0 -4px;
	}
}

/* The rows arrive just behind the box: opacity only, 25 ms apart. */
@media (prefers-reduced-motion: no-preference) {
	.bv-pop:not([hidden]) :is(li, .bv-acct__label) {
		animation: bv-pop-row var(--dur-fast) var(--ease-out-soft) backwards;
	}

	.bv-pop:not([hidden]) li:nth-child(2) { animation-delay: 25ms; }
	.bv-pop:not([hidden]) li:nth-child(3) { animation-delay: 50ms; }
	.bv-pop:not([hidden]) li:nth-child(4) { animation-delay: 75ms; }
	.bv-pop:not([hidden]) li:nth-child(n + 5) { animation-delay: 100ms; }
}

@keyframes bv-pop-row {
	from { opacity: 0; }
}

.bv-pop ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bv-pop a,
.bv-pop a:visited {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	min-height: 44px;
	padding: 0 0.75rem;
	border-radius: var(--radius-field);
	color: var(--ink);
	font-size: var(--text-base);
	font-weight: var(--font-medium);
	text-decoration: none;
	transition: background-color var(--transition-fast);
}

.bv-pop a:hover {
	background: var(--paper-2);
	color: var(--ink);
}

.bv-pop a:focus-visible {
	outline: var(--focus-ring);
	outline-offset: -2px;
}

.bv-pop a[aria-current="true"],
.bv-pop a.bv-acct__strong {
	font-weight: var(--font-semibold);
}

.bv-lang__menu {
	min-width: 200px;
}

.bv-acct__menu {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 280px;
}

/* The tone step: help and legal sit on paper-2 instead of under a rule. */
.bv-acct__group--tone {
	padding: var(--space-xs);
	background: var(--paper-2);
	border-radius: var(--radius-field);
}

.bv-acct__group--tone a {
	border-radius: calc(var(--radius-field) - var(--space-xs));
}

.bv-acct__group--tone a:hover {
	background: var(--paper-3);
}

.bv-pop .bv-acct__legal {
	display: flex;
	flex-wrap: wrap;
	padding: 0 var(--space-xs);
}

.bv-pop .bv-acct__legal a,
.bv-pop .bv-acct__legal a:visited {
	padding: 0 var(--space-sm);
	color: var(--ink-soft);
	font-size: var(--step-small);
}

.bv-pop .bv-acct__legal a:hover {
	color: var(--ink);
}

/* Links (below 1100px), the vendor dashboard sections (phone, on the
   dashboard) and the language (phone) join the menu only when the bar
   or the page no longer shows them. */
.bv-acct__group--nav,
.bv-acct__group--dash,
.bv-acct__group--lang {
	display: none;
}

.bv-acct__label {
	margin: 0;
	padding: var(--space-xs) 0.75rem var(--space-sm);
	color: var(--ink-soft);
	font-size: var(--step-small);
	font-weight: var(--font-medium);
}

.bv-pop .bv-acct__langs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
	padding: 0 var(--space-xs);
}

.bv-pop .bv-acct__langs a,
.bv-pop .bv-acct__langs a:visited {
	justify-content: center;
	padding: 0 1rem;
	background: var(--paper-2);
	border-radius: var(--radius-full);
	font-size: var(--step-small);
}

.bv-pop .bv-acct__langs a:hover {
	background: var(--paper-3);
}

.bv-pop .bv-acct__langs a[aria-current="true"] {
	background: var(--night);
	color: var(--on-night);
}

/* Phone: a scrim under the full-width account menu (outside the header,
   whose transform would trap position:fixed; it stays under the bar). */
.bv-acct-scrim {
	display: none;
	opacity: 0;
	position: fixed;
	inset: 0;
	z-index: calc(var(--z-sticky) - 1);
	background: rgba(18, 24, 32, 0.45);
	transition:
		opacity var(--dur-fast) var(--ease-out-soft),
		display var(--dur-fast) allow-discrete;
}

@starting-style {
	html.bv-acct-open .bv-acct-scrim {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bv-pop,
	.bv-pop[hidden] {
		scale: none;
		translate: none;
		transition:
			opacity var(--dur-fast) linear,
			display var(--dur-fast) allow-discrete;
	}

	@starting-style {
		.bv-pop:not([hidden]) {
			scale: none;
			translate: none;
		}
	}
}

/* Below 1100px the three links leave the bar for the account menu. */
@media (max-width: 1100px) {
	.site-header .main-navigation {
		display: none;
	}

	.site-header .bv-header-main {
		gap: var(--space-sm);
	}

	.bv-acct__group--nav {
		display: block;
	}
}

/* Phone: wordmark, search, account. "Listar mi vehículo" and the language
   move into the account menu, which spans the screen under the bar. */
@media (max-width: 767.98px) {
	.bv-header-lister,
	.bv-lang {
		display: none;
	}

	.bv-acct {
		position: static;
	}

	.bv-acct__menu {
		top: 100%;
		left: var(--space-sm);
		right: var(--space-sm);
		width: auto;
		max-height: calc(100svh - var(--header-h) - var(--space-md));
		overflow-y: auto;
		overscroll-behavior: contain;
		transform-origin: top center;
	}

	.bv-acct__group--lang {
		display: block;
	}

	html.bv-acct-open,
	html.bv-acct-open body {
		overflow: hidden;
	}

	html.bv-acct-open .bv-acct-scrim {
		display: block;
		opacity: 1;
	}
}

/* Same width as the rule that hides the Dokan sidebar (mobile polish). */
@media (max-width: 768px) {
	.bv-acct__group--dash {
		display: block;
	}
}

/* --------------------------------------------------------------------------
   Search overlay (#bv-search-drop): the same search form, opened from the
   bar's "¿A dónde vas?". Shown and hidden with [hidden] (header.js); the
   overlay stays displayed while its parts animate out (display transition).
   Desktop: the header grows down into the full search: the panel's ground
   (::before) unrolls from the bar's height while the title and the bar rise
   in. Phone: a sheet slides up from the bottom. The scrim fades. Without
   movement (reduced motion, ?sinmov=1, no html.mm-motion) everything fades.
   -------------------------------------------------------------------------- */
.bv-search-overlay {
	position: fixed;
	inset: 0;
	z-index: var(--z-modal);
	transition: display var(--dur-base) allow-discrete;
}

.bv-search-overlay[hidden] {
	display: none;
	pointer-events: none;
}

.bv-search-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 24, 32, 0.45);
	transition: opacity var(--dur-fast) var(--ease-out-soft);
}

.bv-search-overlay[hidden] .bv-search-overlay__backdrop {
	opacity: 0;
}

.bv-search-overlay__panel {
	position: relative;
	isolation: isolate; /* the ground paints under the content */
	outline: none;
	transition:
		opacity var(--dur-fast) var(--ease-in-out-soft),
		translate var(--dur-fast) var(--ease-in-out-soft);
}

.bv-search-overlay__panel::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: var(--paper);
	box-shadow: var(--shadow-float); /* taste-skill-ignore: search dialog is a real overlay */
}

.bv-search-overlay[hidden] .bv-search-overlay__panel {
	opacity: 0;
}

@starting-style {
	.bv-search-overlay:not([hidden]) .bv-search-overlay__backdrop,
	.bv-search-overlay:not([hidden]) .bv-search-overlay__panel {
		opacity: 0;
	}
}

@keyframes bv-search-ground {
	from { clip-path: inset(0 0 calc(100% - var(--header-h)) 0); }
	to { clip-path: inset(0 0 calc(var(--space-2xl) * -1) 0); }
}

@keyframes bv-search-fade {
	from { opacity: 0; }
}

@keyframes bv-search-rise {
	from {
		opacity: 0;
		translate: 0 var(--dist-1);
	}
}

@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
	/* The panel itself appears at once; its ground and content carry the entrance:
	   the ground covers the header's own row (--dur-fast) while it unrolls
	   (--dur-enter); the title and the bar rise in once it is opaque. */
	html.mm-motion .bv-search-overlay:not([hidden]) .bv-search-overlay__panel {
		transition: none;
	}

	html.mm-motion .bv-search-overlay:not([hidden]) .bv-search-overlay__panel::before {
		animation:
			bv-search-ground var(--dur-enter) var(--ease-out-expo),
			bv-search-fade var(--dur-fast) var(--ease-out-soft);
	}

	html.mm-motion .bv-search-overlay:not([hidden]) .bv-search-overlay__head,
	html.mm-motion .bv-search-overlay:not([hidden]) .bv-search-overlay__inner > .bv-search-form {
		animation: bv-search-rise var(--dur-enter) var(--ease-out-expo) calc(var(--dur-fast) / 2) backwards;
	}

	html.mm-motion .bv-search-overlay[hidden] .bv-search-overlay__panel {
		translate: 0 calc(var(--dist-1) * -1);
	}
}

.bv-search-overlay__inner {
	max-width: var(--container-xl);
	margin: 0 auto;
	padding: 0 var(--space-md) var(--space-xl);
}

/* The bar sits centred, as wide as the hero's. */
.bv-search-overlay__inner > .bv-search-form {
	max-width: 880px;
	margin-inline: auto;
}

.bv-search-overlay__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	min-height: var(--header-h);
	margin-bottom: var(--space-sm);
}

.bv-search-overlay__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--step-lead);
	font-weight: 600;
	letter-spacing: var(--tracking-display);
	line-height: 1.1;
	color: var(--ink);
}

.bv-search-overlay__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-full);
	background: var(--paper-2);
	color: var(--ink);
	cursor: pointer;
}

.bv-search-overlay__close:hover {
	background: var(--paper-3);
}

/* --------------------------------------------------------------------------
   Site Footer — classic light columns on paper-2 (home v2): the logo and one
   line, four columns of links, then the © line and, on the home, the clip's
   mandatory credit. Groups separate by space, never by a rule. The inner
   edges match the header bar (1200px with a 16px gutter).
   -------------------------------------------------------------------------- */
.site-footer {
	padding: clamp(48px, 6vw, 80px) 0 clamp(24px, 3vw, 40px);
	background: var(--paper-2);
	color: var(--ink);
}

.bv-footer {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 40px clamp(24px, 4vw, 64px);
	max-width: var(--container-xl);
	margin: 0 auto;
	padding: 0 var(--space-md);
}

.bv-footer__brand img {
	display: block;
	width: auto;
	height: 30px;
}

.bv-footer__brand p {
	max-width: 32ch;
	margin: 16px 0 0;
	font-size: 1rem;
	line-height: 1.5;
}

.bv-footer__cols {
	display: grid;
	grid-template-columns: repeat(4, max-content);
	justify-content: space-between;
	gap: 32px 24px;
}

.site-footer .bv-footer__title {
	margin: 0 0 12px;
	font-family: var(--font-ui);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.4;
}

.bv-footer__links {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a,
.site-footer a:visited {
	color: var(--ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
}

.site-footer a:hover {
	color: var(--accent-ink);
}

.bv-footer__links a,
.bv-footer__links a:visited {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	font-size: 1rem;
	text-decoration: none;
}

.bv-footer__links a:hover {
	text-decoration: underline;
}

/* The © line and the clip's credit, as secondary notes. */
.bv-footer__bottom {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 32px;
	margin-top: 16px;
	color: var(--ink-soft);
	font-size: var(--step-small);
	line-height: 1.5;
}

.bv-footer__bottom p {
	margin: 0;
}

.site-footer .bv-footer__bottom a,
.site-footer .bv-footer__bottom a:visited {
	color: var(--ink-soft);
	text-decoration: underline;
}

@media (max-width: 1023px) {
	.bv-footer {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 599px) {
	.bv-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 16px;
	}

	.bv-footer__bottom {
		flex-direction: column;
	}
}

/* --------------------------------------------------------------------------
   Main Content Area
   -------------------------------------------------------------------------- */
.site-main {
	min-height: 60svh;
	background: var(--paper);
}

/* WooCommerce wrapper adjustments */
.woocommerce-page .site-main {
	padding: var(--space-xl) 0;
}

/* --------------------------------------------------------------------------
   SVG Icon Base
   -------------------------------------------------------------------------- */
.bv-icon {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

/* ==========================================================================
   MOBILE POLISH — sitewide fixes applied to ≤768px (most fixes) and ≤480px
   (extra-small screen tightening).
   ========================================================================== */

@media (max-width: 768px) {
	/* iOS does not auto-zoom into inputs ≥16px on focus. */
	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="number"],
	input[type="search"],
	input[type="password"],
	input[type="url"],
	input[type="date"],
	input[type="datetime-local"],
	input[type="time"],
	select,
	textarea {
		font-size: 16px;
	}

	/* Tighter section padding so content gets more room. */
	.bv-vehicle-detail,
	.woocommerce-page .site-main {
		padding-left: var(--space-md);
		padding-right: var(--space-md);
	}

	/* Header — wordmark (left); search icon + account pill (right). */
	.site-header .bv-header-main {
		padding: 0 var(--space-sm) 0 var(--space-md);
		gap: 4px;
	}
	.bv-logo {
		height: 26px;
	}

	/* The trigger becomes an icon button; the label stays for screen readers. */
	.bv-search-trigger {
		width: 44px;
		padding: 0;
		justify-content: center;
	}
	.bv-search-trigger__label {
		display: none; /* the button keeps its aria-label */
	}

	/* Overlay on a phone: a sheet from the bottom edge that scrolls inside;
	   the stacked form's open card holds its list or its calendar
	   (components.css). The hero's segments open it too (search.js). */
	.bv-search-overlay__panel {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		height: calc(100svh - var(--space-lg));
		height: calc(100dvh - var(--space-lg));
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--paper);
		border-radius: var(--radius-banner) var(--radius-banner) 0 0;
		box-shadow: var(--shadow-float); /* taste-skill-ignore: search sheet is a real overlay */
	}
	.bv-search-overlay__panel::before {
		content: none;
	}
	.bv-search-overlay__inner {
		padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom, 0px));
	}
	.bv-search-overlay__head {
		position: sticky;
		top: 0;
		z-index: 1;
		margin-bottom: 0;
		background: var(--paper);
	}
	.bv-search-overlay .bv-search-form {
		padding: 0;
		background: transparent;
		gap: var(--space-sm);
	}
	.bv-search-overlay .bv-search-form__field {
		background: var(--paper-2);
		border-radius: var(--radius-card);
		padding: var(--space-sm) var(--space-md);
		scroll-margin-top: calc(var(--header-h) + var(--space-sm)); /* clear of the sticky head */
	}
	.bv-search-overlay .bv-search-form .bv-search-form__field.is-active {
		padding-bottom: var(--space-md);
	}
	.bv-search-overlay .bv-search-form__submit {
		margin-top: var(--space-xs);
	}

	@media (prefers-reduced-motion: no-preference) {
		html.mm-motion .bv-search-overlay__panel {
			transition: translate var(--dur-base) var(--ease-in-out-soft);
		}
		html.mm-motion .bv-search-overlay:not([hidden]) .bv-search-overlay__panel {
			transition: translate var(--dur-enter) var(--ease-out-expo);
		}
		html.mm-motion .bv-search-overlay[hidden] .bv-search-overlay__panel {
			opacity: 1;
			translate: 0 100%;
		}
		@starting-style {
			html.mm-motion .bv-search-overlay:not([hidden]) .bv-search-overlay__panel {
				opacity: 1;
				translate: 0 100%;
			}
		}
	}

	/* Dokan dashboard — kill the dead space that appears between the
	   stacked nav and the main content on mobile. */
	.dokan-dashboard .dokan-dashboard-content,
	.dokan-dashboard-wrap > .dokan-dashboard-content {
		margin-top: var(--space-md) !important;
		padding: var(--space-md) !important;
	}
	.dokan-dashboard .dokan-dashboard-wrap {
		display: block !important;
	}
	.dokan-dashboard .dokan-dashboard-menu {
		margin-bottom: var(--space-md);
	}
	/* The vendor dashboard sidebar (Panel/Mis Vehículos/Reservas/…) is moved
	   into the account menu on mobile (header.php, .bv-acct__group--dash) —
	   hide the inline sidebar so it doesn't take ~300px of dead space above content.
	   Tight, specific selector to beat any later !important rule. */
	body.dokan-dashboard .dokan-dashboard-wrap > .dokan-dash-sidebar,
	body.dokan-dashboard .dokan-dash-sidebar {
		display: none !important;
	}

	/* Single product specs: 2 → 1 column at the narrowest, to keep labels readable. */
	.bv-vehicle-rules {
		grid-template-columns: 1fr;
	}

	.bv-vehicle-form__submit {
		min-height: 44px;
	}
}

@media (max-width: 480px) {
	/* Hero title sizing on tiny screens. */
	.bv-hero__title {
		font-size: var(--step-head);
		line-height: 1;
	}
	/* Single product gallery height. */
	.bv-vehicle-gallery__grid {
		height: 240px;
	}
}
