/* Lamb Motors public site. Plain CSS; component classes use the lm- prefix. */

:root {
	--lm-ink: #1c1c1e;
	--lm-ink-soft: #4a4a4f;
	--lm-paper: #ffffff;
	--lm-surface: #f4f3f0;
	--lm-line: #d9d6cf;
	--lm-brand: #8a1111;
	--lm-brand-dark: #660c0c;
	--lm-gold: #f2b705;
	--lm-night: #1c1c1e;
	--lm-night-soft: #2b2b2f;
	--lm-focus: #0b57d0;
	--lm-radius: 12px;
	--lm-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 6px 18px rgb(0 0 0 / 0.08);
	--lm-wrap: 1180px;
}

/* Base element styles (replaces the Bootstrap reboot the site used to load). */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	/* Keeps focused or linked content clear of the sticky header (WCAG 2.4.11). */
	scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: no-preference) {
	:root {
		scroll-behavior: smooth;
	}
}

html, body {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
	margin: 0;
	padding: 0;
	background: var(--lm-surface);
	color: var(--lm-ink);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.55;
	-webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5rem;
	font-weight: 500;
	line-height: 1.2;
}

h1 {
	font-size: 1.5rem;
	color: #b00000;
}

h2 {
	font-size: 1.3125rem;
}

h3 {
	font-size: calc(1.3rem + 0.6vw);
}

h4 {
	font-size: calc(1.275rem + 0.3vw);
}

@media (min-width: 1200px) {
	h3 {
		font-size: 1.75rem;
	}

	h4 {
		font-size: 1.5rem;
	}
}

p,
address,
figure {
	margin: 0 0 1rem;
}

address {
	font-style: normal;
}

ol,
ul {
	padding-left: 2rem;
}

ol,
ul,
dl {
	margin: 0 0 1rem;
}

:is(ol, ul) :is(ol, ul) {
	margin-bottom: 0;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 0 0.5rem;
}

b,
strong {
	font-weight: bolder;
}

small {
	font-size: 0.875em;
}

a {
	color: #800000;
}

code {
	font-size: 0.875em;
	overflow-wrap: break-word;
}

img,
svg {
	vertical-align: middle;
}

label {
	display: inline-block;
}

button {
	border-radius: 0;
}

button,
input,
optgroup,
select,
textarea {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
	cursor: pointer;
}

textarea {
	resize: vertical;
}

::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-year-field {
	padding: 0;
}

::-webkit-inner-spin-button {
	height: auto;
}

fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

legend {
	float: left;
	width: 100%;
	margin-bottom: 0.5rem;
	padding: 0;
	font-size: calc(1.275rem + 0.3vw);
	line-height: inherit;
}

@media (min-width: 1200px) {
	legend {
		font-size: 1.5rem;
	}
}

legend + * {
	clear: left;
}

table {
	border-collapse: collapse;
}

summary {
	display: list-item;
	cursor: pointer;
}

[hidden] {
	display: none !important;
}

.lm-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.lm-main {
	flex: 1 0 auto;
}

.lm-wrap {
	width: min(100% - 2rem, var(--lm-wrap));
	margin-inline: auto;
}

.lm-section {
	padding-block: 2.5rem;
}

.lm-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-bottom: 1.25rem;
}

.lm-section h2,
.lm-h2 {
	margin: 0;
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
	line-height: 1.2;
	color: var(--lm-ink);
}

/* Links and focus */
.lm-main a:not([class]) {
	color: var(--lm-brand);
	text-underline-offset: 0.18em;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--lm-focus);
	outline-offset: 2px;
}

/* Non-interactive elements focused by script for screen readers: page headings after navigation and status messages. */
h1:focus,
[tabindex="-1"][data-focus-on-load]:focus {
	outline: none;
}

.lm-skip {
	position: absolute;
	left: 0.5rem;
	top: -4rem;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--lm-paper);
	color: var(--lm-ink);
	font-weight: 600;
	border-radius: 0 0 8px 8px;
	transition: top 0.15s;
}

.lm-skip:focus {
	top: 0;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Buttons */
.lm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.6rem 1.25rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.lm-btn--primary {
	background: var(--lm-gold);
	color: #1c1c1e;
}

.lm-btn--primary:hover {
	background: #ffcb2e;
}

.lm-btn--solid {
	background: var(--lm-brand);
	color: #fff;
}

.lm-btn--solid:hover {
	background: var(--lm-brand-dark);
}

.lm-btn--ghost {
	border-color: currentColor;
	background: transparent;
	color: #fff;
}

.lm-btn--ghost:hover {
	background: rgb(255 255 255 / 0.12);
}

/* Header */
.lm-header {
	background: var(--lm-night);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 10px rgb(0 0 0 / 0.25);
}

.lm-header__bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 72px;
}

.lm-brand {
	display: block;
	flex: 0 0 auto;
	line-height: 0;
}

.lm-brand img {
	height: 48px;
	width: auto;
}

.lm-nav {
	margin-left: auto;
}

.lm-nav ul {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lm-nav a {
	display: block;
	padding: 0.6rem 0.9rem;
	border-radius: 8px;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.lm-nav a:hover,
.lm-nav a[aria-current="page"] {
	background: rgb(255 255 255 / 0.14);
}

.lm-nav a.lm-nav__call {
	background: var(--lm-gold);
	color: #1c1c1e;
	white-space: nowrap;
}

.lm-nav-toggle {
	display: none;
	margin-left: auto;
	min-height: 44px;
	padding: 0.5rem 1rem;
	border: 2px solid rgb(255 255 255 / 0.6);
	border-radius: 8px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

@media (max-width: 52rem) {
	.lm-header__bar {
		flex-wrap: wrap;
		padding-block: 0.5rem;
	}

	.lm-nav-toggle {
		display: inline-flex;
	}

	.lm-nav {
		display: none;
		width: 100%;
		margin-left: 0;
	}

	.lm-nav[data-open="true"] {
		display: block;
	}

	.lm-nav ul {
		flex-direction: column;
		align-items: stretch;
	}

	.lm-nav a {
		padding: 0.85rem 0.9rem;
	}
}

/* Hero */
.lm-hero {
	background: linear-gradient(120deg, #45454b, #633737);
	color: #fff;
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.lm-hero__logo {
	display: block;
	width: min(100%, 540px);
	height: auto;
	margin-bottom: 1.75rem;
}

.lm-hero h1 {
	margin: 0 0 0.5rem;
	font-size: clamp(2rem, 1.2rem + 3.5vw, 3.4rem);
	line-height: 1.1;
	color: #fff;
}

.lm-hero__tag {
	margin: 0 0 1.25rem;
	font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
	color: var(--lm-gold);
	font-weight: 600;
}

.lm-hero p {
	max-width: 62ch;
	font-size: 1.1rem;
}

.lm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

/* Service tiles */
.lm-services {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.lm-service {
	height: 100%;
	padding: 1.25rem;
	background: var(--lm-paper);
	border: 1px solid var(--lm-line);
	border-radius: var(--lm-radius);
}

.lm-service h3 {
	margin: 0 0 0.4rem;
	font-size: 1.15rem;
}

.lm-service p {
	margin: 0 0 0.75rem;
	color: var(--lm-ink-soft);
}

.lm-service a {
	font-weight: 700;
}

/* Vehicle cards */
.lm-cards {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.lm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--lm-paper);
	border: 1px solid var(--lm-line);
	border-radius: var(--lm-radius);
	box-shadow: var(--lm-shadow);
	transition: transform 0.15s, box-shadow 0.15s;
}

.lm-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 2px 4px rgb(0 0 0 / 0.1), 0 12px 28px rgb(0 0 0 / 0.14);
}

.lm-card:focus-within {
	outline: 3px solid var(--lm-focus);
	outline-offset: 2px;
}

.lm-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #e6e4df;
}

.lm-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lm-card__badge {
	position: absolute;
	left: 0.6rem;
	top: 0.6rem;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: var(--lm-brand);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.lm-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.2rem;
	padding: 1rem 1.1rem 1.1rem;
}

.lm-card__title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.3;
}

.lm-card__title a {
	color: var(--lm-ink);
	text-decoration: none;
}

/* Makes the whole card clickable while keeping a single link for assistive technology. */
.lm-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.lm-card__title a:focus-visible {
	outline: none;
}

.lm-card__trim {
	margin: 0;
	color: var(--lm-ink-soft);
	font-size: 0.95rem;
}

.lm-card__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.6rem;
}

.lm-card__price {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--lm-brand);
}

.lm-card__miles {
	color: var(--lm-ink-soft);
	font-size: 0.95rem;
}

/* Category tiles */
.lm-types {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.lm-type {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	padding: 0.75rem 1rem;
	background: var(--lm-paper);
	border: 2px solid var(--lm-line);
	border-radius: var(--lm-radius);
	color: var(--lm-ink);
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.15s, background-color 0.15s;
}

.lm-type:hover {
	border-color: var(--lm-brand);
	background: #fbf5f5;
}

/* Visit block */
.lm-visit {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	padding: 1.5rem;
	background: var(--lm-night);
	color: #fff;
	border-radius: var(--lm-radius);
}

.lm-visit h2 {
	color: #fff;
}

.lm-visit a {
	color: var(--lm-gold);
	font-weight: 700;
}

.lm-visit address {
	font-style: normal;
}

.lm-phones {
	display: grid;
	gap: 0.35rem 1.5rem;
	grid-template-columns: auto 1fr;
	margin: 0;
}

.lm-phones dt {
	font-weight: 400;
	color: #d8d6d0;
}

.lm-phones dd {
	margin: 0;
	font-weight: 700;
}

/* Footer */
.lm-footer {
	margin-top: 2rem;
	background: var(--lm-night);
	color: #e6e4df;
	font-size: 0.95rem;
}

.lm-footer a {
	color: #fff;
}

.lm-footer__grid {
	display: grid;
	gap: 1.5rem 2rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	padding-block: 2rem 1.25rem;
}

.lm-footer h2 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	color: var(--lm-gold);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.lm-footer address {
	font-style: normal;
}

.lm-footer p {
	margin: 0 0 0.6rem;
}

.lm-footer__fine {
	padding-block: 1rem 1.5rem;
	border-top: 1px solid rgb(255 255 255 / 0.18);
	font-size: 0.88rem;
	color: #cfccc5;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media (forced-colors: active) {
	.lm-card, .lm-type, .lm-service {
		border: 1px solid CanvasText;
	}
}

/* Photo gallery */
.lm-title {
	margin: 0 0 1rem;
	font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
	line-height: 1.15;
	color: var(--lm-ink);
}

.lm-gallery__count {
	font-weight: 400;
	color: var(--lm-ink-soft);
}

.lm-gallery__hint {
	margin: 0.25rem 0 1rem;
	color: var(--lm-ink-soft);
}

.lm-gallery__grid {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 40rem) {
	.lm-gallery__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.lm-gallery__item:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.lm-gallery__item a {
	display: block;
	height: 100%;
	overflow: hidden;
	border-radius: var(--lm-radius);
	background: #e6e4df;
}

.lm-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.lm-gallery__item:first-child img {
	aspect-ratio: auto;
}

.lm-gallery__item a:hover img {
	transform: scale(1.04);
}

/* Lightbox (native dialog) */
body:has(dialog.lm-lightbox[open]) {
	overflow: hidden;
}

.lm-lightbox {
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	overscroll-behavior: contain;
	color: #fff;
	background: #0b0b0b;
	border: 0;
}

.lm-lightbox::backdrop {
	background: #000;
}

.lm-lightbox[open] {
	display: grid;
}

.lm-lightbox__inner {
	display: grid;
	grid-template-rows: auto 1fr;
	min-height: 0;
	height: 100%;
}

/* Count on the left, title centered, Close on the right. */
.lm-lightbox__bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: "count title close";
	align-items: center;
	gap: 0.5rem 1rem;
	padding: 0.75rem 1rem;
}

/* Two classes so it outranks .lm-section h2, which made the title dark. */
.lm-lightbox .lm-lightbox__title {
	grid-area: title;
	margin: 0;
	font-size: 1.2rem;
	font-weight: 600;
	text-align: center;
	color: #fff;
}

.lm-lightbox__count {
	grid-area: count;
	margin: 0;
	color: #d6d6d6;
}

.lm-lightbox__bar > .lm-lightbox__btn {
	grid-area: close;
	justify-self: end;
}

@media (max-width: 40rem) {
	.lm-lightbox__bar {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"count close"
			"title title";
	}
}

.lm-lightbox__btn {
	min-width: 44px;
	min-height: 44px;
	padding: 0.5rem 1.25rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: #2b2b2b;
	border: 2px solid #8a8a8a;
	border-radius: 999px;
	cursor: pointer;
}

.lm-lightbox__btn:hover {
	background: #3d3d3d;
}

.lm-lightbox__body {
	display: grid;
	gap: 0.75rem;
	min-height: 0;
	padding: 0 1rem 1rem;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: minmax(0, 1fr) auto;
	grid-template-areas: "fig fig" "prev next";
}

.lm-lightbox__figure {
	grid-area: fig;
	display: grid;
	place-items: center;
	min-height: 0;
	margin: 0;
}

.lm-lightbox__figure img {
	max-width: 100%;
	max-height: calc(100dvh - 10rem);
	width: auto;
	height: auto;
	object-fit: contain;
}

.lm-lightbox__prev {
	grid-area: prev;
}

.lm-lightbox__next {
	grid-area: next;
}

@media (min-width: 48rem) {
	.lm-lightbox__body {
		grid-template-columns: auto 1fr auto;
		grid-template-rows: minmax(0, 1fr);
		grid-template-areas: "prev fig next";
		align-items: center;
	}

	.lm-lightbox__figure img {
		max-height: calc(100dvh - 6rem);
	}
}

/* Vehicle details */
.lm-crumbs {
	margin-bottom: 0.5rem;
}

.lm-notice {
	padding: 0.75rem 1rem;
	font-weight: 600;
	background: #fff4d6;
	border: 2px solid #8a6100;
	border-radius: 0.5rem;
}

.lm-detail {
	display: grid;
	gap: 2rem;
	margin-top: 2rem;
}

.lm-detail__main section + section {
	margin-top: 2rem;
}

.lm-specs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: 0.25rem 1.5rem;
	margin: 0;
}

.lm-specs__vehicle {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	font-weight: 700;
}

.lm-specs__item {
	padding: 0.6rem 0;
	border-bottom: 1px solid #d9d9d9;
}

.lm-specs dt {
	font-size: 0.85rem;
	font-weight: 600;
	color: #4a4a4a;
}

.lm-specs dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.lm-prewrap {
	white-space: pre-line;
}

.lm-detail__desc {
	font-size: 1.2rem;
	line-height: 1.6;
}

.lm-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.lm-chips li {
	padding: 0.35rem 0.85rem;
	background: #eef2f7;
	border: 1px solid #c3cddb;
	border-radius: 999px;
}

.lm-detail__aside {
	display: grid;
	align-content: start;
	gap: 0.75rem;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 0.75rem;
}

.lm-detail__price {
	margin: 0;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.1;
}

.lm-detail__after {
	font-size: 0.9rem;
	font-weight: 400;
	color: #4a4a4a;
}

.lm-detail__miles {
	margin: 0;
}

.lm-btn--outline {
	border-color: var(--lm-brand);
	background: #fff;
	color: var(--lm-brand);
}

.lm-btn--outline:hover {
	background: var(--lm-brand);
	color: #fff;
}

.lm-btn--block {
	display: block;
	text-align: center;
}

@media (min-width: 60rem) {
	.lm-detail {
		grid-template-columns: minmax(0, 1fr) 20rem;
		align-items: start;
	}

	.lm-detail__aside {
		position: sticky;
		top: 5.5rem;
	}
}

/* Inventory list */
.lm-tabs ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.lm-tabs a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.4rem 1.1rem;
	font-weight: 600;
	color: var(--lm-ink);
	text-decoration: none;
	background: var(--lm-paper);
	border: 2px solid var(--lm-line);
	border-radius: 999px;
}

.lm-tabs a:hover {
	border-color: var(--lm-brand);
}

.lm-tabs a[aria-current="page"] {
	color: #fff;
	background: var(--lm-brand);
	border-color: var(--lm-brand);
}

.lm-filters {
	margin-bottom: 1.25rem;
	background: var(--lm-surface);
	border: 1px solid var(--lm-line);
	border-radius: var(--lm-radius);
}

.lm-filters summary {
	padding: 0.85rem 1.1rem;
	font-weight: 700;
	cursor: pointer;
}

.lm-filters__form {
	display: grid;
	gap: 1rem;
	padding: 0 1.1rem 1.1rem;
}

.lm-filters__grid {
	display: grid;
	gap: 0.85rem 1rem;
	grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
}

.lm-field label {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.lm-field select {
	width: 100%;
	min-height: 44px;
	padding: 0.4rem 0.6rem;
	font: inherit;
	color: var(--lm-ink);
	background: var(--lm-paper);
	border: 2px solid #767676;
	border-radius: 8px;
}

.lm-filters__features {
	padding: 0 1rem;
	background: var(--lm-paper);
	border: 1px solid var(--lm-line);
	border-radius: 8px;
}

.lm-filters__features summary {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0;
	font-weight: 600;
}

.lm-filters__features fieldset {
	margin: 0;
	padding: 0 0 0.5rem;
	border: 0;
}

.lm-filters__features ul {
	display: grid;
	gap: 0.15rem 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.lm-filters__features li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
}

.lm-filters__features input {
	width: 1.25rem;
	height: 1.25rem;
	accent-color: var(--lm-brand);
}

.lm-filters__count {
	color: var(--lm-ink-soft);
}

.lm-filters__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.lm-results {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-bottom: 1rem;
}

.lm-results__count {
	margin: 0;
	font-weight: 600;
}

.lm-results__view {
	display: inline-flex;
	overflow: hidden;
	border: 2px solid var(--lm-brand);
	border-radius: 999px;
}

.lm-results__view a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 1rem;
	font-weight: 600;
	color: var(--lm-brand);
	text-decoration: none;
}

.lm-results__view a[aria-current="true"] {
	color: #fff;
	background: var(--lm-brand);
}

.lm-empty {
	padding: 2rem 1rem;
	text-align: center;
	background: var(--lm-surface);
	border-radius: var(--lm-radius);
}

.lm-sale {
	margin-top: 2.5rem;
	padding: 1rem 1rem 1.5rem;
	background: #fbeaea;
	border-top: 6px solid var(--lm-brand);
	border-radius: var(--lm-radius);
}

.lm-sale h2 {
	margin: 0 0 1rem;
	color: var(--lm-brand);
	text-align: center;
}

.lm-card__badge--reduced {
	background: #1b6e3a;
}

.lm-card__badge--sold {
	background: #1c1c1e;
}

.lm-card--sold .lm-card__media img {
	filter: grayscale(0.8);
}

.lm-card__specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.4rem 1rem;
	margin: 0.6rem 0 0;
	font-size: 0.9rem;
}

.lm-card__specs dt {
	color: var(--lm-ink-soft);
	font-size: 0.8rem;
	font-weight: 700;
}

.lm-card__specs dd {
	margin: 0;
	overflow-wrap: anywhere;
}

@media (min-width: 48rem) {
	.lm-cards--list {
		grid-template-columns: 1fr;
	}

	.lm-card--list {
		flex-direction: row;
	}

	.lm-card--list .lm-card__media {
		flex: 0 0 320px;
		aspect-ratio: auto;
		min-height: 240px;
	}

	.lm-card--list .lm-card__specs {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Contact, shipping and forms */
.lm-contact {
	display: grid;
	gap: 1.5rem;
}

.lm-contact > * {
	min-width: 0;
}

@media (min-width: 52rem) {
	.lm-contact {
		grid-template-columns: 3fr 2fr;
		align-items: start;
	}
}

.lm-panel {
	padding: 1.25rem 1.5rem;
	background: var(--lm-paper);
	border: 1px solid var(--lm-line);
	border-radius: var(--lm-radius);
	box-shadow: var(--lm-shadow);
}

.lm-panel h2 {
	margin-top: 0;
}

.lm-panel h3 {
	margin: 1.25rem 0 0.4rem;
	font-size: 1.05rem;
}

.lm-form {
	display: grid;
	gap: 1rem;
}

.lm-input {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 0.5rem 0.7rem;
	font: inherit;
	color: var(--lm-ink);
	background: var(--lm-paper);
	border: 2px solid #767676;
	border-radius: 8px;
}

textarea.lm-input {
	resize: vertical;
}

.lm-form .lm-field label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

.lm-hint {
	margin: -0.5rem 0 0;
	font-size: 0.9rem;
	color: var(--lm-ink-soft);
}

.lm-form-error,
.validation-message,
.validation-errors {
	margin: 0.3rem 0 0;
	font-weight: 600;
	color: #a30000;
}

.validation-errors {
	padding-left: 1.2rem;
}

.lm-form-ok {
	padding: 0.85rem 1rem;
	font-weight: 600;
	color: #0b4f1c;
	background: #e6f4ea;
	border: 2px solid #0b4f1c;
	border-radius: 8px;
}

.lm-input.invalid,
.lm-input[aria-invalid="true"] {
	border-color: #a30000;
}

.lm-contact__vehicle {
	margin-top: 0;
}

.lm-address {
	font-style: normal;
	margin-bottom: 0.75rem;
}

.lm-contact-phones,
.lm-social {
	margin: 0 0 0.75rem;
	padding: 0;
	list-style: none;
}

.lm-contact-phones li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--lm-line);
}

.lm-contact-phones a,
.lm-social a {
	display: inline-block;
	min-height: 24px;
	font-weight: 600;
}

.lm-social {
	display: flex;
	gap: 1.25rem;
}

.lm-hours {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.25rem 1rem;
	margin: 0;
}

.lm-hours dd {
	margin: 0;
}

.lm-shipping {
	display: grid;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 52rem) {
	.lm-shipping {
		grid-template-columns: 1fr 320px;
	}
}

.lm-shipping__photo {
	width: 100%;
	max-width: 320px;
	height: auto;
	border: 1px solid var(--lm-line);
	border-radius: var(--lm-radius);
}

.lm-shipping__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.lm-turnstile {
	min-height: 65px;
	max-width: 100%;
}
/* Credit application */
.lm-app {
	max-width: 56rem;
}

.lm-lead {
	max-width: 46rem;
	font-size: 1.1rem;
}

.lm-req {
	color: #a30000;
	font-weight: 700;
}

.lm-notice--calm {
	background: #eef4fb;
	border-color: #1f4f82;
}

.lm-error-summary {
	margin: 1.25rem 0;
	padding: 1rem 1.25rem;
	background: #fdecec;
	border: 2px solid #a30000;
	border-radius: 8px;
}

.lm-error-summary h2 {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	color: #a30000;
}

.lm-error-summary ul {
	margin: 0;
	padding-left: 1.25rem;
}

.lm-error-summary a {
	color: #7a0000;
	font-weight: 600;
}

.lm-group {
	min-width: 0;
	margin: 0 0 1.5rem;
	padding: 0;
	border: 0;
}

.lm-group > legend {
	display: block;
	margin-bottom: 0.6rem;
	padding: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--lm-brand-dark);
}

.lm-panel > h2 .lm-hint {
	font-size: 0.9rem;
	font-weight: 400;
}

.lm-panel .lm-group:last-child {
	margin-bottom: 0;
}

.lm-form-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.lm-span-2 {
	grid-column: 1 / -1;
}

@media (min-width: 40rem) {
	.lm-span-2 {
		grid-column: span 2;
	}
}

.lm-app .lm-panel,
.lm-app .lm-group {
	margin-bottom: 1.5rem;
}

.lm-choices {
	margin: 1rem 0 0;
	padding: 0;
	border: 0;
}

.lm-choices > legend {
	padding: 0;
	margin-bottom: 0.4rem;
	font-weight: 600;
}

.lm-choices__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.lm-choice {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 44px;
	padding: 0.35rem 0.9rem;
	background: var(--lm-paper);
	border: 2px solid #767676;
	border-radius: 8px;
	cursor: pointer;
}

.lm-choice input {
	width: 1.25rem;
	height: 1.25rem;
	flex: none;
	accent-color: var(--lm-brand);
}

.lm-choice:has(input:checked) {
	border-color: var(--lm-brand);
	background: #fbeeee;
}

.lm-choice:has(input:focus-visible) {
	outline: 3px solid var(--lm-focus);
	outline-offset: 2px;
}

.lm-choice--block {
	display: flex;
	align-items: flex-start;
	width: 100%;
	padding: 0.7rem 0.9rem;
}

.lm-legal {
	font-size: 0.95rem;
	line-height: 1.55;
}

.lm-legal h3 {
	margin: 1rem 0 0.35rem;
	font-size: 1rem;
}

/* Long URLs in the legal text must wrap on narrow screens. */
.lm-legal a {
	overflow-wrap: anywhere;
}

.lm-legal--optional {
	margin-top: 1.25rem;
}

.lm-input:focus-visible,
.lm-choices input:focus-visible {
	outline: 3px solid var(--lm-focus);
	outline-offset: 2px;
}

.lm-submit {
	display: grid;
	gap: 1rem;
	justify-items: start;
	margin-bottom: 2rem;
}

/* Full width so site.js can tell when there is no room for the 300px widget. */
.lm-submit > .lm-turnstile {
	justify-self: stretch;
}

.lm-btn--lg {
	min-height: 52px;
	padding-inline: 2rem;
	font-size: 1.1rem;
}

.lm-btn[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

[data-joint][hidden],
[data-individual][hidden] {
	display: none;
}

/* Payment calculator */
.lm-calc {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	align-items: start;
}

.lm-calc__update {
	margin: 1.25rem 0 0;
}

.lm-calc__result {
	display: grid;
	gap: 0.75rem;
	justify-items: center;
	text-align: center;
}

.lm-calc__amount {
	margin: 0;
	font-size: clamp(2.2rem, 1.6rem + 2.5vw, 3.2rem);
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.lm-calc__detail {
	margin: 0.35rem 0 0;
	color: var(--lm-ink-soft);
}

.lm-calc__fine {
	margin: 0;
	max-width: 32rem;
}