/* Khối Ăn uống (B2) – venue-cards: một điểm thì thẻ rộng ảnh trái chữ phải, nhiều điểm thì lưới thẻ dọc. Mobile trước, mốc 640px / 1024px. */

.vh-venues {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--vh-card-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-venue {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--vh-color-border);
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-card);
	color: var(--vh-color-text);
	box-shadow: var(--vh-shadow-card);
}

/* Khung 4:3 quyết định tỉ lệ ảnh; ảnh chỉ bo 2 góc trên nhờ overflow của thẻ. */
.vh-venue__media {
	position: relative;
	flex: none;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--vh-color-surface);
}

.vh-venue__media > * {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
}

.vh-venue__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.vh-venue__media .vh-ph {
	height: 100%;
	aspect-ratio: auto;
	border-radius: 0;
}

.vh-venue__body {
	display: grid;
	align-content: start;
	gap: 0.5rem;
	padding: 1rem var(--vh-card-pad) var(--vh-card-pad);
}

.vh-venue__name {
	margin: 0;
	overflow-wrap: anywhere;
}

.vh-venue__hours {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
	font-variant-numeric: tabular-nums;
}

.vh-venue__hours .vh-i {
	flex: none;
}

.vh-venue__text {
	margin: 0;
	line-height: var(--vh-lh-body);
}

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

	/* Một điểm: thẻ rộng nằm ngang. */
	.vh-venues--n1 {
		grid-template-columns: minmax(0, 1fr);
	}

	.vh-venues--n1 .vh-venue {
		flex-direction: row;
	}

	.vh-venues--n1 .vh-venue__media {
		flex: 0 0 50%;
		aspect-ratio: auto;
		min-height: 280px;
	}

	.vh-venues--n1 .vh-venue__body {
		flex: 1 1 auto;
		align-content: center;
		padding: 1.5rem 1.75rem;
	}

	/* Ba điểm trên 2 cột: điểm cuối nằm giữa cho cân. */
	.vh-venues--n3 > .vh-venue:last-child {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc((100% - var(--vh-card-gap)) / 2);
	}
}

@media (min-width: 1024px) {
	.vh-venues--n3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.vh-venues--n3 > .vh-venue:last-child {
		grid-column: auto;
		justify-self: stretch;
		width: auto;
	}

	.vh-venues--n4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.vh-venues--n1 .vh-venue__media {
		min-height: 340px;
	}
}

/* =====================================================================
 * Dùng chung các khối dịch vụ (sections/dining/_svc-lib.php): offers, amenities, experiences, dining, spa.
 * Đặt ở đây vì thư viện nằm trong sections/dining; mọi tệp CSS khối đều được nạp trên mọi trang.
 * Chữ nhỏ (dưới 1,25rem: eyebrow, giờ, dòng ẩm thực, ghi chú) dùng --vh-font-accent-sm, mặc định = --vh-font-accent
 * (font mono giữ nguyên). Mẫu có font nhấn viết tay (Patrick Hand) đặt --vh-font-accent-sm: var(--vh-font-body).
 * ===================================================================== */

.vh-sv-eyebrow {
	font-family: var(--vh-font-accent-sm, var(--vh-font-accent, var(--vh-font-body)));
	text-transform: var(--vh-label-transform, none);
	letter-spacing: var(--vh-ls-label, 0);
	line-height: var(--vh-lh-label, 1.4);
}

/* Mã ưu đãi: chữ mã luôn đọc được (kể cả tắt JS), nút "Sao chép" cạnh bên. */
.vh-sv-code {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	max-width: 100%;
	margin: 0;
	padding: 0.25rem 0.25rem 0.25rem 0.75rem;
	border: 2px dashed var(--vh-color-border-strong);
	border-radius: var(--vh-radius-input);
	background: var(--vh-color-card);
	color: var(--vh-color-text);
	line-height: 1.3;
}

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

.vh-sv-code__text {
	min-width: 0;
	overflow-wrap: anywhere;
	font-family: var(--vh-font-accent, var(--vh-font-body));
	font-weight: var(--vh-fw-bold);
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
}

.vh-sv-code__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-height: 44px;
	margin-left: auto;
	padding: 0 0.75rem;
	border: 0;
	border-radius: max(0px, calc(var(--vh-radius-input) - 4px));
	background: var(--vh-color-accent);
	color: var(--vh-color-accent-ink);
	font: inherit;
	font-size: var(--vh-fs-small);
	font-weight: var(--vh-fw-medium);
	cursor: pointer;
}

.vh-sv-code__btn:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.vh-sv-code--plain {
	padding: 0;
	border: 0;
	background: none;
}

/* Dòng giải thích nút Zalo chép lời nhắn, ghi chú web mẫu. */
.vh-sv-hint,
.vh-sv-demo {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 1rem 0 0;
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
	line-height: 1.45;
}

.vh-sv-hint .vh-i {
	flex: none;
}

/* Bảng thông tin: giờ, giá, trang phục, lưu ý. */
.vh-sv-facts {
	display: grid;
	gap: 0.625rem;
	margin: 0;
}

.vh-sv-facts__row {
	display: grid;
	gap: 0.125rem 1rem;
}

.vh-sv-facts dt {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
	font-weight: var(--vh-fw-medium);
}

.vh-sv-facts dt .vh-i {
	width: 18px;
	height: 18px;
}

.vh-sv-facts dd {
	min-width: 0;
	margin: 0;
}

.vh-sv-facts__slot {
	display: block;
}

.vh-sv-facts__lab {
	color: var(--vh-color-muted);
}

.vh-sv-facts__time {
	font-family: var(--vh-font-accent-sm, var(--vh-font-accent, var(--vh-font-body)));
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

@media (min-width: 480px) {
	.vh-sv-facts__row {
		grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
		align-items: baseline;
	}
}

/* Thực đơn: tên món, chấm dẫn, giá. */
.vh-sv-menu {
	display: grid;
	gap: 1.25rem;
}

.vh-sv-menu__title {
	margin: 0 0 0.5rem;
	font-family: var(--vh-font-heading);
	font-size: var(--vh-fs-h3);
	font-weight: var(--vh-fw-medium);
	line-height: max(1.2, var(--vh-lh-heading));
}

.vh-sv-menu__list {
	display: grid;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-sv-menu__item {
	display: grid;
	grid-template-columns: minmax(0, auto) minmax(1rem, 1fr) auto;
	align-items: baseline;
	column-gap: 0.5rem;
}

.vh-sv-menu__name {
	grid-column: 1;
	min-width: 0;
	overflow-wrap: anywhere;
}

.vh-sv-menu__dots {
	grid-column: 2;
	align-self: end;
	margin-bottom: 0.35em;
	border-bottom: 1px dotted var(--vh-color-border-strong);
}

.vh-sv-menu__price {
	grid-column: 3;
	font-weight: var(--vh-fw-medium);
	white-space: nowrap;
}

.vh-sv-menu__desc {
	grid-column: 1 / -1;
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
	line-height: 1.45;
}

.vh-sv-menu-sheet__body {
	display: grid;
	gap: 1rem;
	padding: 16px 20px 24px;
}

.vh-sv-menu-sheet__note,
.vh-sv-menu-sheet__pdf {
	margin: 0;
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
}

.vh-sv-menu-btn .vh-i {
	flex: none;
}

/* Bộ lọc chip không cần JS: radio ẩn (vẫn nhận focus, phím mũi tên) + nhãn; danh sách phía sau lọc bằng ~. */
.vh-flt {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.vh-flt__legend {
	flex-basis: 100%;
	margin: 0;
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
}

.vh-flt__in {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.vh-flt__chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--vh-color-border-strong);
	border-radius: var(--vh-radius-chip);
	background: var(--vh-color-bg);
	color: var(--vh-color-text);
	font-family: var(--vh-font-ui, var(--vh-font-body));
	font-size: var(--vh-fs-small);
	font-weight: var(--vh-fw-medium);
	line-height: 1.3;
	cursor: pointer;
}

/* Vùng chạm 48px. */
.vh-flt__chip::before {
	content: "";
	position: absolute;
	inset: -4px 0;
}

.vh-flt__in:checked + .vh-flt__chip {
	border-color: var(--vh-color-text);
	background: var(--vh-color-text);
	color: var(--vh-color-bg);
}

.vh-flt__in:focus-visible + .vh-flt__chip {
	outline: 3px solid var(--vh-ring, var(--vh-color-focus));
	outline-offset: 2px;
}

.vh-flt__list {
	flex-basis: 100%;
	min-width: 0;
	margin-top: 0.75rem;
}

.vh-flt__in--1:checked ~ .vh-flt__list > :not(.vh-fc-1),
.vh-flt__in--2:checked ~ .vh-flt__list > :not(.vh-fc-2),
.vh-flt__in--3:checked ~ .vh-flt__list > :not(.vh-fc-3),
.vh-flt__in--4:checked ~ .vh-flt__list > :not(.vh-fc-4),
.vh-flt__in--5:checked ~ .vh-flt__list > :not(.vh-fc-5),
.vh-flt__in--6:checked ~ .vh-flt__list > :not(.vh-fc-6) {
	display: none;
}

/* Dải nền tô màu (spa/split, dining/split): chữ luôn là màu chữ chính; muted đổi về text cho đủ tương phản trên nền màu. */
.vh-sv-band {
	--vh-color-muted: var(--vh-color-text);
	--vh-ring: var(--vh-color-text);
	padding: clamp(20px, 4vw, 48px);
	border-radius: var(--vh-radius-panel, var(--vh-radius-card));
	color: var(--vh-color-text);
}

.vh-sv-band--surface {
	background: var(--vh-color-surface);
}

.vh-alt .vh-sv-band--surface {
	background: var(--vh-color-card);
}

.vh-sv-band--surface-2 {
	background: var(--vh-color-surface-2, var(--vh-color-surface));
}

.vh-sv-band--accent {
	background: var(--vh-color-accent);
}

.vh-sv-band--highlight {
	background: var(--vh-color-highlight, var(--vh-color-accent));
}

.vh-sv-band--fun-1 {
	background: var(--vh-color-fun-1, var(--vh-color-accent));
}

.vh-sv-band--fun-2 {
	background: var(--vh-color-fun-2, var(--vh-color-accent));
}

.vh-sv-band--fun-3 {
	background: var(--vh-color-fun-3, var(--vh-color-accent));
}

.vh-sv-band--fun-4 {
	background: var(--vh-color-fun-4, var(--vh-color-accent));
}

/* Biểu đồ độ cao trekking: vẽ bằng currentColor. */
.vh-spark {
	display: grid;
	gap: 0.125rem;
	margin: 0;
	color: var(--vh-color-primary);
}

.vh-spark svg {
	display: block;
	width: 100%;
	height: 40px;
	overflow: visible;
}

.vh-spark__line {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linejoin: round;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

.vh-spark__area {
	fill: currentColor;
	opacity: 0.12;
}

.vh-spark__cap {
	display: flex;
	justify-content: space-between;
	color: var(--vh-color-muted);
	font-family: var(--vh-font-accent-sm, var(--vh-font-accent, var(--vh-font-body)));
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
}

/* Hàng thẻ cuộn ngang trên điện thoại, lưới từ 768px (vé ưu đãi stub/combo). */
.vh-sv-row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(85%, 340px);
	gap: var(--vh-card-gap);
	margin: -4px -4px 0;
	padding: 4px 4px 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	list-style: none;
}

.vh-sv-row > li {
	min-width: 0;
	scroll-snap-align: start;
}

.vh-sv-row--n1 {
	grid-auto-flow: row;
	grid-auto-columns: auto;
	overflow: visible;
}

@media (min-width: 768px) {
	.vh-sv-row {
		grid-auto-flow: row;
		grid-auto-columns: auto;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		overflow: visible;
	}

	.vh-sv-row--n1 {
		grid-template-columns: minmax(0, 1fr);
	}

	.vh-sv-row--n2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: no-preference) {
	.vh-sv-row {
		scroll-behavior: smooth;
	}
}

/* =====================================================================
 * dining/venue-cards: phần thêm (cặp, lưới, chip giờ, nút thực đơn / đặt bàn, trang Ẩm thực đầy đủ).
 * Thẻ một điểm phía trên giữ nguyên.
 * ===================================================================== */

.vh-venue__cuisine {
	margin: 0;
	color: var(--vh-color-accent-ink);
	font-family: var(--vh-font-accent-sm, var(--vh-font-accent, var(--vh-font-body)));
	font-size: var(--vh-fs-small);
	font-weight: var(--vh-fw-medium);
	text-transform: var(--vh-label-transform, none);
	letter-spacing: var(--vh-ls-label, 0);
}

.vh-venue__chips,
.vh-venue__features {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-venue__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-height: 32px;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--vh-color-border);
	border-radius: var(--vh-radius-chip);
	background: var(--vh-color-bg);
	font-family: var(--vh-font-accent-sm, var(--vh-font-accent, var(--vh-font-body)));
	font-size: var(--vh-fs-small);
	font-variant-numeric: tabular-nums;
	line-height: 1.3;
}

.vh-venue__features .vh-chip {
	white-space: normal;
}

.vh-venue__price {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-weight: var(--vh-fw-medium);
}

.vh-venue__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.vh-venue__facts,
.vh-venue__dishes,
.vh-venue__menu {
	margin-top: 0.5rem;
}

.vh-venue__menu {
	display: grid;
	gap: 0.75rem;
	padding-top: 1rem;
	border-top: 1px solid var(--vh-color-border);
}

.vh-venue__menu-title {
	margin: 0;
	font-size: var(--vh-fs-h3);
}

.vh-venue__menu-note {
	margin: 0;
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
}

.vh-venues-perk {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 1.25rem 0 0;
	font-weight: var(--vh-fw-medium);
}

.vh-venues-perk .vh-i {
	flex: none;
	color: var(--vh-color-success);
}

/* Khung ảnh lồng (Di Sản): viền mảnh cách mép ảnh theo biến của mẫu. */
.vh-venues--inset .vh-venue__media::after {
	content: "";
	position: absolute;
	inset: var(--vh-media-frame-inset, 10px);
	border: 1px solid var(--vh-media-frame-color, var(--vh-color-on-deep));
	pointer-events: none;
}

.vh-venues--detail .vh-venue__body {
	gap: 0.75rem;
}

@media (min-width: 640px) {
	/* Hai điểm so le (Boutique): thẻ thứ hai thấp xuống, ảnh không thẳng hàng. */
	.vh-venues--offset.vh-venues--n2 > .vh-venue:nth-child(2) {
		margin-top: clamp(32px, 6vw, 72px);
	}

	/* Trang Ẩm thực: mỗi điểm một thẻ ngang rộng, thực đơn in thẳng. */
	.vh-venues--detail.vh-venues--n2,
	.vh-venues--detail.vh-venues--n3,
	.vh-venues--detail.vh-venues--n4 {
		grid-template-columns: minmax(0, 1fr);
	}

	.vh-venues--detail .vh-venue {
		flex-direction: row;
		align-items: stretch;
	}

	.vh-venues--detail .vh-venue__media {
		flex: 0 0 42%;
		aspect-ratio: auto;
		min-height: 280px;
	}

	.vh-venues--detail .vh-venue__body {
		flex: 1 1 auto;
		padding: 1.5rem 1.75rem;
	}

	.vh-venues--detail.vh-venues--n3 > .vh-venue:last-child {
		grid-column: auto;
		justify-self: stretch;
		width: auto;
	}
}

@media (min-width: 1024px) {
	.vh-venues--detail .vh-venue__media {
		flex-basis: 40%;
		min-height: 360px;
	}
}
