/*
 * Bigfoot Locations List v1.0.0
 * Every rule is scoped under .bfl-locations so the theme is not affected.
 * Inherits the site font. Brand: forest #2B6331 / #163A1B, text #15140F,
 * cream #F4EFE3, accent orange #E07A1A (small emphasis only).
 */

.bfl-locations {
	--bfl-forest: #2B6331;
	--bfl-forest-dark: #163A1B;
	--bfl-text: #15140F;
	--bfl-cream: #F4EFE3;
	--bfl-accent: #E07A1A;
	--bfl-white: #FFFFFF;
	font-family: inherit;
	color: var(--bfl-text);
	line-height: 1.5;
	margin: 1.5rem 0;
}

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

.bfl-locations ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bfl-locations li {
	margin: 0;
	padding: 0;
}

.bfl-locations li::before {
	content: none;
}

/* Jump-to-state row: always wraps. */
.bfl-locations .bfl-locations__jump {
	margin: 0 0 1.5rem;
}

.bfl-locations .bfl-locations__jump-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.bfl-locations .bfl-locations__jump-link {
	display: inline-block;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--bfl-forest);
	border-radius: 999px;
	background: var(--bfl-white);
	color: var(--bfl-forest-dark);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: normal;
}

.bfl-locations .bfl-locations__jump-link:hover,
.bfl-locations .bfl-locations__jump-link:focus {
	background: var(--bfl-forest);
	color: var(--bfl-white);
	text-decoration: none;
}

.bfl-locations .bfl-locations__jump-link:active {
	border-color: var(--bfl-accent);
}

/* State groups. */
.bfl-locations .bfl-locations__state {
	margin: 0 0 2rem;
}

.bfl-locations .bfl-locations__state:last-child {
	margin-bottom: 0;
}

.bfl-locations .bfl-locations__state-heading {
	margin: 0 0 0.75rem;
	padding: 0 0 0.4rem;
	border-bottom: 3px solid var(--bfl-accent);
	color: var(--bfl-forest-dark);
	font-family: inherit;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	scroll-margin-top: 7rem; /* Clears a sticky site header when jumping. */
}

.bfl-locations .bfl-locations__state-heading:focus {
	outline: none;
}

.bfl-locations .bfl-locations__state-heading:target {
	color: var(--bfl-forest);
}

/* Location items: solid cream blocks, responsive columns. */
.bfl-locations .bfl-locations__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
	gap: 0.75rem;
}

.bfl-locations .bfl-locations__item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.9rem 1rem;
	background: var(--bfl-cream);
	border-left: 4px solid var(--bfl-forest);
	border-radius: 4px;
	min-width: 0;
}

.bfl-locations .bfl-locations__name {
	color: var(--bfl-forest-dark);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.bfl-locations a.bfl-locations__name {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.bfl-locations a.bfl-locations__name:hover,
.bfl-locations a.bfl-locations__name:focus {
	color: var(--bfl-forest);
	text-decoration-thickness: 2px;
}

.bfl-locations .bfl-locations__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 1rem;
	font-size: 1rem;
}

.bfl-locations .bfl-locations__town {
	color: var(--bfl-text);
}

.bfl-locations .bfl-locations__phone {
	color: var(--bfl-forest-dark);
	font-weight: 600;
}

.bfl-locations a.bfl-locations__phone {
	text-decoration: none;
}

.bfl-locations a.bfl-locations__phone:hover,
.bfl-locations a.bfl-locations__phone:focus {
	text-decoration: underline;
}

/* Services (full mode). */
.bfl-locations .bfl-locations__services {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.4rem;
}

.bfl-locations .bfl-locations__service a,
.bfl-locations .bfl-locations__service span {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border: 1px solid rgba(43, 99, 49, 0.45);
	border-radius: 999px;
	background: var(--bfl-white);
	color: var(--bfl-forest-dark);
	font-size: 0.85rem;
	line-height: 1.3;
	text-decoration: none;
}

.bfl-locations .bfl-locations__service a:hover,
.bfl-locations .bfl-locations__service a:focus {
	border-color: var(--bfl-forest);
	background: var(--bfl-forest);
	color: var(--bfl-white);
}

/* Compact mode: tighter items. */
.bfl-locations--compact .bfl-locations__item {
	padding: 0.7rem 0.9rem;
}

.bfl-locations--compact .bfl-locations__state-heading {
	font-size: 1.25rem;
}

/* Keyboard focus. */
.bfl-locations a:focus-visible {
	outline: 3px solid var(--bfl-accent);
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.bfl-locations .bfl-locations__state-heading {
		font-size: 1.3rem;
	}

	.bfl-locations .bfl-locations__jump-link {
		font-size: 0.9rem;
		padding: 0.45rem 0.75rem;
	}
}
