/* =========================================================
   TỈNH THÀNH VN — THEME STYLES
   Font: Be Vietnam Pro (nội dung) + Baloo 2 (tiêu đề)
   ========================================================= */

:root {
	--ttvn-header-h: 64px; /* fallback, JS ghi đè bằng chiều cao thật của .site-header */
	--font-body: 'Be Vietnam Pro', system-ui, sans-serif;
	--font-display: 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif;

	--c-blue: #2563eb;
	--c-sky: #0ea5e9;
	--c-cyan: #06b6d4;
	--c-green: #16a34a;
	--c-orange: #ea580c;
	--c-amber: #f59e0b;
	--c-pink: #db2777;
	--c-red: #dc2626;
	--c-purple: #9333ea;
	--c-gray-700: #374151;
	--c-gray-500: #6b7280;
	--container-max: 1280px;
}

html { scroll-behavior: smooth; }
body {
	font-family: var(--font-body);
	color: #1f2937;
	background: #f4f6f9;
	line-height: 1.5;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 16px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Gradient chữ động — chữ ký thị giác của trang: dải màu chạy ngang qua các từ khoá quan trọng */
.text-gradient {
	background: linear-gradient(90deg, var(--c-cyan), var(--c-blue), var(--c-green), var(--c-cyan));
	background-size: 300% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: ttvn-gradient-move 6s linear infinite;
}
@keyframes ttvn-gradient-move {
	0% { background-position: 0% 50%; }
	100% { background-position: 300% 50%; }
}
@media (prefers-reduced-motion: reduce) {
	.text-gradient { animation: none; }
}
.text-gradient-static {
	background: linear-gradient(90deg, var(--c-blue), var(--c-green));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.85);
	backdrop-filter: blur(6px);
	box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.site-header .container {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; padding-top: 10px; padding-bottom: 10px;
}
.site-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.site-logo img { width: 36px; height: 36px; border-radius: 8px; }
.site-logo span {
	font-family: var(--font-display); font-weight: 700; font-size: 22px;
}

.primary-nav { display: none; flex: 1; align-items: center; justify-content: center; gap: 28px; }
.primary-nav > a {
	font-weight: 700; text-decoration: none; color: var(--c-gray-700);
	white-space: nowrap; transition: color .2s;
}
.primary-nav > a.is-accent { color: var(--c-blue); }
.primary-nav > a.is-highlight { color: var(--c-red); }
.primary-nav > a:hover { color: var(--c-blue); }

.header-cta { display: none; }
.btn-search-header {
	display: flex; align-items: center; gap: 6px;
	background: var(--c-blue); color: #fff; border: none; border-radius: 8px;
	padding: 9px 16px; font-weight: 600; text-decoration: none; font-size: 14px;
}
.header-search-pill {
	display: flex; align-items: center; gap: 8px;
	border: 1.5px solid transparent;
	background: linear-gradient(#fff,#fff) padding-box, linear-gradient(90deg, var(--c-cyan), var(--c-blue)) border-box;
	border-radius: 999px; padding: 7px 8px 7px 16px; min-width: 260px;
}
.header-search-pill svg:first-child { color: var(--c-cyan); flex-shrink: 0; }
.header-search-pill input {
	border: none; outline: none; font-size: 13.5px; flex: 1; min-width: 0; background: transparent;
}
.header-search-pill button {
	display: flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%; border: none; flex-shrink: 0;
	background: linear-gradient(135deg, var(--c-cyan), var(--c-blue)); color: #fff; cursor: pointer;
}

.mobile-menu-btn {
	background: none; border: none; padding: 8px; color: var(--c-gray-700); display: block;
}
@media (min-width: 1024px) {
	.mobile-menu-btn { display: none; }
	.primary-nav { display: flex; }
	.header-cta { display: block; }
}

/* Mega menu (dropdown desktop) */
.mega-menu-wrap { position: relative; }
.mega-menu-trigger {
	display: flex; align-items: center; gap: 4px; background: none; border: none;
	font-weight: 700; color: var(--c-gray-700); font-size: 16px; padding: 4px 0;
}
.mega-menu-panel {
	position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
	width: 880px; max-width: 90vw; background: #fff; border: 1px solid #e5e7eb;
	border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.12);
	padding: 24px; display: none; z-index: 60; margin-top: 10px;
}
.mega-menu-wrap:hover .mega-menu-panel,
.mega-menu-wrap:focus-within .mega-menu-panel { display: block; }
.mega-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mega-menu-col h3 {
	font-size: 14px; font-weight: 700; color: #1f2937; padding-bottom: 8px;
	margin-bottom: 8px; border-bottom: 1px solid #e5e7eb;
	display: flex; align-items: center; gap: 6px;
}
.mega-menu-col h3 svg { width: 16px; height: 16px; color: var(--c-green); flex-shrink: 0; }
.mega-menu-col a {
	display: block; padding: 4px 0; text-decoration: none; color: var(--c-orange);
	font-weight: 600; font-size: 14px;
}
.mega-menu-col a:hover { text-decoration: underline; }

/* Menu mobile (off-canvas) */
.mobile-nav {
	position: fixed; inset: 0; z-index: 100; display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.mobile-nav-panel {
	position: absolute; top: 0; left: 0; width: 320px; max-width: 85vw; height: 100%;
	background: #fff; overflow-y: auto; box-shadow: 4px 0 20px rgba(0,0,0,.15);
}
.mobile-nav-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px; border-bottom: 1px solid #e5e7eb;
}
.mobile-nav-panel a, .mobile-nav-panel .region-toggle {
	display: block; width: 100%; text-align: left; background: none; border: none;
	padding: 12px 16px; text-decoration: none; color: #374151; font-weight: 600; font-size: 15px;
}
.mobile-nav-panel .region-toggle { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav-panel .region-sub { display: none; padding-left: 12px; }
.mobile-nav-panel .region-sub.is-open { display: block; }
.mobile-nav-panel .region-sub a { padding: 8px 16px; font-weight: 500; font-size: 14px; color: #4b5563; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
	position: relative; overflow: hidden;
	background: linear-gradient(120deg, #0ea5e9 0%, #22c55e 100%);
	padding: 48px 0 64px;
}
.hero::before, .hero::after {
	content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
	background: rgba(255,255,255,.35); filter: blur(60px);
}
.hero::before { top: -120px; right: -80px; }
.hero::after { bottom: -140px; left: -100px; background: rgba(255,255,255,.25); }

.hero-inner {
	position: relative; z-index: 1; display: flex; flex-direction: column; gap: 32px;
}
.hero-content {
	background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,255,255,.8));
	border-radius: 16px; padding: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.06);
	flex: 1;
}
.hero-badge {
	display: inline-block; background: var(--c-orange); color: #fff; font-weight: 700;
	padding: 5px 16px; border-radius: 999px; font-size: 15px; margin-bottom: 16px;
}
.hero-title {
	font-size: 32px; font-weight: 800; line-height: 1.15; margin-bottom: 10px;
}
.hero-title .lead { color: #0369a1; }
.hero-title a { text-decoration: none; }
.hero-subtitle { font-size: 16px; color: #374151; margin-bottom: 20px; }
.hero-subtitle strong { color: var(--c-blue); }

.hero-search { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.hero-search-input {
	flex: 1; min-width: 220px; position: relative;
}
.hero-search-input svg {
	position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #9ca3af;
	width: 20px; height: 20px;
}
.hero-search-input input {
	width: 100%; height: 52px; border-radius: 10px; border: 2px solid #93c5fd;
	padding: 0 16px 0 44px; font-size: 16px; background: #fff;
}
.hero-search-input input:focus { outline: none; border-color: var(--c-amber); }
.hero-select {
	height: 52px; min-width: 190px; border-radius: 10px; border: 2px solid #93c5fd;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
	padding: 0 36px 0 14px; font-size: 15px; appearance: none;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.hero-tag {
	border: 1px solid #d1d5db; background: #fff; border-radius: 8px;
	padding: 7px 16px; font-size: 14px; font-weight: 600; text-decoration: none; color: #374151;
	transition: .2s;
}
.hero-tag:hover { background: var(--c-orange); color: #fff; border-color: var(--c-orange); }

.stats-grid {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.stat-card {
	display: flex; align-items: flex-start; gap: 10px; padding: 14px;
	border-radius: 12px; border: 1px solid rgba(0,0,0,.05); box-shadow: 0 1px 4px rgba(0,0,0,.05);
	transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.stat-card svg { width: 26px; height: 26px; flex-shrink: 0; }
.stat-card .stat-label { font-size: 13px; color: #4b5563; margin-bottom: 2px; }
.stat-card .stat-value { font-size: 24px; font-weight: 800; line-height: 1; }
.stat-card .stat-unit { font-size: 13px; font-weight: 500; margin-left: 4px; }

@media (min-width: 1280px) {
	.hero-inner { flex-direction: row; align-items: stretch; }
	.hero-content { flex: 1.2; }
	.stats-grid { width: 560px; grid-template-columns: repeat(2, 1fr); align-self: center; }
}

/* =========================================================
   SECTION CHUNG
   ========================================================= */
.section { padding: 56px 0; }
.section-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
	margin-bottom: 32px; flex-wrap: wrap;
}
.section-eyebrow {
	display: inline-flex; align-items: center; gap: 6px; background: #ffedd5; color: var(--c-orange);
	font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
	padding: 5px 14px; border-radius: 999px; margin-bottom: 10px;
}
.section-title { font-size: 28px; font-weight: 800; color: var(--c-orange); }
.section-subtitle { color: #6b7280; margin-top: 4px; }
.section-link {
	display: inline-flex; align-items: center; gap: 6px; color: var(--c-blue); font-weight: 700;
	text-decoration: none; white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* Swiper (carousel) tuỳ biến điều hướng để giống bản gốc */
.ttvn-swiper { padding-bottom: 44px !important; }
.ttvn-swiper .swiper-pagination-bullet-active { background: var(--c-orange); }
.ttvn-swiper-nav {
	width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15);
	display: flex; align-items: center; justify-content: center; color: var(--c-blue); cursor: pointer;
}

/* Province card (carousel nổi bật) */
.province-card {
	background: rgba(255,255,255,.92); border-radius: 14px; overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: box-shadow .3s, transform .3s; height: 100%;
	display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.province-card:hover { box-shadow: 0 14px 30px rgba(0,0,0,.15); transform: translateY(-3px); }
.province-card-media {
	position: relative; height: 190px; overflow: hidden;
	display: flex; align-items: flex-end;
}
.province-card-media .media-fallback {
	position: absolute; inset: 0;
}
.province-card-media .overlay {
	position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,.85), rgba(15,23,42,.15));
}
.province-card-media .media-text { position: relative; z-index: 1; padding: 14px 16px; color: #fff; }
.province-card-media h3 { font-size: 20px; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.province-card-media p { font-size: 13px; opacity: .9; margin-top: 2px; }

.province-card-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.province-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 14px; }
.province-stats-grid .full { grid-column: 1 / -1; }
.province-stats-grid .label { font-size: 11px; color: #9ca3af; margin-bottom: 2px; }
.province-stats-grid .value { font-weight: 700; }
.province-stats-grid .grdp { color: var(--c-orange); font-weight: 700; }
.btn-detail {
	margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px;
	background: var(--c-blue); color: #fff; border: none; border-radius: 8px;
	padding: 10px; font-weight: 700; font-size: 14px; text-decoration: none;
}
.province-card:hover .btn-detail { background: #0369a1; }

/* Banner sáp nhập (ảnh lớn) */
.banner-section { background: linear-gradient(120deg, var(--c-cyan), var(--c-blue)); padding: 56px 0; }
.banner-frame {
	max-width: 900px; margin: 0 auto; border-radius: 16px; overflow: hidden;
	box-shadow: 0 12px 40px rgba(0,0,0,.2); display: block; border: 4px solid transparent; transition: border-color .3s;
	text-decoration: none;
}
.banner-frame:hover { border-color: #93c5fd; }
.banner-frame img { width: 100%; height: auto; display: block; }

/* Bản đồ */
.map-section { background: linear-gradient(120deg, #fce7f3, #fef9c3); padding: 64px 0; }
.map-heading { text-align: center; margin-bottom: 32px; }
.map-heading h2 { font-size: 34px; font-weight: 800; margin-bottom: 8px; }
.map-heading p { color: #4b5563; font-size: 17px; }
.map-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.map-canvas-wrap {
	background: #fff; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.1);
	overflow: hidden; border: 1px solid #e5e7eb;
	display: flex; flex-direction: column;
}
#ttvn-leaflet-map { width: 100%; height: 520px; background: #e5e7eb; flex: none; }
@media (min-width: 1024px) {
	.map-grid { grid-template-columns: 1fr 400px; align-items: start; }
	.map-canvas-wrap { /* chiều cao được JS set động theo select-panel */ }
	#ttvn-leaflet-map { flex: 1; height: 0; min-height: 400px; }
}
/* Loading overlay cho bản đồ trang chủ */
.map-loading-overlay {
	position: absolute; inset: 0; z-index: 500;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: #f9fafb; gap: 14px; transition: opacity .25s;
}
.map-loading-overlay.hidden { opacity: 0; pointer-events: none; }
.map-loading-spinner {
	width: 36px; height: 36px; border-radius: 50%;
	border: 3px solid #e5e7eb; border-top-color: var(--c-blue);
	animation: map-spin .7s linear infinite;
}
@keyframes map-spin { to { transform: rotate(360deg); } }
.map-loading-overlay p { font-size: 14px; color: #6b7280; margin: 0; }
.map-canvas-wrap { position: relative; }

.select-panel { display: flex; flex-direction: column; gap: 16px; }

.select-card {
	background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.select-card h4 {
	display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800;
	color: #1f2937; margin-bottom: 14px;
}
.select-card h4 svg { color: var(--c-blue); }
.select-card-label { font-size: 12px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 8px; }
.select-card-label:first-of-type { margin-top: 0; }

.quick-select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-select-btn {
	border: 1px solid #e5e7eb; background: #f9fafb; border-radius: 8px;
	padding: 9px 10px; font-size: 14px; font-weight: 600; color: #374151; transition: .15s;
}
.quick-select-btn:hover { border-color: var(--c-blue); color: var(--c-blue); }
.quick-select-btn.is-active { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }

.province-select {
	width: 100%; height: 44px; border-radius: 8px; border: 1px solid #e5e7eb;
	padding: 0 12px; font-size: 14px; background: #fff; color: #374151;
}

/* Thẻ chi tiết tỉnh (cập nhật động qua JS khi chọn tỉnh) */
.detail-card {
	background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06);
	min-height: 120px;
}
.detail-media {
	height: 140px; display: flex; align-items: flex-end; padding: 14px 18px; position: relative;
}
.detail-media span { color: #fff; font-weight: 800; font-size: 20px; text-shadow: 0 2px 8px rgba(0,0,0,.35); }
.detail-body { padding: 16px 18px 18px; }
.detail-body h3 { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.detail-region { font-size: 13px; color: #6b7280; margin-bottom: 14px; }

.detail-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.detail-stat { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 10px; }
.detail-stat .di { width: 22px; height: 22px; flex-shrink: 0; }
.detail-stat .di svg { width: 100%; height: 100%; }
.detail-stat .dl { font-size: 11px; color: #6b7280; margin-bottom: 1px; }
.detail-stat .dv { font-size: 15px; font-weight: 800; }
.detail-stat .dv small { font-size: 11px; font-weight: 500; color: #6b7280; }

.detail-footer {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	border-top: 1px solid #f1f5f9; padding-top: 14px; flex-wrap: wrap;
}
.detail-footer .dl { font-size: 11px; color: #9ca3af; }
.detail-footer strong { font-size: 14px; }
.btn-xem-them {
	background: var(--c-blue); color: #fff; text-decoration: none; font-weight: 700;
	font-size: 13px; padding: 8px 16px; border-radius: 8px; white-space: nowrap;
}

@media (min-width: 1024px) {
	.map-grid { grid-template-columns: 2fr 1fr; align-items: stretch; }
}

/* Biểu đồ thống kê */
.chart-section { background: linear-gradient(120deg, #fef08a, #fcd34d); padding: 64px 0; }
.chart-title {
	text-align: center; font-size: 30px; font-weight: 800; margin-bottom: 28px;
	background: linear-gradient(90deg, var(--c-amber), var(--c-pink));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.chart-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chart-tab {
	display: flex; align-items: center; gap: 6px; border: none; border-radius: 10px;
	padding: 10px 18px; font-weight: 700; font-size: 14px; background: #fff; color: #6b7280;
}
.chart-tab.is-active.tab-area { background: #dcfce7; color: var(--c-green); }
.chart-tab.is-active.tab-population { background: #fce7f3; color: var(--c-pink); }
.chart-tab.is-active.tab-gdp { background: #ffedd5; color: var(--c-orange); }
.chart-tab.is-active.tab-economic { background: #ede9fe; color: #7c3aed; }
.chart-card {
	background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 8px 30px rgba(0,0,0,.08);
	max-width: 900px; margin: 0 auto;
}
.chart-card-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: #1f2937; margin: 0 0 4px; }
.chart-card-sub { font-size: 13px; color: #6b7280; margin: 0 0 20px; }
#ttvn-chart-wrap { position: relative; width: 100%; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; justify-content: center; font-size: 13px; color: #374151; }
.chart-legend-item { display: flex; align-items: center; gap: 5px; }
.chart-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 48px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-col p { font-size: 14px; line-height: 1.7; color: #94a3b8; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-logo span { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; }
.footer-bottom {
	border-top: 1px solid #1e293b; margin-top: 32px; padding-top: 18px;
	display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font-size: 13px; color: #64748b;
}
@media (min-width: 900px) {
	.footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* Utilities */
.mt-0 { margin-top: 0; }
.hidden { display: none; }
@media (min-width: 768px) { .md\:block { display: block; } }

/* Kích thước icon SVG (bắt buộc phải có — nếu thiếu, SVG sẽ render ở kích thước
   mặc định của trình duyệt, tức là RẤT to, tràn cả khối chứa). Áp dụng cho mọi
   icon dùng qua hàm ttvn_icon() trong functions.php. */
svg.w-3 { width: 0.75rem; }
svg.h-3 { height: 0.75rem; }
svg.w-4, svg.w-4 { width: 1rem; }
svg.h-4 { height: 1rem; }
svg.w-5 { width: 1.25rem; }
svg.h-5 { height: 1.25rem; }
svg.w-6 { width: 1.5rem; }
svg.h-6 { height: 1.5rem; }
svg.w-7 { width: 1.75rem; }
svg.h-7 { height: 1.75rem; }
svg.w-8 { width: 2rem; }
svg.h-8 { height: 2rem; }
svg.w-7 { width: 1.75rem; }
svg.h-7 { height: 1.75rem; }
/* Phòng hờ: bất kỳ SVG icon nào lọt lưới (không khớp class trên) cũng không được
   phép to hơn 32px, tránh lặp lại lỗi vỡ layout như trên. */
.mega-menu-col svg, .map-side-card svg, .chart-tab svg, .btn-detail svg,
.hero-tag svg, .stat-card svg, .province-card svg, .section-link svg,
.mobile-nav-panel svg, .primary-nav svg, .site-header svg {
	max-width: 28px; max-height: 28px; flex-shrink: 0;
}



/* =========================================================
   TRANG CHI TIẾT TỈNH THÀNH: /province/{slug}/
   ========================================================= */
.province-breadcrumb { padding: 12px 0; }
.province-breadcrumb .container { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #6b7280; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 16px; }
.province-breadcrumb a { color: #6b7280; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.province-breadcrumb a:hover { color: var(--c-blue); text-decoration: underline; }
.province-breadcrumb strong { color: #1f2937; }
.province-breadcrumb svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---- Hero card ---- */
.province-hero-card {
	border-radius: 24px; padding: 28px 28px 32px; color: #fff;
	box-shadow: 0 12px 30px rgba(0,0,0,.15);
}
.phc-top { margin-bottom: 18px; }
.phc-title { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.phc-title svg { flex-shrink: 0; }
.phc-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.phc-badge {
	display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.2);
	border: 1px solid rgba(255,255,255,.4); color: #fff; text-decoration: none;
	border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700;
}
.phc-badge:hover { background: rgba(255,255,255,.32); }
.phc-badge-light { background: rgba(255,255,255,.85); color: #7c2d12; border-color: transparent; }

.phc-photo {
	height: 220px; border-radius: 16px; margin-bottom: 20px;
	display: flex; align-items: flex-end; padding: 16px 20px; position: relative; overflow: hidden;
}
.phc-photo-label { color: #fff; font-weight: 800; font-size: 20px; text-shadow: 0 2px 10px rgba(0,0,0,.4); position: relative; z-index: 1; }

.phc-stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; }
.phc-stats-row-alt .phc-stat { background: rgba(255,255,255,.92); color: #1f2937; }
.phc-stat {
	background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 12px;
	padding: 12px 14px; display: flex; flex-direction: column; gap: 2px;
}
.phc-stat-value { font-size: 18px; font-weight: 800; font-family: var(--font-display); display: flex; align-items: center; gap: 4px; }
.phc-stats-row-alt .phc-stat-value { font-size: 15px; color: #1f2937; }
.phc-stat-label { font-size: 11px; opacity: .85; }
.phc-stats-row-alt .phc-stat-label { color: #6b7280; opacity: 1; }
.phc-stat-value svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---- Tabs điều hướng nhanh ---- */
.province-tabs { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: var(--ttvn-header-h, 64px); z-index: 20; margin-top: 24px; }
.province-tabs-inner { display: flex; gap: 4px; overflow-x: auto; }
.province-tabs a {
	white-space: nowrap; padding: 14px 16px; font-size: 14px; font-weight: 700; color: #6b7280;
	text-decoration: none; border-bottom: 3px solid transparent;
}
.province-tabs a:hover { color: var(--c-orange); border-color: #fed7aa; }

.province-notice {
	display: flex; align-items: flex-start; gap: 10px; background: #fffbeb; border: 1px solid #fde68a;
	color: #92400e; border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.6;
}
.province-notice svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

/* ---- Bản đồ + panel đơn vị hành chính ---- */
.map-info-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.province-map-wrap-lg { height: 380px; }
#ttvn-province-map-single, #ttvn-province-map-single-2 { width: 100%; height: 100%; border-radius: 12px; overflow: hidden; }

.province-panel { background: #fff; border-radius: 16px; padding: 20px 22px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.province-panel-title { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 12px; }
.province-panel-title svg { color: var(--c-blue); flex-shrink: 0; }

.merge-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.merge-chip {
	display: flex; align-items: center; gap: 6px; background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0;
	border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600;
}
.merge-chip svg { width: 14px; height: 14px; flex-shrink: 0; }

.info-stat-box {
	display: flex; align-items: center; gap: 10px; border-radius: 10px; padding: 12px; margin-bottom: 10px;
}
.info-stat-box:last-child { margin-bottom: 0; }
.info-stat-box svg { width: 20px; height: 20px; flex-shrink: 0; }
.info-stat-box .dl { font-size: 11px; opacity: .8; }
.info-stat-box .dv { font-size: 15px; font-weight: 800; }
.info-stat-green { background: #dcfce7; color: #16a34a; }
.info-stat-blue  { background: #dbeafe; color: #2563eb; }
.info-stat-purple{ background: #f3e8ff; color: #9333ea; }

/* ---- Bảng tra cứu đơn vị hành chính ---- */
.ward-search-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.ward-table-wrap { overflow-x: auto; background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.ward-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 700px; }
.ward-table thead th {
	background: #f3f4f6; color: #374151; text-align: left; padding: 12px 14px; font-weight: 700;
	white-space: nowrap; border-bottom: 1px solid #e5e7eb;
}
.ward-table tbody td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; }
.ward-empty-row td {
	text-align: center; color: #9ca3af; padding: 40px 16px; display: flex; flex-direction: column;
	align-items: center; gap: 8px; font-size: 14px;
}
.ward-empty-row svg { color: #d1d5db; }

/* ---- Khối tổng quan cuối trang ---- */
.province-summary-card { background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.psc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.psc-head h2 { font-size: 24px; font-weight: 800; }
.psc-mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.psc-mini-stat { border-radius: 12px; padding: 14px; font-size: 18px; font-weight: 800; font-family: var(--font-display); display: flex; flex-direction: column; gap: 2px; }
.psc-mini-stat span { font-size: 11px; font-weight: 600; opacity: .85; font-family: var(--font-body); }
.psc-section { margin-bottom: 20px; }
.psc-section h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.psc-section h3 svg { color: var(--c-orange); flex-shrink: 0; }
.psc-section p { font-size: 14px; line-height: 1.75; color: #374151; }

/* ---- Tỉnh thành liên quan ---- */
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-card {
	display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 14px 16px;
	text-decoration: none; color: #1f2937; box-shadow: 0 2px 8px rgba(0,0,0,.05); font-weight: 700; font-size: 14px;
}
.related-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.1); color: var(--c-blue); }
.related-card-icon { color: var(--c-blue); flex-shrink: 0; }
.related-card-name { flex: 1; }
.related-card svg:last-child { opacity: .4; flex-shrink: 0; }

@media (min-width: 640px) {
	.phc-stats-row { grid-template-columns: repeat(3, 1fr); }
	.phc-stats-row-alt { grid-template-columns: repeat(2, 1fr); }
	.psc-mini-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
	.related-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
	.phc-stats-row { grid-template-columns: repeat(5, 1fr); }
	.phc-stats-row-alt { grid-template-columns: repeat(4, 1fr); }
	.map-info-grid { grid-template-columns: 2fr 1fr; }
	.province-map-wrap-lg { height: 480px; }
}

/* =========================================================
   PROVINCE PAGE v2 — matching tinhthanh.vn screenshots
   ========================================================= */

/* ---- HERO ---- */
.prov-hero-section { padding: 24px 0 0; }
.prov-hero {
	padding: 32px 28px 28px;
	color: #fff;
	border-radius: 20px;
}
.prov-hero-inner { display: flex; flex-direction: column; gap: 20px; }
.prov-hero-top { }
.prov-hero-title {
	display: flex; align-items: center; gap: 12px;
	font-size: 36px; font-weight: 900; margin-bottom: 14px;
	text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.prov-hero-title svg { flex-shrink: 0; }
.prov-hero-sap-nhap {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	font-size: 14px; opacity: .95;
}
.prov-hero-sap-nhap svg { flex-shrink: 0; }
.prov-merged-badge {
	background: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.5);
	border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700;
}

.prov-hero-photo {
	height: 200px; border-radius: 16px; margin-bottom: 4px;
	display: flex; align-items: flex-end; padding: 14px 18px;
	position: relative; overflow: hidden;
}
.prov-hero-photo-name {
	color: #fff; font-weight: 800; font-size: 18px;
	text-shadow: 0 2px 8px rgba(0,0,0,.5); position: relative; z-index: 1;
}

.prov-stat-grid {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.prov-stat-card {
	border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.prov-stat-light { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); }
.prov-stat-white { background: rgba(255,255,255,.92); color: #1f2937; border: 1px solid rgba(255,255,255,.6); }
.psc-icon { margin-bottom: 4px; }
.psc-label { font-size: 11px; opacity: .85; font-weight: 600; }
.prov-stat-white .psc-label { color: #6b7280; opacity: 1; }
.psc-value { font-size: 18px; font-weight: 800; font-family: var(--font-display); }
.psc-value small { font-size: 11px; font-weight: 500; opacity: .8; }

@media (min-width: 640px) {
	.prov-stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
	.prov-hero-photo { height: 260px; }
	.prov-stat-grid { grid-template-columns: repeat(5, 1fr); }
	.psc-value { font-size: 20px; }
}

/* ---- MAP + INFO LAYOUT ---- */
.prov-map-layout {
	display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 900px) {
	.prov-map-layout { grid-template-columns: 1.6fr 1fr; }
}

.prov-map-box {
	background: #fff; border-radius: 16px; padding: 0;
	box-shadow: 0 2px 10px rgba(0,0,0,.07); overflow: hidden;
	display: flex; flex-direction: column; height: 100%;
}
.prov-map-title {
	display: flex; align-items: center; gap: 8px; padding: 14px 18px;
	font-weight: 700; font-size: 15px; border-bottom: 1px solid #f1f5f9;
}
.prov-map-title > span:first-of-type { flex-wrap: wrap; }
.prov-map-title svg { color: var(--c-blue); flex-shrink: 0; }
.prov-map-expand {
	margin-left: auto; display: flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e5e7eb;
	color: #6b7280; flex-shrink: 0;
}
.prov-map-expand:hover { background: #f9fafb; color: var(--c-blue); border-color: var(--c-blue); }
.prov-map-expand svg { color: inherit; }
#ttvn-province-map-single { flex: 1; min-height: 360px; }

.ttvn-map-fit-btn {
	width: 26px; height: 26px; line-height: 26px; display: block;
	background: #fff; border: none; font-size: 11px; font-weight: 700;
	color: #374151; cursor: pointer; text-align: center;
}
.ttvn-map-fit-btn:hover { background: #f4f4f5; }
.ttvn-map-hint {
	background: rgba(255,255,255,.9); border-radius: 6px; padding: 3px 8px;
	font-size: 11px; color: #6b7280; box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

.prov-info-col { display: flex; flex-direction: column; gap: 14px; }

.prov-panel {
	background: #fff; border-radius: 14px; padding: 16px 18px;
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.prov-panel-header {
	display: flex; align-items: center; gap: 8px;
	font-weight: 800; font-size: 15px; margin-bottom: 12px;
	color: var(--c-blue);
}
.prov-panel-header svg { flex-shrink: 0; }
.prov-panel-green svg, .prov-panel-green { color: #16a34a !important; }
.prov-panel-pink svg, .prov-panel-pink { color: #db2777 !important; }
.prov-panel-purple svg, .prov-panel-purple { color: #9333ea !important; }
.prov-panel-count {
	margin-left: auto; font-size: 14px; font-weight: 800; white-space: nowrap;
}

.prov-ward-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.prov-ward-badge {
	border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 700; color: #fff;
}
.prov-ward-xa { background: #16a34a; }
.prov-ward-phuong { background: #f59e0b; }
.prov-ward-dackhu { background: #ea580c; }

.prov-info-rows { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.prov-info-row {
	display: flex; align-items: center; gap: 6px; color: #374151;
}
.prov-info-row svg { color: #9ca3af; flex-shrink: 0; }
.prov-info-row span { color: #6b7280; }
.prov-info-row strong { margin-left: auto; font-weight: 700; text-align: right; }

.prov-minmax-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.prov-minmax { background: #f9fafb; border-radius: 10px; padding: 10px 12px; }
.pmm-label { font-size: 11px; color: #9ca3af; margin-bottom: 4px; }
.pmm-val { font-size: 14px; font-weight: 800; }
.pmm-val.green { color: #16a34a; }
.pmm-val.pink { color: #db2777; }
.pmm-val.purple { color: #9333ea; }
.pmm-sub { font-size: 11px; color: #6b7280; margin-top: 2px; }

.prov-description-box {
	background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px;
	padding: 16px 20px; margin-top: 24px; font-size: 14px; color: #374151; line-height: 1.7;
}

/* ---- WARD SECTION ---- */
.prov-section-title { font-size: 22px; font-weight: 800; color: var(--c-blue); margin-bottom: 4px; }
.prov-section-sub { font-size: 14px; color: #6b7280; margin-bottom: 16px; }

.prov-view-toggle {
	display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 16px;
}
.prov-view-btn {
	display: flex; align-items: center; gap: 6px; padding: 8px 16px;
	border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; font-size: 14px; font-weight: 600;
	color: #374151; cursor: pointer; transition: .2s;
}
.prov-view-btn.prov-view-active { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }

.prov-search-bar {
	display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px;
	background: linear-gradient(135deg, #06b6d4, #16a34a); padding: 14px; border-radius: 14px;
}
.prov-search-input {
	flex: 1; min-width: 240px; position: relative;
}
.prov-search-input svg {
	position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af;
}
.prov-search-input input {
	width: 100%; height: 44px; border-radius: 10px; border: none; padding: 0 14px 0 40px;
	font-size: 15px; outline: none;
}
.prov-filter-select {
	height: 44px; border-radius: 10px; border: none; padding: 0 12px; font-size: 14px;
	background: #fff; min-width: 180px; outline: none;
}
.prov-clear-btn {
	height: 44px; padding: 0 18px; border-radius: 10px; border: none;
	background: rgba(255,255,255,.25); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
}
.prov-ward-count { font-size: 13px; color: #6b7280; margin-bottom: 12px; }

.prov-table-wrap { overflow-x: auto; background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.prov-ward-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 800px; }
.prov-ward-table thead th {
	background: #f8fafc; color: #374151; text-align: left; padding: 12px 14px; font-weight: 700;
	white-space: nowrap; border-bottom: 2px solid #e5e7eb;
}
.prov-ward-table th.sortable { cursor: pointer; }
.prov-ward-table th.sortable:hover { color: var(--c-blue); }
.sort-icon { color: #9ca3af; font-size: 11px; }
.prov-ward-table tbody tr { border-bottom: 1px solid #f1f5f9; }
.prov-ward-table tbody tr:hover { background: #fafbff; }
.prov-ward-table tbody td { padding: 10px 14px; vertical-align: middle; }
.prov-ward-table td:first-child { color: #9ca3af; font-weight: 600; }
.prov-ward-name-link { color: var(--c-orange); font-weight: 700; text-decoration: none; }
.prov-ward-name-link:hover { text-decoration: underline; }
.prov-ward-merge { font-size: 11px; color: #6b7280; margin-top: 2px; }
.prov-ward-addr { font-size: 11px; color: #9ca3af; display: flex; align-items: center; gap: 4px; }

.ward-type-badge {
	display: inline-block; border-radius: 999px; padding: 2px 12px;
	font-size: 12px; font-weight: 700; color: #fff;
}
.ward-type-phuong { background: #f59e0b; }
.ward-type-xa { background: #16a34a; }

.prov-bando-link {
	display: inline-flex; align-items: center; gap: 4px; color: var(--c-blue);
	font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.prov-bando-link:hover { text-decoration: underline; }

.prov-pagination {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	margin-top: 20px; flex-wrap: wrap;
}
.prov-page-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 8px; border: 1px solid #e5e7eb;
	background: #fff; font-size: 14px; font-weight: 600; color: #374151; cursor: pointer;
	text-decoration: none;
}
.prov-page-btn.active { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.prov-page-btn:hover:not(.active) { border-color: var(--c-blue); color: var(--c-blue); }

/* Card view */
.prov-card-search-bar {
	display: flex; align-items: center; gap: 12px;
	background: linear-gradient(135deg, #06b6d4, #16a34a); padding: 12px 18px; border-radius: 14px;
	margin-bottom: 8px;
}
.prov-card-search-bar svg { color: rgba(255,255,255,.8); flex-shrink: 0; }
.prov-card-search-bar input { color: #fff; }
.prov-card-search-bar input::placeholder { color: rgba(255,255,255,.7); }
.prov-card-filter-btn {
	display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.2);
	border: 1px solid rgba(255,255,255,.4); border-radius: 8px; padding: 8px 14px;
	color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.prov-card-grid {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (min-width: 768px) { .prov-card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .prov-card-grid { grid-template-columns: repeat(4, 1fr); } }

/* Ward type badge + "Đề xuất lên Phường" badge (dùng chung cho bảng và card) */
.ward-type-dac_khu { background: #ea580c; }
.ward-proposed-badge {
	display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700;
	color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 4px;
	padding: 2px 8px; margin-left: 6px; white-space: nowrap;
	box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.ward-proposed-badge::before {
	content: ''; width: 6px; height: 6px; border-radius: 50%;
	background: #d97706; flex-shrink: 0;
	animation: ward-badge-pulse 2s ease-in-out infinite;
}
@keyframes ward-badge-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%       { opacity: .45; transform: scale(.75); }
}

/* Card items trong chế độ xem "Card" của bảng tra cứu đơn vị hành chính */
.ward-card {
	background: #fff; border: 1px solid #f1f5f9; border-radius: 14px; padding: 16px;
	box-shadow: 0 2px 10px rgba(0,0,0,.05); position: relative;
}
.wc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.wc-name { font-size: 15px; font-weight: 700; color: #1f2937; }
.wc-pin { color: #9ca3af; flex-shrink: 0; }
.wc-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.wc-old-unit { font-size: 12px; color: #6b7280; background: #f3f4f6; border-radius: 999px; padding: 2px 10px; }
.wc-stat { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; margin-bottom: 4px; }
.wc-stat svg { color: #9ca3af; width: 15px; height: 15px; flex-shrink: 0; }
.wc-merge {
	display: flex; align-items: flex-start; gap: 6px; font-size: 11px; color: #2563eb;
	background: #eff6ff; border-radius: 8px; padding: 8px 10px; margin: 10px 0 8px; line-height: 1.5;
}
.wc-merge svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: #2563eb; }
.wc-code { font-size: 12px; color: #9ca3af; }

/* ---- BIG MAP ---- */
.prov-bigmap-section { padding: 32px 0; }
.prov-bigmap-header {
	display: flex; align-items: center; gap: 10px;
	padding: 14px 24px; color: #fff; font-size: 18px; font-weight: 800;
	border-radius: 14px 14px 0 0;
}
.prov-bigmap-header svg { flex-shrink: 0; }
.prov-bigmap-wrap { height: 480px; border-radius: 0 0 14px 14px; overflow: hidden; }
#ttvn-province-map-single-2 { width: 100%; height: 100%; }
.prov-bigmap-caption {
	background: #fef9c3; border: 1px solid #fde68a; border-radius: 8px;
	padding: 8px 16px; font-size: 13px; color: #78350f; margin: 16px 0 0;
	display: inline-block;
}

/* ---- SUMMARY CARD ---- */
.prov-summary-card {
	background: #fff; border-radius: 20px; padding: 28px 28px 24px;
	box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.psc-badge-label {
	display: inline-flex; align-items: center; gap: 6px;
	background: #f3f4f6; color: #6b7280; font-size: 13px; font-weight: 600;
	padding: 5px 14px; border-radius: 999px; margin-bottom: 12px;
}
.psc-province-name { font-size: 28px; font-weight: 900; margin-bottom: 10px; }
.psc-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 14px; color: #374151; }
.psc-meta-row svg { color: #9ca3af; flex-shrink: 0; }

.psc-merged-notice {
	display: flex; align-items: flex-start; gap: 8px;
	background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
	padding: 10px 16px; margin: 14px 0; font-size: 14px; color: #78350f;
}
.psc-merged-notice svg { color: #f59e0b; flex-shrink: 0; margin-top: 2px; }

.psc-big-stats {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0;
}
@media (min-width: 640px) { .psc-big-stats { grid-template-columns: repeat(4, 1fr); } }
.psc-big-stat {
	border-radius: 14px; padding: 18px 14px; color: #fff;
	display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
}
.psc-big-stat svg { opacity: .8; }
.psbs-value { font-size: 20px; font-weight: 900; font-family: var(--font-display); line-height: 1.1; }
.psbs-label { font-size: 12px; opacity: .85; font-weight: 600; }

.psc-detail-grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0;
}
@media (min-width: 900px) { .psc-detail-grid { grid-template-columns: repeat(4, 1fr); } }
.psc-detail-box { background: #f9fafb; border-radius: 12px; padding: 14px; }
.psc-detail-title {
	display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800;
	color: #374151; margin-bottom: 10px;
}
.psc-detail-title svg { color: var(--c-blue); }
.psc-detail-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.psc-detail-table td { padding: 4px 0; color: #374151; }
.psc-detail-table td:first-child { color: #9ca3af; width: 45%; }

.psc-bien-so-list { display: flex; flex-wrap: wrap; gap: 6px; }
.psc-bien-so-badge {
	background: #2563eb; color: #fff; border-radius: 6px;
	padding: 3px 10px; font-size: 13px; font-weight: 700;
}

.psc-cocau { margin-top: 20px; }
.psc-cocau-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.psc-cocau-item { border-radius: 12px; padding: 14px; text-align: center; }
.psc-cocau-blue { background: #dbeafe; }
.psc-cocau-green { background: #dcfce7; }
.psc-cocau-purple { background: #f3e8ff; }
.pcci-num { font-size: 28px; font-weight: 900; font-family: var(--font-display); }
.psc-cocau-blue .pcci-num { color: #2563eb; }
.psc-cocau-green .pcci-num { color: #16a34a; }
.psc-cocau-purple .pcci-num { color: #9333ea; }
.pcci-label { font-size: 12px; color: #6b7280; font-weight: 600; margin-top: 4px; }

.prov-summary-card h3 { font-size: 16px; font-weight: 800; color: #1f2937; margin: 20px 0 6px; }
.prov-summary-card p { font-size: 14px; color: #374151; line-height: 1.7; }

.psc-info-section {
	background: #f0f9ff; border-left: 3px solid var(--c-blue); border-radius: 8px;
	padding: 14px 18px; margin: 16px 0;
}
.psc-info-label { font-size: 13px; font-weight: 800; color: var(--c-orange); margin-bottom: 6px; }

.psc-notice-box {
	background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px;
	padding: 14px 18px; margin: 16px 0;
}
.psc-notice-title {
	display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800;
	color: #92400e; margin-bottom: 6px;
}
.psc-notice-box p { font-size: 13px; color: #78350f; line-height: 1.6; }

.psc-update-notice {
	display: flex; align-items: flex-start; gap: 12px;
	background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 12px;
	padding: 14px 18px; margin-top: 16px; font-size: 13px; color: #0c4a6e; line-height: 1.6;
}
.psc-update-notice svg { color: #0ea5e9; flex-shrink: 0; margin-top: 2px; }

/* =========================================================
   WARD DETAIL PAGE — /province/{province}/{ward}/
   ========================================================= */

/* Breadcrumb */
.ward-breadcrumb {
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	padding: 10px 0;
}
.ward-breadcrumb-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #6b7280;
	flex-wrap: wrap;
}
.ward-breadcrumb-nav a { color: var(--c-blue); text-decoration: none; }
.ward-breadcrumb-nav a:hover { text-decoration: underline; }
.ward-breadcrumb-nav svg { color: #9ca3af; flex-shrink: 0; }
.ward-breadcrumb-nav span { color: #374151; font-weight: 600; }

/* Hero */
.ward-hero-section { padding: 20px 0 0; }
.ward-hero-section .container { display: block; }

.ward-hero-photocard {
	position: relative;
	margin-top: 26px; /* chừa chỗ cho nhãn tên nổi lên trên ảnh */
}

.ward-hero-photo {
	width: 100%;
	height: 380px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

/* Nhãn nổi: Tên phường (poke lên trên mép ảnh) */
.ward-hero-tag {
	position: absolute;
	top: -26px;
	left: 24px;
	max-width: calc(100% - 48px);
	background: #fff;
	border-radius: 14px;
	padding: 14px 20px;
	box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.ward-hero-tag-title { display: flex; align-items: center; gap: 8px; }
.ward-hero-tag-title svg { color: var(--c-orange); width: 22px; height: 22px; flex-shrink: 0; }
.ward-hero-tag-title h1 { font-size: 22px; font-weight: 800; color: var(--c-orange); }
.ward-hero-tag-sub { font-size: 13px; color: #6b7280; margin-top: 4px; }
.ward-hero-tag-sub a { color: #2563eb; font-weight: 700; text-decoration: none; }
.ward-hero-tag-sub a:hover { text-decoration: underline; }
.ward-old-unit { color: #9ca3af; }

/* Mã phường: nổi góc trên phải, đè lên ảnh */
.ward-hero-code-float {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,.92);
	border-radius: 10px;
	padding: 8px 14px;
	font-size: 13px;
	color: #374151;
	box-shadow: 0 2px 10px rgba(0,0,0,.12);
	white-space: nowrap;
}
.ward-hero-code-float svg { color: #374151; flex-shrink: 0; }
.ward-hero-code-float strong { color: var(--c-orange); font-size: 14px; }

/* Sáp nhập: nổi góc dưới trái, đè lên ảnh */
.ward-hero-sapnhap-float {
	position: absolute;
	left: 20px;
	bottom: 20px;
	max-width: 62%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	background: rgba(255,255,255,.92);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
	color: #374151;
	box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.ward-hero-sapnhap-float svg { color: #2563eb; flex-shrink: 0; }
.ward-merged-badge {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
	border-radius: 20px;
	padding: 2px 10px;
	font-size: 12px;
	font-weight: 600;
}

/* Quick stats: nổi góc dưới phải, đè lên ảnh */
.ward-hero-stats-float {
	position: absolute;
	right: 20px;
	bottom: 20px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.ward-stat-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(0,0,0,.12);
	white-space: nowrap;
}
.ward-stat-green { background: #16a34a; color: #fff; }
.ward-stat-orange { background: #f97316; color: #fff; }

@media (max-width: 720px) {
	.ward-hero-photo { height: 300px; }
	.ward-hero-tag { position: static; margin: 0 0 12px; }
	.ward-hero-photocard { margin-top: 0; }
	.ward-hero-code-float,
	.ward-hero-sapnhap-float,
	.ward-hero-stats-float {
		position: static;
		max-width: none;
		margin-top: 10px;
		box-shadow: none;
	}
	.ward-hero-stats-float { justify-content: flex-start; }
}

/* ===== Layout chung: nội dung chính + sidebar sticky chạy dọc toàn trang ===== */
.ward-layout-grid { display: block; }
@media (min-width: 1024px) {
	.ward-layout-grid {
		display: grid;
		grid-template-columns: 1fr 280px;
		align-items: start;
		gap: 20px;
	}
	/* Mọi section nội dung chính đi vào cột 1 */
	.ward-layout-grid > section { grid-column: 1; }
	/* Sidebar tổng hợp: cột 2, trải dài hết chiều cao nội dung và dính (sticky) khi cuộn */
	.ward-layout-grid > .ward-sidebar-combined {
		grid-column: 2;
		grid-row: 1 / -1;
		position: sticky;
		top: 88px;
		align-self: start;
		max-height: calc(100vh - 104px);
		overflow-y: auto;
		z-index: 5;
	}
}

/* Stats section */
.ward-stats-section { padding: 20px 0; }
.ward-stats-main {
	background: #fff;
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.ward-stats-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 8px;
}
.ward-stats-header h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 800;
	color: #1f2937;
}
.ward-stats-selector {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 6px 14px;
	font-size: 13px;
	color: #374151;
}
.ward-stat-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.ward-stat-card {
	border-radius: 12px;
	padding: 16px 14px;
	text-align: center;
}
.ward-stat-card svg { width: 32px; height: 32px; margin: 0 auto 8px; display: block; opacity: .7; }
.wsc-label { font-size: 12px; color: #6b7280; margin-bottom: 4px; }
.wsc-value { font-size: 18px; font-weight: 800; font-family: var(--font-display); }
.wsc-value small { font-size: 11px; font-weight: 400; }

/* Sidebar */
.ward-sidebar {}
.ward-sidebar-box {
	background: #fff;
	border-radius: 12px;
	padding: 14px;
	box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.ward-sidebar-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #374151;
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f3f4f6;
}
.ward-sidebar-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #6b7280; padding: 4px 0; }
.ward-sidebar-row strong { color: #1f2937; font-size: 13px; }
.ward-stat-row-small { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #6b7280; padding: 4px 0; gap: 6px; }
.ward-stat-row-small span { display: flex; align-items: center; gap: 4px; }

/* Info section */
.ward-info-section { padding: 0 0 20px; }
.ward-info-main {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.ward-info-banner {
	background: #f97316;
	background: linear-gradient(90deg, #f97316, #ea580c);
	color: #fff;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.ward-info-banner-left { display: flex; align-items: center; gap: 12px; }
.ward-info-banner-left svg { width: 24px; height: 24px; flex-shrink: 0; }
.ward-info-banner-title { font-size: 14px; font-weight: 800; }
.ward-info-banner-sub { font-size: 11px; opacity: .85; }
.ward-update-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #dc2626;
	color: #fff;
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.ward-detail-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	border-bottom: 1px solid #f3f4f6;
}
.ward-detail-block {
	padding: 14px 16px;
	border-right: 1px solid #f3f4f6;
}
.ward-detail-block:last-child { border-right: none; }
.ward-detail-block[style*="span 2"] { grid-column: span 2; }
.ward-detail-label { font-size: 11px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.ward-detail-value { font-size: 16px; font-weight: 700; color: #374151; text-decoration: none; }
a.ward-detail-value:hover { text-decoration: underline; }

.ward-article { padding: 20px; border-bottom: 1px solid #f3f4f6; }
.ward-article-heading { display: flex; align-items: center; gap: 8px; font-size: 16px; color: #ea580c; margin-bottom: 12px; }
.ward-article p { font-size: 14px; color: #374151; line-height: 1.7; margin-bottom: 10px; }

.ward-history-box {
	margin: 0 20px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 16px;
}
.ward-history-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #374151;
	margin-bottom: 10px;
}
.ward-history-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ward-chain-badge {
	background: #eff6ff;
	color: #2563eb;
	border: 1px solid #bfdbfe;
	border-radius: 20px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
}
.ward-chain-arrow { color: #9ca3af; font-size: 16px; }

.ward-ubnd-box {
	margin: 0 20px 16px;
	background: #fffbeb;
	border: 2px solid #f59e0b;
	border-radius: 12px;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.ward-ubnd-left { display: flex; align-items: flex-start; gap: 12px; }
.ward-ubnd-left svg { color: #f59e0b; width: 32px; height: 32px; flex-shrink: 0; }
.ward-ubnd-label { font-size: 10px; font-weight: 700; color: #92400e; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.ward-ubnd-addr { font-size: 14px; color: #374151; font-weight: 600; }
.ward-ubnd-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f97316;
	color: #fff;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.ward-meta-footer {
	padding: 12px 20px;
	font-size: 12px;
	color: #9ca3af;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	border-top: 1px solid #f3f4f6;
}
.ward-meta-footer > span { display: flex; align-items: center; gap: 6px; }

/* Ward switcher (Xem phường xã khác) */
.ward-switcher { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ward-switcher label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #374151;
	white-space: nowrap;
}
.ward-switcher-select {
	font-size: 12px;
	font-weight: 600;
	color: #1f2937;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 6px 10px;
	max-width: 220px;
	cursor: pointer;
}
.ward-switcher-select:hover { border-color: var(--c-orange); }
.ward-switcher-select:focus { outline: none; border-color: var(--c-orange); }

/* Nearby badges */
.ward-nearby-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ward-nearby-badge {
	background: #eff6ff;
	color: #2563eb;
	border: 1px solid #bfdbfe;
	border-radius: 20px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s;
}
.ward-nearby-badge:hover { background: #dbeafe; }

/* Quick actions */
.ward-quickactions { display: flex; flex-direction: column; gap: 2px; }
.ward-qa-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #374151;
	text-decoration: none;
	padding: 8px 6px;
	border-radius: 6px;
	transition: background .15s;
}
.ward-qa-item:hover { background: #f3f4f6; }
.ward-qa-item svg { color: var(--c-orange); flex-shrink: 0; }

/* Map section */
.ward-map-section { padding: 0 0 20px; }
.ward-map-section .container { display: block; }
.ward-map-main { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.ward-map-header {
	background: linear-gradient(90deg, #f97316, #ea580c);
	color: #fff;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 800;
}
.ward-map-container { position: relative; }
.ward-map-type-selector {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	z-index: 800;
}
.ward-map-type {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	color: #374151;
	display: flex;
	align-items: center;
	gap: 5px;
	box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.ward-map-type.active { background: #2563eb; color: #fff; border-color: #2563eb; }

.ward-map-legend {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	font-size: 12px;
	color: #6b7280;
	border-top: 1px solid #f3f4f6;
}
.ward-map-legend-swatch {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 3px;
	background: rgba(244,63,94,.35);
	border: 2px solid #dc2626;
	flex-shrink: 0;
}

/* Tiện ích xung quanh (section riêng, tách khỏi bản đồ) */
.ward-amenity-section { padding: 0 0 20px; }
.ward-amenity-section .container { display: block; }
.ward-amenity-main { background: #fff; border-radius: 14px; overflow: hidden; }
.ward-amenity-promo {
	padding: 24px;
	border: 1px solid #fed7aa;
	border-radius: 16px;
	background: linear-gradient(180deg, #fff8f1 0%, #ffffff 40%);
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
}
.ward-amenity-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 0; flex: 1 1 320px; min-width: 260px; }
.ward-amenity-header > svg { color: #374151; flex-shrink: 0; margin-top: 4px; }
.ward-amenity-tag { display: inline-block; background: #eff6ff; color: #2563eb; border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 700; margin-bottom: 8px; }
.ward-amenity-header h3 { font-size: 20px; font-weight: 800; color: #1f2937; line-height: 1.3; margin-bottom: 10px; }
.ward-amenity-header p { font-size: 13px; color: #6b7280; line-height: 1.6; margin-bottom: 12px; }
.ward-amenity-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f97316;
	color: #fff;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}
.ward-amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1 1 420px; }
@media (max-width: 860px) {
	.ward-amenity-promo { flex-direction: column; align-items: stretch; }
}
.ward-amenity-card {
	border-radius: 10px;
	padding: 12px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	flex-wrap: wrap;
}
.ward-amenity-card svg { flex-shrink: 0; }
.wac-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.wac-name { font-size: 13px; font-weight: 700; }
.wac-link { display: block; font-size: 11px; font-weight: 600; text-decoration: none; margin-top: 4px; opacity: .75; }
.wac-link:hover { opacity: 1; text-decoration: underline; }
.ward-amenity-pink { background: #fce7f3; color: #db2777; }
.ward-amenity-green { background: #dcfce7; color: #16a34a; }
.ward-amenity-orange { background: #fff7ed; color: #ea580c; }
.ward-amenity-blue { background: #eff6ff; color: #2563eb; }
.ward-amenity-yellow { background: #fffbeb; color: #d97706; }
.ward-amenity-purple { background: #f3e8ff; color: #9333ea; }

/* Population section */
.ward-population-section { padding: 0 0 20px; }
.ward-population-section .container { display: block; }
.ward-pop-main { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.ward-pop-banner {
	background: linear-gradient(90deg, #f97316, #ea580c);
	color: #fff;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.ward-pop-banner-title { font-size: 14px; font-weight: 800; }
.ward-pop-banner-sub { font-size: 11px; opacity: .85; }
.ward-pop-more-btn {
	margin-left: auto;
	background: #dc2626;
	color: #fff;
	border-radius: 6px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.ward-pop-content { display: grid; grid-template-columns: 1fr 300px; gap: 0; }
.ward-pop-analysis { padding: 20px; border-right: 1px solid #f3f4f6; }
.ward-pop-analysis h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #1f2937; margin-bottom: 12px; }
.ward-pop-analysis p { font-size: 14px; color: #374151; line-height: 1.7; margin-bottom: 12px; }
.ward-pop-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.ward-pop-mini-stat { border-radius: 10px; padding: 12px; text-align: center; }
.ward-pop-mini-stat svg { width: 20px; height: 20px; margin: 0 auto 6px; display: block; }
.wpm-label { font-size: 11px; font-weight: 700; text-transform: uppercase; opacity: .7; }
.wpm-value { font-size: 16px; font-weight: 800; font-family: var(--font-display); }
.wpm-value small { font-size: 10px; font-weight: 400; }
.ward-pop-green { background: #dcfce7; color: #16a34a; }
.ward-pop-pink { background: #fce7f3; color: #db2777; }
.ward-pop-orange { background: #fff7ed; color: #ea580c; }

.ward-density-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	color: #92400e;
}

.ward-pop-chart { padding: 20px; display: flex; flex-direction: column; align-items: center; }
.ward-pop-chart-title { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; text-align: center; }
.ward-pop-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 260px; }
.ward-pop-dot { color: #f97316; }
.ward-pop-dot svg { width: 18px; height: 18px; }
.ward-pop-chart-source { font-size: 10px; color: #9ca3af; font-weight: 700; text-transform: uppercase; margin-top: 14px; }
.ward-pop-chart-legend { font-size: 11px; color: #6b7280; margin-top: 8px; text-align: center; line-height: 1.6; }

/* Development section */
.ward-develop-section { padding: 0 0 20px; }
.ward-develop-section .container { display: block; }
.ward-develop-banner {
	background: linear-gradient(90deg, #f97316, #ea580c);
	color: #fff;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	border-radius: 14px 14px 0 0;
}
.ward-develop-title { font-size: 14px; font-weight: 800; }
.ward-develop-sub { font-size: 11px; opacity: .85; }
.ward-develop-admin-btn {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(255,255,255,.2);
	border: 1px solid rgba(255,255,255,.4);
	color: #fff;
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.ward-develop-content {
	background: #fff;
	border-radius: 0 0 14px 14px;
	box-shadow: 0 2px 8px rgba(0,0,0,.05);
	padding: 20px;
	display: grid;
	grid-template-columns: 1fr 260px;
	gap: 20px;
}
.ward-develop-text p { font-size: 14px; color: #374151; line-height: 1.7; margin-bottom: 12px; }
.ward-blockquote {
	border-left: 4px solid #f97316;
	background: #fff7ed;
	border-radius: 0 8px 8px 0;
	padding: 12px 16px;
	font-size: 13px;
	color: #92400e;
	font-style: italic;
	line-height: 1.7;
	margin: 0;
}
.ward-thuc-the { background: #f9fafb; border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.ward-thuc-the-title { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.ward-thuc-the-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ward-thuc-the-table td { padding: 5px 0; color: #6b7280; vertical-align: top; }
.ward-thuc-the-table td:last-child { text-align: right; color: #374151; }
.ward-satellite-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #16a34a;
	color: #fff;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	width: 100%;
	justify-content: center;
	margin-bottom: 8px;
}
.ward-admin-map-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f97316;
	color: #fff;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	width: 100%;
	justify-content: center;
}

/* Portal section */
.ward-portal-section { padding: 0 0 20px; }
.ward-portal-section .container { display: block; }
.ward-portal-header {
	background: #1e40af;
	color: #fff;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	border-radius: 14px 14px 0 0;
}
.ward-portal-title { font-size: 14px; font-weight: 800; }
.ward-portal-sub { font-size: 11px; opacity: .8; }
.ward-portal-content {
	background: #fff;
	border-radius: 0 0 14px 14px;
	box-shadow: 0 2px 8px rgba(0,0,0,.05);
	padding: 20px;
	display: grid;
	grid-template-columns: 1fr 260px;
	gap: 20px;
}
.ward-portal-text h3 { font-size: 14px; font-weight: 800; color: #374151; margin-bottom: 10px; }
.ward-portal-text p { font-size: 14px; color: #374151; line-height: 1.7; margin-bottom: 14px; }
.ward-portal-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ward-portal-feat { display: flex; gap: 10px; align-items: flex-start; }
.ward-portal-feat svg { color: #2563eb; flex-shrink: 0; margin-top: 2px; }
.wpf-title { font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 4px; }
.wpf-desc { font-size: 12px; color: #6b7280; line-height: 1.6; }
.ward-portal-link-box { background: #f9fafb; border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.wpl-label { font-size: 10px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.wpl-url { display: block; color: #2563eb; font-size: 13px; font-weight: 600; text-decoration: none; word-break: break-all; }
.wpl-url:hover { text-decoration: underline; }

/* Services section */
.ward-services-section { padding: 0 0 20px; }
.ward-services-section .container { display: block; }
.ward-services-content {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(0,0,0,.05);
	padding: 24px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
}
.ward-services-tag { display: inline-block; background: #fffbeb; color: #d97706; border: 1px solid #fde68a; border-radius: 4px; padding: 2px 10px; font-size: 11px; font-weight: 700; margin-bottom: 10px; }
.ward-services-left h2 { font-size: 22px; color: #1f2937; line-height: 1.3; margin-bottom: 12px; }
.ward-services-left p { font-size: 13px; color: #6b7280; line-height: 1.7; margin-bottom: 16px; }
.ward-portal-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ea580c;
	color: #fff;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	margin-bottom: 10px;
}
.ward-portal-notes { font-size: 11px; color: #9ca3af; line-height: 1.7; }
.ward-services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ward-service-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; }
.ward-service-card svg { color: #f97316; width: 24px; height: 24px; margin-bottom: 8px; }
.wsc-service-title { font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.wsc-service-desc { font-size: 12px; color: #6b7280; line-height: 1.6; }

/* Geo + system data section */
.ward-geo-section { padding: 0 0 20px; }
.ward-geo-section .container { display: block; }
.ward-geo-box {
	background: #fff;
	border-radius: 12px;
	padding: 16px 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,.05);
	margin-bottom: 16px;
}
.ward-geo-title {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: #374151;
	margin-bottom: 14px;
}
.ward-geo-grid { display: flex; gap: 40px; flex-wrap: wrap; }
.wgi-label { font-size: 12px; color: #9ca3af; margin-bottom: 2px; }
.wgi-value { font-size: 18px; font-weight: 700; color: #1f2937; }
.ward-sysdata-box {
	background: #fff;
	border-radius: 12px;
	padding: 16px 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,.05);
	margin-bottom: 16px;
}
.ward-sysdata-title { font-size: 11px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.ward-sysdata-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; font-size: 13px; color: #6b7280; margin-bottom: 12px; }
.ward-sysdata-row strong { display: block; color: #374151; font-size: 14px; margin-top: 4px; }
.ward-sysdata-note { font-size: 12px; color: #9ca3af; display: flex; align-items: flex-start; gap: 6px; }
.ward-footer-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ward-footer-note { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #9ca3af; }
.ward-footer-note svg { flex-shrink: 0; color: #d1d5db; margin-top: 2px; }
.ward-footer-note strong { display: block; color: #6b7280; font-size: 13px; margin-bottom: 2px; }

/* Responsive */
@media (max-width: 960px) {
	.ward-stat-cards { grid-template-columns: repeat(2, 1fr); }
	.ward-pop-content { grid-template-columns: 1fr; }
	.ward-develop-content,
	.ward-portal-content,
	.ward-services-content { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.ward-detail-grid { grid-template-columns: 1fr 1fr; }
	.ward-amenity-grid { grid-template-columns: 1fr 1fr; }
	.ward-portal-features { grid-template-columns: 1fr; }
	.ward-services-grid { grid-template-columns: 1fr; }
	.ward-footer-notes { grid-template-columns: 1fr; }
	.ward-sysdata-row { grid-template-columns: 1fr; }
}

/* ==========================================================
   TRANG 34 TỈNH THÀNH  (/34-tinh-thanh/)
   ========================================================== */

/* --- HERO / SEARCH BOX --- */
#page-34-tinh-thanh { background: #e0f2fe; min-height: 100vh; }

.ptt-hero {
	background: #e0f2fe;
	padding: 48px 0 0;
}
.ptt-hero-title {
	text-align: center; font-size: 28px; font-weight: 800;
	color: #1e3a5f; margin-bottom: 24px;
	font-family: var(--font-display);
}
.ptt-search-box {
	background: linear-gradient(90deg, #22d3ee 0%, #a3e635 100%);
	border-radius: 16px; padding: 20px 24px; max-width: 900px; margin: 0 auto;
}
.ptt-search-meta {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 14px; flex-wrap: wrap; gap: 6px;
}
.ptt-search-meta-main { color: #c2410c; font-weight: 700; font-size: 15px; }
.ptt-search-meta-date { color: #065f46; font-weight: 600; font-size: 13px; }
.ptt-search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ptt-search-input-wrap {
	flex: 1; min-width: 220px;
	position: relative; display: flex; align-items: center;
}
.ptt-search-input-wrap svg {
	position: absolute; left: 12px; width: 18px; height: 18px; color: #9ca3af;
}
.ptt-search-input-wrap input {
	width: 100%; height: 44px; border-radius: 10px; border: none;
	padding: 0 14px 0 38px; font-size: 14px; background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.ptt-search-input-wrap input:focus { outline: 2px solid var(--c-blue); }
.ptt-search-btn {
	height: 44px; padding: 0 18px; border-radius: 10px; border: none;
	background: var(--c-blue); color: #fff; font-weight: 700; font-size: 14px;
	cursor: pointer; display: flex; align-items: center; gap: 6px;
	white-space: nowrap;
}
.ptt-search-btn:hover { background: #0369a1; }
.ptt-search-btn svg { width: 16px; height: 16px; }
.ptt-filter-wrap {
	position: relative; display: flex; align-items: center; min-width: 180px;
}
.ptt-filter-wrap svg {
	position: absolute; left: 12px; width: 16px; height: 16px; color: #6b7280; pointer-events: none;
}
.ptt-filter-wrap select {
	width: 100%; height: 44px; border-radius: 10px; border: none; background: #fff;
	padding: 0 14px 0 34px; font-size: 14px; cursor: pointer; appearance: none;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* --- OVERVIEW STATS --- */
.ptt-list-section { padding: 32px 0 64px; background: #e0f2fe; }
.ptt-overview-header {
	background: #fff; border-radius: 16px; padding: 24px 28px; margin-bottom: 28px;
	box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.ptt-overview-header h2 {
	font-size: 22px; font-weight: 800; font-family: var(--font-display); margin-bottom: 4px;
}
.ptt-overview-header > p { color: #6b7280; font-size: 14px; margin-bottom: 20px; }
.ptt-overview-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (min-width: 768px) {
	.ptt-overview-stats { grid-template-columns: repeat(4,1fr); }
}
.ptt-stat-card {
	background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px;
	padding: 16px; position: relative; overflow: hidden;
}
.ptt-stat-label { font-size: 12px; color: #9ca3af; font-weight: 600; display: block; margin-bottom: 6px; }
.ptt-stat-value { font-size: 22px; font-weight: 800; color: #1f2937; font-family: var(--font-display); display: block; }
.ptt-stat-icon {
	position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; color: var(--c-blue); opacity: .25;
}

/* --- GRID CARDS --- */
.ptt-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) {
	.ptt-grid { grid-template-columns: repeat(2, 1fr); }
}

.ptt-card {
	background: #fff; border-radius: 16px; overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,.08); transition: box-shadow .2s, transform .2s;
}
.ptt-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.14); transform: translateY(-2px); }

/* Card header */
.ptt-card-head {
	display: flex; align-items: flex-start; justify-content: space-between;
	padding: 14px 18px; gap: 10px;
}
.ptt-card-head-left { display: flex; align-items: flex-start; gap: 10px; }
.ptt-card-head-icon { width: 22px; height: 22px; color: #fff; flex-shrink: 0; margin-top: 2px; }
.ptt-card-title { color: #fff; font-weight: 800; font-size: 16px; line-height: 1.25; font-family: var(--font-display); }
.ptt-card-merged { color: rgba(255,255,255,.82); font-size: 12px; margin-top: 3px; }
.ptt-card-badge {
	background: rgba(0,0,0,.18); color: #fff; font-size: 12px; font-weight: 700;
	border-radius: 20px; padding: 3px 10px; white-space: nowrap; flex-shrink: 0;
}

/* Card body */
.ptt-card-body { padding: 16px 18px 18px; }

.ptt-card-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ptt-card-stat { display: flex; align-items: center; gap: 8px; }
.ptt-cs-icon { width: 18px; height: 18px; color: var(--c-blue); flex-shrink: 0; }
.ptt-cs-label { font-size: 11px; color: #9ca3af; }
.ptt-cs-value { font-size: 14px; font-weight: 700; color: #1f2937; }

.ptt-card-info-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.ptt-info-icon { width: 16px; height: 16px; color: var(--c-blue); flex-shrink: 0; margin-top: 2px; }
.ptt-info-label { font-size: 11px; color: #9ca3af; }
.ptt-info-val { font-size: 13px; color: #374151; font-weight: 500; }

/* Card footer */
.ptt-card-foot {
	display: flex; align-items: center; justify-content: space-between;
	gap: 10px; margin-top: 14px; flex-wrap: wrap;
}
.ptt-card-foot-left { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ptt-badge {
	display: inline-block; border-radius: 20px; font-size: 11px; font-weight: 700;
	padding: 3px 10px;
}
.ptt-badge-gray   { background: #f3f4f6; color: #374151; }
.ptt-badge-green  { background: #dcfce7; color: #16a34a; }
.ptt-badge-blue   { background: #dbeafe; color: #2563eb; }
.ptt-badge-orange { background: #ffedd5; color: #ea580c; }

.ptt-btn-detail {
	display: inline-flex; align-items: center; gap: 5px;
	background: var(--c-blue); color: #fff; font-size: 13px; font-weight: 700;
	border-radius: 8px; padding: 8px 16px; text-decoration: none; white-space: nowrap;
	transition: background .15s;
}
.ptt-btn-detail:hover { background: #0369a1; }
.ptt-btn-icon { width: 15px; height: 15px; }

/* No result & note */
.ptt-no-result {
	text-align: center; padding: 48px; color: #6b7280; font-size: 16px;
	background: #fff; border-radius: 16px; margin-top: 16px;
}
.ptt-note {
	margin-top: 32px; padding: 14px 20px; background: #fefce8;
	border: 1px solid #fde68a; border-radius: 10px;
	font-size: 13px; color: #92400e; text-align: center;
}

/* ==========================================================
 * TRANG "63 TỈNH THÀNH CŨ": /tinh-thanh-cu/
 * ========================================================== */

.ttc-hero { background: #cdeeff; padding: 40px 0 28px; text-align: center; }
.ttc-hero-title {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	font-size: 26px; font-weight: 800; color: #1f2937; margin-bottom: 10px;
}
.ttc-hero-title-icon { width: 24px; height: 24px; color: var(--c-blue); flex-shrink: 0; }
.ttc-hero-stats { font-size: 14px; color: #374151; }
.ttc-hero-stats strong { font-weight: 800; color: #111827; }
.ttc-dot { margin: 0 10px; color: #9ca3af; }

.ttc-search-section { background: #cdeeff; padding: 0 0 28px; }
.ttc-search-box {
	display: flex; gap: 10px; background: #fff; border-radius: 14px;
	padding: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.06); flex-wrap: wrap;
}
.ttc-search-input-wrap {
	flex: 1 1 260px; display: flex; align-items: center; gap: 8px;
	border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 14px;
}
.ttc-search-input-wrap svg { width: 18px; height: 18px; color: #9ca3af; flex-shrink: 0; }
.ttc-search-input-wrap input { border: none; outline: none; flex: 1; font-size: 14px; font-family: inherit; }
.ttc-search-btn {
	display: inline-flex; align-items: center; gap: 8px; background: var(--c-blue);
	color: #fff; border: none; border-radius: 10px; padding: 0 22px; font-weight: 700;
	font-size: 14px; white-space: nowrap;
}
.ttc-search-btn svg { width: 16px; height: 16px; }
.ttc-search-btn:hover { background: #0369a1; }

.ttc-filter-toggle {
	display: inline-flex; align-items: center; gap: 8px; background: #fff;
	border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 18px;
	font-size: 13px; font-weight: 700; color: #374151; margin: 14px auto 0; display: flex;
}
.ttc-filter-toggle svg { width: 15px; height: 15px; color: var(--c-blue); }
.ttc-filter-toggle:hover { border-color: var(--c-blue); color: var(--c-blue); }

.ttc-advanced-filter {
	margin-top: 14px; background: #fff; border-radius: 14px; padding: 18px;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
	box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.ttc-advanced-filter[hidden] { display: none; }
.ttc-af-col { display: flex; flex-direction: column; gap: 6px; }
.ttc-af-col label { font-size: 12px; font-weight: 700; color: #374151; }
.ttc-af-col select, .ttc-af-col input {
	border: 1px solid #e5e7eb; border-radius: 8px; padding: 9px 12px;
	font-size: 13px; font-family: inherit; color: #374151; background: #fff;
}
.ttc-af-col select:disabled, .ttc-af-col input:disabled { background: #f9fafb; color: #9ca3af; }

.ttc-list-section { padding: 32px 0 48px; background: #cdeeff; }

.ttc-accordion { display: flex; flex-direction: column; gap: 12px; }

.ttc-tinh { border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.ttc-tinh-head {
	width: 100%; display: flex; align-items: center; justify-content: space-between;
	gap: 10px; border: none; padding: 16px 20px; cursor: pointer; color: #fff;
	font-family: inherit;
}
.ttc-tinh-head.is-tp   { background: linear-gradient(90deg, #ef4444, #f97316); }
.ttc-tinh-head.is-tinh { background: linear-gradient(90deg, #2563eb, #9333ea); }
.ttc-tinh-head-left { display: flex; align-items: center; gap: 10px; }
.ttc-tinh-icon { width: 20px; height: 20px; flex-shrink: 0; }
.ttc-tinh-name { font-size: 16px; font-weight: 700; }
.ttc-tinh-head-right { display: flex; align-items: center; gap: 8px; }
.ttc-chevron { width: 18px; height: 18px; transition: transform .2s; flex-shrink: 0; }
.ttc-tinh.is-open > .ttc-tinh-head .ttc-chevron { transform: rotate(180deg); }

.ttc-pill {
	display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.22);
	border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.ttc-pill-icon { width: 12px; height: 12px; }

.ttc-huyen-list { display: none; background: #fff; padding: 14px; }
.ttc-tinh.is-open > .ttc-huyen-list { display: flex; flex-direction: column; gap: 10px; }

.ttc-huyen { border-radius: 10px; overflow: hidden; border: 1px solid #e5e7eb; }
.ttc-huyen-head {
	width: 100%; display: flex; align-items: center; justify-content: space-between;
	gap: 10px; border: none; padding: 13px 16px; cursor: pointer; color: #fff;
	background: linear-gradient(90deg, #16a34a, #22c55e); font-family: inherit;
}
.ttc-huyen-head-left { display: flex; align-items: center; gap: 8px; }
.ttc-huyen-icon { width: 16px; height: 16px; flex-shrink: 0; }
.ttc-huyen-name { font-size: 14px; font-weight: 700; }
.ttc-huyen-head-right { display: flex; align-items: center; gap: 8px; }
.ttc-huyen.is-open > .ttc-huyen-head .ttc-chevron { transform: rotate(180deg); }

.ttc-badge {
	display: inline-block; border-radius: 20px; font-size: 11px; font-weight: 700;
	padding: 3px 10px; background: rgba(255,255,255,.25); white-space: nowrap;
}

.ttc-xa-grid {
	display: none; grid-template-columns: repeat(2, 1fr); gap: 10px 16px;
	padding: 14px 16px;
}
.ttc-huyen.is-open > .ttc-xa-grid { display: grid; }
@media (max-width: 640px) {
	.ttc-xa-grid { grid-template-columns: 1fr; }
}

.ttc-xa-row {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	border-bottom: 1px solid #f3f4f6; padding-bottom: 8px;
}
.ttc-xa-name { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #374151; font-weight: 500; }
.ttc-xa-icon { width: 15px; height: 15px; color: #9ca3af; flex-shrink: 0; }
.ttc-xa-tag { font-size: 12px; font-weight: 700; color: var(--c-orange); white-space: nowrap; }

.ttc-empty-note { padding: 14px 4px; color: #9ca3af; font-size: 13px; font-style: italic; }

.ttc-no-result {
	text-align: center; padding: 48px; color: #6b7280; font-size: 16px;
	background: #fff; border-radius: 16px; margin-top: 16px;
}
.ttc-note {
	margin-top: 32px; padding: 14px 20px; background: #fefce8;
	border: 1px solid #fde68a; border-radius: 10px;
	font-size: 13px; color: #92400e; text-align: center;
}

@media (max-width: 720px) {
	.ttc-advanced-filter { grid-template-columns: 1fr; }
	.ttc-tinh-name { font-size: 14px; }
	.ttc-pill { font-size: 11px; padding: 3px 9px; }
}

/* =========================================================
   TRANG DANH SÁCH ĐẦY ĐỦ ĐƠN VỊ HÀNH CHÍNH (PWL = Province Ward List)
   /province/{slug}/danh-sach-don-vi-hanh-chinh
   ========================================================= */

/* ---- Tiêu đề trang to, căn giữa (phía trên ảnh bìa) ---- */
.pwl-page-title { text-align: center; padding: 8px 0 4px; }
.pwl-page-title-line1, .pwl-page-title-line2 {
	display: block; font-weight: 900; line-height: 1.25;
	font-size: 26px; letter-spacing: -.01em;
}
.pwl-page-title-line1 { color: var(--c-orange); }
.pwl-page-title-line2 { color: #ec4899; margin-top: 4px; }
@media (min-width: 640px) {
	.pwl-page-title-line1, .pwl-page-title-line2 { font-size: 38px; }
}

/* ---- Ảnh bìa lớn + tiêu đề (giống tinhthanhvn.com) ---- */
.pwl-photo-hero-section { padding: 20px 0 0; }
.pwl-photo-hero {
	position: relative; border-radius: 18px; overflow: hidden;
	min-height: 220px; display: flex; align-items: flex-end;
	box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.pwl-photo-hero::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.05) 100%);
}
.pwl-photo-hero-overlay { position: relative; z-index: 1; padding: 20px 22px; width: 100%; color: #fff; }
.pwl-photo-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pwl-photo-badge {
	display: inline-flex; align-items: center; gap: 5px;
	background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
	border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 700;
	text-transform: uppercase; letter-spacing: .03em;
}
.pwl-photo-badge-solid { background: #16a34a; border-color: #16a34a; }
.pwl-photo-title { font-size: 26px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.pwl-photo-subtitle { margin-top: 8px; font-size: 13px; max-width: 640px; line-height: 1.6; opacity: .95; font-style: italic; }
@media (min-width: 640px) {
	.pwl-photo-hero { min-height: 320px; }
	.pwl-photo-hero-overlay { padding: 32px 40px; }
	.pwl-photo-title { font-size: 36px; }
	.pwl-photo-subtitle { font-size: 14px; }
}

/* ---- Thanh thông tin nhanh dưới ảnh bìa ---- */
.pwl-info-bar {
	margin-top: 16px; background: #fff; border-radius: 16px; padding: 18px 20px;
	display: grid; grid-template-columns: 1fr; gap: 16px;
	box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
@media (min-width: 720px) { .pwl-info-bar { grid-template-columns: repeat(4, 1fr); } }
.pwl-info-item { display: flex; align-items: center; gap: 12px; }
.pwl-info-icon {
	flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	background: #eef2ff; color: #4338ca;
}
.pwl-info-label { font-size: 11px; color: #9ca3af; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.pwl-info-value { font-size: 15px; font-weight: 800; color: #1f2937; margin-top: 2px; }

/* ---- Khối giới thiệu sáp nhập & quy hoạch ---- */
.pwl-content-card {
	background: #fff; border-radius: 16px; padding: 22px 24px;
	box-shadow: 0 2px 10px rgba(0,0,0,.05); border: 1px solid #f0f2f5;
}
.pwl-content-heading {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	font-size: 17px; font-weight: 800; color: #ea580c; margin-bottom: 14px;
}
.pwl-content-p { font-size: 14px; line-height: 1.75; color: #374151; margin-bottom: 12px; }
.pwl-content-p:last-of-type { margin-bottom: 0; }
.pwl-note-box {
	margin-top: 16px; display: flex; align-items: flex-start; gap: 10px;
	background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af;
	border-radius: 12px; padding: 14px 16px; font-size: 13px; line-height: 1.65;
}
.pwl-note-box svg { flex-shrink: 0; margin-top: 2px; }

/* ---- Hộp tìm kiếm vàng/cam (giống tinhthanhvn.com) ---- */
.pwl-search-box {
	background: linear-gradient(120deg, #fde68a, #fbbf24);
	border-radius: 16px; padding: 18px 20px; margin-bottom: 20px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between;
}
.pwl-search-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; flex: 1 1 480px; }
.pwl-search-field-group { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; }
/* Trong column flex, flex-basis:260px sẽ áp vào chiều cao → override về none để height:44px có hiệu lực */
.pwl-search-field-group .pwl-search-input { flex: none; }
.pwl-search-field-district { flex: 1 1 200px; }
.pwl-search-label { font-size: 12px; font-weight: 800; color: #78350f; text-transform: uppercase; letter-spacing: .03em; }
.pwl-search-submit {
	display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
	background: #ea580c; color: #fff; border: none; border-radius: 10px;
	padding: 11px 20px; font-weight: 800; font-size: 13px; transition: background .2s;
}
.pwl-search-submit:hover { background: #c2410c; }
.pwl-search-result { text-align: right; flex: 0 0 auto; }
.pwl-search-result-label { display: block; font-size: 11px; font-weight: 700; color: #78350f; text-transform: uppercase; letter-spacing: .03em; }
.pwl-search-result-value { font-family: var(--font-display); font-size: 30px; font-weight: 900; color: #ea580c; line-height: 1.1; }
.pwl-search-result-unit { font-size: 12px; font-weight: 700; color: #78350f; margin-left: 4px; }
@media (max-width: 720px) {
	.pwl-search-box { flex-direction: column; align-items: stretch; }
	.pwl-search-result { text-align: left; }
}

.pwl-hero { padding: 36px 0 28px; color: #fff; }
.pwl-title {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	font-size: 24px; font-weight: 800; line-height: 1.3;
}
.pwl-title span { display: block; font-size: 16px; font-weight: 600; opacity: .92; width: 100%; }
@media (min-width: 640px) { .pwl-title { font-size: 30px; } .pwl-title span { font-size: 18px; } }

.pwl-subtitle { margin-top: 10px; font-size: 14px; opacity: .92; max-width: 780px; line-height: 1.6; }

.pwl-merged-notice {
	margin-top: 16px; display: flex; align-items: flex-start; gap: 8px;
	background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
	border-radius: 12px; padding: 10px 16px; font-size: 13px; line-height: 1.6;
}
.pwl-merged-notice svg { flex-shrink: 0; margin-top: 2px; }

.pwl-stat-grid {
	margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 640px) { .pwl-stat-grid { grid-template-columns: repeat(5, 1fr); } }
.pwl-stat-card {
	background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
	border-radius: 14px; padding: 14px; text-align: center;
}
.pwl-stat-icon { display: flex; justify-content: center; margin-bottom: 6px; opacity: .9; }
.pwl-stat-value { font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1; }
.pwl-stat-label { font-size: 11px; margin-top: 4px; opacity: .88; text-transform: uppercase; letter-spacing: .03em; }

.pwl-notice-warning {
	display: flex; align-items: center; gap: 10px; background: #fffbeb; border: 1px solid #fde68a;
	color: #92400e; border-radius: 12px; padding: 12px 16px; font-size: 13px; margin-bottom: 18px;
}
.pwl-notice-warning svg { flex-shrink: 0; }

.pwl-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.pwl-search-input {
	flex: 1 1 260px;
	display: flex; align-items: center; gap: 10px;
	background: #fff; border-radius: 10px; padding: 0 14px; height: 44px;
	position: relative;
}
.pwl-search-input svg {
	position: static; color: #9ca3af; flex-shrink: 0; width: 18px; height: 18px;
}
.pwl-search-input input {
	flex: 1; min-width: 0; height: 100%; border: none; outline: none;
	padding: 0; font-size: 14px; background: transparent;
}

.pwl-table-wrap { position: relative; }
.pwl-table { min-width: 900px; }
.pwl-table thead th {
	background: linear-gradient(90deg, #1d4ed8, #0891b2, #0284c7); color: #fff;
	position: static; /* KHÔNG sticky ở đây — việc ghim header do JS (main.js) đảm nhiệm hoàn toàn,
	                     tránh xung đột khiến header dính sớm và đè lên pwl-group-header-row */
	text-transform: uppercase; letter-spacing: .04em; font-size: 12.5px;
}
.pwl-col-stt { width: 44px; text-align: center; }
.pwl-col-map { width: 90px; text-align: center; }

/* Bản sao dòng tiêu đề được ghim bằng JS (xem main.js) */
table[aria-hidden="true"].pwl-table thead th {
	box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.pwl-group-header-row td { padding: 0; border: none; }
.pwl-group-header {
	background: linear-gradient(90deg, #475569, #334155, #475569); color: #fff;
	padding: 0; text-align: center; vertical-align: middle;
}
.pwl-group-header-inner {
	display: flex; align-items: center; gap: 10px; justify-content: center;
	font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
	font-size: 13px; padding: 12px 14px;
}
.pwl-group-header-dash { opacity: .55; font-weight: 400; letter-spacing: 0; }
.pwl-group-count { font-weight: 600; text-transform: none; letter-spacing: 0; opacity: .85; font-size: 11px; }

.pwl-row td { vertical-align: top; }
.pwl-row.pwl-alt-a { background: #fffbeb; }
.pwl-row.pwl-alt-b { background: #f0fdf4; }
.pwl-ward-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-weight: 800; color: #dc2626; text-transform: capitalize; font-size: 14px; }
.pwl-ward-name a { color: inherit; text-decoration: none; }
.pwl-code-badge {
	display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700;
	color: #6b7280; background: rgba(255,255,255,.6); border-radius: 999px; padding: 2px 9px;
}
.pwl-merged-cell { font-size: 12.5px; color: #374151; max-width: 320px; }
.pwl-merged-label { display: block; font-size: 11px; color: #9ca3af; margin-bottom: 2px; }
.pwl-district-cell { font-size: 12px; white-space: nowrap; vertical-align: middle; text-align: center; }
.pwl-district-label {
	display: block; font-size: 10px; font-weight: 800; color: var(--c-orange);
	text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px;
}
.pwl-district-cell strong { font-size: 12.5px; font-weight: 800; color: #1e293b; }

.pwl-map-btn {
	display: inline-flex; flex-direction: row; align-items: center; gap: 6px;
	color: var(--c-blue); text-decoration: none; font-size: 12px; font-weight: 700;
	padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--c-blue); background: #fff;
	white-space: nowrap; transition: all .2s;
}
.pwl-map-btn:hover { background: var(--c-blue); color: #fff; }

.pwl-empty { text-align: center; padding: 48px; color: #9ca3af; background: #fff; }

.pwl-back-links { margin-top: 24px; display: flex; justify-content: center; }

@media (max-width: 720px) {
	.pwl-toolbar { flex-direction: column; }
	.pwl-toolbar .prov-filter-select, .pwl-toolbar .prov-clear-btn { width: 100%; }
}

/* ==========================================================
   TRANG TÌM KIẾM: /tim-kiem/{keyword}/
   ========================================================== */

/* ---- Hero search section ---- */
.search-hero {
	background: linear-gradient(135deg, #e0f2fe 0%, #d1fae5 100%);
	padding: 40px 0 32px;
	border-bottom: 1px solid #e2e8f0;
}
.search-hero-inner { max-width: 800px; margin: 0 auto; }
.search-hero-title {
	display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
	color: var(--c-blue);
}
.search-hero-title h1 {
	font-size: 22px; font-weight: 800; color: #f97316; margin: 0 0 4px;
	line-height: 1.2;
}
.search-hero-title p { margin: 0; font-size: 15px; color: #0d9488; font-weight: 700; }
.search-hero-title svg { flex-shrink: 0; color: var(--c-blue); }

/* ---- Main search form ---- */
.search-main-form { display: flex; flex-direction: column; gap: 12px; }
.search-main-input-wrap {
	display: flex; align-items: center; gap: 10px;
	background: #fff; border-radius: 14px; padding: 10px 12px 10px 16px;
	box-shadow: 0 2px 12px rgba(0,0,0,.1);
	border: 2px solid transparent;
	transition: border-color .2s;
}
.search-main-input-wrap:focus-within { border-color: var(--c-blue); }
.search-main-input-wrap > svg { flex-shrink: 0; color: #9ca3af; }
.search-main-input-wrap input {
	flex: 1; border: none; outline: none; font-size: 14px; background: transparent;
	color: #1e293b; min-width: 0;
}
.search-main-input-wrap input::placeholder { color: #9ca3af; }
.search-main-btn {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--c-blue); color: #fff; border: none; border-radius: 10px;
	padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer;
	white-space: nowrap; transition: opacity .2s;
}
.search-main-btn:hover { opacity: .9; }

/* ---- Search options bar ---- */
.search-options-bar {
	display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
	padding: 0 4px;
}
.search-checkbox-label {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 13px; color: #374151; cursor: pointer; user-select: none;
}
.search-checkbox-label input[type="checkbox"] { width: 14px; height: 14px; cursor: pointer; }
.search-province-filter {
	display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #374151;
}
.search-province-select {
	border: 1.5px solid #d1d5db; border-radius: 8px; padding: 5px 10px;
	font-size: 13px; color: #374151; background: #fff; cursor: pointer;
	max-width: 200px;
}

/* ---- Results header ---- */
.search-results-section { padding: 24px 0 48px; }
.search-results-header {
	display: flex; align-items: center; gap: 8px;
	background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
	padding: 14px 20px; margin-bottom: 16px; font-size: 15px; color: #374151;
}
.search-results-header svg { color: var(--c-blue); flex-shrink: 0; }
.search-results-header strong { color: #1e293b; }

/* ---- Result card ---- */
.search-result-list { display: flex; flex-direction: column; gap: 16px; }

.search-result-card {
	background: #fff; border-radius: 16px;
	border: 1px solid #e2e8f0;
	padding: 20px 24px;
	box-shadow: 0 1px 6px rgba(0,0,0,.06);
	transition: box-shadow .2s, border-color .2s;
}
.search-result-card:hover {
	box-shadow: 0 4px 18px rgba(0,0,0,.1);
	border-color: #bfdbfe;
}

.src-header {
	display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
	margin-bottom: 12px; flex-wrap: wrap;
}
.src-title-wrap { display: flex; align-items: flex-start; gap: 10px; }
.src-icon { color: var(--c-blue); margin-top: 2px; flex-shrink: 0; }
.src-title {
	font-size: 18px; font-weight: 800; color: #1e293b; margin: 0 0 3px;
	line-height: 1.3;
}
.src-province-tag { font-size: 14px; font-weight: 600; color: #16a34a; }
.search-highlight { background: #fef08a; color: #92400e; border-radius: 3px; padding: 0 2px; }

.src-old-unit {
	display: inline-flex; align-items: center; gap: 4px;
	font-size: 13px; color: #6b7280; margin-top: 2px;
}
.src-old-unit svg { flex-shrink: 0; }

.src-match-badge {
	display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
	font-size: 11.5px; color: #4b5563; background: #f1f5f9;
	border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.src-match-badge svg { color: #94a3b8; }

/* ---- Merged from ---- */
.src-merged {
	display: flex; align-items: flex-start; gap: 8px;
	background: #fafafa; border-radius: 10px; padding: 10px 14px;
	margin-bottom: 12px; font-size: 13.5px; color: #374151;
	border-left: 3px solid #f59e0b;
}
.src-merged svg { flex-shrink: 0; color: #f59e0b; margin-top: 2px; }
.src-merged strong { color: #92400e; margin-right: 4px; }

/* ---- Stats row ---- */
.src-stats {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.src-stat {
	display: flex; align-items: center; gap: 8px;
	border-radius: 10px; padding: 8px 14px; font-size: 13px; flex-shrink: 0;
}
.src-stat-code  { background: #fef9c3; }
.src-stat-area  { background: #dcfce7; }
.src-stat-pop   { background: #fce7f3; }
.src-stat svg   { flex-shrink: 0; }
.src-stat-code  svg { color: #ca8a04; }
.src-stat-area  svg { color: #16a34a; }
.src-stat-pop   svg { color: #db2777; }
.src-stat-label { font-size: 11px; color: #6b7280; }
.src-stat-value { font-weight: 700; color: #1e293b; font-size: 13px; }

.src-btn-detail {
	display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
	background: var(--c-green, #16a34a); color: #fff; text-decoration: none;
	border-radius: 10px; padding: 10px 18px; font-size: 13px; font-weight: 700;
	transition: opacity .2s; white-space: nowrap;
}
.src-btn-detail:hover { opacity: .88; }

/* ---- Pagination ---- */
.search-pagination { margin-top: 32px; }
.search-pagination-info {
	text-align: center; font-size: 13.5px; color: #6b7280; margin-bottom: 12px;
}
.search-pagination-info strong { color: #1e293b; }
.search-pagination-nav {
	display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.spn-btn {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600;
	text-decoration: none; color: #374151; background: #f1f5f9;
	border: 1.5px solid #e2e8f0; transition: all .15s; cursor: pointer;
}
.spn-btn:hover { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.spn-current { background: var(--c-blue) !important; color: #fff !important; border-color: var(--c-blue) !important; }
.spn-disabled { opacity: .4; pointer-events: none; }
.spn-ellipsis { padding: 8px 4px; color: #9ca3af; font-size: 14px; }

/* ---- Empty / no results ---- */
.search-no-results, .search-empty-state {
	text-align: center; padding: 48px 24px;
	color: #9ca3af;
}
.search-empty-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; margin: 0 auto 20px;
	background: #f1f5f9; border-radius: 50%;
	color: #cbd5e1;
}
.search-empty-icon svg {
	width: 28px !important; height: 28px !important;
	display: block;
}
/* Ẩn SVG trực tiếp (fallback nếu không wrap bằng .search-empty-icon) */
.search-no-results > svg, .search-empty-state > svg {
	width: 40px !important; height: 40px !important;
	display: block; margin: 0 auto 16px; opacity: .3;
}
.search-no-results h2, .search-empty-state h2 { font-size: 18px; color: #374151; margin-bottom: 8px; }
.search-no-results p, .search-empty-state p { font-size: 14px; margin-bottom: 8px; }
.btn-back-home {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--c-blue); color: #fff; text-decoration: none;
	border-radius: 10px; padding: 10px 20px; font-size: 14px; font-weight: 700;
	margin-top: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
	.search-hero-title h1 { font-size: 17px; }
	.search-main-btn { padding: 10px 14px; font-size: 13px; }
	.src-header { flex-direction: column; }
	.src-match-badge { align-self: flex-start; }
	.src-stats { gap: 8px; }
	.src-btn-detail { margin-left: 0; width: 100%; justify-content: center; }
	.search-result-card { padding: 16px; }
}

/* =========================================================
   TRANG MÃ BƯU CHÍNH (/ma-buu-chinh/)
   ========================================================= */

/* ---- HERO ---- */
.mbc-hero {
	background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1a2c4e 100%);
	padding: 60px 0 50px;
	overflow: hidden;
}
.mbc-hero .container {
	display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.mbc-hero-content { flex: 1; min-width: 0; }
.mbc-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mbc-badge {
	display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
	border-radius: 999px; padding: 4px 12px;
}
.mbc-badge--blue { background: rgba(59,130,246,.2); color: #93c5fd; border: 1px solid rgba(59,130,246,.35); }
.mbc-badge--green { background: rgba(22,163,74,.2); color: #86efac; border: 1px solid rgba(22,163,74,.35); }

.mbc-hero-title {
	font-family: var(--font-display);
	font-size: clamp(24px, 4vw, 42px);
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
	margin-bottom: 16px;
}
.mbc-hero-desc { font-size: 14px; color: #94a3b8; line-height: 1.7; }

.mbc-hero-stats {
	display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px;
}
.mbc-stat {
	background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
	border-radius: 12px; padding: 12px 18px; min-width: 100px; text-align: center;
}
.mbc-stat strong {
	display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; color: #f59e0b;
}
.mbc-stat span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #94a3b8; margin-top: 4px; }

/* Hero visual */
.mbc-hero-visual {
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
}
.mbc-hero-zip-badge {
	width: 180px; height: 180px;
	background: radial-gradient(circle at 30% 30%, rgba(251,191,36,.25), rgba(30,58,138,.6));
	border: 2px solid rgba(251,191,36,.4);
	border-radius: 50%;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	position: relative;
}
.mbc-hero-zip-label { font-size: 15px; font-weight: 800; color: #fbbf24; letter-spacing: .03em; }
.mbc-hero-zip-icon { font-size: 40px; line-height: 1; }
.mbc-hero-zip-sub { font-size: 11px; color: #f59e0b; text-align: center; line-height: 1.4; font-weight: 700; }

/* ---- SEARCH SECTION ---- */
.mbc-search-section { padding: 32px 0; }
.mbc-search-panel {
	background: #fff6e0;
	border-radius: 16px;
	padding: 28px 32px;
	box-shadow: 0 2px 16px rgba(245,158,11,.1);
}
.mbc-search-panel-title {
	font-family: var(--font-display);
	font-size: 22px; font-weight: 800; color: #dc2626; margin-bottom: 6px;
}
.mbc-search-panel-sub { font-size: 13px; color: #6b7280; margin-bottom: 20px; }
.mbc-search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mbc-search-input-wrap {
	flex: 1; min-width: 200px;
	display: flex; align-items: center; gap: 10px;
	background: #fff; border: 2px solid #fde68a; border-radius: 10px;
	padding: 10px 16px;
	transition: border-color .2s;
}
.mbc-search-input-wrap:focus-within { border-color: var(--c-blue); }
.mbc-search-input-wrap svg { color: #9ca3af; flex-shrink: 0; }
.mbc-search-input {
	border: none; outline: none; background: transparent;
	font-size: 15px; font-family: inherit; width: 100%; color: #1f2937;
}
.mbc-search-input::placeholder { color: #9ca3af; }
.mbc-search-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: #dc2626; color: #fff; border: none; border-radius: 10px;
	padding: 12px 24px; font-size: 14px; font-weight: 700; white-space: nowrap;
	cursor: pointer; transition: background .2s;
}
.mbc-search-btn:hover { background: #b91c1c; }

.mbc-search-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.mbc-tag {
	display: inline-flex; align-items: center; gap: 4px;
	font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px;
}
.mbc-tag--blue { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.mbc-tag--orange { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }
.mbc-tag svg { width: 12px !important; height: 12px !important; }

/* ---- MAIN LAYOUT ---- */
.mbc-main-section { padding: 0 0 48px; }
.mbc-layout { display: flex; gap: 24px; align-items: flex-start; }
.mbc-result-col { flex: 1; min-width: 0; }
.mbc-sidebar { width: 280px; flex-shrink: 0; position: sticky; top: calc(var(--ttvn-header-h) + 12px); }
.mbc-sidebar-inner {
	background: #fff; border-radius: 14px;
	border: 1px solid #e5e7eb; overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.mbc-sidebar-title {
	display: flex; align-items: center; gap: 6px;
	padding: 12px 16px; font-size: 12px; font-weight: 700;
	letter-spacing: .08em; color: #374151;
	border-bottom: 1px solid #e5e7eb;
	background: #f9fafb;
}
.mbc-sidebar-title svg { color: var(--c-blue); }

/* Vùng miền tabs */
.mbc-region-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 10px 6px; }
.mbc-region-tab {
	flex: 1 1 auto;
	font-size: 12px; font-weight: 600; border: 1px solid #e5e7eb;
	border-radius: 8px; padding: 5px 8px; cursor: pointer;
	background: #fff; color: #6b7280; transition: all .15s;
}
.mbc-region-tab.is-active, .mbc-region-tab:hover {
	background: var(--c-blue); color: #fff; border-color: var(--c-blue);
}

/* Tìm tỉnh */
.mbc-province-search-wrap {
	display: flex; align-items: center; gap: 8px;
	margin: 6px 10px; padding: 7px 10px;
	background: #f3f4f6; border-radius: 8px; border: 1px solid #e5e7eb;
	transition: border-color .2s;
}
.mbc-province-search-wrap:focus-within { border-color: var(--c-blue); background: #fff; }
.mbc-province-search-wrap svg { color: #9ca3af; flex-shrink: 0; width: 14px !important; height: 14px !important; }
#mbc-province-search {
	border: none; outline: none; background: transparent;
	font-size: 13px; font-family: inherit; width: 100%; color: #1f2937;
}
.mbc-province-search-clear {
	background: none; border: none; color: #9ca3af; font-size: 18px;
	line-height: 1; cursor: pointer; padding: 0; flex-shrink: 0;
}
.mbc-province-search-clear:hover { color: #374151; }

/* Province list */
.mbc-province-list { max-height: 460px; overflow-y: auto; padding: 4px 0 8px; }
.mbc-province-list::-webkit-scrollbar { width: 4px; }
.mbc-province-list::-webkit-scrollbar-track { background: transparent; }
.mbc-province-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 99px; }

.mbc-province-item {
	width: 100%; text-align: left; background: transparent; border: none; cursor: pointer;
	display: flex; align-items: center; gap: 8px;
	padding: 9px 14px; font-family: inherit; transition: background .15s;
}
.mbc-province-item:hover { background: #f0f9ff; }
.mbc-province-item.is-active { background: #2563eb; color: #fff; }
.mbc-province-item.is-active svg { color: #fff !important; }
.mbc-province-item svg { flex-shrink: 0; color: #9ca3af; }
.mbc-pi-body { flex: 1; min-width: 0; }
.mbc-pi-name { display: block; font-size: 13px; font-weight: 600; color: inherit; }
.mbc-province-item.is-active .mbc-pi-name { color: #fff; }
.mbc-pi-sub { display: block; font-size: 11px; color: #9ca3af; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbc-province-item.is-active .mbc-pi-sub { color: #bfdbfe; }
.mbc-pi-count {
	flex-shrink: 0; font-size: 11px; font-weight: 700;
	background: #f3f4f6; color: #6b7280; border-radius: 99px;
	padding: 2px 7px;
}
.mbc-province-item.is-active .mbc-pi-count { background: rgba(255,255,255,.25); color: #fff; }

/* ---- RESULT HEADER ---- */
.mbc-result-header {
	background: #fff; border-radius: 12px; padding: 12px 18px;
	margin-bottom: 16px; border: 1px solid #e5e7eb;
}
.mbc-result-header-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.mbc-result-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #9ca3af; }
.mbc-result-count-text { font-size: 14px; color: #374151; }
.mbc-result-count-text strong { color: var(--c-blue); }

/* ---- PLACEHOLDER ---- */
.mbc-placeholder, .mbc-no-result {
	background: #fffbeb; border-radius: 16px; border: 2px dashed #fde68a;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	padding: 60px 24px; text-align: center; gap: 8px; color: #9ca3af;
}
.mbc-placeholder svg, .mbc-no-result svg {
	color: #d1d5db; width: 40px !important; height: 40px !important;
}
.mbc-placeholder p, .mbc-no-result p { font-size: 16px; font-weight: 700; color: #6b7280; margin: 0; }
.mbc-placeholder span, .mbc-no-result span { font-size: 13px; }

/* ---- TABLE ---- */
.mbc-table {
	width: 100%; border-collapse: collapse;
	background: #fff; border-radius: 14px; overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.mbc-table thead { background: #f9fafb; }
.mbc-table th {
	padding: 12px 14px; text-align: left;
	font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #6b7280;
	border-bottom: 2px solid #e5e7eb; white-space: nowrap;
}
.mbc-th-stt { width: 48px; text-align: center; }
.mbc-th-code { width: 110px; }
.mbc-th-province { width: 150px; }
.mbc-th-action { width: 160px; }

.mbc-table tbody tr { border-bottom: 1px solid #f3f4f6; transition: background .15s; }
.mbc-table tbody tr:hover { background: #f8faff; }
.mbc-table td { padding: 11px 14px; font-size: 13px; vertical-align: middle; }
.mbc-td-stt { text-align: center; color: #9ca3af; font-size: 12px; }
.mbc-td-name { font-weight: 600; color: var(--c-blue); }
.mbc-td-name a { color: inherit; text-decoration: none; }
.mbc-td-name a:hover { text-decoration: underline; }
.mbc-type-badge {
	display: inline-block; font-size: 10px; font-weight: 700;
	border-radius: 4px; padding: 1px 5px; margin-right: 4px;
	vertical-align: middle;
}
.mbc-type-phuong { background: #eff6ff; color: #2563eb; }
.mbc-type-xa { background: #f0fdf4; color: #16a34a; }
.mbc-type-dac_khu { background: #fdf4ff; color: #9333ea; }

.mbc-code-cell {
	font-family: monospace; font-size: 15px; font-weight: 700;
	color: #ea580c; letter-spacing: .05em;
}
.mbc-province-cell { font-size: 12px; color: #374151; }

.mbc-action-cell { display: flex; gap: 6px; align-items: center; }
.mbc-btn-copy {
	display: inline-flex; align-items: center; gap: 4px;
	font-size: 12px; font-weight: 600; border-radius: 7px;
	padding: 5px 10px; cursor: pointer; border: none; transition: all .15s;
	background: #f3f4f6; color: #374151;
}
.mbc-btn-copy:hover { background: #e5e7eb; }
.mbc-btn-copy.copied { background: #dcfce7; color: #16a34a; }
.mbc-btn-map {
	display: inline-flex; align-items: center; gap: 4px;
	font-size: 12px; font-weight: 700; border-radius: 7px;
	padding: 5px 10px; cursor: pointer; border: none;
	background: #f97316; color: #fff; transition: background .15s;
}
.mbc-btn-map:hover { background: #ea580c; }

/* ---- PAGINATION ---- */
.mbc-pagination {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	padding: 20px 0 4px; flex-wrap: wrap;
}
.mbc-page-btn {
	min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 8px; border: 1px solid #e5e7eb; background: #fff;
	font-size: 13px; font-weight: 600; color: #374151; cursor: pointer; transition: all .15s;
	padding: 0 8px;
}
.mbc-page-btn:hover { border-color: var(--c-blue); color: var(--c-blue); }
.mbc-page-btn.is-active { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.mbc-page-btn:disabled { opacity: .35; cursor: not-allowed; }

/* ---- MAP ---- */
.mbc-map-section {
	background: #fff; border-radius: 16px; overflow: hidden;
	border: 1px solid #e5e7eb; margin-top: 24px;
	box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.mbc-map-header {
	display: flex; align-items: center; gap: 8px;
	padding: 14px 18px; border-bottom: 1px solid #e5e7eb;
	font-size: 13px; font-weight: 700; color: var(--c-blue);
}
.mbc-map-header svg { color: var(--c-blue); }
.mbc-map-body { display: flex; min-height: 360px; }
.mbc-map-leaflet { flex: 1; min-height: 360px; z-index: 1; }
.mbc-map-info-panel {
	width: 220px; flex-shrink: 0; padding: 18px 16px;
	border-left: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 14px;
}
.mbc-map-info-panel h4 {
	display: flex; align-items: center; gap: 6px;
	font-size: 12px; font-weight: 700; letter-spacing: .07em; color: #374151;
}
.mbc-info-row { display: flex; align-items: flex-start; gap: 8px; }
.mbc-info-row svg { flex-shrink: 0; color: var(--c-blue); margin-top: 2px; }
.mbc-info-row span { display: block; font-size: 11px; color: #9ca3af; font-weight: 600; }
.mbc-info-row strong { display: block; font-size: 14px; color: #1f2937; margin-top: 2px; }
.mbc-tip-box {
	background: #fffbeb; border-radius: 8px; padding: 10px 12px;
	font-size: 12px; color: #6b7280; border-left: 3px solid #f59e0b;
}
.mbc-tip-box strong {
	display: flex; align-items: center; gap: 4px;
	font-size: 12px; color: #374151; margin-bottom: 6px;
}
.mbc-tip-box strong svg { color: #f59e0b; width: 14px !important; height: 14px !important; }
.mbc-tip-box p { margin: 0; line-height: 1.6; }

/* ---- PREFIX SECTION ---- */
.mbc-prefix-section {
	padding: 40px 0 60px;
	background: #fff8e8;
}
.mbc-prefix-header {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 12px; margin-bottom: 28px;
}
.mbc-prefix-badge {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--c-orange);
	text-transform: uppercase;
}
.mbc-prefix-badge svg { color: var(--c-orange); }
.mbc-prefix-title {
	font-family: var(--font-display);
	font-size: clamp(16px, 2.5vw, 22px); font-weight: 800; color: #1f2937;
}
.mbc-prefix-total {
	font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--c-orange);
	white-space: nowrap;
}

.mbc-prefix-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}
.mbc-prefix-card {
	background: #fff; border-radius: 12px; padding: 14px 16px;
	border: 1px solid #e5e7eb; transition: box-shadow .2s, border-color .2s;
}
.mbc-prefix-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); border-color: #d1d5db; }
.mbc-prefix-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; margin-bottom: 4px; }
.mbc-prefix-card-name {
	font-size: 13px; font-weight: 700; text-decoration: none;
	line-height: 1.3;
}
.mbc-prefix-card-name:hover { text-decoration: underline; }
.mbc-prefix-card-num { font-size: 11px; color: #9ca3af; font-weight: 600; white-space: nowrap; }
.mbc-prefix-card-merged { font-size: 11px; color: #9ca3af; margin-bottom: 8px; line-height: 1.4; }
.mbc-prefix-card-codes { display: flex; flex-wrap: wrap; gap: 4px; }
.mbc-prefix-pill {
	font-size: 12px; font-weight: 700; border-radius: 6px;
	padding: 3px 10px; border: none; cursor: pointer;
	background: #eff6ff; color: #2563eb; transition: all .15s;
}
.mbc-prefix-pill:hover { background: #2563eb; color: #fff; }
.mbc-prefix-updating { font-size: 11px; color: #9ca3af; font-style: italic; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
	.mbc-layout { flex-direction: column-reverse; }
	.mbc-sidebar { width: 100%; position: static; }
	.mbc-map-body { flex-direction: column; }
	.mbc-map-info-panel { width: 100%; border-left: none; border-top: 1px solid #e5e7eb; }
}
@media (max-width: 640px) {
	.mbc-hero .container { flex-direction: column; }
	.mbc-hero-visual { display: none; }
	.mbc-search-panel { padding: 18px; }
	.mbc-search-row { flex-direction: column; }
	.mbc-th-province, .mbc-th-action { display: none; }
	.mbc-table td:nth-child(4), .mbc-table td:nth-child(5) { display: none; }
	.mbc-prefix-grid { grid-template-columns: 1fr 1fr; }
	.mbc-prefix-header { flex-direction: column; }
}

/* =========================================================
   TRANG MÃ BƯU CHÍNH THEO TỈNH: /ma-buu-chinh/{slug}/
   (page-ma-buu-chinh-tinh.php)
   ========================================================= */
.mbcp-hero { padding-bottom: 28px; }
.mbcp-stat-grid {
	display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px;
	margin-top: 22px; max-width: 560px;
}
.mbcp-stat {
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
	border-radius: 10px; padding: 12px 14px;
}
.mbcp-stat-icon {
	display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700;
	letter-spacing: .05em; color: #94a3b8; margin-bottom: 6px;
}
.mbcp-stat strong { display: block; font-size: 18px; color: #fff; font-family: var(--font-display); }
.mbcp-legal-note { font-size: 11.5px; color: #94a3b8; line-height: 1.6; margin-top: 18px; max-width: 720px; }

.mbcp-breadcrumb {
	display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #9ca3af;
	padding: 14px 0 0;
}
.mbcp-breadcrumb a { color: #6b7280; text-decoration: none; }
.mbcp-breadcrumb a:hover { color: var(--c-blue); text-decoration: underline; }
.mbcp-breadcrumb span { color: var(--c-orange); font-weight: 600; }
.mbcp-breadcrumb svg { width: 12px !important; height: 12px !important; color: #d1d5db; }

.mbcp-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.mbcp-card {
	background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 22px 24px;
}
.mbcp-card-eyebrow {
	display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
	letter-spacing: .06em; color: var(--c-orange); margin-bottom: 10px;
}
.mbcp-card-title { font-size: 18px; font-weight: 800; color: #1f2937; margin-bottom: 10px; }
.mbcp-card-desc { font-size: 13.5px; color: #6b7280; line-height: 1.7; }

.mbcp-prefix-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mbcp-prefix-pill {
	font-family: var(--font-display); font-weight: 700; font-size: 14px;
	background: #fff7ed; color: var(--c-orange); border: 1px solid #fed7aa;
	border-radius: 8px; padding: 8px 16px;
}
.mbcp-empty-note { font-size: 12.5px; color: #9ca3af; font-style: italic; }

.mbcp-model-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.mbcp-model-row {
	display: flex; align-items: center; gap: 10px; background: #f9fafb;
	border: 1px solid #f3f4f6; border-radius: 10px; padding: 10px 14px;
}
.mbcp-model-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.mbcp-model-label { flex: 1; font-size: 13.5px; font-weight: 600; color: #374151; }
.mbcp-model-count { font-size: 11.5px; font-weight: 800; color: #9ca3af; letter-spacing: .03em; }

.mbcp-steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: mbcp-step; }
.mbcp-steps li {
	counter-increment: mbcp-step; position: relative; padding: 0 0 16px 34px;
}
.mbcp-steps li:last-child { padding-bottom: 0; }
.mbcp-steps li::before {
	content: counter(mbcp-step); position: absolute; left: 0; top: 0;
	width: 22px; height: 22px; border-radius: 50%; background: var(--c-orange); color: #fff;
	font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.mbcp-steps strong { display: block; font-size: 13.5px; color: #1f2937; margin-bottom: 3px; }
.mbcp-steps p { font-size: 12.5px; color: #6b7280; line-height: 1.6; }

.mbcp-warning-box {
	display: flex; align-items: flex-start; gap: 8px; margin-top: 16px;
	background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
	border-radius: 10px; padding: 12px 14px; font-size: 12.5px; line-height: 1.6;
}
.mbcp-warning-box svg { flex-shrink: 0; margin-top: 2px; color: #d97706; }

.mbcp-filter-bar {
	background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px;
	padding: 18px 20px; margin-bottom: 18px;
}
.mbcp-filter-label { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #92400e; margin-bottom: 10px; }
.mbcp-filter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mbcp-search-wrap {
	flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px;
	background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0 12px;
}
.mbcp-search-wrap svg { color: #9ca3af; flex-shrink: 0; }
#mbcp-search { flex: 1; border: none; outline: none; height: 42px; font-size: 13.5px; background: transparent; }
.mbcp-search-btn {
	display: flex; align-items: center; gap: 6px; background: var(--c-orange); color: #fff;
	border: none; border-radius: 8px; padding: 0 18px; height: 42px; font-size: 13px; font-weight: 700;
}
.mbcp-search-btn:hover { background: #c2410c; }
.mbcp-select {
	height: 42px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff;
	padding: 0 12px; font-size: 13px; color: #374151; min-width: 190px;
}

.mbcp-table-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; }
.mbcp-table-wrap table { width: 100%; }
.mbcp-sortable { cursor: pointer; user-select: none; }
.mbcp-sortable:hover { color: var(--c-blue); }
.mbcp-code-copy {
	font-family: var(--font-display); font-weight: 700; color: var(--c-orange); cursor: pointer;
	border-bottom: 1px dashed transparent;
}
.mbcp-code-copy:hover { border-bottom-color: var(--c-orange); }
.mbcp-code-copy.is-copied { color: var(--c-green); }
.mbcp-merged-cell { color: #6b7280; font-size: 12px; line-height: 1.5; max-width: 380px; }

.mbcp-quickfilter { margin-top: 18px; }
.mbcp-quickfilter-title {
	display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800;
	color: #374151; margin-bottom: 10px;
}
.mbcp-quickfilter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mbcp-qf-pill {
	background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: 6px 14px;
	font-size: 12px; font-weight: 600; color: #374151; display: flex; align-items: center; gap: 6px;
}
.mbcp-qf-pill span { font-size: 10.5px; color: #9ca3af; font-weight: 700; }
.mbcp-qf-pill.is-active { background: var(--c-orange); color: #fff; border-color: var(--c-orange); }
.mbcp-qf-pill.is-active span { color: rgba(255,255,255,.8); }

.mbcp-note-box { background: #111827; border-radius: 16px; padding: 26px 28px; color: #d1d5db; }
.mbcp-note-box h3 { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 16px; margin-bottom: 18px; }
.mbcp-note-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mbcp-note-grid strong { display: block; color: #fbbf24; font-size: 13.5px; margin-bottom: 6px; }
.mbcp-note-grid p { font-size: 12.5px; line-height: 1.7; color: #cbd5e1; }
.mbcp-note-footer {
	display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px;
	border-top: 1px solid rgba(255,255,255,.1); font-size: 11.5px; color: #9ca3af;
}

.mbcp-prefix-card-current { border-color: var(--c-orange) !important; box-shadow: 0 0 0 2px rgba(234,88,12,.15); }
.mbc-prefix-card-codes a.mbc-prefix-pill { text-decoration: none; display: inline-block; }

@media (max-width: 900px) {
	.mbcp-two-col { grid-template-columns: 1fr; }
	.mbcp-note-grid { grid-template-columns: 1fr; }
	.mbcp-stat-grid { max-width: 100%; }
}
@media (max-width: 640px) {
	.mbcp-select { min-width: 100%; }
	.mbcp-filter-row { flex-direction: column; }
}

/* ==========================================================
   TRANG MÃ BƯU CHÍNH CHI TIẾT 1 PHƯỜNG/XÃ (page-ma-buu-chinh-xa.php)
   /ma-buu-chinh/{tinh}/{xa}/
   ========================================================== */
.text-gradient-orange {
	background: linear-gradient(90deg, #ea580c, #f59e0b);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

.mbcx-hero-panel {
	display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start;
	background: #fff7ed; border: 1px solid #fed7aa; border-radius: 20px; padding: 32px;
}
.mbcx-title { font-size: 26px; font-weight: 800; color: #1f2937; }
.mbcx-ward-name { font-size: 34px; font-weight: 900; color: var(--c-orange); margin-top: 4px; font-family: var(--font-display); }
.mbcx-desc { font-size: 14px; color: #57534e; line-height: 1.7; margin-top: 14px; max-width: 640px; }

.mbcx-history-card { background: #fff; border: 1px solid #fed7aa; border-radius: 14px; padding: 18px 20px; margin-top: 22px; }
.mbcx-history-title { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #c2410c; margin-bottom: 8px; }
.mbcx-history-sub { font-size: 13px; font-weight: 700; color: #374151; margin: 0 0 10px; }
.mbcx-pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mbcx-pill { font-size: 12px; color: #78350f; background: #ffedd5; border: 1px solid #fed7aa; border-radius: 999px; padding: 6px 12px; line-height: 1.4; }
.mbcx-history-note { font-size: 12px; color: #9a3412; margin-top: 14px; line-height: 1.6; }

.mbcx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.mbcx-btn {
	display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700;
	border-radius: 999px; padding: 12px 22px; border: none; cursor: pointer; text-decoration: none; transition: all .15s;
}
.mbcx-btn--primary { background: var(--c-orange); color: #fff; }
.mbcx-btn--primary:hover { background: #c2410c; }
.mbcx-btn--primary.is-copied { background: var(--c-green); }
.mbcx-btn--outline { background: #fff; color: #374151; border: 1.5px solid #d1d5db; }
.mbcx-btn--outline:hover { border-color: var(--c-orange); color: var(--c-orange); }
.mbcx-btn--dark { background: #111827; color: #fff; white-space: nowrap; }
.mbcx-btn--dark:hover { background: #1f2937; }

.mbcx-hero-right { display: flex; justify-content: center; }
.mbcx-zip-card {
	background: #fff; border-radius: 18px; padding: 26px 28px; box-shadow: 0 10px 30px rgba(0,0,0,.06);
	display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 320px;
}
.mbcx-zip-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; color: #c2410c; background: #ffedd5; border-radius: 999px; padding: 6px 12px; text-align: center; }
.mbcx-zip-digits { display: flex; gap: 8px; }
.mbcx-digit {
	width: 44px; height: 54px; border-radius: 10px; background: #1f2937; color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; font-family: var(--font-display);
}
.mbcx-digit.is-accent { background: var(--c-orange); }
.mbcx-zip-digits--lg .mbcx-digit { width: 52px; height: 62px; font-size: 28px; }
.mbcx-zip-validated { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--c-green); background: #dcfce7; border-radius: 999px; padding: 6px 14px; }
.mbcx-zip-footnote { font-size: 11px; color: #9ca3af; }

.mbcx-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 28px 30px; }
.mbcx-card-head { display: flex; gap: 14px; margin-bottom: 20px; }
.mbcx-card-head-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: #fff7ed; color: var(--c-orange); display: flex; align-items: center; justify-content: center; }
.mbcx-card-head h3 { font-size: 18px; font-weight: 800; color: #1f2937; }
.mbcx-card-head p { font-size: 12.5px; color: #9ca3af; margin-top: 2px; }

.mbcx-guide-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.mbcx-guide-col { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 18px; }
.mbcx-guide-col strong { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #1f2937; margin-bottom: 8px; }
.mbcx-guide-col p { font-size: 12.5px; color: #6b7280; line-height: 1.7; }
.mbcx-guide-col strong svg { color: var(--c-orange); }

.mbcx-envelope {
	position: relative; border: 2px dashed #f97316; border-radius: 4px; padding: 24px;
	display: grid; grid-template-columns: 1fr auto; gap: 16px; background: #fffdf9;
}
.mbcx-envelope-sender { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #374151; }
.mbcx-envelope-label { font-size: 10.5px; font-weight: 700; color: #9ca3af; margin-bottom: 4px; }
.mbcx-envelope-stamp {
	width: 70px; height: 84px; border: 1px dashed #cbd5e1; border-radius: 4px; background: #fefce8;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
	font-size: 9px; color: #78716c; grid-column: 2; grid-row: 1;
}
.mbcx-envelope-stamp span { font-size: 12px; font-weight: 800; color: #1f2937; }
.mbcx-envelope-receiver {
	grid-column: 1 / -1; margin-top: 30px; margin-left: auto; max-width: 320px; width: 100%;
	background: #fff; border: 1px solid #fde68a; border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
}
.mbcx-envelope-receiver strong { font-size: 13.5px; color: #1f2937; }
.mbcx-envelope-receiver > span { font-size: 12px; color: #57534e; }
.mbcx-envelope-zip { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.mbcx-envelope-zip-label { font-size: 10px; font-weight: 700; color: #9ca3af; margin-right: 4px; }
.mbcx-envelope-digit { width: 26px; height: 30px; border: 1.5px solid #f59e0b; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #c2410c; }
.mbcx-envelope-note { font-size: 11px; color: #9ca3af; text-align: center; margin-top: 16px; }

.mbcx-section-title { font-size: 18px; font-weight: 800; color: #1f2937; margin-bottom: 6px; }
.mbcx-section-sub { font-size: 13px; color: #9ca3af; margin-bottom: 22px; }

.mbcx-structure-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.mbcx-structure-visual { background: #f9fafb; border-radius: 14px; padding: 24px; text-align: center; }
.mbcx-structure-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; color: #9ca3af; margin-bottom: 16px; }
.mbcx-structure-visual .mbcx-zip-digits { justify-content: center; margin-bottom: 8px; }
.mbcx-structure-positions { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.mbcx-structure-positions span { width: 52px; font-size: 10.5px; color: #9ca3af; }
.mbcx-structure-code { font-size: 13px; color: #374151; margin-top: 18px; }
.mbcx-structure-code strong { color: var(--c-orange); }

.mbcx-structure-rows { display: flex; flex-direction: column; gap: 14px; }
.mbcx-structure-row { display: flex; gap: 12px; background: #f9fafb; border: 1px solid #f1f5f9; border-radius: 12px; padding: 14px 16px; }
.mbcx-structure-row--active { background: #fff7ed; border-color: #fdba74; }
.mbcx-structure-icon { width: 30px; height: 30px; border-radius: 9px; background: #fff; color: var(--c-blue); flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.mbcx-structure-row--active .mbcx-structure-icon { color: var(--c-orange); }
.mbcx-structure-row-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.mbcx-structure-row-head span { font-size: 11px; font-weight: 800; color: #fff; background: #94a3b8; border-radius: 6px; padding: 2px 8px; }
.mbcx-structure-row--active .mbcx-structure-row-head span { background: var(--c-orange); }
.mbcx-structure-row p { font-size: 12.5px; color: #6b7280; line-height: 1.65; margin: 0; }

.mbcx-tip-box { display: flex; gap: 12px; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 16px 18px; }
.mbcx-tip-box svg { color: var(--c-green); flex-shrink: 0; margin-top: 2px; }
.mbcx-tip-box strong { display: block; font-size: 13px; color: #065f46; margin-bottom: 4px; }
.mbcx-tip-box p { font-size: 12.5px; color: #047857; line-height: 1.6; margin: 0; }

.mbcx-structure-footer { text-align: center; font-size: 10.5px; letter-spacing: .04em; color: #d1d5db; margin: 26px 0 0; }

.mbcx-map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.mbcx-carrier-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mbcx-carrier-tab {
	display: flex; flex-direction: column; align-items: flex-start; gap: 1px; background: #f9fafb; border: 1px solid #e5e7eb;
	border-radius: 10px; padding: 8px 14px; font-size: 12.5px; font-weight: 700; color: #374151; cursor: pointer;
}
.mbcx-carrier-tab span { font-size: 10.5px; font-weight: 500; color: #9ca3af; }
.mbcx-carrier-tab.is-active { background: #eff6ff; border-color: var(--c-blue); color: var(--c-blue); }
.mbcx-carrier-tab.is-active span { color: #93c5fd; }
.mbcx-map-frame { border-radius: 14px; overflow: hidden; border: 1px solid #e5e7eb; }
.mbcx-map-frame iframe { display: block; }

.mbcx-faq-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.mbcx-faq-accordion { display: flex; flex-direction: column; gap: 10px; }
.mbcx-faq-item { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.mbcx-faq-q { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: #f9fafb; border: none; padding: 14px 16px; font-size: 13.5px; font-weight: 700; color: #1f2937; cursor: pointer; }
.mbcx-faq-q svg { flex-shrink: 0; color: var(--c-orange); transition: transform .2s; }
.mbcx-faq-item.is-open .mbcx-faq-q { background: #fff7ed; }
.mbcx-faq-item.is-open .mbcx-faq-q svg { transform: rotate(180deg); }
.mbcx-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.mbcx-faq-item.is-open .mbcx-faq-a { max-height: 600px; }
.mbcx-faq-a p { font-size: 12.5px; color: #6b7280; line-height: 1.75; padding: 14px 16px; margin: 0; }
.mbcx-faq-a strong { color: #1f2937; }

.mbcx-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--ttvn-header-h) + 12px); }
.mbcx-sidebar-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; }
.mbcx-sidebar-card h4 { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: #1f2937; margin-bottom: 4px; }
.mbcx-sidebar-card h4 svg { color: var(--c-orange); }
.mbcx-sidebar-sub { font-size: 11.5px; color: #9ca3af; margin-bottom: 14px; }
.mbcx-nearby-item { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid #f3f4f6; }
.mbcx-nearby-item:first-of-type { border-top: none; }
.mbcx-nearby-item strong { font-size: 13px; color: #374151; }
.mbcx-nearby-item span { font-size: 9.5px; font-weight: 700; color: #9ca3af; margin-left: auto; margin-right: 6px; }
.mbcx-nearby-item em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--c-blue); }
.mbcx-stat-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #6b7280; padding: 8px 0; border-top: 1px solid #f3f4f6; }
.mbcx-stat-row:first-of-type { border-top: none; }
.mbcx-stat-row svg { color: var(--c-orange); flex-shrink: 0; }
.mbcx-stat-row strong { margin-left: auto; color: #1f2937; font-size: 13.5px; }

.mbcx-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mbcx-cta-card { display: block; border-radius: 18px; padding: 26px 28px; text-decoration: none; color: #fff; transition: transform .15s; }
.mbcx-cta-card:hover { transform: translateY(-2px); }
.mbcx-cta-card--orange { background: linear-gradient(135deg, #9a3412, #ea580c); }
.mbcx-cta-card--blue { background: linear-gradient(135deg, #1e293b, #1d4ed8); }
.mbcx-cta-eyebrow { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; background: rgba(255,255,255,.15); border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
.mbcx-cta-card h4 { font-size: 18px; font-weight: 800; margin-bottom: 8px; line-height: 1.35; }
.mbcx-cta-card p { font-size: 12.5px; color: rgba(255,255,255,.8); line-height: 1.6; margin-bottom: 16px; }
.mbcx-cta-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }

@media (max-width: 900px) {
	.mbcx-hero-panel { grid-template-columns: 1fr; }
	.mbcx-guide-cols { grid-template-columns: 1fr; }
	.mbcx-structure-grid { grid-template-columns: 1fr; }
	.mbcx-faq-layout { grid-template-columns: 1fr; }
	.mbcx-sidebar { position: static; }
	.mbcx-cta-grid { grid-template-columns: 1fr; }
	.mbcx-envelope { grid-template-columns: 1fr; }
	.mbcx-envelope-stamp { grid-column: 1; grid-row: auto; align-self: flex-end; }
	.mbcx-envelope-receiver { margin-left: 0; max-width: 100%; }
}
