/* Tro ly dat dai Ninh Binh - giao dien nguoi dan */
:root {
  --blue: #1d4ed8; --blue-2: #2563eb; --blue-50: #eff4ff; --navy: #0f2a5c;
  --ink: #0f172a; --text: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #f6f8fc; --card: #fff;
  --green: #16a34a; --green-50: #ecfdf3; --orange: #ea580c; --orange-50: #fff4ec; --red: #e11d48; --red-50: #fff1f3;
  --purple: #7c3aed; --purple-50: #f5f0ff; --pink: #db2777; --pink-50: #fdf0f7; --amber-50: #fffbeb;
  --r: 14px; --sh: 0 1px 2px #0f172a0d, 0 4px 16px #0f172a0f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 "Be Vietnam Pro", system-ui, "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 17px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
svg.lucide { width: 18px; height: 18px; stroke-width: 2; vertical-align: -3px; }

/* ---------- Header ---------- */
.hdr { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.hdr-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 13px; letter-spacing: .3px; line-height: 1.15; text-decoration: none !important; }
.logo svg { width: 44px; height: 30px; flex: none; }
.logo span { display: flex; flex-direction: column; }
.logo b { font-size: 14px; color: var(--blue); }
.logo-w, .logo-w b { color: #fff; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > a, .dd-btn { color: var(--text); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 14px; background: none; border: 0; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav > a:hover, .dd-btn:hover { background: var(--blue-50); color: var(--blue); text-decoration: none; }
.nav > a.on, .dd.on .dd-btn { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav-user span { display: none; }
.nav-user svg.lucide { width: 26px; height: 26px; }
.dd { position: relative; }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh); padding: 6px; min-width: 260px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.dd-menu a:hover { background: var(--blue-50); text-decoration: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* ---------- Buttons, forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--blue); color: #fff; padding: 11px 20px; border-radius: 10px; font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; text-decoration: none !important; }
.btn:hover { background: var(--blue-2); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-o { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-o:hover { background: var(--blue-50); }
.btn-g { background: var(--green); } .btn-g:hover { background: #15803d; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 3px solid #1d4ed833; border-color: var(--blue); }
label.check { display: flex; gap: 8px; align-items: flex-start; color: var(--text); font-weight: 400; }
label.check input { width: auto; margin-top: 3px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.msg { margin: 10px 0 0; font-size: 14px; }
.msg.ok { color: var(--green); } .msg.err { color: var(--red); }
.searchbar { display: flex; align-items: center; gap: 8px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: var(--sh); }
.searchbar input { border: 0; margin: 0; padding: 10px 0; outline: 0 !important; }
.searchbar .btn { flex: none; }

/* ---------- Cards, icon tiles ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh); }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ic svg.lucide { width: 22px; height: 22px; }
.ic.green { background: var(--green-50); color: var(--green); } .ic.orange { background: var(--orange-50); color: var(--orange); }
.ic.red { background: var(--red-50); color: var(--red); } .ic.blue { background: var(--blue-50); color: var(--blue); }
.ic.purple { background: var(--purple-50); color: var(--purple); } .ic.pink { background: var(--pink-50); color: var(--pink); }
.ic.solid.green { background: var(--green); color: #fff; } .ic.solid.orange { background: #f59e0b; color: #fff; }
.ic.solid.red { background: var(--red); color: #fff; } .ic.solid.blue { background: var(--blue); color: #fff; } .ic.solid.purple { background: var(--purple); color: #fff; }
.more { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.more svg.lucide { width: 14px; height: 14px; }
.svc { display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.svc:hover { transform: translateY(-2px); box-shadow: 0 8px 28px #1d4ed81f; }
.svc h3 { margin: 4px 0 0; font-size: 16px; }
.svc p { margin: 0; font-size: 13.5px; color: var(--muted); flex: 1; }
.svc.t-green { background: linear-gradient(160deg, var(--green-50), #fff 60%); } .svc.t-orange { background: linear-gradient(160deg, var(--orange-50), #fff 60%); }
.svc.t-purple { background: linear-gradient(160deg, var(--purple-50), #fff 60%); } .svc.t-blue { background: linear-gradient(160deg, var(--blue-50), #fff 60%); }
.svc.t-red { background: linear-gradient(160deg, var(--red-50), #fff 60%); } .svc.t-pink { background: linear-gradient(160deg, var(--pink-50), #fff 60%); }

/* ---------- Home ---------- */
.hero { position: relative; color: #fff; text-align: center; padding: 70px 0 120px; overflow: hidden; background: #2a6a8a; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0f2a5c66, #0f2a5c22 45%, #0f2a5c77); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(26px, 4vw, 42px); font-weight: 800; text-shadow: 0 2px 12px #0006; text-wrap: balance; }
.nowrap { white-space: nowrap; }
.hero p { font-size: 17px; max-width: 640px; margin: 0 auto 26px; text-shadow: 0 1px 8px #0007; text-wrap: balance; }
.hero .searchbar { max-width: 720px; margin: 0 auto; }
.quick { position: relative; z-index: 2; margin-top: -70px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 22px 14px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--ink); font-size: 14px; font-weight: 500; padding: 8px; border-radius: 12px; }
.quick a:hover { background: var(--bg); text-decoration: none; }
.quick .ic { width: 62px; height: 62px; border-radius: 50%; }
.quick .ic svg.lucide { width: 28px; height: 28px; }
.sec { padding: 40px 0 10px; }
.sec-hd { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust { margin-top: 40px; background: linear-gradient(90deg, #0f2a5cf0, #1e3a8ae6), #0f2a5c; color: #fff; border-radius: var(--r); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 24px; }
.trust div { display: flex; gap: 14px; align-items: center; }
.trust svg.lucide { width: 34px; height: 34px; flex: none; }
.trust b { display: block; color: #fff; }
.trust small { opacity: .85; }

/* ---------- Page header, breadcrumb ---------- */
.page { padding: 28px 0 50px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--muted); } .crumb b { color: var(--blue); font-weight: 600; }
.ph { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.ph h1 { font-size: 26px; margin: 0; } .ph p { margin: 2px 0 0; color: var(--muted); }

/* ---------- Service list ---------- */
.svc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 20px; margin-top: 18px; }
.cats { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 84px; align-self: start; }
.cats a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: 14px; }
.cats a:hover { background: #fff; text-decoration: none; }
.cats a.on { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

/* ---------- Service detail ---------- */
.dv-top { display: grid; grid-template-columns: 1fr 300px; gap: 18px; margin-top: 16px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; padding: 7px 0; }
.checks svg.lucide { color: var(--green); flex: none; margin-top: 2px; }
.price-box h3 { margin-bottom: 4px; }
.price-box .gia { font-size: 26px; font-weight: 800; color: var(--blue); }
.price-box .btn { margin-top: 10px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.steps > div { display: flex; gap: 12px; padding: 4px 16px; border-left: 1px solid var(--line); }
.steps > div:first-child { border-left: 0; padding-left: 0; }
.steps .n { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.steps b { color: var(--ink); display: block; }
.steps small { color: var(--muted); }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 16px 16px; }
.note { display: flex; gap: 12px; background: var(--blue-50); border: 1px solid #c7d7fe; border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.note svg.lucide { color: var(--blue); flex: none; margin-top: 2px; }
.note.warn { background: var(--amber-50); border-color: #fde68a; }
.note.warn svg.lucide { color: #b45309; }

/* ---------- Lookup pages ---------- */
.wrap.wide { width: min(1440px, 100% - 32px); }
.lk { display: grid; grid-template-columns: 1fr 360px; gap: 18px; margin-top: 16px; }
.mapbox { position: relative; height: max(560px, calc(100vh - 230px)); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh); isolation: isolate; }
.mapbox #map { position: absolute; inset: 0; }
.nhac-chon { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 100px);
  background: var(--blue); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 14px; box-shadow: var(--sh); pointer-events: none; }
.nhac-chon b { color: #fff; }
.nhac-chon svg.lucide { flex: none; width: 18px; height: 18px; }
.mapbox.dang-chon .leaflet-container, .ban-do-gia.dang-chon .leaflet-container { cursor: crosshair; }
.ban-do-gia { position: relative; }
.chon-lai { position: absolute; top: 12px; right: 12px; z-index: 500; display: flex; align-items: center; gap: 6px; background: #fff; color: var(--blue); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: var(--sh); }
.chon-lai svg.lucide { width: 16px; height: 16px; }
.layers { position: absolute; left: 12px; bottom: 12px; z-index: 500; background: #fff; border-radius: 12px; box-shadow: var(--sh); padding: 12px 14px; font-size: 13px; min-width: 190px; }
.layers b { color: var(--ink); display: block; margin-bottom: 6px; }
.layers label { display: flex; gap: 8px; align-items: center; margin: 4px 0; color: var(--text); font-weight: 400; }
.layers input[type=checkbox] { width: auto; margin: 0; }
.layers input[type=range] { margin: 6px 0 0; padding: 0; }
.side { display: flex; flex-direction: column; gap: 14px; }
.side h3 { font-size: 16px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--ink); font-weight: 500; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid #0002; vertical-align: -2px; margin-right: 6px; }
.qh-list { list-style: none; padding: 0; margin: 8px 0; }
.qh-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.qh-list small { display: block; color: var(--muted); }
.bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #eee; margin: 8px 0; }
.bar span { display: block; height: 100%; }
.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.totals div { border-radius: 10px; padding: 10px 12px; background: var(--red-50); font-size: 13px; }
.totals div.keep { background: var(--green-50); }
.totals b { display: block; font-size: 19px; color: var(--ink); }
.found { color: var(--green); display: flex; gap: 8px; align-items: center; }
.pay { text-align: center; border: 1.5px solid var(--green); background: linear-gradient(180deg, var(--green-50), #fff 40%); }
.pay .kv { text-align: left; margin-top: 10px; }
/* loai tra cuu + muc phi cua ma QR (tinh / phan khu thu rieng) */
.loai-phi { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 6px 0 10px; padding: 8px 12px;
  border-radius: 10px; background: #eef2ff; color: #1e3a8a; font-size: 13.5px; font-weight: 600; text-align: left; }
.loai-phi b { font-size: 17px; white-space: nowrap; }
.pay-pk .loai-phi { background: #f5f3ff; color: #5b21b6; }
.pay img.qr { width: 230px; max-width: 100%; image-rendering: pixelated; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; margin: 8px 0; }
.pay-gia { margin-top: 14px; padding: 16px; border-radius: 12px; }
.zalo-box { text-align: left; background: #fff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 12px; margin: 10px 0; }
.zalo-box label { color: #0b4aa8; font-weight: 600; margin: 0; }
.zalo-box .pair { display: flex; gap: 8px; }
.zalo-box .pair input { flex: 1; min-width: 0; }
.zalo-box .btn { margin-top: 5px; padding: 10px 16px; }
.copy { border: 1px solid var(--line); background: #fff; border-radius: 6px; font: 12px inherit; font-family: inherit; padding: 2px 8px; cursor: pointer; margin-left: 4px; }
.cho { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--green); font-weight: 600; }
.spin { width: 16px; height: 16px; border: 2px solid #16a34a44; border-top-color: var(--green); border-radius: 50%; animation: quay .8s linear infinite; }
@keyframes quay { to { transform: rotate(360deg); } }
.nhan-thua { background: #fff; border: 1.5px solid var(--red); color: var(--ink); font: 600 12px/1.35 "Be Vietnam Pro", sans-serif; border-radius: 8px; padding: 4px 8px; text-align: center; }
.legend-item { display: flex; gap: 8px; font-size: 13px; padding: 3px 0; }
.tabs-tim { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.tabs-tim button { display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 14px; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs-tim button svg.lucide { width: 16px; height: 16px; }
.tabs-tim button.on { background: var(--blue); color: #fff; }
/* Chon loai quy hoach tra cuu: tinh 1:100.000 | phan khu 1/2000 */
.loai-qh { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 780px; margin: -4px 0 14px; }
.loai-qh button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font: inherit; color: var(--muted); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.loai-qh button:hover { border-color: #93a8e8; }
.loai-qh button svg.lucide { flex: none; width: 26px; height: 26px; color: #64748b; }
.loai-qh b { display: block; font-size: 15px; color: #0f172a; }
.loai-qh small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; }
.loai-qh button.on { border-color: var(--blue); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }
.loai-qh button.on svg.lucide, .loai-qh button.on b { color: var(--blue); }
.tim-thua { display: grid; grid-template-columns: 110px 110px 1fr auto; gap: 10px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--sh); }
.tim-thua label { margin: 0; }
.tim-dc { grid-template-columns: 260px 1fr auto; align-items: center; }
.tim-gia { grid-template-columns: 240px 1fr auto; }
.tra-ghim-noi { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1000; box-shadow: 0 4px 14px #0004; white-space: nowrap; }
.tra-ghim:disabled { cursor: not-allowed; }
.huong-dan { margin: 0; padding-left: 20px; font-size: 14px; color: var(--text); display: grid; gap: 3px; }
.tim-thua .btn { height: 44px; }
.mode { display: flex; gap: 6px; margin: 10px 0 0; flex-wrap: wrap; font-size: 13px; }
.mode label { margin: 0; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; color: var(--text); font-weight: 500; }
.mode label:has(input:checked) { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.mode input { display: none; }
.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.empty svg.lucide { width: 40px; height: 40px; color: #94a3b8; }

/* ---------- Price page ---------- */
.price-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
.price-hero div { background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.price-hero small { color: var(--muted); display: block; }
.price-hero b { font-size: 20px; color: var(--ink); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 12px; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: 500 14px inherit; font-family: inherit; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; display: flex; gap: 6px; align-items: center; }
.tabs button.on { color: var(--blue); border-color: var(--blue); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; background: var(--bg); color: var(--muted); font-weight: 600; font-size: 13px; }
table.tbl th, table.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl td.num { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; }
table.tbl th.num { text-align: right; }
/* Trang gia dat */
.price-hero b + small { margin-top: 2px; }
.uoc-tinh { background: var(--blue-50); border-radius: 12px; padding: 12px 14px; }
.uoc-tinh small { display: block; color: var(--muted); }
.uoc-tinh b { display: block; font-size: 20px; color: var(--blue); margin: 2px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: 500 13px inherit; font-family: inherit; color: var(--text); cursor: pointer; }
.chips button.on { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.loc-duong { margin: 0 0 8px; }
.don-vi { font-size: 13px; margin: 0 0 8px; }
.bang-gia-wrap { overflow-x: auto; }
table.bang-gia td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
table.bang-gia tr.dau-xa td { background: var(--bg); font-weight: 700; color: var(--ink); }
.can-cu { font-size: 12px; margin: 10px 0 0; }
.gia-loai { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.gia-loai > small { display: block; color: var(--muted); }
.gia-loai ul + small { margin-top: 10px; }
.gia-loai ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.gia-loai li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.gia-loai li:last-child { border-bottom: 0; }
.gia-loai li b { font-size: 17px; color: var(--ink); white-space: nowrap; }
.gia-loai li small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.khuyen-cao { display: flex; gap: 12px; align-items: center; margin-top: 14px; border: 1.5px solid var(--blue); background: var(--blue-50); }
.khuyen-cao > svg.lucide { flex: none; width: 26px; height: 26px; color: var(--blue); }
.khuyen-cao > div { flex: 1; }
.khuyen-cao b { color: var(--ink); }
.khuyen-cao p { margin: 4px 0 0; font-size: 14px; }
.khuyen-cao .btn { flex: none; }
.nho-tra { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nho-tra p { margin: 2px 0 0; font-size: 14px; }

/* ---------- Buy / sell ---------- */
.mb-banner { position: relative; border-radius: var(--r); overflow: hidden; color: #fff; text-align: center; padding: 46px 20px; background: #2a6a8a; }
.mb-banner .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mb-banner::after { content: ""; position: absolute; inset: 0; background: #0f2a5c66; }
.mb-banner p { position: relative; z-index: 1; font-size: 19px; font-weight: 700; margin: 0; text-shadow: 0 1px 8px #0008; }
.mb-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: -30px; position: relative; z-index: 2; padding: 0 16px; }
.mb-cards .card { text-align: center; }
.mb-cards .ic { margin: 0 auto 10px; width: 56px; height: 56px; border-radius: 50%; }
.mbform { margin-top: 16px; }
.minimap { height: 260px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; }
.pos { font-size: 13px; padding: 8px 12px; border-radius: 10px; background: var(--bg); margin: 0 0 12px; }
.pos.set { background: var(--green-50); color: var(--green); }

/* ---------- Account ---------- */
.acc { display: grid; grid-template-columns: 240px 1fr; gap: 18px; margin-top: 16px; }
.acc-side .who { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.acc-side .who .ic { border-radius: 50%; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stats div { border-radius: 12px; padding: 14px; background: var(--blue-50); }
.stats div:nth-child(2) { background: var(--orange-50); } .stats div:nth-child(3) { background: var(--green-50); }
.stats small { color: var(--muted); display: block; } .stats b { font-size: 24px; color: var(--ink); }
.recent { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recent .grow { flex: 1; min-width: 0; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: var(--green-50); color: var(--green); } .tag.wait { background: var(--orange-50); color: var(--orange); }
.help { display: flex; gap: 14px; align-items: center; background: linear-gradient(120deg, var(--blue-50), #fff); }

/* ---------- Footer, dialog, Zalo ---------- */
.ftr { background: var(--navy); color: #cbd5e1; margin-top: 50px; padding: 36px 0 16px; font-size: 14px; }
.ftr h4 { color: #fff; font-size: 15px; }
.ftr a { color: #e2e8f0; }
.ftr-in { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 24px; }
.ftr p { margin: 6px 0; display: flex; gap: 8px; align-items: flex-start; }
.ftr svg.lucide { flex: none; margin-top: 2px; }
.ftr .social { gap: 12px; align-items: center; }
.zalo-chip { background: #0068ff; color: #fff !important; font-weight: 800; padding: 4px 10px; border-radius: 8px; font-size: 13px; }
.ftr-note { border-top: 1px solid #ffffff22; margin-top: 22px; padding-top: 14px; font-size: 12px; color: #94a3b8; text-align: center; }
.dlg { border: 0; border-radius: 16px; padding: 0; width: min(520px, 94vw); box-shadow: 0 20px 60px #0004; }
.dlg::backdrop { background: #0f172a80; }
.dlg form { padding: 20px; }
.dlg-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dlg-hd h3 { margin: 0; }
.x { background: none; border: 0; cursor: pointer; padding: 4px; color: var(--muted); }
.zalo-fab { position: fixed; right: 16px; bottom: 16px; z-index: 1500; display: flex; align-items: center; gap: 8px; background: #0068ff; color: #fff !important;
  text-decoration: none !important; font-weight: 600; padding: 10px 16px; border-radius: 999px; box-shadow: 0 4px 14px #0068ff66; }
.zalo-fab .t { white-space: nowrap; }
.zalo-fab span { background: #fff; color: #0068ff; border-radius: 6px; padding: 1px 6px; font-size: 13px; font-weight: 800; }

/* ---------- Print (bao cao PDF) ---------- */
.leaflet-container.nen-tron { background: #eef1f4; }
.nhan-xa { width: 0; height: 0; }
.nhan-xa span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font: 700 12px/1 "Be Vietnam Pro", sans-serif; color: #fff; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 1px 2px #000; pointer-events: none; }
.nen-tron .nhan-xa span { color: #334155; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }

/* Trich thua dat - doi chieu quy hoach (sau khi thanh toan) */
.trich { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--sh); }
/* dau ban trich: tieu de + tom tat thua (trai), QR mo lai dung ket qua nay (phai) */
.trich-dau { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px 16px;
  border-bottom: 3px solid #1d3fd8; background: linear-gradient(180deg, #f5f8ff, #fff); }
.trich-dau h2 { margin: 0 0 6px; font-size: 21px; font-weight: 800; text-transform: uppercase; line-height: 1.25; color: #0f172a; }
.trich-tom { margin: 0; font-size: 14px; color: #334155; }
.trich-tom b { color: #0f172a; }
.trich-qr { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid #c7d2fe; border-radius: 12px;
  background: #fff; color: #334155; text-decoration: none; font-size: 12px; line-height: 1.35; max-width: 270px; }
.trich-qr img { width: 96px; height: 96px; display: block; image-rendering: pixelated; }
.trich-qr b { display: block; font-size: 13.5px; color: #1d3fd8; }
.trich-qr small { display: block; margin-top: 4px; color: #64748b; font-size: 11.5px; }
.trich-trai { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-width: 0; }
.trich-bd { position: relative; height: 620px; isolation: isolate; border-bottom: 1px solid var(--line); }
.trich-chugiai { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 20px; font-size: 12.5px; color: #334155; background: #fafbfc; border-bottom: 1px solid var(--line); }
.trich-chugiai span { display: inline-flex; align-items: center; gap: 6px; }
.trich-chugiai i { flex: none; display: inline-block; width: 22px; height: 12px; }
.cg-thua { border: 2.5px solid #1d3fd8; background: #f8fafc; }
.cg-qh { background: #e11d1d; opacity: .88; border: 2.5px solid #1d3fd8; }
.cg-chigioi { height: 0 !important; border-top: 3px dashed #7c3aed; }
.cg-mt { height: 5px !important; background: #f97316; }
.cg-noi { height: 0 !important; border-top: 2px dashed #334155; }
.cg-dinh { width: 15px !important; height: 15px !important; border-radius: 50%; background: #1d3fd8; color: #fff; font: 700 9px/15px system-ui, sans-serif; font-style: normal; text-align: center; }
.trich-trai .trich-canh { padding: 4px 20px 18px; }
.trich-trai .trich-canh h3 { margin: 14px 0 8px; font-size: 16px; }
.trich-trai .trich-canh:empty { display: none; }
#trich { display: grid; gap: 16px; margin-top: 16px; }
#trich.hidden { display: none; }
.map-trich { position: absolute; inset: 0; background: #fff; }
.nhan-canh span { position: absolute; white-space: nowrap; font: 600 11px/1.2 system-ui, sans-serif; color: #111; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; }
.nhan-canh.trong span { color: #c81e1e; }
.nhan-canh.ngoai span { color: #15803d; }
.dinh-thua { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #1d3fd8; color: #fff; font: 700 9px/1 system-ui, sans-serif; box-shadow: 0 0 0 1.5px #fff; }
.tbl-canh { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl-canh th, .tbl-canh td { padding: 4px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.tbl-canh th:first-child, .tbl-canh td:first-child { text-align: left; }
.tbl-canh th { color: var(--muted); font-weight: 600; }
.tbl-canh tfoot td { font-weight: 700; border-bottom: 0; }
.tbl-canh .do, .trich-chu .do { color: #c81e1e; }
.tbl-canh .xanh, .trich-chu .xanh { color: #15803d; }
.ten-duong span { position: absolute; white-space: nowrap; font: italic 700 12px/1.2 system-ui, sans-serif; color: #44403c; letter-spacing: .02em;
  text-shadow: 0 0 2px #e5e7eb, 0 0 3px #e5e7eb, 0 0 4px #e5e7eb; pointer-events: none; }
.nhan-do-cg { background: #7c3aed; color: #fff; border: 0; font-weight: 700; font-size: 11px; padding: 1px 5px; box-shadow: 0 0 0 2px #fff; }
.nhan-do-cg::before, .nhan-kc::before { display: none; }
.nhan-kc { background: #fff; color: #334155; border: 1px solid #334155; font-weight: 700; font-size: 11px; padding: 1px 5px; box-shadow: none; }
.nhan-duong-xa { border-radius: 10px; padding: 2px 8px; white-space: normal; width: max-content; max-width: 150px; text-align: center; line-height: 1.3; }
.sw-duong.gan { background: repeating-linear-gradient(90deg, #334155 0 5px, transparent 5px 9px); height: 3px; margin-top: 9px; }
.nhan-duong { background: #fff7ed; border: 1px solid #f97316; color: #9a3412; font-weight: 700; font-size: 11px; padding: 2px 6px; box-shadow: none; white-space: nowrap; }
.nhan-duong::before { display: none; }
.ds-duong { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.ds-duong li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; }
.sw-duong { width: 32px; height: 7px; margin-top: 7px; background: #f97316; border-radius: 2px; }
.duong-the { margin-top: 12px; padding: 10px 12px; border-left: 4px solid #f97316; background: #fff7ed; border-radius: 8px; }
.duong-the h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 14px; color: #9a3412; }
.duong-the h4 svg { width: 16px; height: 16px; }
.duong-the ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.duong-the small { color: #57534e; }
.trich.dang-chup { box-shadow: none; border-radius: 0; background: #fff; }
.trich.dang-chup .trich-tt, .trich.dang-chup .trich-bd, .trich.dang-chup .map-trich { background: #fff; }
.tabs-kq { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: #eef2f7; border-radius: 12px; }
.tabs-kq button { border: 0; background: transparent; padding: 9px 8px; border-radius: 9px; font: inherit; font-size: 12.5px; line-height: 1.35; color: var(--muted); cursor: pointer; }
.tabs-kq button b { color: var(--ink, #0f172a); font-size: 13.5px; }
.tabs-kq button.on { background: #fff; color: var(--ink, #0f172a); box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.tabs-kq button.on b { color: var(--brand, #1d4ed8); }
.trich-so { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: #c81e1e; text-transform: uppercase; letter-spacing: .04em; }
.huong-bac { position: absolute; top: 10px; right: 14px; z-index: 500; display: flex; flex-direction: column; align-items: center; font: 700 18px/1 Arial, sans-serif; color: #111; pointer-events: none; }
.huong-bac i { width: 2px; height: 18px; background: #111; margin-top: 3px; }
.trich-tt { padding: 22px 24px; color: #222; }
.trich-tt h2 { margin: 0 0 14px; font-size: 21px; font-weight: 800; text-transform: uppercase; }
.trich-tt h3 { margin: 20px 0 10px; font-size: 18px; }
.trich-kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.trich-kv dt { color: var(--muted); }
.trich-kv dd { margin: 0; }
.trich-mau { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.trich-mau li { display: grid; grid-template-columns: 32px minmax(110px, auto) 1fr; gap: 10px; align-items: center; }
.trich-mau .sw { width: 32px; height: 20px; margin: 0; border: 1px solid #333; border-radius: 0; }
.trich-mau b { font-weight: 500; }
.trich-mau span:last-child { color: var(--muted); }
.trich-tong { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: baseline; margin: 12px 0 10px; font-size: 14px; }
.trich-tong dd { margin: 0; font-size: 20px; font-weight: 700; }
.trich-tong .do { color: #c81e1e; }
.trich-tong .xanh { color: #15803d; }
.trich-chu { margin: 18px 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.so-thua, .so-thua-chon { background: none; border: 0; box-shadow: none; padding: 0; font-family: Arial, sans-serif; text-align: center; }
.so-thua::before, .so-thua-chon::before { display: none; }
.so-thua { color: #1e2a78; font-size: 11px; line-height: 1; }
.so-thua-chon { color: #1d3fd8; font-size: 14px; font-weight: 700; line-height: 1.25; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.it-chu .so-thua { display: none; }
.so-thua-chon .do { color: #c81e1e; }
.nhan-qh { background: #fff; border: 1.5px solid #c81e1e; border-radius: 6px; box-shadow: 0 1px 3px #0003; padding: 3px 7px; color: #111; font: 700 12px/1.3 Arial, sans-serif; text-align: center; }
.nhan-qh::before { display: none; }
.nhan-qh small { display: block; font-weight: 400; font-size: 11px; color: #444; max-width: 180px; white-space: normal; }
.trich-luu { margin: 10px 0 0; font-size: 13px; color: #c81e1e; }

@media print {
  .hdr, .ftr, .zalo-fab, .searchbar, .tim-thua, .tabs-tim, .mode, .layers, .no-print, .leaflet-control-container { display: none !important; }
  body { background: #fff; }
  .lk { grid-template-columns: 1fr; }
  .mapbox { height: 420px; break-inside: avoid; }
  .card { box-shadow: none; break-inside: avoid; }
  body.co-trich .wrap.page > :not(#trich) { display: none !important; }
  body.co-trich .trich { margin: 0; box-shadow: none; break-inside: avoid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  body.co-trich #trich { display: block; margin: 0; }
  body.co-trich .trich:not(.hidden) ~ .trich:not(.hidden) { break-before: page; }
  body[data-in-ban="0"] .trich:not([data-ban="0"]), body[data-in-ban="1"] .trich:not([data-ban="1"]) { display: none !important; }
  .trich .leaflet-control-container { display: block !important; }
  .trich .leaflet-control-zoom { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .quick { grid-template-columns: repeat(3, 1fr); }
  .svc-layout, .dv-top, .lk, .acc { grid-template-columns: 1fr; }
  .cats { position: static; flex-direction: row; overflow-x: auto; }
  .cats a { white-space: nowrap; background: #fff; border: 1px solid var(--line); }
  .mapbox { height: 460px; }
  .ftr-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--sh); }
  .nav.open { display: flex; }
  .nav > a.on, .dd.on .dd-btn { box-shadow: none; background: var(--blue-50); border-radius: 8px; }
  .dd-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .dd-btn svg { display: none; }
  .nav-user span { display: inline; }
  .nav-user svg.lucide { width: 18px; height: 18px; }
  .grid3, .grid2, .row2, .trust, .steps, .mb-cards, .price-hero, .stats, .ftr-in { grid-template-columns: 1fr; }
  .steps > div { border-left: 0; padding: 8px 0; }
  .quick { grid-template-columns: repeat(2, 1fr); margin-top: -60px; }
  .hero { padding: 44px 0 100px; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 15px; }
  .tim-thua { grid-template-columns: 1fr 1fr; }
  .tim-thua .xa, .tim-thua .btn { grid-column: 1 / -1; }
  .tim-dc { grid-template-columns: 1fr; }
  .tim-gia { grid-template-columns: 1fr; }
  .nho-tra { flex-direction: column; align-items: stretch; }
  .khuyen-cao { flex-wrap: wrap; }
  .khuyen-cao .btn { width: 100%; }
  table.bang-gia th, table.bang-gia td { padding: 8px 6px; font-size: 13px; }
  .price-hero { gap: 8px; }
  .price-hero b, .uoc-tinh b { font-size: 17px; }
  .trich { grid-template-columns: 1fr; }
  .trich-dau { flex-direction: column; align-items: stretch; padding: 16px; }
  .trich-dau h2 { font-size: 18px; }
  .trich-qr { max-width: none; }
  .trich-trai { border-right: 0; border-bottom: 1px solid var(--line); }
  .trich-bd { height: 420px; }
  .trich-trai .trich-canh { padding: 4px 16px 14px; }
  .trich-tt { padding: 18px 16px; }
  .trich-tt h2 { font-size: 18px; }
  .trich-kv { grid-template-columns: 145px 1fr; }
  .trich-mau li { grid-template-columns: 32px 1fr; row-gap: 2px; }
  .trich-mau span:last-child { grid-column: 2; font-size: 13px; }
  .searchbar { flex-wrap: wrap; padding: 8px; }
  .searchbar input { flex: 1 1 200px; }
  .searchbar .btn { width: 100%; }
  .ph h1 { font-size: 21px; }
  .tabs-tim { display: flex; }
  .loai-qh { gap: 8px; }
  .loai-qh button { padding: 10px; gap: 8px; align-items: flex-start; }
  .loai-qh button svg.lucide { display: none; }
  .loai-qh b { font-size: 13.5px; }
  .loai-qh small { font-size: 11.5px; }
  .nhac-chon { font-size: 13px; padding: 7px 12px; white-space: nowrap; left: calc(50% + 20px); }
  .mapbox.dang-chon .layers, .mapbox.co-ghim .layers { display: none; }
  .tabs-tim button { flex: 1; justify-content: center; padding: 8px 6px; }
  .mapbox { height: 380px; }
  .zalo-fab { right: 12px; bottom: 12px; width: 52px; height: 52px; padding: 0; justify-content: center; }
  .zalo-fab .t { display: none; }
  .ftr { padding-bottom: 72px; }
}

/* Doan tuyen duong dang bao gia (trang gia dat, bam ngoai thua) */
.leaflet-tooltip.ten-moc { background: #fff; border: 1px solid #e11d48; color: #9f1239; font-weight: 600; font-size: 12px; padding: 2px 6px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.leaflet-tooltip.ten-doan { background: #e11d48; color: #fff; border-color: #fff; }

/* O chon xa/phuong go ten de tim (common.js) */
.tim-xa { position: relative; }
.tim-xa input { padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat right 12px center; }
.ds-tim-xa { position: absolute; z-index: 1200; left: 0; right: 0; top: calc(100% + 4px); max-height: 300px; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(15, 23, 42, .15); }
.ds-tim-xa li { padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 15px; color: var(--ink); }
.ds-tim-xa li:hover, .ds-tim-xa li.on { background: #eff6ff; color: var(--blue); }
.ds-tim-xa li[aria-selected="true"] { font-weight: 600; }
.ds-tim-xa li.trong { color: #64748b; cursor: default; }
.gia-loai li small.tien-thua b { font-size: 13px; color: var(--ink); }
.chu-giai-cx { background: rgba(255,255,255,.92); padding: 6px 9px; border-radius: 6px; font-size: 12px; line-height: 1.4; color: #1f2937; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.chu-giai-cx i { display: inline-block; width: 12px; height: 12px; background: rgba(22,163,74,.55); border: 1px solid #fff; vertical-align: -2px; margin-right: 4px; }
.chu-giai-cx small { color: #4b5563; }
.chu-giai-cx i.nn { background: rgba(234,179,8,.55); }
