/*
 * Trang trong: đầu trang con, danh sách phòng, chi tiết phòng, gửi yêu cầu đặt phòng, trang chính sách, 404.
 */

.vh-main {
	display: block;
	min-height: 50vh;
}

/* ---------- Đầu trang con ---------- */
.vh-page-hero {
	padding-block: 4px clamp(40px, 6vw, 56px);
	background: var(--vh-color-surface);
}

.vh-page-hero .vh-h1 {
	margin-top: 4px;
}

.vh-page-hero__meta {
	max-width: 62ch;
	margin-top: 8px;
}

.vh-page-hero .vh-small {
	margin-top: 4px;
}

/* ---------- Danh sách phòng ---------- */
.vh-rooms__bar {
	position: relative;
	margin-top: -24px;
}

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

.vh-rooms {
	padding-block: 24px clamp(40px, 8vw, 64px);
}

.vh-filter {
	display: flex;
	gap: 8px;
	margin: 0 calc(-1 * var(--vh-page-pad)) 12px;
	padding: 4px var(--vh-page-pad) 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

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

.vh-no-js .vh-filter {
	display: none;
}

.vh-filter .vh-chip {
	flex: none;
}

.vh-rooms__item {
	display: flex;
	min-width: 0;
}

.vh-rooms__item > * {
	flex: 1;
	min-width: 0;
}

.vh-empty {
	display: grid;
	justify-items: center;
	gap: 12px;
	margin-top: 8px;
	padding: 32px 20px;
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-surface);
	color: var(--vh-color-muted);
	text-align: center;
}

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

.vh-help {
	padding-bottom: clamp(40px, 8vw, 64px);
}

.vh-help__card {
	display: grid;
	gap: 16px;
	padding: var(--vh-card-pad);
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-surface);
}

.vh-help__text {
	display: grid;
	gap: 4px;
}

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

@media (min-width: 768px) {
	.vh-help__card {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		padding: 28px 32px;
	}

	.vh-help__actions {
		display: flex;
	}

	.vh-help__actions .vh-btn {
		min-width: 140px;
	}
}

/* ---------- Chi tiết phòng (room-detail/gallery-top) ---------- */
.vh-room {
	display: grid;
	grid-template-areas: "gallery" "head" "aside" "body";
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	padding-bottom: clamp(40px, 8vw, 64px);
}

.vh-room__gallery {
	grid-area: gallery;
	/* Điện thoại: ảnh tràn mép cho lớn. */
	margin-inline: calc(-1 * var(--vh-page-pad));
}

.vh-room-gallery .vh-img,
.vh-room-gallery .vh-ph {
	width: 100%;
}

/* Bộ đếm "1/8" nằm trên ảnh: lớp phủ .70 (chữ trắng 5,56:1 trên mọi điểm ảnh). */
.vh-room-gallery .vh-carousel__count {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	padding: 2px 10px;
	border-radius: var(--vh-radius-chip);
	background: rgb(var(--vh-color-overlay) / 0.7);
	color: var(--vh-white);
	font-size: 0.8125rem;
	font-weight: var(--vh-fw-medium);
	line-height: 1.6;
}

.vh-room__head {
	display: grid;
	gap: 10px;
	grid-area: head;
}

.vh-room__flags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-room__flags:empty {
	display: none;
}

.vh-room__aside {
	grid-area: aside;
	min-width: 0;
}

.vh-room__body {
	display: grid;
	gap: 32px;
	grid-area: body;
	min-width: 0;
}

.vh-room__block {
	display: grid;
	gap: 14px;
}

.vh-room__desc {
	display: grid;
	gap: 0.9em;
	max-width: 68ch;
}

@media (min-width: 768px) {
	.vh-room__gallery {
		margin-inline: 0;
	}

	.vh-room-gallery .vh-carousel__track,
	.vh-room-gallery--single {
		overflow: hidden;
		border-radius: var(--vh-radius-media);
	}

	.vh-room-gallery .vh-carousel__track {
		overflow-x: auto;
	}
}

@media (min-width: 1024px) {
	.vh-room {
		grid-template-areas:
			"gallery aside"
			"head aside"
			"body aside";
		grid-template-columns: minmax(0, 1fr) 360px;
		grid-template-rows: auto auto 1fr;
		column-gap: 40px;
	}

	.vh-room__aside {
		position: sticky;
		top: calc(var(--vh-top-h, var(--vh-header-h)) + 16px);
		align-self: start;
	}
}

/* 4 ô thông số 2×2 */
.vh-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-tile {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 12px;
	padding: 14px;
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-surface);
}

.vh-tile .vh-i {
	grid-row: 1 / span 2;
	color: var(--vh-color-primary);
}

.vh-tile__k {
	color: var(--vh-color-muted);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.vh-tile__v {
	font-weight: var(--vh-fw-medium);
	line-height: 1.35;
}

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

	.vh-tile .vh-i {
		grid-row: auto;
		margin-bottom: 6px;
	}
}

/* Tiện nghi chia nhóm */
.vh-room-amen {
	display: grid;
	gap: 24px;
}

@media (min-width: 640px) {
	.vh-room-amen {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}

.vh-room-amen__h {
	margin-bottom: 12px;
	font-family: var(--vh-font-body);
	font-size: 1rem;
	font-weight: var(--vh-fw-bold);
}

.vh-room-amen .vh-chip {
	min-height: 24px;
	padding: 0 8px;
	font-size: 0.75rem;
}

/* Hộp "Lưu ý" viền màu chính */
.vh-note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border: 2px solid var(--vh-color-primary);
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-bg);
}

.vh-note > .vh-i {
	color: var(--vh-color-primary);
}

.vh-note__t {
	margin-bottom: 2px;
	font-weight: var(--vh-fw-bold);
}

/* Thẻ đặt nhanh */
.vh-book-card {
	display: grid;
	gap: 14px;
	padding: var(--vh-card-pad);
	border: 1px solid var(--vh-color-border);
}

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

.vh-book-card__alt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0 16px;
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
}

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

/* Hỏi qua Zalo */
.vh-ask {
	display: grid;
	gap: 14px;
	padding: var(--vh-card-pad);
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-surface);
}

.vh-ask > div {
	display: grid;
	gap: 4px;
}

@media (min-width: 640px) {
	.vh-ask {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}
}

/* Phòng khác */
.vh-others {
	padding-block: clamp(40px, 8vw, 64px);
	background: var(--vh-color-surface);
}

.vh-others__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 20px;
}

/* ---------- Gửi yêu cầu đặt phòng ---------- */
.vh-req {
	display: grid;
	gap: 24px;
	padding-block: 24px clamp(40px, 8vw, 64px);
}

.vh-req__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

.vh-req__form {
	display: grid;
	gap: 28px;
	padding: var(--vh-card-pad);
	border: 1px solid var(--vh-color-border);
}

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

.vh-req__aside {
	display: grid;
	gap: 16px;
	align-content: start;
	min-width: 0;
}

.vh-req__sum,
.vh-req__help {
	display: grid;
	gap: 12px;
	padding: var(--vh-card-pad);
	border: 1px solid var(--vh-color-border);
}

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

.vh-sum {
	display: grid;
	gap: 10px;
	margin: 0;
}

.vh-sum > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 10px;
	border-bottom: 1px dashed var(--vh-color-border);
}

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

.vh-sum dd {
	margin: 0;
	font-weight: var(--vh-fw-medium);
	text-align: right;
}

@media (min-width: 768px) {
	.vh-req__form {
		padding: 32px;
	}
}

@media (min-width: 1024px) {
	.vh-req__grid {
		grid-template-columns: minmax(0, 1fr) 360px;
		align-items: start;
		column-gap: 40px;
	}

	.vh-req__aside {
		position: sticky;
		top: calc(var(--vh-top-h, var(--vh-header-h)) + 16px);
	}
}

/* ---------- Trang chính sách, bài đọc dài (680–720px) ---------- */
.vh-doc {
	padding-block: 4px clamp(48px, 8vw, 80px);
}

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

.vh-doc__meta {
	margin: 8px 0 28px;
}

.vh-doc__body {
	line-height: 1.75;
}

.vh-doc__body > * + * {
	margin-top: 1em;
}

.vh-doc__body h2 {
	margin-top: 2em;
	font-size: calc(var(--vh-fs-h3) * 1.1);
	font-weight: var(--vh-fw-bold);
	line-height: 1.35;
}

.vh-doc__body h3 {
	margin-top: 1.6em;
	font-size: 1.0625rem;
	font-weight: var(--vh-fw-bold);
	line-height: 1.4;
}

.vh-doc__body h2 + *,
.vh-doc__body h3 + * {
	margin-top: 0.5em;
}

.vh-doc__body ul,
.vh-doc__body ol {
	padding-left: 1.4em;
}

.vh-doc__body li + li {
	margin-top: 0.4em;
}

.vh-doc__body a {
	text-decoration: underline;
}

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

.vh-doc__body blockquote {
	padding: 4px 0 4px 16px;
	border-left: 4px solid var(--vh-color-primary);
	color: var(--vh-color-muted);
}

.vh-doc__body table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	font-size: var(--vh-fs-small);
	line-height: 1.5;
}

.vh-doc__body th,
.vh-doc__body td {
	padding: 8px 10px;
	border: 1px solid var(--vh-color-border);
	text-align: left;
	vertical-align: top;
}

.vh-doc__body th {
	background: var(--vh-color-surface);
	font-weight: var(--vh-fw-medium);
}

.vh-doc__body img {
	border-radius: var(--vh-radius-media);
}

.vh-doc__body hr {
	margin-block: 2em;
	border: 0;
	border-top: 1px solid var(--vh-color-border);
}

.vh-list-posts {
	display: grid;
	gap: 24px;
	margin: 24px 0;
}

.vh-list-posts__item {
	display: grid;
	gap: 4px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--vh-color-border);
}

.vh-list-posts__item a {
	color: var(--vh-color-text);
	text-decoration: none;
}

.vh-list-posts__item a:hover {
	color: var(--vh-color-primary);
	text-decoration: underline;
}

/* ---------- 404 ---------- */
.vh-404 {
	display: grid;
	justify-items: center;
	gap: 16px;
	padding-block: clamp(48px, 12vw, 112px);
	text-align: center;
}

/* Số 404 chỉ trang trí (aria-hidden). */
.vh-404__code {
	color: var(--vh-color-accent);
	font-family: var(--vh-font-heading);
	font-size: clamp(4.5rem, 20vw, 8rem);
	font-weight: var(--vh-fw-heading);
	line-height: 1;
}

.vh-404__text {
	max-width: 52ch;
}

.vh-404__actions {
	justify-content: center;
	margin-top: 8px;
}
