/**
 * Coast-Line rep locator.
 * Brand and sizing live in the first block — retune everything from there.
 *
 * --clrl-cell sets the map tile size. The whole map is
 * (12 x cell) + (11 x gap) wide, so 32px tiles give a ~420px map.
 */

.clrl {
	--clrl-navy: #1b3a6b;
	--clrl-red: #c8102e;
	--clrl-ink: #1f2933;
	--clrl-muted: #5b6b7c;
	--clrl-line: #dfe5ec;
	--clrl-surface: #ffffff;
	--clrl-surface-alt: #f4f7fa;
	--clrl-radius: 5px;
	--clrl-cell: 32px;
	--clrl-cell-gap: 3px;

	color: var(--clrl-ink);
	font-size: 15px;
	line-height: 1.55;
}

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

/* Themes and page builders style bare buttons aggressively. Neutralise it. */
.clrl button {
	appearance: none;
	background: none;
	border: 0;
	box-shadow: none;
	font: inherit;
	letter-spacing: normal;
	line-height: 1.2;
	margin: 0;
	min-height: 0;
	text-shadow: none;
	text-transform: none;
	width: auto;
}

.clrl [hidden] {
	display: none !important;
}

/* ---------- Finder ---------- */

.clrl .clrl__finder {
	background: var(--clrl-surface-alt);
	border: 1px solid var(--clrl-line);
	border-radius: 8px;
	padding: 16px 18px;
	margin-bottom: 32px;
}

.clrl .clrl__tabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.clrl .clrl__tab {
	border: 1px solid var(--clrl-line);
	border-radius: var(--clrl-radius);
	color: var(--clrl-muted);
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.clrl .clrl__tab:hover {
	border-color: var(--clrl-navy);
	color: var(--clrl-navy);
}

.clrl .clrl__tab[aria-selected="true"] {
	background: var(--clrl-navy);
	border-color: var(--clrl-navy);
	color: #fff;
}

.clrl .clrl__select-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.clrl .clrl__label {
	color: var(--clrl-navy);
	font-size: 14px;
	font-weight: 700;
	margin: 0;
}

.clrl .clrl__select {
	appearance: none;
	background: var(--clrl-surface) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231b3a6b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
	border: 1px solid var(--clrl-line);
	border-radius: var(--clrl-radius);
	color: var(--clrl-ink);
	font: inherit;
	font-size: 15px;
	height: 40px;
	min-height: 0;
	width: 280px;
	max-width: 100%;
	padding: 6px 34px 6px 12px;
}

.clrl .clrl__select:focus-visible,
.clrl .clrl__tab:focus-visible,
.clrl .clrl__cell:focus-visible,
.clrl .clrl__chip:focus-visible,
.clrl .clrl__more:focus-visible {
	outline: 3px solid var(--clrl-red);
	outline-offset: 2px;
}

/* ---------- Map beside result ---------- */

.clrl .clrl__body {
	display: grid;
	gap: 18px;
	align-items: start;
}

@media ( min-width: 860px ) {
	.clrl .clrl__body {
		grid-template-columns: max-content minmax(280px, 1fr);
	}
}

.clrl .clrl__map--grid {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.clrl .clrl__grid {
	display: grid;
	grid-template-columns: repeat(12, var(--clrl-cell));
	gap: var(--clrl-cell-gap);
	justify-content: start;
	width: max-content;
}

.clrl .clrl__cell {
	background: #e4e9ef;
	border: 2px solid transparent;
	border-radius: 3px;
	color: #fff;
	cursor: pointer;
	font-size: 10px;
	font-weight: 700;
	height: var(--clrl-cell);
	padding: 0;
	transition: transform .12s ease, opacity .12s ease;
	width: var(--clrl-cell);
}

.clrl .clrl__cell--empty {
	background: none;
	border: 0;
}

.clrl .clrl__cell--none {
	color: var(--clrl-muted);
	cursor: default;
}

.clrl .clrl__cell:not(.clrl__cell--none):hover {
	transform: scale(1.14);
}

.clrl .clrl__cell.is-dim,
.clrl .clrl__chip.is-dim {
	opacity: .35;
}

.clrl .clrl__cell.is-selected {
	border-color: var(--clrl-ink);
	opacity: 1;
	transform: scale(1.14);
}

.clrl .clrl__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: 460px;
}

.clrl .clrl__chip {
	background: var(--clrl-navy);
	border: 2px solid transparent;
	border-radius: var(--clrl-radius);
	color: #fff;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	padding: 7px 12px;
	transition: opacity .12s ease;
}

.clrl .clrl__chip.is-selected {
	border-color: var(--clrl-ink);
	opacity: 1;
}

/* ---------- Cards ---------- */

.clrl .clrl__prompt {
	background: var(--clrl-surface);
	border: 1px dashed var(--clrl-line);
	border-radius: 8px;
	color: var(--clrl-muted);
	font-size: 14px;
	margin: 0;
	padding: 20px 16px;
	text-align: center;
}

.clrl .clrl__card {
	background: var(--clrl-surface);
	border: 1px solid var(--clrl-line);
	border-radius: 8px;
	display: flex;
	gap: 14px;
	padding: 14px;
}

.clrl .clrl__card--result {
	border-left: 4px solid var(--clrl-red);
}

.clrl .clrl__avatar {
	background-position: center;
	background-size: cover;
	border-radius: 6px;
	flex: 0 0 68px;
	height: 68px;
	width: 68px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 19px;
	font-weight: 700;
}

.clrl .clrl__card-body {
	flex: 1 1 auto;
	min-width: 0;
}

.clrl .clrl__eyebrow {
	color: var(--clrl-red);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
	margin: 0 0 2px;
	text-transform: uppercase;
}

.clrl .clrl__name {
	color: var(--clrl-navy);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 2px;
}

.clrl .clrl__company {
	color: var(--clrl-muted);
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 6px;
}

.clrl .clrl__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 16px;
	margin: 0 0 6px;
}

.clrl .clrl__contact a {
	border-bottom: 1px solid rgba(27, 58, 107, .28);
	color: var(--clrl-navy);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.clrl .clrl__contact a:hover {
	border-bottom-color: var(--clrl-red);
	color: var(--clrl-red);
}

.clrl .clrl__specialty {
	color: var(--clrl-muted);
	font-size: 13px;
	font-style: italic;
	margin: 0 0 6px;
}

.clrl .clrl__serving {
	align-items: baseline;
	color: var(--clrl-ink);
	display: flex;
	font-size: 13px;
	gap: 7px;
	margin: 0 0 6px;
}

.clrl .clrl__swatch {
	border-radius: 2px;
	display: inline-block;
	flex: 0 0 10px;
	height: 10px;
	width: 10px;
	transform: translateY(1px);
}

.clrl .clrl__bio p {
	color: var(--clrl-muted);
	font-size: 13px;
	margin: 0 0 6px;
}

.clrl .clrl__more {
	border-bottom: 1px solid var(--clrl-line);
	color: var(--clrl-navy);
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	padding: 2px 0;
}

.clrl .clrl__more:hover {
	border-bottom-color: var(--clrl-red);
	color: var(--clrl-red);
}

/* ---------- Directory ---------- */

.clrl .clrl__team {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 14px;
	margin-top: 14px;
}

.clrl .clrl__card--featured {
	border-top: 4px solid var(--clrl-navy);
}

.clrl .clrl__card--featured .clrl__avatar {
	flex-basis: 96px;
	height: 96px;
	width: 96px;
}

.clrl .clrl__card--dir.is-highlighted {
	border-color: var(--clrl-red);
	box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}

/* ---------- Small screens ---------- */

@media ( max-width: 600px ) {
	.clrl {
		--clrl-cell: 28px;
	}

	.clrl .clrl__finder {
		padding: 14px;
	}

	.clrl .clrl__select {
		width: 100%;
	}

	.clrl .clrl__card {
		flex-direction: column;
	}

	.clrl .clrl__avatar,
	.clrl .clrl__card--featured .clrl__avatar {
		flex-basis: 64px;
		height: 64px;
		width: 64px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.clrl *,
	.clrl *::before {
		transition: none !important;
	}

	.clrl .clrl__cell:hover,
	.clrl .clrl__cell.is-selected {
		transform: none;
	}
}
