/* =========================================================================
 * X3SALES DV Footer — element vhm_thm_footer
 * Khối "Footer liên hệ": ảnh nền tối + overlay, logo, cụm liên hệ (trái) +
 * bản đồ (phải), dòng kẻ + bản quyền dưới cùng.
 * Bản gốc dùng absolute px cố định; ở đây dựng bằng flex responsive.
 * Ảnh nền / màu / overlay đổ qua --thm-footer-* trên thẻ gốc.
 * Scope dưới .thm-footer → không ảnh hưởng phần còn lại của site.
 * ========================================================================= */

.thm-footer,
.thm-footer * {
	box-sizing: border-box;
}

.thm-footer {
	position: relative;
	width: 100%;
	padding: 36px 15px 24px;
	background-image: var(--thm-footer-bg, none);
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	background-attachment: scroll;
	overflow: hidden;
}

.thm-footer__overlay {
	position: absolute;
	inset: 0;
	background-color: var(--thm-footer-overlay, #010101);
	opacity: var(--thm-footer-overlay-op, 0.9);
	pointer-events: none;
}

.thm-footer__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	color: var(--thm-footer-text, #cccccc);
}

/* -------- Logo -------- */
.thm-footer__logo {
	width: 100px;
	height: 60px;
	margin-bottom: 24px;
	background-repeat: no-repeat;
	background-position: left center;
	background-size: contain;
}

/* -------- Thân: liên hệ (trái) + bản đồ (phải) -------- */
.thm-footer__body {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	align-items: flex-start;
}

.thm-footer__contact {
	flex: 1 1 0;
	min-width: 280px;
}

.thm-footer__company {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.4;
	color: var(--thm-footer-text, #cccccc);
	text-transform: uppercase;
}

.thm-footer__row {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin-bottom: 14px;
}

.thm-footer__icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	color: var(--thm-footer-text, #cccccc);
}

.thm-footer__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.thm-footer__phones {
	flex: 1 1 auto;
}

.thm-footer__row-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--thm-footer-text, #cccccc);
}

.thm-footer__phones .thm-footer__row-text + .thm-footer__row-text {
	margin-top: 4px;
}

/* -------- Bản đồ -------- */
.thm-footer__map {
	flex: 0 0 400px;
	max-width: 100%;
}

.thm-footer__map-title {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.4;
	color: var(--thm-footer-text, #cccccc);
	text-transform: uppercase;
}

.thm-footer__map-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 400 / 250;
}

.thm-footer__map-frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* -------- Đường kẻ + bản quyền -------- */
.thm-footer__divider {
	height: 1px;
	margin: 32px 0 16px;
	background-color: rgba(255, 255, 255, 0.1);
}

.thm-footer__copy {
	margin: 0;
	font-size: 12px;
	line-height: 1.2;
	color: var(--thm-footer-text, #cccccc);
	text-align: center;
}

/* -------- Mobile (< 768px): xếp dọc -------- */
@media (max-width: 767px) {
	.thm-footer {
		background-image: var(--thm-footer-bg-mobile, var(--thm-footer-bg, none));
		padding: 28px 14px 20px;
	}

	.thm-footer__body {
		flex-direction: column;
		gap: 24px;
	}

	.thm-footer__contact,
	.thm-footer__map {
		flex-basis: auto;
		width: 100%;
	}
}

/* -------------------------------------------------------------------------
 * Chế độ UX Builder ("chip viền builder"): các dòng hotline hiện thành chip
 * CÓ VIỀN để người dùng dễ nhìn/kéo-thả/sửa. Frontend giữ layout thật.
 * ---------------------------------------------------------------------- */
.thm-footer__builder-items {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.thm-footer__builder-note {
	margin: 0;
	color: var(--thm-footer-text, #cccccc);
	font-size: 13px;
	font-style: italic;
	opacity: 0.85;
}

.thm-footer__b-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border: 1px dashed rgba(255, 255, 255, 0.6);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
}

.thm-footer__b-tag {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--fs-color-primary, #264b9c);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.thm-footer__b-text {
	flex: 1 1 auto;
}
