/* Khối Đánh giá – score-quotes. Mobile trước, mốc 640px / 1024px. Chỉ dùng biến --vh-*. */

.vh-reviews {
	display: grid;
	gap: var(--vh-card-gap);
}

/* Thẻ điểm: số lớn bên trái, sao + số đánh giá bên phải. */
.vh-reviews__score {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 0.25rem 1rem;
	padding: var(--vh-card-pad);
	background: var(--vh-color-card);
	color: var(--vh-color-text);
	border: 1px solid var(--vh-color-border);
	border-radius: var(--vh-radius-card);
}

.vh-reviews__value {
	grid-row: span 2;
	margin: 0;
	font-family: var(--vh-font-heading);
	font-weight: var(--vh-fw-heading);
	line-height: var(--vh-lh-heading);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.vh-reviews__num {
	font-size: var(--vh-fs-h1);
}

.vh-reviews__scale {
	font-size: var(--vh-fs-lead);
	color: var(--vh-color-muted);
}

.vh-reviews__stars {
	display: flex;
	gap: 0.125rem;
}

/* Sprite khóa fill="none" nên phân biệt sao bằng màu nét: sao đạt màu cam, sao còn lại màu viền. */
.vh-reviews__star {
	color: var(--vh-color-border-strong);
}

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

.vh-reviews__count {
	margin: 0;
	font-weight: var(--vh-fw-medium);
	font-size: var(--vh-fs-body);
}

.vh-reviews__extra {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin: 0.5rem 0 0;
	font-size: var(--vh-fs-small);
	color: var(--vh-color-muted);
}

.vh-reviews__sync,
.vh-reviews__foot {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.vh-reviews__sync .vh-i,
.vh-reviews__foot .vh-i {
	color: var(--vh-color-success);
	flex: none;
}

.vh-reviews__foot {
	margin: 0;
}

/* Demo: biểu tượng thông tin màu chữ phụ, không xanh "đã kiểm chứng". */
.vh-reviews__sync--demo .vh-i {
	color: var(--vh-color-muted);
}

/* Danh sách trích dẫn. */
.vh-reviews__list {
	display: grid;
	gap: var(--vh-card-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-reviews__item {
	min-width: 0;
}

.vh-reviews__quote {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	height: 100%;
	margin: 0;
	padding: var(--vh-card-pad);
	background: var(--vh-color-card);
	color: var(--vh-color-text);
	border: 1px solid var(--vh-color-border);
	border-radius: var(--vh-radius-card);
}

.vh-reviews__qscore {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-variant-numeric: tabular-nums;
}

.vh-reviews__text {
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	font-size: var(--vh-fs-body);
	line-height: var(--vh-lh-body);
}

.vh-reviews__text p {
	margin: 0;
}

.vh-reviews__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--vh-color-border);
	font-size: var(--vh-fs-small);
	color: var(--vh-color-muted);
}

.vh-reviews__author {
	font-weight: var(--vh-fw-bold);
	color: var(--vh-color-text);
}

/* Link "Xem gốc" đủ 48px để bấm bằng ngón cái. */
.vh-reviews__link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	min-height: 48px;
	margin-left: auto;
	color: var(--vh-color-primary);
	font-weight: var(--vh-fw-medium);
}

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

.vh-reviews__link:focus-visible {
	outline: 3px solid var(--vh-color-focus);
	outline-offset: 2px;
	border-radius: var(--vh-radius-chip);
}

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

	/* 3 trích dẫn trên 2 cột: thẻ cuối trải hết hàng, không để lỗ. */
	.vh-reviews__list--n3 > :last-child {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	.vh-reviews--with-score {
		grid-template-columns: minmax(15rem, 1fr) 3fr;
		align-items: start;
	}

	.vh-reviews--with-score .vh-reviews__score {
		grid-template-columns: minmax(0, 1fr);
		justify-items: start;
	}

	.vh-reviews--with-score .vh-reviews__value {
		grid-row: auto;
	}

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

	.vh-reviews__list--n3 > :last-child {
		grid-column: auto;
	}

	/* Không có thẻ điểm: trích dẫn chia đều cả hàng. */
	.vh-reviews:not(.vh-reviews--with-score) .vh-reviews__list--n1 {
		max-width: 40rem;
	}
}

/* =====================================================================
 * Tùy chọn của score-quotes (đợt mẫu mới): điểm thành phần, nhãn, lọc, giải thưởng, skin guestbook | bubble,
 * và trang Đánh giá nhiều trích dẫn. Chỉ thêm lớp mới, không đổi luật Mini Gọn ở trên.
 * ===================================================================== */

/* Điểm thành phần: thanh ngang + số. */
.vh-reviews__subs {
	grid-column: 1 / -1;
	display: grid;
	gap: 0.5rem;
	width: 100%;
	margin: 0.75rem 0 0;
}

.vh-reviews__sub {
	display: grid;
	grid-template-columns: minmax(6rem, 1fr) minmax(0, 1.4fr);
	align-items: center;
	gap: 0.75rem;
	font-size: var(--vh-fs-small);
}

.vh-reviews__sub dt {
	color: var(--vh-color-text);
}

.vh-reviews__sub dd {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
}

.vh-reviews__bar {
	position: relative;
	flex: 1 1 auto;
	height: 6px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--vh-color-border);
}

.vh-reviews__bar > span {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: inherit;
	background: var(--vh-color-primary);
}

.vh-reviews__sub-val {
	flex: none;
	min-width: 2.5ch;
	font-variant-numeric: tabular-nums;
	font-weight: var(--vh-fw-medium);
	text-align: right;
}

/* Nhãn đối tượng / kiểu chuyến đi trên thẻ. */
.vh-reviews__labels {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0;
}

.vh-reviews__label {
	min-height: 28px;
	padding: 2px 10px;
	background: var(--vh-color-surface);
}

.vh-reviews__place {
	font-weight: var(--vh-fw-body);
	color: var(--vh-color-muted);
}

/* Lọc theo kiểu khách. */
.vh-reviews__quotes {
	min-width: 0;
}

.vh-reviews__item[hidden] {
	display: none;
}

/* Trang Đánh giá: nhiều trích dẫn xếp lưới đều. */
@media (min-width: 640px) {
	.vh-reviews__list--many {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.vh-reviews--with-score .vh-reviews__list--many {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vh-reviews:not(.vh-reviews--with-score) .vh-reviews__list--many {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Cột giải thưởng: vòng nguyệt quế SVG màu trang trí. */
.vh-reviews__awards {
	display: grid;
	gap: 0.75rem;
	align-content: start;
}

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

.vh-reviews__award {
	display: grid;
	justify-items: center;
	gap: 0.25rem;
	text-align: center;
}

.vh-reviews__laurel {
	color: var(--vh-color-ornament, var(--vh-color-accent-ink));
}

.vh-reviews__award-name {
	font-family: var(--vh-font-heading);
	font-weight: var(--vh-fw-heading);
	line-height: var(--vh-lh-heading);
}

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

.vh-reviews__award-note {
	margin: 0;
	text-align: center;
}

@media (min-width: 1024px) {
	.vh-reviews--with-awards.vh-reviews--with-score {
		grid-template-columns: minmax(14rem, 1fr) minmax(0, 3fr) minmax(11rem, 1fr);
	}

	.vh-reviews--with-awards:not(.vh-reviews--with-score) {
		grid-template-columns: minmax(0, 3fr) minmax(11rem, 1fr);
	}

	.vh-reviews--with-awards .vh-reviews__award-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.vh-reviews--with-awards .vh-reviews__list--n3 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Skin guestbook: giấy, tên viết tay. */
.vh-reviews--guestbook .vh-reviews__quote {
	border: 0;
	border-radius: 2px;
	background:
		repeating-linear-gradient(to bottom, transparent 0 calc(1.65em - 1px), var(--vh-color-border) calc(1.65em - 1px) 1.65em),
		var(--vh-color-surface-2, var(--vh-color-card));
	box-shadow: var(--vh-shadow-card);
}

.vh-reviews--guestbook .vh-reviews__text {
	font-family: var(--vh-font-accent, var(--vh-font-body));
	font-size: var(--vh-fs-lead);
}

.vh-reviews--guestbook .vh-reviews__meta {
	border-top: 0;
}

.vh-reviews--guestbook .vh-reviews__author {
	font-family: var(--vh-font-accent, var(--vh-font-heading));
	font-size: var(--vh-fs-lead);
	font-weight: var(--vh-fw-body);
}

/* Skin bubble: thẻ bo lớn có đuôi, điểm trong bong bóng tròn. */
.vh-reviews--bubble .vh-reviews__quote {
	position: relative;
	border-radius: 24px;
}

.vh-reviews--bubble .vh-reviews__qscore {
	min-height: 40px;
	padding: 4px 14px;
	background: var(--vh-color-fun-1, var(--vh-color-accent));
	color: var(--vh-color-text);
	font-weight: var(--vh-fw-bold);
}

.vh-reviews--bubble .vh-reviews__score {
	border-radius: 24px;
}
