/* ==========================================================================
   04 — VỊ TRÍ (Tâm điểm kết nối — Một địa chỉ Bốn mặt tiền)
   Bản đồ 3D Master quy hoạch toàn khu Phú Mỹ Hưng 2.0 (map.svg: vitri.jpg & vitri-icon.png)
   Màu nền: #F4ECE1 (Ivory Cream đồng điệu hoàn hảo với nền tranh phối cảnh)
   Bố cục: Cụm nội dung neo tại khoảng trời góc trên bên trái (Top-Left)
   ========================================================================== */

.tc-location,
section.tc-section.tc-location {
	background-color: #F4ECE1 !important;
	position: relative;
	width: 100%;
	max-width: 100%;
	min-height: 100vh;
	margin: 0 !important;
	padding: 0 !important;
	border-top: 1px solid rgba(197, 155, 39, 0.2);
	border-bottom: 1px solid rgba(197, 155, 39, 0.2);
	overflow: hidden;
	will-change: transform;
	transform: translateZ(0);
}

/* Khung hiển thị Stage toàn cảnh */
.tc-location__stage {
	position: relative;
	width: 100%;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #F4ECE1 !important;
	overflow: hidden;
}

/* Khung chứa Bản đồ 3D SVG */
.tc-location__map-wrap {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #F4ECE1 !important;
}

.tc-location__svg {
	width: 100%;
	min-width: 100%;
	height: 100%;
	min-height: 100vh;
	display: block;
	background-color: #F4ECE1;
	transform-origin: center center;
}

/* Lớp 1: Bản đồ 3D Master quy hoạch */
.tc-location__map-img {
	width: 2560px;
	height: 1440px;
	display: block;
	will-change: transform, opacity;
}

/* Lớp 2: Biểu tượng mô hình 3D Triton Crown kèm biển ghim */
.tc-location__pin-anim {
	transform-origin: 153px 259px;
	will-change: transform, opacity, filter;
	cursor: pointer;
}

.tc-location__icon-img {
	filter: drop-shadow(0 12px 24px rgba(11, 30, 54, 0.3));
	transition: filter 0.35s ease;
}

.tc-location__pin-anim:hover .tc-location__icon-img {
	filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.9)) 
	        drop-shadow(0 0 30px rgba(197, 155, 39, 0.75)) !important;
}

/* Lớp 4-7: 4 Tuyến đường */
.tc-location__road-anim {
	transform-origin: 50% 50%;
	will-change: transform, opacity, filter;
	cursor: pointer;
}

.tc-location__road-anim image {
	filter: drop-shadow(0 4px 14px rgba(11, 30, 54, 0.25));
	transition: filter 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hiệu ứng TỎA SÁNG VÀNG KIM KHI HOVER — Xử lý thuần CSS không đổi transform để tránh nhảy tọa độ */
.tc-location__road-anim:hover image,
.tc-location__road-anim:focus image {
	filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.95)) 
	        drop-shadow(0 0 25px rgba(212, 175, 55, 0.85)) 
	        drop-shadow(0 0 38px rgba(255, 230, 128, 0.6)) !important;
}

/* --------------------------------------------------------------------------
   CỤM NỘI DUNG: Neo tại vùng trời góc trên bên trái của bức tranh
   -------------------------------------------------------------------------- */
.tc-location__content {
	position: absolute;
	top: clamp(6.5rem, 13vh, 8.5rem);
	left: clamp(2.2rem, 5vw, 6rem);
	max-width: clamp(520px, 42vw, 750px);
	z-index: 10;
	pointer-events: auto;
	will-change: transform, opacity;
}

.tc-location__eyebrow {
	font-family: var(--font-heading, 'Trajan Pro 3', Georgia, serif) !important;
	font-size: clamp(0.75rem, 0.7rem + 0.15vw, 0.88rem);
	font-weight: 700;
	letter-spacing: 0.18em;
	color: #B38615 !important;
	text-transform: uppercase;
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.75rem !important;
	margin-bottom: clamp(0.4rem, 0.7vh, 0.7rem);
}

.tc-location__eyebrow::before {
	content: '';
	display: inline-block;
	width: 26px;
	height: 2px;
	background: #B38615 !important;
	vertical-align: middle !important;
	transform: translateY(-1px);
}

.tc-location__title {
	margin: 0 0 clamp(0.9rem, 1.8vh, 1.4rem) !important;
	line-height: 1.2 !important;
}

.tc-location__title .tc-title-sub {
	display: block;
	font-family: var(--font-heading, 'Trajan Pro 3', Georgia, serif) !important;
	font-size: clamp(1.15rem, 0.95rem + 0.5vw, 1.65rem);
	font-weight: 700;
	color: var(--tc-heading, #0B1E36) !important;
	letter-spacing: 0.08em;
	line-height: 1.2 !important;
	margin-bottom: 0.2rem !important;
	white-space: nowrap;
}

.tc-location__title .tc-title-main {
	display: block;
	font-family: var(--font-heading, 'Trajan Pro 3', Georgia, serif) !important;
	font-size: clamp(1.35rem, 1.15rem + 0.75vw, 2.05rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	background: linear-gradient(135deg, #B38615 0%, #D4AF37 50%, #8C6810 100%) !important;
	-webkit-background-clip: text !important;
	-webkit-text-fill-color: transparent !important;
	color: #D4AF37 !important;
	margin-top: 0 !important;
	line-height: 1.22 !important;
	white-space: nowrap;
}

/* Danh sách 4 con đường mặt tiền: CHỈ HIỂN THỊ TRÊN MOBILE */
.tc-location__roads {
	display: none !important;
}

.tc-location__road-item {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-body, 'Montserrat', sans-serif);
	font-size: clamp(0.78rem, 0.72rem + 0.18vw, 0.88rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #0B1E36;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(197, 155, 39, 0.45);
	padding: 0.38rem 0.85rem;
	border-radius: 999px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0 2px 8px rgba(11, 30, 54, 0.04);
	transition: all 0.3s ease;
}

.tc-location__road-item::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #D4AF37;
	margin-right: 0.5rem;
	flex-shrink: 0;
}

.tc-location__road-item:hover {
	background: #FFFFFF;
	border-color: #B38615;
	box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* Đoạn văn bản mô tả vị trí */
.tc-location__desc {
	font-family: var(--font-body, 'Montserrat', sans-serif);
	font-size: clamp(0.95rem, 0.88rem + 0.22vw, 1.06rem);
	line-height: 1.62;
	color: var(--tc-body);
	margin-top: 0;
	max-width: 560px;
}

/* Dấu ngắt dòng: Chỉ ngắt trên Desktop, trên Mobile ẩn đi để văn bản không bị xuống hàng */
.tc-location__br-desktop {
	display: inline;
}

/* Khung bọc bản đồ & canvas: Desktop giữ display: contents để không can thiệp layout gốc */
.tc-location__map-box,
.tc-location__map-canvas {
	display: contents;
}

/* Huy hiệu hướng dẫn, controls và toast: Mặc định ẩn trên Desktop */
.tc-location__map-hint,
.tc-location__map-controls,
.tc-location__map-two-finger-toast {
	display: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN: TABLET & MOBILE (< 992px)
   ========================================================================== */
@media (max-width: 991px) {
	.tc-location,
	section.tc-section.tc-location {
		width: 100%;
		height: auto !important;
		min-height: auto !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.tc-location__stage {
		height: auto !important;
		min-height: auto !important;
		max-height: none !important;
		flex-direction: column;
		padding: clamp(1.6rem, 3.2vh, 2.2rem) 0 0 !important;
		overflow: visible !important;
	}

	/* Cụm nội dung định vị PHÍA TRÊN map trên mobile */
	.tc-location__content {
		position: static;
		width: 100%;
		max-width: 100%;
		padding: 0 clamp(1.2rem, 4vw, 2.2rem) 0.85rem !important;
		box-sizing: border-box;
		order: 1;
	}

	/* Hiển thị 4 con đường thành chính xác 2 dòng (2 cột x 2 hàng) trên Mobile */
	.tc-location__roads {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 0.5rem 0.6rem !important;
		margin: 0 0 0.75rem !important;
		padding: 0 !important;
		list-style: none !important;
		width: 100% !important;
		max-width: 480px !important;
		will-change: transform, opacity;
	}

	.tc-location__road-item {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: flex-start !important;
		font-size: clamp(0.68rem, 2.5vw, 0.78rem) !important;
		font-weight: 600 !important;
		letter-spacing: 0.02em !important;
		text-transform: uppercase !important;
		color: #0B1E36 !important;
		background: rgba(255, 255, 255, 0.85) !important;
		border: 1px solid rgba(197, 155, 39, 0.45) !important;
		padding: 0.38rem 0.55rem !important;
		border-radius: 999px !important;
		backdrop-filter: blur(6px) !important;
		-webkit-backdrop-filter: blur(6px) !important;
		box-shadow: 0 2px 8px rgba(11, 30, 54, 0.04) !important;
		white-space: nowrap !important;
		box-sizing: border-box !important;
		width: 100% !important;
		will-change: transform, opacity;
	}

	.tc-location__road-item::before {
		content: '' !important;
		display: inline-block !important;
		width: 5px !important;
		height: 5px !important;
		border-radius: 50% !important;
		background: #D4AF37 !important;
		margin-right: 0.4rem !important;
		flex-shrink: 0 !important;
	}

	.tc-location__desc {
		max-width: 100%;
		padding-top: 4px !important;
		margin-bottom: 0.75rem !important;
	}

	/* Mobile: ẩn dấu ngắt dòng để nội dung liền mạch không bị xuống hàng cụt */
	.tc-location__br-desktop {
		display: none !important;
	}

	/* Map quy hoạch nằm PHÍA DƯỚI nội dung: Container bọc ngoài (bỏ border-top) */
	.tc-location__map-box {
		display: block !important;
		position: relative !important;
		width: 100% !important;
		order: 2 !important;
		background-color: #F4ECE1 !important;
		border-top: none !important;
		border-bottom: 1px solid rgba(197, 155, 39, 0.2);
		overflow: visible !important;
		touch-action: pan-y !important;
		margin-top: 0 !important;
	}

	/* Viewport map: overflow: hidden và touch-action: pan-y để 1 ngón tay cuộn trang thoải mái không bị kẹt */
	.tc-location__map-wrap {
		display: block !important;
		position: relative !important;
		width: 100% !important;
		height: clamp(440px, 60vh, 520px) !important;
		min-height: 440px !important;
		max-height: 520px !important;
		overflow: hidden !important;
		touch-action: pan-y !important;
		background-color: #F4ECE1 !important;
		margin: 0 !important;
		padding: 0 !important;
		border: none !important;
		user-select: none !important;
		-webkit-user-select: none !important;
		-webkit-touch-callout: none !important;
	}

	/* Canvas bản đồ di chuyển và zoom mượt bằng GPU transform */
	.tc-location__map-canvas {
		display: block !important;
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		width: 2560px !important;
		height: 1440px !important;
		transform-origin: 0 0 !important;
		will-change: transform !important;
		user-select: none !important;
		-webkit-user-select: none !important;
	}

	.tc-location__svg {
		width: 2560px !important;
		min-width: 2560px !important;
		max-width: none !important;
		height: 1440px !important;
		min-height: 1440px !important;
		max-height: none !important;
		display: block !important;
		flex-shrink: 0 !important;
		pointer-events: none !important;
		user-select: none !important;
		-webkit-user-drag: none !important;
	}

	/* Controls Zoom In / Zoom Out / Reset View: Nhỏ lại 30%, xếp ngang và cách xa cụm nội dung */
	.tc-location__map-controls {
		display: inline-flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 8px !important;
		position: absolute !important;
		top: 10px !important;
		right: 14px !important;
		z-index: 20 !important;
		pointer-events: auto !important;
	}

	.tc-location__zoom-btn {
		width: 25px !important;
		height: 25px !important;
		border-radius: 50% !important;
		background: rgba(11, 30, 54, 0.85) !important;
		border: 1px solid rgba(212, 175, 55, 0.5) !important;
		color: #D4AF37 !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		padding: 0 !important;
		cursor: pointer !important;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
		backdrop-filter: blur(8px) !important;
		-webkit-backdrop-filter: blur(8px) !important;
		transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease !important;
		-webkit-tap-highlight-color: transparent !important;
	}

	.tc-location__zoom-btn svg {
		width: 12px !important;
		height: 12px !important;
		stroke-width: 2.2 !important;
	}

	.tc-location__zoom-btn:active {
		transform: scale(0.9) !important;
		background: rgba(212, 175, 55, 0.95) !important;
		color: #0B1E36 !important;
	}

	/* Toast nhắc nhở khi lướt 1 ngón tay */
	.tc-location__map-two-finger-toast {
		position: absolute !important;
		top: 50% !important;
		left: 50% !important;
		transform: translate(-50%, -50%) !important;
		z-index: 25 !important;
		padding: 10px 18px !important;
		border-radius: 12px !important;
		background: rgba(11, 30, 54, 0.88) !important;
		border: 1px solid rgba(212, 175, 55, 0.6) !important;
		color: #FAF5E9 !important;
		font-family: var(--font-body, 'Montserrat', sans-serif) !important;
		font-size: 0.8rem !important;
		font-weight: 500 !important;
		text-align: center !important;
		backdrop-filter: blur(10px) !important;
		-webkit-backdrop-filter: blur(10px) !important;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
		pointer-events: none !important;
		opacity: 0 !important;
		visibility: hidden !important;
		transition: opacity 0.3s ease, visibility 0.3s ease !important;
		max-width: 82% !important;
		white-space: normal !important;
		line-height: 1.4 !important;
	}

	.tc-location__map-two-finger-toast.is-visible {
		opacity: 1 !important;
		visibility: visible !important;
	}

	/* Huy hiệu hướng dẫn tương tác chạm & vuốt cố định ở đáy viewport bản đồ */
	.tc-location__map-hint {
		display: inline-flex !important;
		align-items: center !important;
		gap: 7px !important;
		position: absolute !important;
		bottom: 14px !important;
		left: 50% !important;
		transform: translateX(-50%) !important;
		z-index: 15 !important;
		padding: 7px 15px !important;
		border-radius: 999px !important;
		background: rgba(11, 30, 54, 0.82) !important;
		border: 1px solid rgba(212, 175, 55, 0.45) !important;
		backdrop-filter: blur(8px) !important;
		-webkit-backdrop-filter: blur(8px) !important;
		color: #FAF5E9 !important;
		font-family: var(--font-body, 'Montserrat', sans-serif) !important;
		font-size: 0.75rem !important;
		font-weight: 500 !important;
		letter-spacing: 0.03em !important;
		pointer-events: none !important;
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
		transition: opacity 0.4s ease, visibility 0.4s ease !important;
		white-space: nowrap !important;
	}

	.tc-location__map-hint svg {
		color: #D4AF37 !important;
		flex-shrink: 0 !important;
		animation: tcPulsePan 2.2s infinite ease-in-out !important;
	}

	.tc-location__map-hint.is-hidden {
		opacity: 0 !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}

	@keyframes tcPulsePan {
		0%, 100% {
			transform: scale(1);
		}
		50% {
			transform: scale(1.18);
		}
	}
}

@media (max-width: 576px) {
	.tc-location__title .tc-title-sub {
		font-size: 1.15rem !important;
		line-height: 1.2 !important;
		margin-bottom: 0.1rem !important;
		white-space: normal !important;
	}

	.tc-location__title .tc-title-main {
		font-size: 1.45rem !important;
		line-height: 1.2 !important;
		margin-top: -2px !important;
		white-space: normal !important;
	}

	.tc-location__roads {
		gap: 0.45rem 0.45rem !important;
		margin-bottom: 1.15rem !important;
	}

	.tc-location__road-item {
		font-size: clamp(0.64rem, 2.3vw, 0.74rem) !important;
		padding: 0.35rem 0.4rem !important;
		letter-spacing: 0.01em !important;
	}
}

/* ==========================================================================
   2K SCREENS (QHD / 2560x1440 & Ultra-wides)
   ========================================================================== */
@media (min-width: 2048px) {
	.tc-location__content {
		top: clamp(8.5rem, 14vh, 12rem);
		left: 7.5rem;
		max-width: 1100px;
	}

	.tc-location__title .tc-title-sub {
		font-size: clamp(1.6rem, 1.3vw, 2.1rem);
		white-space: nowrap;
	}

	.tc-location__title .tc-title-main {
		font-size: clamp(1.9rem, 1.6vw, 2.6rem);
		white-space: nowrap;
	}

	.tc-location__desc {
		font-size: 1.25rem;
		max-width: 780px;
	}
}

/* ==========================================================================
   4K SCREENS (UHD / 3840x2160)
   ========================================================================== */
@media (min-width: 3200px) {
	.tc-location__content {
		top: clamp(10rem, 14vh, 15rem);
		left: 9rem;
		max-width: 1450px;
	}

	.tc-location__title .tc-title-sub {
		font-size: clamp(2.0rem, 1.6vw, 2.6rem);
		white-space: nowrap;
	}

	.tc-location__title .tc-title-main {
		font-size: clamp(2.5rem, 2.0vw, 3.4rem);
		white-space: nowrap;
	}

	.tc-location__desc {
		font-size: 1.45rem;
		max-width: 950px;
	}
}
