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

:root {
	--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: 0; 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: #ea580c; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 999px;
	padding: 2px 10px; margin-left: 6px; white-space: nowrap;
}
.ward-proposed-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ea580c; }

/* 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; }
.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: sticky; top: 0; z-index: 2;
	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; }

.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%; }
}
