/* Trang Bản đồ 34 tỉnh thành (nạp sau np.css) */
.vn-find { position: relative; display: flex; align-items: center; gap: 10px; max-width: 640px; margin-top: 24px; padding: 0 16px; height: 54px; border-radius: 6px; background: #fff; color: #201654; }
.vn-find .icon { width: 20px; height: 20px; color: var(--np-blue); }
.vn-find input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 16px; color: inherit; outline: 0; }
.vn-find__res { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px; max-height: 380px; overflow: auto; border-radius: 6px; background: #fff; box-shadow: 0 20px 50px -20px rgba(16, 41, 80, .5); }
.vn-find__res button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 9px 12px; border: 0; border-radius: 4px; background: none; font: inherit; text-align: left; cursor: pointer; color: #201654; }
.vn-find__res button:hover { background: #f2f8fe; }
.vn-find__res small { color: #6d7088; font-size: 12.5px; }
.vn-find__res .muted { padding: 10px 12px; color: #6d7088; }
.vn-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; }
.vn-stats span { display: flex; align-items: baseline; gap: 7px; color: rgba(255, 255, 255, .78); font-size: 14px; }
.vn-stats b { font-size: 26px; font-weight: 700; color: var(--np-yellow); }

.vn-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .vn-layout { grid-template-columns: 1fr; } }
.vn-mapbox { position: relative; }
.vn-regions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.vn-regions button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--np-line); border-radius: 999px; background: var(--np-card); color: var(--np-head); font: inherit; font-size: 12.5px; cursor: pointer; }
.vn-regions i { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); }
.vn-regions button.is-on { background: var(--np-navy); border-color: var(--np-navy); color: #fff; }
.vn-map { max-width: 620px; margin: 0 auto; }
.vn-map svg { display: block; width: 100%; height: auto; }
.vn-map path { fill: var(--rc); fill-opacity: .55; stroke: #fff; stroke-width: .8; cursor: pointer; transition: fill-opacity .2s, opacity .2s; outline: 0; }
:root[data-theme="dark"] .vn-map path { stroke: #0b1426; }
.vn-map path:hover, .vn-map path:focus-visible { fill-opacity: .85; }
.vn-map path.is-on { fill: var(--np-yellow); fill-opacity: 1; stroke: var(--np-navy); stroke-width: 1.4; }
.vn-map path.is-dim { opacity: .18; }
.vn-tip { position: absolute; z-index: 5; pointer-events: none; display: flex; flex-direction: column; padding: 8px 12px; border-radius: 4px; background: var(--np-navy); color: #fff; font-size: 13px; white-space: nowrap; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .5); }
.vn-tip small { color: rgba(255, 255, 255, .7); }

.vn-panel { position: sticky; top: 76px; }
@media (max-width: 1000px) { .vn-panel { position: static; } }
.vn-empty h2, .vn-panel__name { font-size: 26px; font-weight: 700; color: var(--np-head); line-height: 1.25; margin: 12px 0 8px; }
.vn-empty p, .vn-panel__note { color: var(--np-text); line-height: 1.65; }
.vn-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin: 18px 0; }
.vn-kpi span { display: flex; flex-direction: column; padding: 12px; border-radius: 6px; background: var(--np-soft); font-size: 12.5px; color: var(--muted); }
.vn-kpi b { font-size: 22px; color: var(--np-head); }
.vn-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--np-line); font-size: 14.5px; }
.vn-row span { color: var(--muted); }
.vn-row b { font-weight: 600; color: var(--np-head); }
.vn-panel .np-btn { margin-top: 20px; }

.vn-wfilter { display: flex; gap: 8px; }
.vn-wfilter input, .vn-wfilter select { height: 40px; padding: 0 12px; border: 1px solid var(--np-line); border-radius: 4px; background: var(--np-card); color: var(--np-head); font: inherit; font-size: 14px; }
.vn-wards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
.vn-ward { border-radius: 6px; background: var(--np-card); border: 1px solid var(--np-line); }
.vn-ward summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; list-style: none; }
.vn-ward summary::-webkit-details-marker { display: none; }
.vn-ward summary b { flex: 1; color: var(--np-head); font-weight: 600; }
.vn-ward summary small { color: var(--muted); font-size: 12px; }
.vn-ward__t { padding: 2px 8px; border-radius: 3px; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--np-blue); }
.vn-t-xa { background: #14a38b; }
.vn-t-dackhu { background: #d6407f; }
.vn-ward p { margin: 0; padding: 0 14px 13px; font-size: 13.5px; line-height: 1.6; color: var(--np-text); }
.vn-ward p span { color: var(--muted); }
.vn-ward.is-hl { border-color: var(--np-yellow); box-shadow: 0 0 0 3px rgba(255, 190, 0, .35); }

.vn-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.vn-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 16px 14px; border: 1px solid var(--np-line); border-top: 4px solid var(--rc); border-radius: 6px; background: var(--np-card); font: inherit; text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.vn-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(16, 41, 80, .5); }
.vn-card__type { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--rc); }
.vn-card strong { font-size: 18px; color: var(--np-head); }
.vn-card small { font-size: 13px; color: var(--np-text); line-height: 1.45; }
.vn-card em { margin-top: 6px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.vn-src { margin-top: 28px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.vn-src a { color: var(--np-blue); }
.vn-tip[hidden], .vn-find__res[hidden] { display: none; }

/* ---- Cột phải: danh sách 34 tỉnh (kiểu Dentacity) + chi tiết ---- */
.vn-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .vn-layout { grid-template-columns: 1fr; } }
.vn-panel { padding: 20px; }
.vn-list__sum { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--np-line); font-size: 13.5px; color: var(--muted); }
.vn-list__sum b { color: var(--np-head); font-size: 16px; }
.vn-list__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.vn-list__tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--np-line); border-radius: 999px; background: var(--np-card); color: var(--np-head); font: inherit; font-size: 12.5px; cursor: pointer; }
.vn-list__tabs i { width: 8px; height: 8px; border-radius: 50%; background: var(--rc); }
.vn-list__tabs button.is-on { background: var(--np-navy); border-color: var(--np-navy); color: #fff; }
.vn-list__sort { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; font-size: 12.5px; color: var(--muted); }
.vn-list__sort span { margin-right: 4px; }
.vn-list__sort button { padding: 4px 9px; border: 0; border-radius: 4px; background: none; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.vn-list__sort button.is-on { background: var(--np-soft); color: var(--np-blue); font-weight: 600; }
.vn-list__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 8px; max-height: 600px; overflow-y: auto; padding-right: 4px; }
@media (max-width: 1000px) { .vn-list__grid { max-height: none; } }
.vn-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; border: 1px solid var(--np-line); border-left: 3px solid var(--rc); border-radius: 5px; background: var(--np-card); color: var(--np-head); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.vn-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(16, 41, 80, .55); border-color: var(--rc); color: var(--np-blue); }
.vn-item__name { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vn-item__name i { flex: none; padding: 1px 5px; border-radius: 3px; background: var(--np-yellow); color: var(--np-navy); font-style: normal; font-size: 10px; font-weight: 700; }
.vn-item__n { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--np-soft); color: var(--np-blue); font-size: 12px; font-weight: 700; }
.vn-map path.is-hover { fill-opacity: .95; stroke: var(--np-navy); stroke-width: 1.2; }

.vn-detail__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.vn-back { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px 6px 6px; border: 0; border-radius: 4px; background: var(--np-soft); color: var(--np-blue); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.vn-back .icon, .vn-nav .icon { width: 16px; height: 16px; }
.vn-nav { display: flex; gap: 6px; }
.vn-nav button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--np-line); border-radius: 4px; background: var(--np-card); color: var(--np-head); cursor: pointer; }
.vn-nav button:hover { background: var(--np-blue); border-color: var(--np-blue); color: #fff; }
.vn-head { padding: 16px 18px; border-radius: 6px; background: var(--np-navy); color: #fff; border-left: 5px solid var(--rc); }
.vn-head__meta { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.vn-head__meta b { color: var(--np-yellow); font-weight: 600; }
.vn-head h2 { margin: 4px 0 6px; font-size: 28px; font-weight: 700; line-height: 1.2; }
.vn-head p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.vn-kpi { grid-template-columns: 1fr 1fr; margin: 14px 0 12px; }
.vn-kpi span { font-size: 12px; }
.vn-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--np-soft); }
.vn-bar__ph { background: var(--np-blue); } .vn-bar__xa { background: #14a38b; } .vn-bar__dk { background: #d6407f; }
.vn-bar__legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 12.5px; color: var(--np-text); }
.vn-bar__legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; }
.vn-bar__legend .ph::before { background: var(--np-blue); } .vn-bar__legend .xa::before { background: #14a38b; } .vn-bar__legend .dk::before { background: #d6407f; }
.vn-h3 { margin: 20px 0 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.vn-merge { font-size: 14px; color: var(--np-text); margin-bottom: 8px; }
.vn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vn-chip { padding: 4px 10px; border-radius: 4px; background: var(--np-soft); color: var(--np-head); font-size: 13px; font-weight: 500; }
.vn-plate { min-width: 36px; padding: 3px 7px; border: 1.5px solid var(--np-head); border-radius: 3px; background: #fff; color: #111; font-size: 13px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.vn-dl { display: grid; grid-template-columns: 150px minmax(0, 1fr); margin: 0; }
.vn-dl dt, .vn-dl dd { margin: 0; padding: 9px 0; border-bottom: 1px dashed var(--np-line); font-size: 14px; }
.vn-dl dt { color: var(--muted); }
.vn-dl dd { color: var(--np-head); font-weight: 600; }
.vn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.vn-actions .np-btn { margin: 0; }
.np-btn--line { background: transparent; color: var(--np-blue); box-shadow: inset 0 0 0 1.5px var(--np-blue); }
.np-btn--line:hover { background: var(--np-blue); color: #fff; }
[data-list][hidden], [data-panel][hidden] { display: none; }

/* ---- Trang từng tỉnh /tinh/<slug> ---- */
.tn-hero { position: relative; display: flex; align-items: flex-end; min-height: min(62vh, 560px); background: var(--np-navy); color: #fff; isolation: isolate; }
.tn-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tn-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 30, 60, .25), rgba(11, 30, 60, .55) 50%, rgba(11, 30, 60, .95)); }
.tn-hero__in { padding-top: 120px; padding-bottom: 44px; }
.tn-hero__meta { display: block; margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.tn-hero__meta b { color: var(--np-yellow); font-weight: 600; }
.tn-hero h1 { margin: 6px 0 12px; font-size: clamp(38px, 6vw, 72px); font-weight: 800; line-height: 1.05; }
.tn-hero p { max-width: 720px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.tn-hero__credit { display: block; margin-top: 18px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.tn-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--np-line); }
.tn-toc:empty { display: none; }
.tn-toc a { padding: 7px 13px; border-radius: 4px; background: var(--np-soft); color: var(--np-head); font-size: 13.5px; font-weight: 500; }
.tn-toc a:hover { background: var(--np-blue); color: #fff; }
.np-article .prose h2 { scroll-margin-top: 80px; }
.tn-facts .np-more { margin: 4px 0 6px; }
.tn-mini { aspect-ratio: 1; border-radius: 6px; background: var(--np-soft); overflow: hidden; }
.tn-mini svg { width: 100%; height: 100%; display: block; }
.tn-mini path { stroke: #fff; stroke-width: .6; }
.tn-mini path.is-me { stroke: var(--np-navy); stroke-width: 1.2; }
.tn-facts .vn-dl { grid-template-columns: 118px minmax(0, 1fr); margin-top: 14px; }
.tn-related:empty::before { content: "Chưa có bài viết riêng về tỉnh này."; color: var(--muted); }
.tn-pn { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--np-line); }
.tn-pn a { display: flex; flex-direction: column; color: var(--np-head); }
.tn-pn a:nth-child(2) { padding: 10px 18px; border-radius: 4px; background: var(--np-soft); font-weight: 600; font-size: 14px; text-align: center; }
.tn-pn a:last-child { text-align: right; }
.tn-pn small { color: var(--muted); font-size: 12px; }
.tn-pn b { font-size: 17px; }
.tn-pn a:hover b, .tn-pn a:nth-child(2):hover { color: var(--np-blue); }
.tn-card { min-height: 250px; }
.tn-card small { color: rgba(255, 255, 255, .78); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tn-card .np-ov__title { font-size: 20px; }
[data-tinh] .prose > h2:first-child { margin: 0 0 .6em; padding: 0; background: none; font-size: revert; letter-spacing: normal; text-transform: none; color: var(--np-head); }

/* ---- Nâng cấp 25/11/2026: bản đồ to hơn, nền biển, Hoàng Sa – Trường Sa – Phú Quốc, chế độ tỉnh cũ ---- */
.vn-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 1000px) { .vn-layout { grid-template-columns: 1fr; } }
.vn-mapbox { padding: 0 !important; overflow: hidden; border-radius: 18px;
  background: radial-gradient(120% 80% at 80% 60%, #bfe3f7 0%, #d8effb 45%, #eef8fd 100%) !important; color: #0b6fa4; }
:root[data-theme="dark"] .vn-mapbox { background: radial-gradient(120% 80% at 80% 60%, #0c3550, #0a2539 55%, #071a29) !important; color: #7cc7ee; }
.vn-map { max-width: none; margin: 0; padding: 12px 8px; }
.vn-map path { fill-opacity: .78; stroke: #fff; stroke-width: .9; filter: drop-shadow(0 1px 1px rgba(10, 60, 90, .12)); }
.vn-map path:hover, .vn-map path:focus-visible { fill-opacity: 1; }
.vn-sea text { font-family: inherit; text-anchor: middle; pointer-events: none; }
.vn-sea__big { font-size: 34px; font-weight: 800; letter-spacing: 12px; fill: #0b6fa4; fill-opacity: .35; font-style: italic; }
.vn-sea__gulf { font-size: 15px; font-style: italic; font-weight: 600; fill: #0b6fa4; fill-opacity: .55; letter-spacing: 1px; }
.vn-sea__ring { fill: rgba(255, 255, 255, .18); stroke: #d92b2b; stroke-width: 1.6; stroke-dasharray: 6 5; pointer-events: none; }
.vn-sea__isl { font-size: 15px; font-weight: 800; fill: #b91c1c; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 4px; }
.vn-sea__sub { font-size: 12px; font-weight: 600; fill: #475569; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 3px; }
.vn-sea__compass circle { fill: rgba(255, 255, 255, .55); stroke: #0b6fa4; stroke-opacity: .4; }
.vn-sea__compass path { fill: #0b6fa4; fill-opacity: .35; } .vn-sea__compass path.n { fill: #d92b2b; fill-opacity: .9; }
.vn-sea__compass text { font-size: 13px; font-weight: 800; fill: #0b6fa4; }
:root[data-theme="dark"] .vn-sea__isl { fill: #fca5a5; stroke: rgba(7, 26, 41, .85); }
:root[data-theme="dark"] .vn-sea__sub { fill: #cbd5e1; stroke: rgba(7, 26, 41, .85); }
.vn-sea__bg { color: #0b6fa4; }
/* Cột phải: tên tỉnh hiện đủ (xuống dòng thay vì bị cắt) */
.vn-list__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); max-height: 680px; }
.vn-item { align-items: flex-start; }
.vn-item__name { white-space: normal; overflow: visible; line-height: 1.3; }
.vn-item__to { flex: none; max-width: 52%; font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: right; line-height: 1.3; }
/* Chọn chế độ 34 mới / 63 cũ */
.vn-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: var(--np-soft); }
.vn-mode button { height: 38px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.vn-mode button.is-on { background: var(--np-card); color: var(--np-head); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.vn-oldnote { margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; background: #fff7e0; color: #5b4500; font-size: 14px; line-height: 1.5; }
:root[data-theme="dark"] .vn-oldnote { background: #3a2f0b; color: #fde68a; }
.vn-sea__big { font-size: 64px; letter-spacing: 18px; }
.vn-sea__gulf { font-size: 26px; }
.vn-sea__isl { font-size: 27px; stroke-width: 6px; }
.vn-sea__sub { font-size: 21px; stroke-width: 5px; }
.vn-sea__ring { stroke-width: 2.6; stroke-dasharray: 10 8; }
.vn-sea__compass text { font-size: 22px; }
.vn-stats span { color: var(--muted, #6b7280); }
.vn-stats b { color: var(--nv-brand, #e11d48); }
.vn-sea__big { font-size: 54px; letter-spacing: 14px; }
/* Bản đồ 63 tỉnh cũ: tô theo màu vùng của tỉnh mới, viền mảnh; tỉnh cũ đang chọn nổi bật */
.is-old .vn-map path { stroke-width: .7; }
.vn-map path.is-oldsel { fill: #e11d48 !important; fill-opacity: 1; stroke: #7f1d1d; stroke-width: 1.4; }
/* 25/11: nền chỉ màu (không hoạ tiết); lớp ranh giới cũ phủ lên bản đồ mới */
.vn-mapbox { background: #e6f4fb !important; }
.vn-old path { fill: transparent; stroke: #1f2937; stroke-width: 1.1; stroke-dasharray: 3 2.5; stroke-opacity: .75; cursor: pointer; filter: none; }
.vn-old path:hover { fill: rgba(255, 255, 255, .35); stroke-dasharray: none; }
.vn-old path.is-oldsel { fill: rgba(225, 29, 72, .55) !important; stroke: #7f1d1d; stroke-dasharray: none; stroke-width: 1.6; }
.vn-sea__big { fill: #0b4f7c; fill-opacity: .45; }
/* Nền đất liền các nước lân cận */
[data-land] path { fill: #ece6d8; stroke: #d6cdb8; stroke-width: .8; pointer-events: none; filter: none; }
[data-land] text { font: 700 22px/1 inherit; fill: #a8977a; letter-spacing: 4px; text-anchor: middle; pointer-events: none; }
[data-land] text.sm { font-size: 16px; }
:root[data-theme="dark"] [data-land] path { fill: #23303d; stroke: #2e3d4c; }
:root[data-theme="dark"] [data-land] text { fill: #64748b; }
/* Bản đồ phường, xã của tỉnh */
.vn-wmap { position: relative; max-width: 760px; margin: 0 auto 22px; padding: 14px; border-radius: 16px; background: #eef7fc; box-shadow: var(--nv-shadow); }
.vn-wmap svg { display: block; width: 100%; height: auto; max-height: 640px; }
.vn-wmap path { stroke: #fff; stroke-width: 1.2; cursor: pointer; transition: fill .15s; }
.vn-wmap path.ph { fill: #93c5fd; } .vn-wmap path.xa { fill: #86efac; } .vn-wmap path.dk { fill: #f9a8d4; }
.vn-wmap path:hover { fill: #fbbf24; }
.vn-wmap path.is-hl { fill: #e11d48; stroke: #7f1d1d; stroke-width: 2; }
.vn-wmap__tip { position: absolute; z-index: 5; pointer-events: none; padding: 6px 10px; border-radius: 6px; background: #0f172a; color: #fff; font-size: 13px; white-space: nowrap; }
.vn-wmap__tip[hidden] { display: none; }
.vn-wmap__legend { display: flex; gap: 14px; justify-content: center; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.vn-wmap__legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.vn-wmap__legend .ph::before { background: #93c5fd; } .vn-wmap__legend .xa::before { background: #86efac; } .vn-wmap__legend .dk::before { background: #f9a8d4; }
:root[data-theme="dark"] .vn-wmap { background: #0f2231; }
:root[data-theme="dark"] .vn-wmap path { stroke: #0f2231; }
.vn-wmap rect.inset { fill: rgba(255, 255, 255, .7); stroke: #94a3b8; stroke-width: 1.5; stroke-dasharray: 5 4; }
.vn-wmap text.inset-t { font: 700 15px/1 inherit; fill: #475569; }
:root[data-theme="dark"] .vn-wmap rect.inset { fill: rgba(15, 34, 49, .8); }
:root[data-theme="dark"] .vn-wmap text.inset-t { fill: #cbd5e1; }
/* Tên đảo ven bờ: chấm + nhãn nhỏ, rê chuột thì nổi bật */
.vn-isl { pointer-events: all; cursor: default; }
.vn-isl circle { fill: #fff; stroke: #b91c1c; stroke-width: 2.4; }
.vn-isl text { font-size: 17px; font-weight: 700; fill: #0b3b5c; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 4px; text-anchor: start !important; }
.vn-isl:hover circle { fill: #b91c1c; }
.vn-isl:hover text { fill: #b91c1c; font-size: 20px; }
:root[data-theme="dark"] .vn-isl text { fill: #e2e8f0; stroke: rgba(7, 26, 41, .85); }
.vn-addr-cta { margin-top: 12px; } .vn-addr-cta a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: #e11d48; color: #fff; font-weight: 700; font-size: 14px; }
/* 25/11: ranh giới tỉnh cũ = nét trắng bên trong tỉnh mới (viền ngoài bị mặt nạ che) */
.vn-old path { fill: transparent; stroke: #fff; stroke-width: 1.8; stroke-dasharray: none; stroke-opacity: .95; pointer-events: all; }
.vn-old path:hover { fill: rgba(255, 255, 255, .28); }
.vn-old path.is-oldsel { fill: rgba(255, 255, 255, .55) !important; stroke: #fff; stroke-width: 2.4; }
/* Ranh giới tỉnh cũ rõ ở mọi cỡ: nét 2px cố định + phủ sáng xen kẽ */
.vn-old path { stroke-width: 2.2px; vector-effect: non-scaling-stroke; stroke: #fff; stroke-opacity: 1; }
.vn-old path.is-alt { fill: rgba(255, 255, 255, .32); }
.vn-old path:hover { fill: rgba(255, 255, 255, .45); }
.vn-old path.is-oldsel { fill: rgba(255, 255, 255, .7) !important; }
/* Mặt nạ lớp tỉnh cũ: không để quy tắc .vn-map path tô màu lên các đường của mặt nạ */
#vn-oldmask path { fill: #fff !important; fill-opacity: 1 !important; stroke: #000 !important; stroke-width: 7px !important; stroke-opacity: 1 !important; filter: none !important; vector-effect: none !important; }
.vn-map path[data-code] { fill-opacity: .95; stroke: #fff; stroke-width: 1; }
