/*
 * Tổng quan — Figma node 7:647 (1440×1747)
 * Toạ độ Figma: tiêu đề y=78, video y=420 (1064×596), khối thông tin y=1087 (1280 = 632 + 16 + 632).
 */

.vg-overview {
	position: relative;
	overflow: hidden;
	padding: 78px 16px 74px;
	background-color: var(--vg-color-bg-1);
}

/* Hoạ tiết vòng tròn sau tiêu đề */
.vg-overview__pattern {
	position: absolute;
	top: 43px;
	left: 50%;
	width: 267px;
	height: 267px;
	max-width: none;
	transform: translateX(-50%);
	pointer-events: none;
}

/* Tiêu đề + đoạn giới thiệu (gap 32) */
.vg-overview__header {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	text-align: center;
}

.vg-overview__title {
	margin: 0;
	color: var(--vg-color-primary);
	font-family: var(--vg-font-heading);
	font-size: var(--vg-h3-size);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.vg-overview__title > span {
	display: block;
}

/* 3 dòng chồng nhau như Figma: dòng chữ ký đè lên dòng 1 (−4px), dòng 3 đè lên dòng chữ ký (−12px) */
.vg-overview__title-script {
	margin-top: -4px;
	color: var(--vg-color-description-gold);
	font-family: var(--vg-font-subheading);
	letter-spacing: 0.04em;
}

.vg-overview__title-script + .vg-overview__title-line {
	margin-top: -12px;
}

.vg-overview__intro {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 830px;
	color: var(--vg-color-body-blue);
	font-family: var(--vg-font-body);
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: 0;
}

.vg-overview__intro p {
	margin: 0;
}

.vg-overview__intro strong {
	font-weight: 700;
}

/* Video 1064×596 */
.vg-overview__video {
	position: relative;
	max-width: 1064px;
	margin: 49px auto 0;
	aspect-ratio: 1064 / 596;
	background-color: #d9d9d9;
}

.vg-overview__video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background-color: #000;
}

/* Khối thông tin: 2 cột 632, căn đáy */
.vg-overview__info {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 632px));
	justify-content: center;
	align-items: end;
	gap: 16px;
	margin-top: 71px;
}

.vg-overview__facts {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-right: 48px;
}

/* Bảng thông số */
.vg-facts {
	margin: 0;
	font-family: var(--vg-font-body);
	font-size: 14px;
	line-height: 1.5;
}

.vg-facts__row {
	display: flex;
	gap: 8px;
	padding: 16px 12px 15px; /* Figma: hàng 53px đã gồm viền 1px */
	border-bottom: 1px solid rgba(163, 116, 98, 0.1);
}

.vg-facts dt {
	flex: 0 0 200px;
	color: var(--vg-color-primary);
	font-weight: 600;
	letter-spacing: -0.005em;
}

.vg-facts dd {
	flex: 1;
	margin: 0;
	color: var(--vg-color-description-blue);
}

/* Ô số liệu: lưới 3 cột, gap 16; hàng đầu cao 136 */
.vg-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vg-stats__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 8px 16px;
	border-radius: 8px;
	background-color: var(--vg-color-bg-2);
	line-height: 1.5;
}

.vg-stats__item:nth-child(-n + 3) {
	min-height: 136px;
}

.vg-stats__number {
	color: var(--vg-color-description-gold);
	font-family: var(--vg-font-heading);
	font-size: 36px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.vg-stats__label {
	color: var(--vg-color-description-blue);
	font-family: var(--vg-font-body);
	font-size: 14px;
}

/* Ảnh toàn cảnh 632×422.7 — phủ tối 40%, riêng khu đất dự án sáng + viền phát sáng */
.vg-overview__gallery {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.vg-aerial {
	position: relative;
}

/* Carousel (Fancyapps): khung 632×422.7 bo góc, mỗi slide phủ kín khung */
.vg-aerial__frame {
	--f-carousel-slide-width: 100%;
	--f-carousel-gap: 0px;

	position: relative;
	overflow: hidden;
	aspect-ratio: 632 / 422.735;
	border-radius: 13.262px;
	background-color: var(--vg-color-primary);
}

.vg-aerial__frame .f-carousel__viewport {
	height: 100%;
}

.vg-aerial__frame .f-carousel__slide {
	height: 100%;
	padding: 0;
}

.vg-aerial__slide {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}

/* Slide 1: phủ tối 40%, riêng khu đất dự án sáng + viền phát sáng */
.vg-aerial__shade {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: rgba(5, 15, 32, 0.4);
}

.vg-aerial__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* Chấm điều hướng: đặt trong khung, cách đáy 8px (mặc định thư viện đặt dưới khung + chừa margin 24px) */
.vg-aerial__frame {
	--f-carousel-dots-top: auto;
	--f-carousel-dots-bottom: 8px;
	--f-carousel-dot-opacity: 0.5;
}

.vg-aerial__frame.has-dots {
	margin-bottom: 0;
}

.vg-aerial__frame .f-carousel__dots {
	color: #fff;
}

/* Khung khu đất: x=182.975 y=172.985, 287.081×181.281 trên khung 632×422.735 */
.vg-aerial__plot,
.vg-aerial__glow,
.vg-aerial__outline {
	position: absolute;
	z-index: 1;
	max-width: none;
	pointer-events: none;
}

.vg-aerial__plot {
	left: 28.952%;
	top: 40.92%;
	width: 45.424%;
	height: 42.883%;
	overflow: hidden;
	-webkit-mask: url("../images/overview/plot-mask.svg") 0 0 / 100% 100% no-repeat;
	mask: url("../images/overview/plot-mask.svg") 0 0 / 100% 100% no-repeat;
}

/* Ảnh bên trong khớp đúng vị trí ảnh nền */
.vg-aerial__plot img {
	position: absolute;
	left: -63.737%;
	top: -95.424%;
	width: 220.15%;
	height: 233.19%;
	max-width: none;
	object-fit: cover;
}

.vg-aerial__glow {
	left: calc(28.952% - 45.424% * 0.0318);
	top: calc(40.92% - 42.883% * 0.0503);
	width: calc(45.424% * 1.0636);
	height: calc(42.883% * 1.1006);
}

.vg-aerial__outline {
	left: calc(28.952% - 45.424% * 0.0015);
	top: calc(40.92% - 42.883% * 0.0023);
	width: calc(45.424% * 1.0029);
	height: calc(42.883% * 1.0046);
}

/* Huy hiệu G — chồm ra ngoài góc trái trên ảnh (−34, −13) */
.vg-badge {
	position: absolute;
	top: -13px;
	left: -34px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 127px;
	height: 127px;
	border-radius: 50%;
	background: url("../images/overview/badge-circle.svg") center / 100% 100% no-repeat;
	box-shadow:
		0 6px 14px rgba(0, 0, 0, 0.3),
		inset 0 -6px 12px rgba(0, 0, 0, 0.2),
		inset 0 3px 6px rgba(255, 255, 255, 0.25);
}

.vg-badge img {
	width: 83.853px;
	height: 83.038px;
	max-width: none;
	transform: translate(0.08px, -0.03px);
}

/* 3 ảnh nhỏ 200×147 = slide 2–4, bấm để chuyển slide */
.vg-thumbs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.vg-thumbs__item {
	position: relative;
	display: block;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 8px;
	background: none;
	cursor: pointer;
}

.vg-thumbs__item::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid transparent;
	border-radius: inherit;
	transition: border-color 0.3s ease;
}

.vg-thumbs__item.is-active::after {
	border-color: var(--vg-color-description-gold);
}

.vg-thumbs__item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 200 / 147;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.vg-thumbs__item:hover img {
	transform: scale(1.06);
}

.vg-thumbs__item:nth-child(3) img {
	object-position: bottom;
}

/* Tablet: khối thông tin xếp chồng */
@media (max-width: 1199.98px) {
	.vg-overview__info {
		grid-template-columns: minmax(0, 632px);
		gap: 48px;
	}

	.vg-overview__facts {
		order: 2;
		padding-right: 0;
	}
}

@media (max-width: 689.98px) {
	.vg-overview {
		padding-top: 56px;
	}

	.vg-overview__video {
		margin-top: 32px;
	}

	.vg-overview__info {
		margin-top: 48px;
	}

	.vg-facts dt {
		flex-basis: 120px;
	}

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

	.vg-stats__item:nth-child(-n + 3) {
		min-height: 0;
	}

	.vg-badge {
		top: -16px;
		left: -8px;
		transform: scale(0.6);
		transform-origin: top left;
	}
}
