/* Trang xem bản đồ quy hoạch — 09/11/2026 */
:root { --ink: #16324f; --mut: #6f7f8f; --line: #dce7ef; --green: #5d8a3c; --bar: 58px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; font-family: "Be Vietnam Pro", system-ui, sans-serif; color: var(--ink); background: #0d1b2a; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.qv-top { position: fixed; inset: 0 0 auto; height: var(--bar); z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 16px; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.qv-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qv-brand img { width: 42px; height: auto; }
.qv-brand b { display: block; font-size: 16px; letter-spacing: .04em; }
.qv-brand i { display: block; font-style: normal; font-size: 12px; color: var(--green); white-space: nowrap; }
.qv-nav { display: flex; gap: 4px; }
.qv-nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: #3b4b5c; white-space: nowrap; }
.qv-nav a.on, .qv-nav a:hover { color: var(--green); background: #f2f8ec; }

.qv-map { position: fixed; inset: var(--bar) 0 0 0; }

.qv-panel { position: fixed; z-index: 15; top: calc(var(--bar) + 12px); left: 12px; width: 360px; max-height: calc(100% - var(--bar) - 24px); display: flex; background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .22); transition: transform .25s; }
.qv-panel.min { transform: translateX(calc(-100% + 30px)); }
.qv-body { padding: 16px 18px 14px; overflow: auto; flex: 1; }
.qv-fold { position: absolute; right: -14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); font-size: 18px; line-height: 1; color: var(--ink); }
.qv-panel.min .qv-fold { transform: rotate(180deg); }
.qv-body h1 { font-size: 17px; line-height: 1.35; margin: 0 0 4px; }
.qv-meta { font-size: 13px; color: var(--mut); margin: 0 0 12px; }
.qv-meta .st { font-weight: 700; } .qv-meta .st.ok { color: #4f9a2f; } .qv-meta .st.off { color: #8a96a3; } .qv-meta .st.ref { color: #e08a1e; }

.qv-search { display: flex; gap: 6px; }
.qv-search input { flex: 1; min-width: 0; border: 1px solid #c9d8e4; border-radius: 10px; padding: 9px 12px; background: #f6fafd; outline: none; font-size: 14px; }
.qv-search input:focus { border-color: var(--green); background: #fff; }
.qv-search button { border: 0; border-radius: 10px; padding: 0 16px; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; }
.qv-km { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12.5px; color: #3b4b5c; margin: 8px 0 2px; }
.qv-km small { color: var(--mut); }
.qv-sug { list-style: none; margin: 6px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: 10px; max-height: 220px; overflow: auto; }
.qv-sug li { padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.qv-sug li:hover, .qv-sug li.on { background: #f2f8ec; color: var(--green); }
.qv-msg { min-height: 1em; font-size: 13px; color: #b03a2e; margin: 6px 0 8px; }
.qv-msg.ok { color: var(--green); }

.qv-op { background: #f4f8fb; border-radius: 10px; padding: 10px 12px; margin: 4px 0 10px; font-size: 13.5px; }
.qv-op input { width: 100%; accent-color: var(--green); }
.qv-layers { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.qv-layers > span { color: var(--mut); }
.qv-layers input { accent-color: var(--green); }
.qv-src { font-size: 11.5px; color: var(--mut); margin: 8px 0 0; line-height: 1.5; }

.qv-tools { position: fixed; z-index: 15; right: 12px; top: calc(var(--bar) + 120px); display: flex; flex-direction: column; gap: 8px; }
.qv-tools button { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); color: var(--ink); }
.qv-tools button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qv-tools button:hover, .qv-tools button.on { color: #fff; background: var(--green); border-color: var(--green); }

.qv-measure { position: fixed; z-index: 16; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 99px; padding: 8px 10px 8px 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); font-size: 14px; white-space: nowrap; }
.qv-measure b { font-size: 16px; }
.qv-measure span { color: var(--mut); font-size: 12.5px; }
.qv-measure button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; cursor: pointer; font-weight: 600; }
.qv-measure #mDone { background: var(--green); color: #fff; border-color: var(--green); }
.qv-toast { position: fixed; z-index: 30; left: 50%; top: calc(var(--bar) + 14px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 99px; font-size: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }

.maplibregl-popup-content { border-radius: 12px; padding: 12px 14px; font-family: "Be Vietnam Pro", system-ui, sans-serif; color: var(--ink); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.qp b { display: block; font-size: 14.5px; margin-bottom: 6px; }
.qp table { border-collapse: collapse; font-size: 12.5px; }
.qp td { padding: 2px 8px 2px 0; vertical-align: top; }
.qp td:first-child { color: var(--mut); white-space: nowrap; }
.qp .cp { margin-top: 8px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.qp .cp:hover { border-color: var(--green); color: var(--green); }
.qv-lbl { font: 600 12px "Be Vietnam Pro", sans-serif; }
.lbl-sm .qv-lbl { font-size: 9.5px; font-weight: 500; }

/* Lớp trường học — 11/11/2026 */
.qv-sch { border-top: 1px solid var(--line); padding: 8px 0 4px; font-size: 14px; }
.qv-sch label { cursor: pointer; }
.qv-sch input { accent-color: var(--green); }
.qv-sch-m { display: block; font-weight: 600; }
.qv-sch-m small { font-weight: 400; color: var(--mut); font-size: 12.5px; }
.qv-sch-lv { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0; }
.qv-sch-lv label { display: inline-flex; align-items: center; gap: 4px; }
.qv-sch-lv i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font: 700 11px "Be Vietnam Pro", sans-serif; }
.qv-sch-lv i.d1, .qs-dot.d1 { background: #1f8a4c; }
.qv-sch-lv i.d2, .qs-dot.d2 { background: #2563c9; }
.qv-sch-lv i.d3, .qs-dot.d3 { background: #c8322b; }
.qv-sch-a { display: block; font-size: 13.5px; }
.qv-sch-key { list-style: none; margin: 8px 0 0; padding: 0; font-size: 12.5px; color: #3b4b5c; }
.qv-sch-key li { display: flex; align-items: center; gap: 7px; padding: 2px 0; }
.qv-sch-key i { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #5b6b7b; font-style: normal; }
.qv-sch-key i.k-a { border: 2px solid #fff; box-shadow: 0 0 0 1px #5b6b7b; }
.qv-sch-key i.k-b { border: 3px solid #f5b301; }
.qv-sch-key i.k-x { background: #fff; color: var(--ink); border: 2px dashed #5b6b7b; font: 700 10px "Be Vietnam Pro", sans-serif; }
.maplibregl-popup-close-button { font-size: 22px; width: 32px; height: 32px; line-height: 1; color: var(--mut); }
.qs-list { max-height: 210px; overflow: auto; overscroll-behavior: contain; }
.qs-item + .qs-item { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.qp .qs-warn { font-size: 12.5px; color: #8a5a00; background: #fff6df; border-radius: 8px; padding: 6px 8px; margin: 0 0 8px; }
.qs-g { font-size: 12.5px; font-weight: 700; margin: 8px 0 3px; display: flex; align-items: center; gap: 5px; }
.qs-g:first-child { margin-top: 0; }
.qs-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.qs-names { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.qs-names li { padding: 2px 0; }
.qs-names small { display: block; color: var(--mut); font-size: 11.5px; }
.qs-gg { display: inline-block; margin-top: 5px; padding: 3px 0; font-size: 12px; font-weight: 600; color: #2563c9; text-decoration: underline; }

@media (max-width: 700px) {
  .qv-brand i, .qv-nav a:not(.on):not(:first-child) { display: none; }
  .qv-panel { left: 8px; right: 8px; width: auto; top: auto; bottom: 8px; max-height: 46%; }
  .qv-panel.min { transform: translateY(calc(100% - 44px)); }
  .qv-fold { right: 50%; top: -14px; transform: translateX(50%) rotate(90deg); }
  .qv-panel.min .qv-fold { transform: translateX(50%) rotate(-90deg); }
  .qv-tools { top: calc(var(--bar) + 10px); right: 8px; }
  .qv-tools button { width: 38px; height: 38px; }
  .qv-measure { bottom: auto; top: calc(var(--bar) + 10px); }
  .qs-list { max-height: 170px; }
}
