/**
 * BilListe Frontend — dealers.css (Milepæl M22: offentlig
 * forhandlerliste + forhandlerprofil, `/forhandlere/` +
 * `/forhandler/{slug}/`).
 *
 * Genbruger UDELUKKENDE `foundation.css`s allerede etablerede
 * `--billiste-*`-designtokens (M22 §20: "Ingen nye farver hvis
 * eksisterende tokens passer. Ingen nyt designsystem.") - INGEN nye
 * farvevariabler defineret her. Mobile first, samme disciplin som
 * platformens øvrige CSS.
 */

/* -------------------------------------------------------------------
 * Forhandlerliste (/forhandlere/)
 * ---------------------------------------------------------------- */

.billiste-dealers-page__title {
	margin-top: var(--billiste-space-4);
	margin-bottom: var(--billiste-space-4);
}

.billiste-dealer-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--billiste-space-3);
}

@media (min-width: 640px) {
	.billiste-dealer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.billiste-dealer-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.billiste-dealer-card {
	border: 1px solid var(--billiste-color-border);
	border-radius: var(--billiste-radius);
	background: var(--billiste-color-background);
	box-shadow: var(--billiste-shadow-sm);
}

.billiste-dealer-card__link {
	display: block;
	padding: var(--billiste-space-3);
	color: inherit;
	text-decoration: none;
	/* §19: minimum 44x44px touch target */
	min-height: var(--billiste-touch-target-min);
}

.billiste-dealer-card__link:focus-visible {
	outline: 2px solid var(--billiste-color-focus);
	outline-offset: 2px;
}

.billiste-dealer-card__name {
	font-weight: 600;
}

/* -------------------------------------------------------------------
 * Forhandlerlistens paginering — samme markup-mønster som
 * `search-page.css`s `.billiste-search-pagination`.
 * ---------------------------------------------------------------- */

.billiste-dealers-pagination {
	display: flex;
	align-items: center;
	gap: var(--billiste-space-3);
	margin-top: var(--billiste-space-4);
	flex-wrap: wrap;
}

.billiste-dealers-pagination__prev,
.billiste-dealers-pagination__next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--billiste-touch-target-min);
	padding: var(--billiste-space-2) var(--billiste-space-3);
	border: 1px solid var(--billiste-color-border);
	border-radius: var(--billiste-radius);
	color: var(--billiste-color-accent);
	text-decoration: none;
}

.billiste-dealers-pagination__prev:focus-visible,
.billiste-dealers-pagination__next:focus-visible {
	outline: 2px solid var(--billiste-color-focus);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------
 * Forhandlerprofil (/forhandler/{slug}/)
 * ---------------------------------------------------------------- */

.billiste-dealer-profile-page__title {
	margin-top: var(--billiste-space-4);
	margin-bottom: var(--billiste-space-2);
}

.billiste-dealer-profile-page__bio {
	color: var(--billiste-color-text-muted);
	margin-bottom: var(--billiste-space-3);
}

.billiste-dealer-profile-page__count {
	margin-bottom: var(--billiste-space-4);
}

.billiste-dealer-profile-page__listings {
	margin-top: var(--billiste-space-5);
}
