/*
 * Nền dùng chung mọi mẫu: giá trị mặc định của biến, reset, chữ, lớp vh-* (CONTRACT §9), form, thanh đặt phòng.
 * Chỉ dùng biến --vh-*; màu cụ thể nằm ở preset.json của từng mẫu.
 */

/* Mặc định = Mini Gọn. Bọc :where() (độ ưu tiên 0) để :root của mẫu luôn thắng, bất kể thứ tự nạp. */
:where(:root) {
	--vh-color-bg: #FFFFFF;
	--vh-color-surface: #FFF5EB;
	--vh-color-card: #FFFFFF;
	--vh-color-deep: #1F2933;
	--vh-color-text: #1F2933;
	--vh-color-muted: #52606D;
	--vh-color-on-deep: #FFFFFF;
	--vh-color-muted-on-deep: #CBD2D9;
	--vh-color-primary: #C2410C;
	--vh-color-primary-hover: #9A3412;
	--vh-color-on-primary: #FFFFFF;
	--vh-color-accent: #FFEDD5;
	--vh-color-accent-ink: #9A3412;
	--vh-color-border: #E4E7EB;
	--vh-color-border-strong: #7B8794;
	--vh-color-focus: #1F2933;
	--vh-color-focus-on-deep: #FFFFFF;
	--vh-color-success: #1E7B4F;
	--vh-color-low-stock: #9A3412;
	--vh-color-danger: #B42318;
	--vh-color-zalo: #0068FF;
	--vh-color-call: #1E7B4F;
	--vh-color-overlay: 31 41 51;

	--vh-font-heading: "Be Vietnam Pro", "Be Vietnam Pro Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--vh-font-body: "Be Vietnam Pro", "Be Vietnam Pro Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--vh-fw-body: 400;
	--vh-fw-medium: 600;
	--vh-fw-bold: 700;
	--vh-fw-heading: 700;
	--vh-fs-h1: clamp(1.875rem, 1.45rem + 1.4vw, 2.5rem);
	--vh-fs-h2: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
	--vh-fs-h3: 1.25rem;
	--vh-fs-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	--vh-fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
	--vh-fs-small: 0.875rem;
	--vh-fs-price: 1.5rem;
	--vh-lh-heading: 1.25;
	--vh-lh-body: 1.65;

	--vh-radius-button: 12px;
	--vh-radius-input: 12px;
	--vh-radius-card: 14px;
	--vh-radius-media: 14px;
	--vh-radius-chip: 999px;
	--vh-shadow-card: 0 6px 20px rgb(31 41 51 / 0.08);

	--vh-container: 1160px;
	--vh-page-pad: 16px;
	--vh-section-pad: 72px;
	--vh-card-pad: 20px;
	--vh-card-gap: 16px;
	--vh-header-h: 64px;
	--vh-sticky-bar-h: 64px;
	--vh-btn-h: 48px;
	--vh-btn-h-mobile: 52px;

	--vh-ratio-hero-desktop: 21 / 9;
	--vh-ratio-hero-mobile: 16 / 10;
	--vh-ratio-room-card: 4 / 3;

	/* Biến phụ của theme (không bắt buộc trong mẫu). */
	--vh-white: #FFFFFF;
}

@media (min-width: 768px) {
	:where(:root) {
		--vh-page-pad: 24px;
		--vh-card-gap: 24px;
	}
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--vh-color-bg);
	color: var(--vh-color-text);
	font-family: var(--vh-font-body);
	font-weight: var(--vh-fw-body);
	font-size: var(--vh-fs-body);
	line-height: var(--vh-lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

img,
picture,
video,
iframe,
canvas {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--vh-font-heading);
	font-weight: var(--vh-fw-heading);
	/* ≥1.2 để dấu tiếng Việt (Ể, Ỗ, Ậ) không bị cắt. */
	line-height: max(1.2, var(--vh-lh-heading));
	color: inherit;
	text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure,
blockquote {
	margin: 0;
}

ul[role="list"],
ol[role="list"] {
	list-style: none;
	padding: 0;
}

a {
	color: var(--vh-color-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--vh-color-primary-hover);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
}

button {
	cursor: pointer;
}

table {
	border-collapse: collapse;
}

[hidden] {
	display: none !important;
}

::selection {
	background: var(--vh-color-accent);
	color: var(--vh-color-accent-ink);
}

/* Neo trong trang không bị đầu trang dính che. */
[id] {
	scroll-margin-top: calc(var(--vh-top-h, var(--vh-header-h)) + 12px);
}

/* ---------- Focus: vòng 3px rõ trên mọi nền ---------- */
:focus:not(:focus-visible) {
	outline: none;
}

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

/* Nền tối, nền màu chính: vòng trắng. */
.vh-on-deep,
.vh-on-primary,
.vh-deep,
.vh-bg-deep {
	--vh-ring: var(--vh-color-focus-on-deep);
}

/* Điều khiển nằm trên ảnh: vòng đôi trắng (trong) + tối (ngoài), đạt tương phản với mọi điểm ảnh. */
.vh-on-photo:focus-visible {
	outline: 2px solid var(--vh-color-focus);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--vh-color-focus-on-deep);
}

.vh-main:focus {
	outline: none;
}

/* ---------- Biểu tượng ---------- */
.vh-i {
	display: inline-block;
	flex: none;
	vertical-align: middle;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Biểu tượng trong vòng tròn 48px nền nhạt. */
.vh-ic-circle {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--vh-color-surface);
	color: var(--vh-color-primary);
}

.vh-alt .vh-ic-circle {
	background: var(--vh-color-bg);
}

/* ---------- Bố cục ---------- */
.vh-wrap {
	width: 100%;
	max-width: calc(var(--vh-container) + 2 * var(--vh-page-pad));
	margin-inline: auto;
	padding-inline: var(--vh-page-pad);
}

.vh-wrap--doc {
	max-width: calc(720px + 2 * var(--vh-page-pad));
}

.vh-s {
	padding-block: clamp(40px, 10vw, var(--vh-section-pad));
}

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

.vh-deep,
.vh-bg-deep {
	background: var(--vh-color-deep);
	color: var(--vh-color-on-deep);
}

.vh-on-deep {
	color: var(--vh-color-on-deep);
}

.vh-on-deep .vh-muted,
.vh-deep .vh-muted,
.vh-bg-deep .vh-muted {
	color: var(--vh-color-muted-on-deep);
}

/* Link trên nền tối: trắng (14,76:1), chữ thường dùng on-deep (#CBD2D9 ở Mini Gọn). */
.vh-on-deep a:not(.vh-btn),
.vh-deep a:not(.vh-btn),
.vh-bg-deep a:not(.vh-btn) {
	color: var(--vh-color-link-on-deep, var(--vh-color-on-deep));
}

.vh-on-primary {
	color: var(--vh-color-on-primary);
}

.vh-on-primary a:not(.vh-btn) {
	color: var(--vh-color-on-primary);
}

.vh-stack {
	display: flex;
	flex-direction: column;
	gap: var(--vh-stack-gap, 16px);
}

.vh-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--vh-row-gap, 12px);
}

.vh-pair {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
}

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

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

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

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

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

/* ---------- Chữ ---------- */
.vh-h1 {
	font-size: var(--vh-fs-h1);
	letter-spacing: var(--vh-ls-heading, -0.01em);
}

.vh-h2 {
	font-size: var(--vh-fs-h2);
	letter-spacing: var(--vh-ls-heading, -0.01em);
}

.vh-h3 {
	font-size: var(--vh-fs-h3);
	font-weight: var(--vh-fw-medium);
	line-height: 1.4;
}

.vh-lead {
	font-size: var(--vh-fs-lead);
	line-height: 1.6;
}

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

.vh-small {
	font-size: var(--vh-fs-small);
	line-height: 1.5;
}

.vh-eyebrow {
	display: block;
	font-size: var(--vh-fs-small);
	font-weight: var(--vh-fw-medium);
	color: var(--vh-color-accent-ink);
}

.vh-on-deep .vh-eyebrow,
.vh-on-primary .vh-eyebrow {
	color: inherit;
}

.vh-section-head {
	display: grid;
	gap: 8px;
	max-width: 720px;
	margin-bottom: clamp(24px, 4vw, 40px);
}

.vh-section-head--center {
	margin-inline: auto;
	text-align: center;
}

.vh-section-head .vh-lead {
	color: var(--vh-color-muted);
}

.vh-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Nút ---------- */
.vh-btn {
	--vh-btn-bg: transparent;
	--vh-btn-fg: var(--vh-color-text);
	--vh-btn-bd: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: var(--vh-btn-h-mobile);
	padding: 8px 20px;
	border: 2px solid var(--vh-btn-bd);
	border-radius: var(--vh-radius-button);
	background: var(--vh-btn-bg);
	color: var(--vh-btn-fg);
	font-family: var(--vh-font-body);
	font-size: 1rem;
	font-weight: var(--vh-fw-medium);
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	touch-action: manipulation;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

@media (min-width: 768px) {
	.vh-btn {
		min-height: var(--vh-btn-h);
	}
}

.vh-btn:hover {
	color: var(--vh-btn-fg);
}

.vh-btn:active {
	transform: scale(0.98);
}

.vh-btn .vh-i {
	width: 20px;
	height: 20px;
}

.vh-btn--primary {
	--vh-btn-bg: var(--vh-color-primary);
	--vh-btn-fg: var(--vh-color-on-primary);
}

.vh-btn--primary:hover {
	--vh-btn-bg: var(--vh-color-primary-hover);
}

.vh-btn--secondary {
	--vh-btn-fg: var(--vh-color-primary);
	--vh-btn-bd: var(--vh-color-primary);
	--vh-btn-bg: var(--vh-color-bg);
}

.vh-btn--secondary:hover {
	--vh-btn-bg: var(--vh-color-accent);
	--vh-btn-fg: var(--vh-color-accent-ink);
	--vh-btn-bd: var(--vh-color-accent-ink);
}

.vh-btn--ghost {
	--vh-btn-fg: var(--vh-color-text);
	--vh-btn-bd: var(--vh-color-border-strong);
}

.vh-btn--ghost:hover {
	--vh-btn-bg: var(--vh-color-surface);
}

/* Gọi / Zalo: màu riêng, chữ trắng (5,25:1 và 4,75:1). Hover tối đi bằng lớp phủ, không đổi màu chữ. */
.vh-btn--call {
	--vh-btn-bg: var(--vh-color-call);
	--vh-btn-fg: var(--vh-color-on-call, var(--vh-white));
}

.vh-btn--zalo {
	--vh-btn-bg: var(--vh-color-zalo);
	--vh-btn-fg: var(--vh-color-on-zalo, var(--vh-white));
}

.vh-btn--call:hover,
.vh-btn--zalo:hover {
	box-shadow: inset 0 0 0 100vmax rgb(var(--vh-color-overlay) / 0.2);
}

/* Nền tối / nền màu chính: nút viền theo màu chữ. */
.vh-on-deep .vh-btn--ghost,
.vh-on-primary .vh-btn--ghost,
.vh-deep .vh-btn--ghost {
	--vh-btn-fg: currentColor;
	--vh-btn-bd: currentColor;
}

.vh-on-deep .vh-btn--ghost:hover,
.vh-on-primary .vh-btn--ghost:hover,
.vh-deep .vh-btn--ghost:hover {
	--vh-btn-bg: color-mix(in srgb, currentColor 14%, transparent);
}

.vh-btn--block {
	width: 100%;
}

.vh-btn--sm {
	min-height: 48px;
	padding: 6px 16px;
	font-size: 0.9375rem;
}

@media (min-width: 1024px) {
	.vh-btn--sm {
		min-height: 44px;
	}
}

.vh-btn[disabled],
.vh-btn[aria-disabled="true"] {
	opacity: 0.55;
	pointer-events: none;
}

.vh-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 48px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--vh-color-primary);
	font-weight: var(--vh-fw-medium);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 0.2em;
	cursor: pointer;
	transition: text-decoration-color 0.15s;
}

.vh-link:hover {
	color: var(--vh-color-primary-hover);
	text-decoration-color: currentColor;
}

.vh-link .vh-i {
	width: 18px;
	height: 18px;
}

.vh-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: var(--vh-radius-button);
	background: transparent;
	color: var(--vh-color-text);
	text-decoration: none;
	cursor: pointer;
}

.vh-icon-btn:hover {
	background: var(--vh-color-surface);
	color: var(--vh-color-text);
}

@media (prefers-reduced-motion: reduce) {
	.vh-btn,
	.vh-link {
		transition: none;
	}

	.vh-btn:active {
		transform: none;
	}
}

/* ---------- Chip, nhãn ---------- */
.vh-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 4px 12px;
	border: 1px solid var(--vh-color-border);
	border-radius: var(--vh-radius-chip);
	background: var(--vh-color-bg);
	color: var(--vh-color-text);
	font-size: var(--vh-fs-small);
	font-weight: var(--vh-fw-medium);
	line-height: 1.3;
	white-space: nowrap;
}

.vh-chip .vh-i {
	width: 16px;
	height: 16px;
}

.vh-chip--tint {
	border-color: transparent;
	background: var(--vh-color-accent);
	color: var(--vh-color-accent-ink);
}

.vh-chip--success {
	border-color: currentColor;
	color: var(--vh-color-success);
}

.vh-chip--danger {
	border-color: currentColor;
	color: var(--vh-color-danger);
}

.vh-chip--low {
	border-color: transparent;
	background: var(--vh-color-accent);
	color: var(--vh-color-low-stock);
}

/* Chip bấm được: nhìn 40px, vùng chạm 48px. */
button.vh-chip,
a.vh-chip {
	position: relative;
	min-height: 40px;
	padding: 8px 16px;
	text-decoration: none;
	cursor: pointer;
}

button.vh-chip::before,
a.vh-chip::before {
	content: "";
	position: absolute;
	inset: -4px 0;
}

button.vh-chip:hover,
a.vh-chip:hover {
	border-color: var(--vh-color-border-strong);
	color: var(--vh-color-text);
}

button.vh-chip[aria-pressed="true"] {
	border-color: var(--vh-color-text);
	background: var(--vh-color-text);
	color: var(--vh-color-bg);
}

.vh-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--vh-color-accent);
	color: var(--vh-color-accent-ink);
	font-size: 0.8125rem;
	font-weight: var(--vh-fw-medium);
	line-height: 1.4;
	white-space: nowrap;
}

.vh-demo-label {
	display: inline-flex;
	align-items: center;
	padding: 1px 8px;
	border-radius: var(--vh-radius-chip);
	background: var(--vh-color-accent);
	color: var(--vh-color-accent-ink);
	font-family: var(--vh-font-body);
	font-size: 0.75rem;
	font-weight: var(--vh-fw-medium);
	line-height: 1.5;
	letter-spacing: 0;
	white-space: nowrap;
	vertical-align: middle;
}

/* ---------- Thẻ ---------- */
.vh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-card);
	color: var(--vh-color-text);
	box-shadow: var(--vh-shadow-card);
}

/* Ảnh trong thẻ chỉ bo 2 góc trên. */
.vh-card__media {
	overflow: hidden;
	border-radius: var(--vh-radius-card) var(--vh-radius-card) 0 0;
}

.vh-card__media img,
.vh-card__media .vh-ph {
	width: 100%;
	border-radius: 0;
}

.vh-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	padding: var(--vh-card-pad);
}

.vh-card--flat {
	border: 1px solid var(--vh-color-border);
	box-shadow: none;
}

.vh-card--pad {
	padding: var(--vh-card-pad);
}

/* ---------- Giá ---------- */
.vh-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 4px;
	row-gap: 2px;
}

.vh-price__from,
.vh-price__unit {
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
}

.vh-price__value {
	color: var(--vh-color-text);
	font-size: var(--vh-fs-price);
	font-weight: var(--vh-fw-heading);
	font-variant-numeric: tabular-nums;
	line-height: 1.25;
	white-space: nowrap;
}

.vh-price__old {
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
	text-decoration: line-through;
	white-space: nowrap;
}

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

/* ---------- Dòng thông số có biểu tượng ---------- */
.vh-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
}

.vh-specs > li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vh-specs .vh-i {
	width: 20px;
	height: 20px;
	color: var(--vh-color-muted);
}

.vh-specs--col {
	flex-direction: column;
	gap: 12px;
	color: var(--vh-color-text);
	font-size: var(--vh-fs-body);
}

.vh-specs--col > li {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 6px 10px;
}

.vh-specs--col > li > .vh-i {
	margin-top: 0.2em;
}

.vh-checks {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-checks > li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.vh-checks .vh-i {
	width: 20px;
	height: 20px;
	margin-top: 0.2em;
	color: var(--vh-color-success);
}

/* ---------- Ảnh, ảnh giữ chỗ ---------- */
.vh-img {
	width: 100%;
	height: auto;
	object-fit: cover;
	background: var(--vh-color-surface);
}

.vh-ph {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 16px;
	overflow: hidden;
	background: var(--vh-color-surface);
	box-shadow: inset 0 0 0 1px var(--vh-color-border);
	color: var(--vh-color-muted);
	text-align: center;
}

.vh-ph__icon {
	width: 40px;
	height: 40px;
	color: var(--vh-color-primary);
	stroke-width: 1.75;
}

.vh-ph__label {
	max-width: 28ch;
	font-size: var(--vh-fs-small);
	font-weight: var(--vh-fw-medium);
	line-height: 1.4;
}

.vh-ph__tag {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 1px 8px;
	border-radius: var(--vh-radius-chip);
	background: var(--vh-color-bg);
	color: var(--vh-color-muted);
	font-size: 0.75rem;
	font-weight: var(--vh-fw-medium);
	line-height: 1.5;
}

.vh-iframe {
	width: 100%;
	height: 100%;
	min-height: 280px;
	border: 0;
}

/* ---------- Carousel (scroll-snap) ---------- */
.vh-carousel {
	position: relative;
}

.vh-carousel__track {
	display: flex;
	gap: var(--vh-carousel-gap, 0px);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.vh-carousel__track::-webkit-scrollbar {
	display: none;
}

.vh-carousel__track > * {
	flex: 0 0 var(--vh-slide-w, 100%);
	min-width: 0;
	scroll-snap-align: start;
}

.vh-carousel__btn {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--vh-color-bg);
	color: var(--vh-color-text);
	box-shadow: var(--vh-shadow-card);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.15s;
}

.vh-carousel__btn--prev {
	left: 12px;
}

.vh-carousel__btn--next {
	right: 12px;
}

.vh-carousel__btn[disabled] {
	opacity: 0;
	pointer-events: none;
}

/* Chấm do site.js tự tạo (data-vh-carousel="auto"); chấm có sẵn trong markup do khối tự trang trí. */
.vh-carousel__dots--auto {
	display: flex;
	justify-content: center;
	margin-top: 8px;
}

.vh-carousel__dots--auto .vh-carousel__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.vh-carousel__dots--auto .vh-carousel__dot::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 4px;
	background: var(--vh-color-border-strong);
	transition: width 0.2s, background-color 0.2s;
}

.vh-carousel__dots--auto .vh-carousel__dot.is-active::before {
	width: 20px;
	background: var(--vh-color-primary);
}

.vh-carousel__count {
	font-variant-numeric: tabular-nums;
}

.vh-no-js .vh-carousel__btn,
.vh-no-js .vh-carousel__dots,
.vh-carousel.is-single .vh-carousel__btn,
.vh-carousel.is-single .vh-carousel__dots,
.vh-carousel.is-single .vh-carousel__count {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.vh-carousel__dots--auto .vh-carousel__dot::before,
	.vh-carousel__btn {
		transition: none;
	}
}

/* ---------- Bảng trượt (sheet) ----------
 * Cấu trúc tối thiểu: <div class="vh-sheet" id hidden><div class="vh-sheet__panel">…</div></div>.
 * Bấm vùng tối bên ngoài khung, nút data-vh-sheet-close hoặc Esc thì đóng (site.js).
 */
.vh-sheet {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	max-width: none;
	max-height: none;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgb(var(--vh-color-overlay) / 0);
	transition: background-color 0.2s;
}

.vh-sheet.is-open {
	background: rgb(var(--vh-color-overlay) / 0.55);
}

dialog.vh-sheet:not([open]) {
	display: none;
}

dialog.vh-sheet::backdrop {
	background: transparent;
}

/* Lớp nền bấm để đóng (tùy chọn): trong suốt, màu tối do .vh-sheet lo. */
.vh-sheet__backdrop {
	position: absolute;
	inset: 0;
}

.vh-sheet__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow: auto;
	overscroll-behavior: contain;
	padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px));
	border-radius: 20px 20px 0 0;
	background: var(--vh-color-bg);
	color: var(--vh-color-text);
	box-shadow: 0 -8px 32px rgb(var(--vh-color-overlay) / 0.18);
	transform: translateY(100%);
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Khung có đầu/thân/chân riêng (menu của theme): phần con tự lo lề. */
.vh-sheet__panel--flush {
	padding: 0 0 env(safe-area-inset-bottom, 0px);
}

.vh-sheet.is-open .vh-sheet__panel {
	transform: none;
}

.vh-sheet__panel:focus {
	outline: none;
}

.vh-sheet__head {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 8px 8px 20px;
	border-bottom: 1px solid var(--vh-color-border);
	background: var(--vh-color-bg);
}

.vh-sheet__title {
	font-weight: var(--vh-fw-bold);
	font-size: 1.0625rem;
	line-height: 1.35;
}

.vh-sheet__body {
	padding: 4px 0;
}

.vh-sheet__foot {
	display: grid;
	gap: 12px;
	padding: 16px 20px 20px;
	border-top: 1px solid var(--vh-color-border);
}

.vh-sheet__foot--plain {
	border-top: 0;
}

.vh-sheet__note {
	text-align: center;
}

html.vh-sheet-open,
html.vh-sheet-open body {
	overflow: hidden;
}

@media (min-width: 768px) {
	.vh-sheet {
		align-items: center;
		padding: 24px;
	}

	.vh-sheet__panel {
		max-height: min(720px, calc(100vh - 64px));
		border-radius: 20px;
		opacity: 0;
		transform: translateY(24px);
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	.vh-sheet.is-open .vh-sheet__panel {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vh-sheet,
	.vh-sheet__panel {
		transition: none;
	}
}

/* ---------- Thông báo nhỏ ---------- */
.vh-toast {
	position: fixed;
	left: 50%;
	bottom: calc(var(--vh-sticky-bar-h) + env(safe-area-inset-bottom, 0px) + 16px);
	z-index: 1100;
	max-width: calc(100% - 32px);
	padding: 10px 18px;
	border-radius: var(--vh-radius-chip);
	background: var(--vh-color-deep);
	color: var(--vh-color-on-deep);
	box-shadow: 0 8px 24px rgb(var(--vh-color-overlay) / 0.24);
	font-size: var(--vh-fs-small);
	font-weight: var(--vh-fw-medium);
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity 0.2s, transform 0.2s;
}

.vh-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

.vh-toast:empty {
	padding: 0;
}

@media (min-width: 1024px) {
	.vh-toast {
		bottom: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vh-toast {
		transition: none;
	}
}

/* ---------- Form ---------- */
.vh-field {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.vh-label {
	color: var(--vh-color-text);
	font-size: var(--vh-fs-small);
	font-weight: var(--vh-fw-medium);
	line-height: 1.4;
}

.vh-req-mark {
	color: var(--vh-color-danger);
}

.vh-input {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--vh-color-border-strong);
	border-radius: var(--vh-radius-input);
	background: var(--vh-color-bg);
	color: var(--vh-color-text);
	/* 16px để Safari iOS không tự phóng to khi bấm vào ô. */
	font-size: max(16px, 1rem);
	line-height: 1.4;
	appearance: none;
	-webkit-appearance: none;
}

.vh-input:hover {
	border-color: var(--vh-color-text);
}

.vh-input::placeholder {
	color: var(--vh-color-muted);
	opacity: 1;
}

.vh-input[aria-invalid="true"],
.vh-input:user-invalid {
	border-color: var(--vh-color-danger);
	box-shadow: inset 0 0 0 1px var(--vh-color-danger);
}

input[type="date"].vh-input {
	min-height: 48px;
}

input[type="date"].vh-input::-webkit-date-and-time-value {
	text-align: left;
}

.vh-select {
	padding-right: 40px;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%;
	background-size: 5px 5px;
	background-repeat: no-repeat;
	cursor: pointer;
}

.vh-textarea {
	min-height: 112px;
	resize: vertical;
}

.vh-fs {
	display: grid;
	gap: 16px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.vh-fs > legend {
	float: left;
	width: 100%;
	margin-bottom: 4px;
	padding: 0;
}

.vh-fs > legend + * {
	clear: both;
}

.vh-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

@media (max-width: 359px) {
	.vh-form-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

.vh-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: var(--vh-fs-small);
	line-height: 1.55;
}

.vh-check input {
	flex: none;
	width: 24px;
	height: 24px;
	margin: 0;
	accent-color: var(--vh-color-primary);
	cursor: pointer;
}

.vh-check label {
	cursor: pointer;
}

/* Bẫy chống bot: người thật không thấy, không tab tới. */
.vh-hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.vh-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border: 2px solid var(--vh-color-border-strong);
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-bg);
}

.vh-alert:focus {
	outline: none;
}

.vh-alert:focus-visible {
	outline: 3px solid var(--vh-color-focus);
}

.vh-alert > .vh-i {
	margin-top: 2px;
}

.vh-alert__body {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.vh-alert__t {
	font-weight: var(--vh-fw-bold);
}

.vh-alert--ok {
	border-color: var(--vh-color-success);
}

.vh-alert--ok > .vh-i {
	color: var(--vh-color-success);
}

.vh-alert--error {
	border-color: var(--vh-color-danger);
}

.vh-alert--error > .vh-i {
	color: var(--vh-color-danger);
}

.vh-alert__actions {
	margin-top: 4px;
}

/* ---------- Thanh đặt phòng (booking-bar/panel) ---------- */
.vh-bb {
	display: grid;
	gap: 12px;
	min-width: 0;
}

.vh-bb__dates,
.vh-bb__guest-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.vh-bb__guests {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.vh-bb__guests > legend {
	margin-bottom: 6px;
	padding: 0;
}

.vh-bb__sel {
	display: block;
	min-width: 0;
}

.vh-bb__code {
	display: grid;
	gap: 8px;
}

.vh-bb__code-btn {
	justify-self: start;
}

.vh-no-js .vh-bb__code-btn {
	display: none;
}

/* Không JS thì nút không bấm được: hiện thẳng ô nhập mã. */
.vh-no-js .vh-bb__codebox[hidden] {
	display: grid !important;
}

.vh-bb__err {
	color: var(--vh-color-danger);
	font-size: var(--vh-fs-small);
	font-weight: var(--vh-fw-medium);
}

.vh-bb__submit {
	margin-top: 4px;
}

.vh-bb__note {
	text-align: center;
}

.vh-bb--compact {
	gap: 10px;
}

.vh-bb--compact .vh-bb__submit {
	margin-top: 0;
}

/* Trang danh sách phòng: nằm ngang trên màn rộng. */
@media (min-width: 900px) {
	.vh-bb--page {
		grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) auto;
		align-items: end;
		column-gap: 16px;
	}

	.vh-bb--page .vh-bb__dates {
		grid-column: 1;
		grid-row: 1;
	}

	.vh-bb--page .vh-bb__guests {
		grid-column: 2;
		grid-row: 1;
	}

	.vh-bb--page .vh-bb__submit {
		grid-column: 3;
		grid-row: 1;
		width: auto;
		margin-top: 0;
	}

	.vh-bb--page .vh-bb__code,
	.vh-bb--page .vh-bb__err,
	.vh-bb--page .vh-bb__note {
		grid-column: 1 / -1;
	}

	.vh-bb--page .vh-bb__note {
		text-align: left;
	}
}

/* ---------- Đường dẫn (breadcrumb) ---------- */
.vh-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
}

.vh-crumbs li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.vh-crumbs li + li::before {
	content: "›";
	color: var(--vh-color-border-strong);
}

.vh-crumbs a {
	display: inline-block;
	padding-block: 12px;
	color: var(--vh-color-muted);
}

.vh-crumbs a:hover {
	color: var(--vh-color-primary);
}

.vh-crumbs [aria-current="page"] {
	color: var(--vh-color-text);
	font-weight: var(--vh-fw-medium);
}
