/*
 * Khung trang: link bỏ qua, dải demo, đầu trang (header/bar), sheet menu, chân trang (footer/columns), thanh dính điện thoại.
 */

.vh-skip {
	position: absolute;
	top: -200px;
	left: 8px;
	z-index: 2000;
	padding: 12px 16px;
	border-radius: var(--vh-radius-button);
	background: var(--vh-color-bg);
	color: var(--vh-color-text);
	box-shadow: var(--vh-shadow-card);
	font-weight: var(--vh-fw-medium);
}

.vh-skip:focus {
	top: 8px;
}

/* Dải demo + đầu trang dính chung một khối. */
.vh-top {
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Điện thoại: dải demo (2–3 dòng) cuộn đi theo trang, chỉ thanh đầu trang dính, đỡ chiếm màn hình. */
@media (max-width: 767px) {
	.vh-top {
		display: contents;
	}

	.vh-header {
		position: sticky;
		top: 0;
		z-index: 100;
	}
}

/* Thanh quản trị WP: ≤600px nó không dính nên giữ top 0. */
@media (min-width: 601px) and (max-width: 767px) {
	.admin-bar .vh-header {
		top: 46px;
	}
}

@media (min-width: 768px) and (max-width: 782px) {
	.admin-bar .vh-top {
		top: 46px;
	}
}

@media (min-width: 783px) {
	.admin-bar .vh-top {
		top: 32px;
	}
}

/* ---------- Dải "Website mẫu" (R7) ---------- */
.vh-ribbon {
	background: var(--vh-color-deep);
	color: var(--vh-color-on-deep);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.vh-ribbon__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2px 14px;
	padding-block: 6px;
	text-align: center;
}

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

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

.vh-ribbon__switch-wrap {
	color: var(--vh-color-muted-on-deep);
	white-space: nowrap;
}

.vh-ribbon .vh-ribbon__switch {
	position: relative;
	color: var(--vh-color-link-on-deep, var(--vh-color-on-deep));
	font-weight: var(--vh-fw-bold);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Vùng chạm rộng hơn chữ, không làm dải cao thêm. */
.vh-ribbon__switch::before {
	content: "";
	position: absolute;
	inset: -12px -8px;
}

.vh-ribbon .vh-ribbon__switch:hover {
	color: var(--vh-color-link-on-deep, var(--vh-color-on-deep));
	text-decoration-thickness: 2px;
}

@media (max-width: 599px) {
	.vh-ribbon {
		font-size: 0.75rem;
	}

	.vh-ribbon__text .vh-i {
		display: none;
	}
}

/* ---------- Đầu trang (header/bar) ---------- */
.vh-header {
	border-bottom: 1px solid transparent;
	background: var(--vh-color-bg);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.vh-header.is-scrolled {
	border-bottom-color: var(--vh-color-border);
	box-shadow: 0 2px 12px rgb(var(--vh-color-overlay) / 0.08);
}

.vh-header__in {
	display: flex;
	align-items: center;
	gap: 8px;
	height: min(var(--vh-header-h), 56px);
}

.vh-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	min-height: 48px;
	margin-right: auto;
	color: var(--vh-color-text);
	text-decoration: none;
}

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

.vh-logo__mark {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--vh-color-primary);
	color: var(--vh-color-on-primary);
	font-family: var(--vh-font-heading);
	font-size: 1.125rem;
	font-weight: var(--vh-fw-heading);
	line-height: 1;
}

.vh-logo__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}

.vh-logo__kind {
	color: var(--vh-color-muted);
	font-size: 0.75rem;
	font-weight: var(--vh-fw-medium);
}

.vh-logo__name {
	overflow: hidden;
	font-family: var(--vh-font-heading);
	font-size: 1.125rem;
	font-weight: var(--vh-fw-heading);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vh-logo--img .custom-logo-link {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
}

.vh-logo--img img {
	width: auto;
	max-height: 40px;
}

.vh-nav {
	display: none;
}

.vh-header__actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: 4px;
}

.vh-header__tel,
.vh-header__book,
.vh-lang--header {
	display: none;
}

.vh-header__m--call {
	color: var(--vh-color-call);
}

.vh-header__m--call:hover {
	color: var(--vh-color-call);
}

@media (min-width: 1024px) {
	.vh-header__in {
		gap: 24px;
		height: var(--vh-header-h);
	}

	.vh-logo {
		margin-right: 0;
	}

	.vh-nav {
		display: block;
		flex: 1 1 auto;
		min-width: 0;
	}

	.vh-nav__list {
		display: flex;
		align-items: stretch;
		justify-content: center;
		gap: 2px;
		height: var(--vh-header-h);
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.vh-nav__list > li {
		display: flex;
	}

	.vh-nav__link {
		position: relative;
		display: inline-flex;
		align-items: center;
		gap: 4px;
		height: 100%;
		padding: 0 12px;
		color: var(--vh-color-text);
		font-size: 0.9375rem;
		font-weight: var(--vh-fw-medium);
		text-decoration: none;
		white-space: nowrap;
		list-style: none;
		cursor: pointer;
	}

	.vh-nav__link::-webkit-details-marker {
		display: none;
	}

	/* Gạch 3px màu chính dưới mục đang xem (scroll-spy). */
	.vh-nav__link::after {
		content: "";
		position: absolute;
		right: 12px;
		bottom: 0;
		left: 12px;
		height: 3px;
		border-radius: 3px 3px 0 0;
		background: var(--vh-color-primary);
		transform: scaleX(0);
		transition: transform 0.2s;
	}

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

	.vh-nav__link.is-active,
	.vh-nav__link[aria-current],
	.vh-nav__more.is-active > .vh-nav__link {
		color: var(--vh-color-text);
	}

	.vh-nav__link.is-active::after,
	.vh-nav__link[aria-current]::after,
	.vh-nav__more.is-active > .vh-nav__link::after {
		transform: scaleX(1);
	}

	.vh-nav__link:focus-visible {
		outline-offset: -3px;
	}

	.vh-nav__link .vh-i {
		transition: transform 0.15s;
	}

	.vh-nav__more {
		position: relative;
	}

	.vh-nav__more[open] > .vh-nav__link .vh-i {
		transform: rotate(180deg);
	}

	.vh-nav__drop {
		position: absolute;
		top: calc(100% - 6px);
		right: 0;
		z-index: 5;
		min-width: 220px;
		margin: 0;
		padding: 8px;
		border: 1px solid var(--vh-color-border);
		border-radius: var(--vh-radius-card);
		background: var(--vh-color-bg);
		box-shadow: var(--vh-shadow-card);
		list-style: none;
	}

	.vh-nav__drop a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 0 12px;
		border-radius: 8px;
		color: var(--vh-color-text);
		font-weight: var(--vh-fw-medium);
		text-decoration: none;
	}

	.vh-nav__drop a:hover,
	.vh-nav__drop a.is-active {
		background: var(--vh-color-surface);
		color: var(--vh-color-accent-ink);
	}

	.vh-header__actions {
		gap: 16px;
	}

	.vh-header__m {
		display: none;
	}

	.vh-header__tel {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 48px;
		color: var(--vh-color-text);
		text-decoration: none;
	}

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

	.vh-header__tel .vh-i {
		color: var(--vh-color-call);
	}

	.vh-header__tel-text {
		display: flex;
		flex-direction: column;
		line-height: 1.2;
	}

	.vh-header__tel-label {
		display: none;
		color: var(--vh-color-muted);
		font-size: 0.75rem;
	}

	/* R7: số có nhãn riêng (vd hotline tư vấn Sổ Lưu Trú bản demo) không bao giờ hiện trơ trọi. */
	.vh-header__tel--labelled .vh-header__tel-label {
		display: block;
	}

	.vh-header__tel-num {
		font-weight: var(--vh-fw-bold);
		font-variant-numeric: tabular-nums;
		white-space: nowrap;
	}

	.vh-header__tel:hover .vh-header__tel-num {
		text-decoration: underline;
	}

	.vh-header__book {
		display: inline-flex;
	}

	.vh-lang--header {
		display: flex;
	}
}

/*
 * 1024–1279px: nhãn không được nới rộng cụm số (menu sẽ tràn); contain: inline-size cho nhãn
 * chỉ rộng bằng dòng số và tự xuống 2 dòng. Trình duyệt cũ không hỗ trợ thì max-width giữ cho gọn.
 */
@media (min-width: 1024px) and (max-width: 1279px) {
	.vh-header__tel--labelled .vh-header__tel-label {
		max-width: 9.5rem;
		line-height: 1.2;
		contain: inline-size;
	}
}

@media (min-width: 1280px) {
	.vh-header__tel-label {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vh-header,
	.vh-nav__link::after,
	.vh-nav__link .vh-i {
		transition: none;
	}
}

/* Chuyển ngữ (chỉ hiện khi B1 có ≥2 ngôn ngữ). */
.vh-lang {
	gap: 2px;
}

.vh-lang a {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	border-radius: 8px;
	color: var(--vh-color-muted);
	font-size: 0.875rem;
	font-weight: var(--vh-fw-bold);
	text-decoration: none;
}

.vh-lang a:hover {
	color: var(--vh-color-text);
}

.vh-lang a[aria-current] {
	background: var(--vh-color-surface);
	color: var(--vh-color-text);
}

.vh-lang--sheet {
	display: flex;
	gap: 8px;
	padding: 12px 20px 4px;
}

.vh-lang--sheet a {
	min-width: 56px;
	min-height: 48px;
	border: 1px solid var(--vh-color-border);
}

/* ---------- Sheet menu điện thoại: mỗi mục 56px ---------- */
.vh-menu-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-menu-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	padding: 0 20px;
	border-bottom: 1px solid var(--vh-color-border);
	color: var(--vh-color-text);
	font-size: 1.0625rem;
	font-weight: var(--vh-fw-medium);
	text-decoration: none;
}

.vh-menu-list li:last-child a {
	border-bottom: 0;
}

.vh-menu-list a .vh-i {
	color: var(--vh-color-muted);
}

.vh-menu-list a:hover {
	background: var(--vh-color-surface);
	color: var(--vh-color-text);
}

.vh-menu-list a.is-active,
.vh-menu-list a[aria-current] {
	background: var(--vh-color-surface);
	box-shadow: inset 4px 0 0 var(--vh-color-primary);
	color: var(--vh-color-accent-ink);
}

.vh-menu-list a:focus-visible {
	outline-offset: -3px;
}

/* ---------- Chân trang (footer/columns) ---------- */
.vh-footer {
	padding-top: clamp(40px, 8vw, 64px);
	/* Chừa chỗ cho thanh dính điện thoại. */
	padding-bottom: calc(var(--vh-sticky-bar-h) + env(safe-area-inset-bottom, 0px) + 16px);
	background: var(--vh-color-deep);
	color: var(--vh-color-muted-on-deep);
	font-size: 0.9375rem;
	line-height: 1.6;
}

@media (min-width: 1024px) {
	.vh-footer {
		padding-bottom: 32px;
	}
}

.vh-footer a {
	color: var(--vh-color-link-on-deep, var(--vh-color-on-deep));
}

.vh-footer a:hover {
	color: var(--vh-color-link-on-deep, var(--vh-color-on-deep));
	text-decoration-thickness: 2px;
}

.vh-footer__grid {
	display: grid;
	gap: 32px;
}

@media (min-width: 768px) {
	.vh-footer__grid {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		column-gap: 40px;
	}

	.vh-footer__legal {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	.vh-footer__grid {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.4fr);
		column-gap: 48px;
	}

	.vh-footer__legal {
		grid-column: auto;
	}
}

.vh-footer__name {
	margin-bottom: 8px;
	color: var(--vh-color-link-on-deep, var(--vh-color-on-deep));
	font-size: 1.25rem;
}

.vh-footer__tagline {
	margin-bottom: 12px;
}

.vh-footer__h {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	color: var(--vh-color-link-on-deep, var(--vh-color-on-deep));
	font-family: var(--vh-font-body);
	font-size: 1rem;
	font-weight: var(--vh-fw-bold);
	line-height: 1.4;
}

.vh-footer__contact,
.vh-footer__links,
.vh-footer__social {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-footer__contact li {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
}

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

.vh-footer__contact a,
.vh-footer__links a,
.vh-footer__social a {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
}

.vh-footer__links a {
	text-decoration: none;
}

.vh-footer__links a:hover {
	text-decoration: underline;
}

.vh-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
	margin-top: 4px;
}

.vh-footer__bottom {
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid color-mix(in srgb, var(--vh-color-on-deep) 16%, transparent);
	font-size: var(--vh-fs-small);
}

.vh-footer__bottom p {
	padding-block: 8px;
}

/* Khối pháp lý */
.vh-legal {
	font-size: var(--vh-fs-small);
	line-height: 1.55;
}

.vh-legal__name {
	margin-bottom: 6px;
	color: var(--vh-color-link-on-deep, var(--vh-color-on-deep));
	font-weight: var(--vh-fw-medium);
}

.vh-legal__list {
	display: grid;
	gap: 4px;
	margin: 0;
}

.vh-legal__list dt {
	display: inline;
}

.vh-legal__list dt::after {
	content: ":";
}

.vh-legal__list dd {
	display: inline;
	margin: 0;
	color: var(--vh-color-link-on-deep, var(--vh-color-on-deep));
}

.vh-legal__bct a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	font-weight: var(--vh-fw-medium);
}

/* ---------- Thanh dính điện thoại: [Gọi][Zalo][Đặt phòng 50%] ---------- */
.vh-sticky {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 90;
	display: flex;
	height: calc(var(--vh-sticky-bar-h) + env(safe-area-inset-bottom, 0px));
	padding-bottom: env(safe-area-inset-bottom, 0px);
	border-top: 1px solid var(--vh-color-border);
	background: var(--vh-color-bg);
	box-shadow: 0 -4px 16px rgb(var(--vh-color-overlay) / 0.08);
	transition: transform 0.2s ease, visibility 0.2s;
}

/* Có JS: chỉ hiện khi đã cuộn qua điểm mốc; giấu khi sheet hoặc bàn phím mở. */
.vh-js .vh-sticky:not(.is-shown),
.vh-sheet-open .vh-sticky,
.vh-kb .vh-sticky {
	visibility: hidden;
	transform: translateY(110%);
}

@media (min-width: 1024px) {
	.vh-sticky {
		display: none;
	}
}

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

.vh-sticky__cell {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	padding: 6px 4px;
	color: var(--vh-color-text);
	font-size: 0.8125rem;
	font-weight: var(--vh-fw-medium);
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
}

.vh-sticky__cell + .vh-sticky__cell {
	border-left: 1px solid var(--vh-color-border);
}

.vh-sticky__cell:focus-visible {
	outline-offset: -4px;
}

.vh-sticky__cell--call,
.vh-sticky__cell--call:hover {
	color: var(--vh-color-call);
}

.vh-sticky__cell--zalo,
.vh-sticky__cell--zalo:hover {
	color: var(--vh-color-zalo);
}

.vh-sticky__cell--book {
	flex: 2 1 0;
	border-left: 0 !important;
	background: var(--vh-color-primary);
	color: var(--vh-color-on-primary);
	font-size: 0.9375rem;
	font-weight: var(--vh-fw-bold);
	--vh-ring: var(--vh-color-focus-on-deep);
}

.vh-sticky__cell--book:hover {
	background: var(--vh-color-primary-hover);
	color: var(--vh-color-on-primary);
}

.vh-sticky__price {
	font-size: 0.75rem;
	font-weight: var(--vh-fw-medium);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.vh-sticky__label {
	white-space: nowrap;
}
