.coast-wotr-route-row {
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	margin: 0 0 12px;
	padding: 12px;
}

.coast-wotr-route-row.is-invalid {
	border-color: #d63638;
}

.coast-wotr-route-grid {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(3, minmax(180px, 1fr));
	margin-bottom: 10px;
}

.coast-wotr-field {
	display: block;
	max-width: 100%;
}

.coast-wotr-field span {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.coast-wotr-field select {
	max-width: 100%;
	width: 100%;
}

.coast-wotr-route-summary {
	color: #50575e;
	font-size: 12px;
	margin: 0 0 10px;
}

.coast-wotr-row-error {
	color: #b32d2e;
	font-weight: 600;
	margin: 0 0 10px;
}

@media (max-width: 782px) {
	.coast-wotr-route-grid {
		grid-template-columns: 1fr;
	}
}

.coast-wotr-directory {
	color: var(--coast-charcoal, #3b3839);
	display: grid;
	gap: clamp(2.25rem, 4vw, 3.5rem);
	grid-template-columns: repeat(2, minmax(300px, 1fr));
	margin: clamp(2rem, 5vw, 4rem) auto;
	max-width: var(--coast-content-max, 1140px);
}

.coast-wotr-directory--route {
	margin-bottom: 0;
	margin-top: 0;
}

.coast-wotr-group {
	margin: 0;
	min-width: 0;
}

.coast-wotr-group h2,
.coast-wotr-group h3 {
	color: var(--coast-teal, #0c6b6d);
	font-size: clamp(1.2rem, 1.7vw, 1.45rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 0.85rem;
}

.coast-wotr-list-header,
.coast-wotr-list-item {
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1fr) minmax(120px, max-content);
}

.coast-wotr-list-header {
	border-bottom: 0;
	color: var(--coast-charcoal, #3b3839);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin-bottom: 0.5rem;
	padding-bottom: 0.35rem;
	text-transform: uppercase;
}

.coast-wotr-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.coast-wotr-list-item {
	border-bottom: 0;
	padding: 0.55rem 0 0.9rem;
}

.coast-wotr-list-item h3 {
	font-size: 0.88rem;
	line-height: 1.35;
	margin: 0 0 0.2rem;
}

.coast-wotr-list-item h3 a,
.coast-wotr-list-item h4 a {
	color: #111;
	font-weight: 700;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

.coast-wotr-list-item h4 {
	font-size: 0.88rem;
	line-height: 1.35;
	margin: 0 0 0.2rem;
}

.coast-wotr-list-item address {
	font-size: 0.82rem;
	font-style: normal;
	line-height: 1.35;
	margin: 0;
}

.coast-route-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	justify-content: flex-end;
	list-style: none;
	margin: 0;
	padding: 0;
}

.coast-route-badge {
	--coast-route-color: #5d6369;
	--coast-route-contrast: #fff;
	align-items: center;
	background: var(--coast-route-color);
	border: 2px solid var(--coast-route-color);
	border-radius: 50%;
	color: var(--coast-route-contrast);
	display: inline-flex;
	font-size: 0.72rem;
	font-weight: 800;
	height: 1.95rem;
	justify-content: center;
	line-height: 1;
	min-width: 0;
	padding: 0;
	text-align: center;
	width: 1.95rem;
}

.coast-route-badge--long {
	font-size: 0.54rem;
}

.coast-stop-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	justify-content: flex-end;
	list-style: none;
	margin: 0;
	padding: 0;
}

.coast-stop-badge-wrap {
	position: relative;
}

.coast-stop-badge {
	align-items: center;
	background: var(--coast-charcoal, #3b3839);
	border: 2px solid var(--coast-charcoal, #3b3839);
	border-radius: 50%;
	color: #fff;
	cursor: help;
	display: inline-flex;
	font-size: 0.74rem;
	font-weight: 800;
	height: 1.8rem;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 1.8rem;
}

.coast-stop-badge:focus-visible {
	outline: 3px solid var(--coast-cyan-bright, #01bedb);
	outline-offset: 2px;
}

.coast-stop-tooltip {
	background: var(--coast-charcoal, #3b3839);
	border-radius: 0.25rem;
	bottom: calc(100% + 0.45rem);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	left: 50%;
	line-height: 1.25;
	max-width: 15rem;
	opacity: 0;
	padding: 0.55rem 0.7rem;
	pointer-events: none;
	position: absolute;
	text-align: center;
	transform: translateX(-50%);
	transition: opacity 120ms ease;
	visibility: hidden;
	width: max-content;
	z-index: 5;
}

.coast-stop-tooltip::after {
	border: 0.35rem solid transparent;
	border-top-color: var(--coast-charcoal, #3b3839);
	content: "";
	left: 50%;
	position: absolute;
	top: 100%;
	transform: translateX(-50%);
}

.coast-stop-badge:hover + .coast-stop-tooltip,
.coast-stop-badge:focus-visible + .coast-stop-tooltip {
	opacity: 1;
	visibility: visible;
}

@media (max-width: 900px) {
	.coast-wotr-directory {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.coast-wotr-list-header {
		display: none;
	}

	.coast-wotr-directory {
		grid-template-columns: 1fr;
	}

	.coast-wotr-list-item {
		grid-template-columns: 1fr;
	}

	.coast-route-badges,
	.coast-stop-badges {
		justify-content: flex-start;
	}
}
