/* Khối Vị trí – routes: thẻ lộ trình theo nơi xuất phát (tab | thẻ | cột hành trình), bản đồ tĩnh bên cạnh. */

.vh-routes {
	display: grid;
	gap: var(--vh-card-gap);
}

.vh-routes__side,
.vh-routes__main {
	display: grid;
	gap: var(--vh-card-gap);
	align-content: start;
	min-width: 0;
}

.vh-routes__addr {
	display: grid;
	gap: 1rem;
	padding: var(--vh-card-pad);
	border: 1px solid var(--vh-color-border);
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-card);
	color: var(--vh-color-text);
}

.vh-routes .vh-itabs {
	margin-bottom: 0;
}

.vh-routes__group[hidden] {
	display: none;
}

.vh-routes__group:focus-visible {
	outline: 3px solid var(--vh-color-focus);
	outline-offset: 4px;
	border-radius: var(--vh-radius-card);
}

.vh-routes__origin {
	margin: 0 0 0.75rem;
	font-family: var(--vh-font-heading);
	font-size: var(--vh-fs-h3);
	font-weight: var(--vh-fw-heading);
	line-height: var(--vh-lh-heading);
}

.vh-routes__list {
	display: grid;
	gap: var(--vh-card-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-routes__group + .vh-routes__group {
	margin-top: 0.5rem;
}

/* Thẻ lộ trình. */
.vh-routes__card {
	display: grid;
	gap: 0.75rem;
	height: 100%;
	padding: var(--vh-card-pad);
	border: 1px solid var(--vh-color-border);
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-card);
	color: var(--vh-color-text);
}

.vh-route__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.vh-route__ic {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--vh-color-surface);
	color: var(--vh-color-primary);
}

.vh-route__title {
	margin: 0;
	font-family: var(--vh-font-heading);
	font-size: var(--vh-fs-lead);
	font-weight: var(--vh-fw-heading);
	line-height: var(--vh-lh-heading);
}

.vh-route__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
}

.vh-route__fact {
	display: grid;
	gap: 0.125rem;
}

.vh-route__fact dt {
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
}

.vh-route__fact dd {
	margin: 0;
	font-weight: var(--vh-fw-medium);
	font-variant-numeric: tabular-nums;
}

.vh-route__fact--time dd {
	color: var(--vh-color-accent-ink);
	font-size: var(--vh-fs-lead);
}

.vh-route__steps {
	display: grid;
	gap: 0.375rem;
	margin: 0;
	padding: 0 0 0 1.25rem;
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
	line-height: var(--vh-lh-body);
}

ul.vh-route__steps {
	list-style: disc;
}

.vh-routes__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
}

/* Cột hành trình: đường kẻ dọc nối các bước, số bước to. */
.vh-routes--columns .vh-routes__card {
	border-width: 0 0 0 2px;
	border-color: var(--vh-color-border-strong);
	border-radius: 0;
	background: transparent;
	padding-block: 0.25rem;
}

/* Hành trình đơn sắc (Sang Trọng Tối Giản): không nền, không vòng màu, kẻ mảnh. */
.vh-routes--mono .vh-routes__card {
	border-color: var(--vh-color-border);
	box-shadow: none;
}

.vh-routes--mono .vh-route__ic {
	background: transparent;
	color: var(--vh-color-text);
	border: 1px solid var(--vh-color-border-strong);
}

.vh-routes--mono .vh-route__fact--time dd {
	color: var(--vh-color-text);
}

@media (min-width: 640px) {
	.vh-routes__list--n2,
	.vh-routes__list--n3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.vh-routes--map {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
	}

	.vh-routes--map .vh-routes__side {
		position: sticky;
		top: calc(var(--vh-top-h, var(--vh-header-h)) + 1rem);
	}

	.vh-routes--map .vh-routes__side .vh-location__map {
		aspect-ratio: 4 / 3;
		min-height: 18rem;
	}

	.vh-routes__list--n3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Bố cục cột: bản đồ trên, các cột hành trình trải hết bề ngang. */
	.vh-routes--columns.vh-routes--map {
		grid-template-columns: minmax(0, 1fr);
	}

	.vh-routes--columns.vh-routes--map .vh-routes__side {
		position: static;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
	}

	.vh-routes--columns .vh-routes__list--n2,
	.vh-routes--columns .vh-routes__list--n3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Thẻ trong cột phải hẹp (có bản đồ): 3 lộ trình xếp 2 cột cho đỡ chật. */
	.vh-routes--map:not(.vh-routes--columns) .vh-routes__list--n3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Cột hành trình: nơi xuất phát là nhãn nhỏ trên đầu cột. */
.vh-route__origin {
	margin: 0;
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
	letter-spacing: var(--vh-ls-label, 0.06em);
	text-transform: var(--vh-label-transform, uppercase);
}
