/**
 * MỤC ĐÍCH: Bản đồ bóng rổ Việt Nam (/du-lieu-vbf/): màn đêm toàn trang, đỏ là màu nhấn duy nhất, chữ compact (Gout.md §2, §8).
 * PHỤ THUỘC: page-du-lieu-vbf.php, assets/js/datamap.js, token ở tokens.css.
 * ADMIN SỬA ĐƯỢC: không, chỉ trình bày.
 * MỞ RỘNG: không.
 * GỠ AN TOÀN: xoá cùng page-du-lieu-vbf.php.
 */
html:has(.vbf-mapbody), .vbf-mapbody { height: 100%; overflow: hidden; background: #06080d; overscroll-behavior: none; }
.vbf-map { position: fixed; inset: 0; color: #fff; font-family: var(--vbf-font); background: radial-gradient(60% 55% at 50% 50%, rgba(140, 13, 20, .2), transparent 70%), #06080d; }
.vbf-map__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.vbf-map__canvas.is-drag { cursor: grabbing; }
.vbf-map__canvas.is-hit { cursor: pointer; }
.vbf-map__hud { position: absolute; left: 24px; top: calc(var(--vbf-head-h) + 18px); pointer-events: none; }
.vbf-map .vbf-map__title { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.vbf-map__count { margin: 3px 0 0; font-size: 12.5px; color: #8b909c; font-variant-numeric: tabular-nums; }
.vbf-map__find { position: absolute; right: 24px; top: calc(var(--vbf-head-h) + 16px); width: 300px; z-index: 3; }
.vbf-map__field { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; background: rgba(20, 24, 31, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: #8b909c; backdrop-filter: blur(10px); transition: box-shadow .2s; }
.vbf-map__field:focus-within { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.vbf-map__field.is-link { box-shadow: inset 0 0 0 1px #e11d26; }
.vbf-map .vbf-map__field input { flex: 1; min-width: 0; height: 38px; padding: 0; border: 0; outline: 0; background: none; box-shadow: none; color: #fff; font: 500 13.5px/1 var(--vbf-font); }
.vbf-map__field input::placeholder { color: #8b909c; opacity: 1; }
.vbf-map__clear { padding: 0 2px; border: 0; background: none; color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.vbf-map__results { margin: 6px 0 0; padding: 5px; list-style: none; border-radius: 12px; background: rgba(20, 24, 31, .96); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); max-height: 50vh; overflow: auto; }
.vbf-map__results button { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 8px 9px; border: 0; border-radius: 8px; background: none; color: #fff; font: 500 13px/1.3 var(--vbf-font); text-align: left; cursor: pointer; }
.vbf-map__results button:hover, .vbf-map__results button:focus-visible, .vbf-map__results button.is-on { background: rgba(255, 255, 255, .09); }
.vbf-map__results small { flex: none; color: #8b909c; font-size: 11.5px; }
.vbf-map__results .is-empty { padding: 8px 9px; color: #8b909c; font-size: 12.5px; }
.vbf-map__legend { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(20, 24, 31, .78); backdrop-filter: blur(10px); max-width: calc(100vw - 32px); overflow-x: auto; scrollbar-width: none; }
.vbf-map__legend::-webkit-scrollbar { display: none; }
.vbf-map__legend button { flex: none; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: #d6d9df; font: 500 12px/1 var(--vbf-font); white-space: nowrap; cursor: pointer; transition: opacity .2s, background .2s; }
.vbf-map__legend button:hover { background: rgba(255, 255, 255, .08); }
.vbf-map__legend button[aria-pressed="false"] { opacity: .38; }
.vbf-map__legend b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.vbf-map__mark { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.vbf-map__mark.is-n { background: #e11d26; }
.vbf-map__mark.is-c { background: none; border: 2px solid #fff; box-sizing: border-box; }
.vbf-map__mark.is-k { background: #aeb4c0; }
.vbf-map__mark.is-r { background: #6d7380; }
.vbf-map__mark.is-t { border-radius: 2px; background: none; border: 2px solid #ff5a61; box-sizing: border-box; }
.vbf-map__mark.is-m { width: 5px; height: 5px; background: #8b909c; }
.vbf-map__zoom { position: absolute; right: 24px; bottom: 20px; display: flex; flex-direction: column; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(20, 24, 31, .78); backdrop-filter: blur(10px); }
.vbf-map__zoom button { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: none; color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.vbf-map__zoom button:hover { background: rgba(255, 255, 255, .1); }
.vbf-map__pulse { position: absolute; left: 50%; bottom: 72px; transform: translate(-50%, 6px); max-width: min(560px, calc(100vw - 32px)); padding: 0; border: 0; background: none; color: #d6d9df; font: 500 13px/1.45 var(--vbf-font); text-align: center; text-wrap: balance; opacity: 0; cursor: pointer; transition: opacity .6s, transform .6s; text-shadow: 0 1px 10px #06080d; }
.vbf-map__pulse.is-on { opacity: 1; transform: translate(-50%, 0); }
.vbf-map__pulse b { color: #fff; font-weight: 700; }
.vbf-map__card { position: absolute; right: 24px; top: calc(var(--vbf-head-h) + 68px); max-height: calc(100dvh - var(--vbf-head-h) - 88px); width: 300px; z-index: 2; display: flex; flex-direction: column; border-radius: 16px; background: rgba(16, 19, 26, .92); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .5); backdrop-filter: blur(14px); animation: vbf-map-in .3s ease; overflow: hidden; }
.vbf-map__card[hidden] { display: none; }
@keyframes vbf-map-in { from { opacity: 0; transform: translateX(10px); } }
.vbf-map__chead { position: relative; display: flex; gap: 12px; align-items: center; padding: 16px 40px 12px 16px; }
.vbf-map__cimg { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #20252f; color: #fff; font-weight: 700; font-size: 15px; }
.vbf-map__cimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vbf-map__chead small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #ff5a61; }
.vbf-map .vbf-map__chead h2 { margin: 3px 0 0; font-size: 15.5px; line-height: 1.3; font-weight: 700; color: #fff; text-wrap: balance; }
.vbf-map__chead em { display: block; margin-top: 2px; font-style: normal; font-size: 11.5px; color: #8b909c; }
.vbf-map__x { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: #aeb4c0; font-size: 18px; line-height: 1; cursor: pointer; }
.vbf-map__x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.vbf-map__acts { display: flex; gap: 6px; padding: 0 16px 12px; }
.vbf-map a.vbf-map__btn, .vbf-map__btn { flex: 1; display: flex; align-items: center; justify-content: center; height: 34px; padding: 0 8px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .08); color: #fff; font: 600 12.5px/1 var(--vbf-font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s; }
.vbf-map a.vbf-map__btn.is-main { background: #e11d26; }
.vbf-map a.vbf-map__btn.is-main:hover { background: #f5262f; }
.vbf-map__btn:hover { background: rgba(255, 255, 255, .15); }
.vbf-map__ctitle { margin: 0; padding: 4px 16px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8b909c; }
.vbf-map__links { flex: 1; min-height: 0; margin: 0; padding: 0 8px 10px; list-style: none; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.vbf-map__links button { width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: #fff; text-align: left; cursor: pointer; font-family: var(--vbf-font); }
.vbf-map__links button:hover, .vbf-map__links button:focus-visible { background: rgba(255, 255, 255, .08); }
.vbf-map__links b { display: block; font-size: 13px; line-height: 1.3; font-weight: 600; }
.vbf-map__links small { display: block; margin-top: 1px; font-size: 11.5px; color: #8b909c; }
.vbf-map__steps .vbf-map__hop { padding: 0 8px; font-size: 11.5px; color: #ff5a61; }
.vbf-map__empty { margin: 0; padding: 4px 16px 16px; font-size: 13px; line-height: 1.5; color: #aeb4c0; }

@media (max-width: 1279px) {
	.vbf-map__legend { bottom: calc(82px + env(safe-area-inset-bottom)); }
	.vbf-map__zoom { display: none; }
	.vbf-map__pulse { bottom: calc(132px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
	.vbf-map__hud { left: 16px; top: calc(var(--vbf-head-h) + 60px); }
	.vbf-map .vbf-map__title { font-size: 14.5px; }
	.vbf-map__count { font-size: 11.5px; }
	.vbf-map__find { left: 16px; right: 16px; top: calc(var(--vbf-head-h) + 10px); width: auto; }
	.vbf-map__legend { left: 16px; right: 16px; transform: none; max-width: none; justify-content: flex-start; }
	.vbf-map__legend button { padding: 7px 8px; font-size: 11.5px; }
	.vbf-map__pulse { font-size: 12px; }
	.vbf-map__card { left: 8px; right: 8px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; max-height: 52dvh; z-index: 4; }
}
@media (prefers-reduced-motion: reduce) { .vbf-map__card { animation: none; } .vbf-map__pulse { transition: none; } }
/* 07/11/2026: icon nhóm trong thẻ — nét trắng, thu nhỏ giữa vòng tối */ .vbf-map__cimg.is-icon { display: grid; place-items: center; background: #161b25; } .vbf-map__cimg.is-icon img { width: 50% !important; height: 50% !important; object-fit: contain; filter: invert(1); }

/* Điện thoại: thanh gọn ở đáy, kéo hoặc chạm để mở bảng; bản đồ luôn thấy kết nối (chủ site 08/11/2026). */
.vbf-map__legend { transition: opacity .25s ease, transform .25s ease; }
@media (max-width: 760px) {
	.vbf-map.has-sheet .vbf-map__legend { opacity: 0; pointer-events: none; transform: translateY(8px); }
	.vbf-map__card.is-sheet { height: 66px; max-height: none; border-radius: 18px; background: rgba(14, 17, 24, .97); animation: none; overscroll-behavior: contain; transition: height .36s cubic-bezier(.22, 1, .36, 1), opacity .2s ease; }
	.vbf-map__card.is-sheet.is-drag { transition: none; }
	.vbf-map__card.is-sheet.is-out { opacity: 0; }
	.vbf-map__card.is-sheet > * { flex: none; }
	.vbf-map__card.is-sheet > .vbf-map__links { flex: 1 1 0; }
	.vbf-map__grip { height: 14px; display: grid; place-items: center; touch-action: none; }
	.vbf-map__grip::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .24); }
	.vbf-map__card.is-sheet .vbf-map__chead { height: 52px; padding: 0 142px 10px 12px; gap: 10px; touch-action: none; cursor: pointer; -webkit-user-select: none; user-select: none; }
	.vbf-map__card.is-sheet .vbf-map__chead > div { min-width: 0; }
	.vbf-map__card.is-sheet .vbf-map__cimg { width: 38px; height: 38px; font-size: 13px; }
	.vbf-map__card.is-sheet .vbf-map__chead small { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.vbf-map .vbf-map__card.is-sheet .vbf-map__chead h2 { margin-top: 1px; font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-wrap: nowrap; }
	.vbf-map__card.is-sheet .vbf-map__chead em { display: none; }
	.vbf-map__card.is-sheet .vbf-map__x { right: 4px; top: 7px; width: 36px; height: 36px; font-size: 20px; }
	.vbf-map__more { position: absolute; right: 42px; top: 10px; height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 11px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .09); color: #fff; font: 600 11.5px/1 var(--vbf-font); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
	.vbf-map__more i { width: 6px; height: 6px; margin-top: 3px; border-left: 1.5px solid #fff; border-top: 1.5px solid #fff; transform: rotate(45deg); transition: transform .3s ease, margin .3s ease; }
	.vbf-map__card.is-open .vbf-map__more i { margin-top: -3px; transform: rotate(225deg); }
}
@media (min-width: 761px) {
	.vbf-map__card.is-sheet { animation: none; transition: height .34s cubic-bezier(.22, 1, .36, 1), opacity .2s ease; }
	.vbf-map__card.is-sheet.is-out { opacity: 0; }
	.vbf-map__card.is-sheet > * { flex: none; }
	.vbf-map__card.is-sheet > .vbf-map__links { flex: 1 1 0; }
	.vbf-map__card.is-sheet .vbf-map__chead { height: 72px; padding: 0 82px 0 14px; cursor: pointer; }
	.vbf-map__card.is-sheet .vbf-map__chead > div { min-width: 0; }
	.vbf-map__card.is-sheet .vbf-map__cimg { width: 44px; height: 44px; font-size: 14px; }
	.vbf-map__card.is-sheet .vbf-map__chead em { display: none; }
	.vbf-map .vbf-map__card.is-sheet .vbf-map__chead h2 { font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-wrap: wrap; }
	.vbf-map__card.is-sheet .vbf-map__x { right: 8px; top: 20px; width: 32px; height: 32px; }
	.vbf-map__more { position: absolute; right: 44px; top: 20px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
	.vbf-map__more:hover { background: rgba(255, 255, 255, .08); }
	.vbf-map__more span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.vbf-map__more i { width: 7px; height: 7px; margin-top: 4px; border-left: 1.5px solid #aeb4c0; border-top: 1.5px solid #aeb4c0; transform: rotate(45deg); transition: transform .3s ease, margin .3s ease; }
	.vbf-map__card.is-open .vbf-map__more i { margin-top: -4px; transform: rotate(225deg); }
	.vbf-map__cid { margin: -4px 0 0; padding: 0 16px 10px 72px; font-size: 11.5px; color: #8b909c; }
}
@media (prefers-reduced-motion: reduce) { .vbf-map__card.is-sheet, .vbf-map__more i, .vbf-map__legend { transition: none; } }
