/*
 * Trang một mẫu (/mau/{slug}/). Nạp sau gallery.css (thẻ "Mẫu khác", hình vẽ bố cục).
 * Mobile trước; mốc 640 / 900 / 1100px.
 */

/* ---------- Đường dẫn ---------- */
.vs-crumbs {
	padding: 8px 0 4px;
	font-size: .875rem;
}

.vs-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-crumbs li {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	color: var(--vs-muted);
}

.vs-crumbs li + li::before {
	content: "›";
	content: "›" / "";
	padding: 0 8px;
	color: var(--vs-muted);
}

.vs-crumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--vs-deep);
	text-decoration: underline;
	text-decoration-color: rgba(0, 53, 128, .3);
	text-underline-offset: 3px;
}

.vs-crumbs a:hover {
	text-decoration-color: currentColor;
}

.vs-crumbs [aria-current] {
	font-weight: 600;
	color: var(--vs-ink);
}

/* ---------- Đầu trang mẫu ---------- */
.vs-tpl__top {
	padding-bottom: 8px;
}

.vs-tpl__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin: 4px 0 0;
	border-radius: var(--vs-radius);
	background: var(--vs-soft);
}

.vs-tpl__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vs-tpl__head {
	display: grid;
	gap: 24px;
	margin-top: 24px;
}

.vs-tpl__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.vs-tpl__num {
	font-size: .875rem;
	font-weight: 600;
	color: var(--vs-muted);
	font-variant-numeric: tabular-nums;
}

.vs-tpl__title {
	margin: 10px 0 0;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
	line-height: 1.15;
	letter-spacing: -.01em;
}

.vs-tpl__tagline {
	margin: 12px 0 0;
	font-size: 1.1875rem;
	line-height: 1.5;
	font-style: italic;
	color: var(--vs-ink);
}

.vs-tpl__tagline-en {
	margin: 4px 0 0;
	font-size: .875rem;
	line-height: 1.5;
	color: var(--vs-muted);
}

.vs-tpl__concept-title {
	margin: 24px 0 8px;
	font-size: 1.0625rem;
}

.vs-tpl__concept {
	margin: 0;
	max-width: 42em;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--vs-ink);
}

.vs-tpl__facts {
	align-self: start;
	padding: 20px;
	background: var(--vs-card);
	border: 1px solid var(--vs-line);
	border-radius: var(--vs-radius);
	box-shadow: 0 10px 28px rgba(11, 26, 51, .06);
}

.vs-facts {
	display: grid;
	gap: 14px;
	margin: 0;
}

.vs-facts__row {
	display: grid;
	gap: 3px;
}

.vs-facts dt {
	font-size: .8125rem;
	font-weight: 600;
	color: var(--vs-muted);
}

.vs-facts dd {
	margin: 0;
	font-size: .9375rem;
	line-height: 1.55;
	color: var(--vs-ink);
}

.vs-facts dd strong {
	color: var(--vs-deep);
	white-space: nowrap;
}

.vs-tpl__ctas {
	display: grid;
	gap: 10px;
	margin-top: 20px;
}

.vs-tpl__ctas .vs-btn {
	min-height: 48px;
	justify-content: center;
	text-align: center;
}

.vs-tpl__soon-note {
	margin: 14px 0 0;
	padding: 12px 14px;
	background: var(--vs-soft);
	border-radius: 10px;
	font-size: .875rem;
	line-height: 1.55;
	color: var(--vs-deep);
}

@media (min-width: 640px) {
	.vs-tpl__media {
		margin-top: 8px;
		border-radius: calc(var(--vs-radius) + 4px);
	}
}

@media (min-width: 960px) {
	.vs-tpl__head {
		grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
		gap: 48px;
		margin-top: 32px;
	}

	.vs-tpl__facts {
		position: sticky;
		top: 88px;
	}
}

/* ---------- Bảng màu và chữ ---------- */
.vs-look__grid {
	display: grid;
	gap: 32px;
	align-items: center;
}

.vs-look .vs-h2 {
	margin: 0 0 16px;
}

.vs-palette {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-palette__item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 10px;
	align-items: center;
	padding: 8px;
	background: var(--vs-card);
	border: 1px solid var(--vs-line);
	border-radius: 10px;
}

.vs-palette__sw {
	grid-row: 1 / 3;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	box-shadow: inset 0 0 0 1px rgba(11, 26, 51, .12);
}

.vs-palette__role {
	font-size: .875rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--vs-ink);
}

.vs-palette__hex {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .8125rem;
	color: var(--vs-muted);
	background: none;
	padding: 0;
}

.vs-fonts {
	display: grid;
	gap: 10px;
	margin: 20px 0 0;
}

.vs-fonts__row {
	display: grid;
	gap: 4px;
	padding: 12px 14px;
	background: var(--vs-card);
	border: 1px solid var(--vs-line);
	border-radius: 10px;
}

.vs-fonts dt {
	font-size: .8125rem;
	font-weight: 600;
	color: var(--vs-muted);
}

.vs-fonts dd {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	margin: 0;
}

.vs-fonts__name {
	font-weight: 700;
	color: var(--vs-ink);
}

.vs-fonts__sample {
	font-size: 1.375rem;
	line-height: 1.2;
	color: var(--vs-ink);
}

.vs-fonts__note {
	margin: 10px 0 0;
	font-size: .8125rem;
	line-height: 1.5;
}

.vs-look__mock {
	max-width: 560px;
	width: 100%;
	justify-self: center;
}

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

@media (min-width: 900px) {
	.vs-look__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 48px;
	}

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

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

/* ---------- Khách sạn minh họa ---------- */
.vs-hotel .vs-h2 {
	margin: 0 0 16px;
}

.vs-hotel__card {
	padding: 20px 16px;
	background: var(--vs-card);
	border: 1px solid var(--vs-line);
	border-radius: var(--vs-radius);
}

.vs-hotel__name {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.35;
}

.vs-hotel__facts {
	display: grid;
	gap: 6px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	font-size: .9375rem;
	line-height: 1.5;
	color: var(--vs-muted);
}

.vs-hotel__facts li {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.vs-hotel__facts .vs-ic {
	margin-top: 2px;
	color: var(--vs-primary);
}

.vs-hotel__intro {
	margin: 16px 0 0;
	max-width: 50em;
	line-height: 1.7;
	color: var(--vs-ink);
}

.vs-rooms {
	width: 100%;
	margin-top: 20px;
	border-collapse: collapse;
	font-size: .9375rem;
	line-height: 1.45;
}

.vs-rooms th,
.vs-rooms td {
	padding: 12px 10px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--vs-line);
}

.vs-rooms thead th {
	font-size: .8125rem;
	font-weight: 600;
	color: var(--vs-muted);
	background: var(--vs-bg);
}

.vs-rooms tbody th {
	font-weight: 600;
	color: var(--vs-ink);
}

.vs-rooms__num {
	text-align: right !important;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.vs-rooms td.vs-rooms__num {
	font-weight: 700;
	color: var(--vs-deep);
}

/* Điện thoại: mỗi hạng phòng thành một khối, nhãn cột hiện trước giá trị. */
@media (max-width: 639px) {
	.vs-rooms thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.vs-rooms,
	.vs-rooms tbody,
	.vs-rooms tr,
	.vs-rooms th,
	.vs-rooms td {
		display: block;
	}

	.vs-rooms tr {
		padding: 12px 0;
		border-bottom: 1px solid var(--vs-line);
	}

	.vs-rooms th,
	.vs-rooms td {
		padding: 2px 0;
		border: 0;
	}

	.vs-rooms tbody th {
		margin-bottom: 4px;
		font-size: 1rem;
	}

	.vs-rooms td {
		display: flex;
		justify-content: space-between;
		gap: 16px;
	}

	.vs-rooms td::before {
		content: attr(data-label);
		flex: none;
		font-weight: 400;
		color: var(--vs-muted);
	}

	.vs-rooms td {
		text-align: right;
	}

	.vs-rooms td.vs-rooms__num {
		text-align: left !important;
	}
}

.vs-hotel__note {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 14px 0 0;
	font-size: .875rem;
	color: var(--vs-muted);
}

@media (min-width: 640px) {
	.vs-hotel__card {
		padding: 28px;
	}

	.vs-hotel__facts {
		display: flex;
		flex-wrap: wrap;
		gap: 8px 20px;
	}
}

/* ---------- Điểm riêng + các khối ---------- */
.vs-build__grid {
	display: grid;
	gap: 40px;
}

.vs-build .vs-h2 {
	margin: 0 0 16px;
}

.vs-sig {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-sig li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	background: var(--vs-card);
	border: 1px solid var(--vs-line);
	border-radius: 12px;
	line-height: 1.6;
	color: var(--vs-ink);
}

.vs-sig .vs-ic {
	margin-top: 3px;
	color: var(--vs-call);
}

.vs-blocks__intro {
	margin: -6px 0 14px;
	font-size: .9375rem;
	line-height: 1.55;
}

.vs-blocks {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: vs-block;
	background: var(--vs-card);
	border: 1px solid var(--vs-line);
	border-radius: 12px;
}

.vs-blocks__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	min-height: 48px;
	padding: 10px 14px 10px 48px;
	position: relative;
	counter-increment: vs-block;
	border-bottom: 1px solid var(--vs-line);
}

.vs-blocks__item:last-child {
	border-bottom: 0;
}

.vs-blocks__item::before {
	content: counter(vs-block);
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 24px;
	font-size: .8125rem;
	font-weight: 600;
	text-align: center;
	color: var(--vs-muted);
	font-variant-numeric: tabular-nums;
}

.vs-blocks__name {
	font-weight: 600;
	color: var(--vs-ink);
}

.vs-blocks__tiers {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
}

.vs-tier {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--vs-soft);
	color: var(--vs-deep);
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .02em;
	white-space: nowrap;
}

.vs-tier--base {
	background: #E8F5EC;
	color: #17603D;
}

.vs-codes {
	margin-top: 12px;
	border: 1px solid var(--vs-line);
	border-radius: 12px;
	background: var(--vs-card);
}

.vs-codes summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	padding: 0 14px;
	font-weight: 600;
	color: var(--vs-deep);
	cursor: pointer;
	list-style: none;
}

.vs-codes summary::-webkit-details-marker {
	display: none;
}

.vs-codes[open] summary .vs-ic {
	transform: rotate(180deg);
}

.vs-codes__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0 14px 4px;
}

.vs-codes__row {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: baseline;
	gap: 10px;
}

.vs-codes__row dd {
	margin: 0;
	font-size: .9375rem;
	line-height: 1.5;
	color: var(--vs-ink);
}

.vs-codes__more {
	margin: 0;
	padding: 8px 14px 14px;
	font-size: .9375rem;
}

.vs-codes__more a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--vs-primary);
	text-underline-offset: 3px;
}

@media (min-width: 960px) {
	.vs-build__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 48px;
		align-items: start;
	}
}

/* ---------- Gói gợi ý ---------- */
.vs-tpkg {
	display: grid;
	gap: 24px;
	padding: 24px 18px;
	background: linear-gradient(180deg, var(--vs-soft) 0%, var(--vs-card) 100%);
	border: 2px solid var(--vs-primary);
	border-radius: calc(var(--vs-radius) + 4px);
}

.vs-tpkg__eyebrow {
	margin: 0;
	font-size: .875rem;
	font-weight: 600;
	color: var(--vs-deep);
}

.vs-tpkg__name {
	margin: 6px 0 0;
}

.vs-tpkg__price {
	margin: 10px 0 0;
}

.vs-tpkg__price .vs-price {
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
	font-weight: 700;
	color: var(--vs-deep);
	white-space: nowrap;
}

/* Giá lẻ để so sánh: chữ thường, không gạch ngang. */
.vs-tpkg__list {
	margin: 4px 0 0;
	font-size: .9375rem;
	color: var(--vs-muted);
}

.vs-tpkg__fit {
	margin: 14px 0 0;
	line-height: 1.55;
	color: var(--vs-ink);
}

.vs-tpkg__days {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 10px 0 0;
	font-size: .9375rem;
	font-weight: 600;
	color: var(--vs-ink);
}

.vs-tpkg__inc-title {
	margin: 0 0 10px;
	font-weight: 600;
	color: var(--vs-ink);
}

.vs-tpkg__codes {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vs-tpkg__codes li {
	display: flex;
	gap: 10px;
	align-items: baseline;
	line-height: 1.5;
	color: var(--vs-ink);
}

.vs-tpkg__codes .vs-tier {
	flex: none;
	min-width: 34px;
	justify-content: center;
}

.vs-tpkg__codes--base li {
	align-items: flex-start;
}

.vs-tpkg__codes--base .vs-ic {
	margin-top: 3px;
	color: var(--vs-call);
}

.vs-tpkg__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.vs-tpkg__actions .vs-btn {
	flex: 1 1 180px;
	min-height: 48px;
	justify-content: center;
}

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

@media (min-width: 900px) {
	.vs-tpkg {
		grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
		gap: 40px;
		padding: 36px 40px;
	}

	.vs-tpkg__actions .vs-btn {
		flex: 0 0 auto;
	}
}

/* ---------- Mẫu khác ---------- */
.vs-more__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 20px;
	margin-bottom: 20px;
}

.vs-more__head .vs-h2 {
	margin: 0;
}

.vs-more__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-weight: 600;
	color: var(--vs-primary);
	text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.vs-codes summary .vs-ic {
		transition: none !important;
	}

	.vs-tpl__facts {
		scroll-behavior: auto;
	}
}
