@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/wp-content/themes/tpr/assets/fonts/inter-vietnamese-wght-normal.woff2) format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/wp-content/themes/tpr/assets/fonts/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
	--font: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--brand: #053b8d; --brand-2: #0b4fc0; --navy: #061636; --gold: #c9a35e; --cta: #e66031; --cta-2: #f07a45;
	--bg: #f5f7fb; --text: #17213a; --muted: #5b6782; --line: #e1e6ef; --card: #fff;
	--hd: 56px; --r: 16px; --shadow: 0 18px 40px -18px rgba(6, 22, 54, .45);
}
* { box-sizing: border-box; min-width: 0; }
html, body { height: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--text); background: var(--bg); overflow: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header (giống đầu trang web) */
.hd { position: relative; z-index: 5; height: var(--hd); display: flex; align-items: center; gap: 24px; padding: 0 20px; background: var(--brand); color: #fff; }
.hd__logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.hd__mark { display: block; width: auto; height: 26px; }
.hd__sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .35); }
.hd__text { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; line-height: 1.15; letter-spacing: .14em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.hd__text span { color: #c5d6ef; font-weight: 600; letter-spacing: .42em; }
.hd__nav { display: flex; gap: 20px; font-weight: 600; font-size: 14px; }
.hd__nav a { text-decoration: none; opacity: .85; }
.hd__nav a:hover { opacity: 1; }
.hd__call { margin-left: auto; padding: 9px 16px; border-radius: 999px; background: var(--cta); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.hd__call:hover { background: var(--cta-2); }

.app { position: relative; height: calc(100% - var(--hd)); }
.map { position: absolute; inset: 0; background: #e8ecf2; }

/* Panel trái (máy tính) */
.panel { position: absolute; z-index: 3; top: 16px; left: 16px; bottom: 16px; width: 380px; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.panel__grip { display: none; }
.panel__list { display: flex; flex-direction: column; height: 100%; }
.panel__head { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.panel__head h1 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.panel__count { margin: 4px 0 12px; color: var(--muted); font-size: 13px; }
.panel__count strong { color: var(--text); }
.search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 2px solid var(--line); border-radius: 999px; color: var(--muted); }
.search:focus-within { border-color: var(--cta); }
.search input { flex: 1; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font-size: 16px; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.sel select { width: 100%; height: 42px; padding: 0 32px 0 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6782' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: 15px; cursor: pointer; }
.sel select:focus { outline: 0; border-color: var(--cta); }

.list { flex: 1; overflow-y: auto; margin: 0; padding: 6px 8px 12px; list-style: none; overscroll-behavior: contain; }
.item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; }
.item:hover, .item.is-hover { background: #eef3fb; }
.item.is-sel { background: #e3ecfa; }
.item img { width: 76px; height: 60px; object-fit: cover; border-radius: 8px; background: #dfe5ee; }
.item b { display: block; font-size: 15px; line-height: 1.3; }
.item small { display: block; color: var(--muted); font-size: 13px; }
.item .pr { margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--cta); }
.item .pr.na { color: var(--muted); font-weight: 600; }
.empty { padding: 24px 12px; color: var(--muted); text-align: center; }

/* Chi tiết dự án */
.detail { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.detail__img { position: relative; aspect-ratio: 16 / 10; background: #dfe5ee; }
.detail__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail__back { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .95); font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.detail__body { padding: 16px 18px 20px; }
.detail h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.detail__area { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.price { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: #fff5ef; border: 1px solid #f6d3c1; }
.price p { margin: 0; }
.price__l { font-size: 13px; color: var(--muted); }
.price__v { font-size: 22px; font-weight: 800; color: var(--cta); line-height: 1.25; }
.price__m { font-size: 13px; color: var(--text); }
.facts { margin: 0; display: grid; gap: 8px; font-size: 14px; }
.facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.ctas { display: grid; gap: 8px; margin-top: 16px; }
.btn { display: flex; align-items: center; justify-content: center; height: 46px; padding: 0 16px; border-radius: 999px; font-weight: 700; text-decoration: none; text-align: center; }
.btn--cta { background: var(--cta); color: #fff; }
.btn--cta:hover { background: var(--cta-2); }
.btn--line { border: 2px solid var(--brand); color: var(--brand); }
.btn--line:hover { background: #eef3fb; }
.detail__small { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* Công cụ */
.note { position: absolute; z-index: 2; left: 412px; bottom: 6px; margin: 0; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .8); font-size: 12px; color: var(--muted); }
.maplibregl-ctrl-top-right { top: 8px; right: 8px; }

/* Nhãn giá trên bản đồ (HTML marker cho dự án đang chọn) */
/* .pin = khung marker của MapLibre (position absolute), không đè position */
.pin { padding: 6px 10px; border-radius: 999px; background: var(--cta); color: #fff; font-weight: 800; font-size: 13px; white-space: nowrap; box-shadow: 0 6px 16px rgba(230, 96, 49, .45); pointer-events: none; }
.pin__in { position: relative; display: block; }
.pin::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--cta); }
.pin small { display: block; font-weight: 600; font-size: 11px; opacity: .9; }


/* Thẻ chi tiết gọn (30/11 Kiệt) */
.dg { position: relative; background: #dfe5ee; }
.dg__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 290px; }
.dg__track::-webkit-scrollbar { display: none; }
.dg__track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.dg__nav { position: absolute; top: 50%; width: 38px; height: 38px; margin-top: -19px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--text); cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.dg__nav--prev { left: 10px; } .dg__nav--next { right: 10px; }
.dg__count { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(6, 22, 54, .7); color: #fff; font-size: 12px; font-weight: 600; }
.dg .detail__back { position: absolute; top: 12px; left: 12px; z-index: 1; }
.kv { margin: 12px 0 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { flex: none; color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.kv dd.hl { color: var(--cta); font-size: 17px; font-weight: 800; }
.sbline { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #eef3fb; color: var(--brand); font-size: 13px; }
.ctas { grid-template-columns: 1fr 1fr; }
.ctas .btn { height: 44px; padding: 0 10px; font-size: 14px; }
.detail__small { margin: 10px 0 0; }

/* La bàn: kéo để xoay, bấm B về hướng Bắc, giữa = 3D/2D, nút xoay tự động + toàn cảnh */
.compass { position: absolute; z-index: 2; right: 16px; bottom: 34px; transition: bottom .25s ease; width: 92px; height: 92px; }
.compass__dial { position: absolute; inset: 0; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(6, 22, 54, .22); cursor: grab; touch-action: none; user-select: none; }
.compass__dial:active { cursor: grabbing; }
.compass__dial span { position: absolute; font-size: 12px; font-weight: 700; color: var(--muted); }
.compass__dial .cN { top: 6px; left: 50%; transform: translateX(-50%) rotate(var(--b, 0deg)); color: var(--cta); font-weight: 800; cursor: pointer; }
.compass__dial .cS { bottom: 6px; left: 50%; transform: translateX(-50%) rotate(var(--b, 0deg)); }
.compass__dial .cE { right: 6px; top: 50%; transform: translateY(-50%) rotate(var(--b, 0deg)); }
.compass__dial .cW { left: 6px; top: 50%; transform: translateY(-50%) rotate(var(--b, 0deg)); }
.compass__tick { position: absolute; top: 20px; left: 50%; margin-left: -4px; border: 4px solid transparent; border-bottom: 7px solid var(--cta); border-top: 0; }
.compass__mid { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; padding: 0; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(6, 22, 54, .25); background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.compass__mid.is-on { background: var(--brand); color: #fff; }
.compass__spin, .compass__home { position: absolute; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--text); box-shadow: 0 4px 14px rgba(6, 22, 54, .2); cursor: pointer; }
.compass__spin { left: -44px; bottom: 4px; }
.compass__home { left: -44px; bottom: 48px; }
.compass__spin.is-on { background: var(--cta); color: #fff; }

/* Sa bàn 3D */
.tag3d { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #fff1e9; color: var(--cta); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.sbinfo { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #eef3fb; font-size: 14px; }
.sbinfo b { display: block; color: var(--brand); }
.sbinfo p { margin: 4px 0 0; }
.sbbar { position: absolute; z-index: 3; top: 16px; left: 412px; right: 70px; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.sbbar > * { pointer-events: auto; }
.sbsel { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 6px 18px rgba(6, 22, 54, .25); }
.sbsel select { height: 34px; padding: 0 28px 0 12px; border: 0; border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23061636' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; color: var(--navy); font-weight: 700; font-size: 15px; cursor: pointer; }
.sbbtn { height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 6px 18px rgba(6, 22, 54, .25); }
.sbbtn.is-on { background: var(--cta); }
.sbbtn--cta { margin-left: auto; background: var(--brand-2); }
.sbbtn:disabled { opacity: .6; }
.sbsrc { display: none; position: absolute; z-index: 2; left: 412px; bottom: 30px; max-width: 520px; margin: 0; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .88); font-size: 12px; color: var(--muted); }
body.sb-on .sbsrc { display: block; }
.sbbar.is-far .sbsel { display: none; }
.sb-badges { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.sb-num { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--brand); color: #fff; font: 800 14px/1 var(--font); cursor: pointer; pointer-events: auto; box-shadow: 0 4px 12px rgba(6, 22, 54, .35); }
.sb-num.is-on { background: var(--cta); }
.sb-poi { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; margin: -14px 0 0 -14px; padding: 3px 10px 3px 3px; border-radius: 999px; background: rgba(6, 22, 54, .82); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sb-poi i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e8b931; color: #3a2a0c; font-style: normal; font-weight: 800; font-size: 12px; }
.sb-poi--cq i { background: #3d8fd6; color: #fff; }

/* Góc nhìn: từ trên cao / góc nghiêng */
.viewsw { position: absolute; z-index: 3; right: 14px; bottom: 150px; display: flex; padding: 3px; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(6, 22, 54, .18); }
.viewsw button { height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: #33405a; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.viewsw button.is-on { background: var(--brand); color: #fff; }
/* Lớp hạ tầng + tiện ích */
.lyrbtn { position: absolute; z-index: 3; top: 84px; right: 8px; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; background: #fff; color: var(--brand); font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1; box-shadow: 0 2px 10px rgba(6, 22, 54, .18); cursor: pointer; }
.lyrbtn[aria-expanded="true"] { background: var(--brand); color: #fff; }
.layers { position: absolute; z-index: 4; top: 128px; right: 8px; width: 270px; padding: 12px 14px 10px; border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(6, 22, 54, .22); font-size: 14px; }
.layers[hidden] { display: none !important; }
.layers__h { margin: 4px 0 6px; color: #5b6478; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.layers__h ~ .layers__h { margin-top: 12px; }
.layers label { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; color: #17213a; }
.layers input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.sw { flex: none; display: inline-block; width: 22px; height: 0; }
.sw--metro { border-top: 4px solid #d7262d; border-radius: 2px; }
.sw--ring { border-top: 4px solid #ee8a12; border-radius: 2px; }
.sw--dot { width: 14px; height: 14px; margin: 0 4px; border: 2px solid #fff; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.layers__hint { margin: 10px 0 0; color: #6a7387; font-size: 12px; line-height: 1.45; transition: color .2s; }
.layers__hint.is-hl { color: var(--cta); font-weight: 700; }
@media (max-width: 760px) {
	.dg__track { height: 190px; }
	.compass { right: 10px; top: auto; width: 84px; height: 84px; }
	.compass__mid { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
	.compass__dial .cN { top: 4px; } .compass__dial .cS { bottom: 4px; } .compass__tick { top: 18px; }
	.compass__spin { left: -42px; bottom: 4px; } .compass__home { left: -84px; bottom: 4px; }
	.maplibregl-ctrl-top-right { display: none; }
	.lyrbtn { top: 10px; right: 10px; }
	.viewsw { right: 10px; bottom: auto; top: 56px; }
	body.sb-on .viewsw { top: 102px; }
	.layers { top: 54px; right: 10px; width: min(270px, calc(100vw - 20px)); }
	body.sb-on .lyrbtn { top: 56px; }
	.sbbar { left: 8px; right: 8px; top: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.sbbar > * { flex: none; }
	.sbsel, .sbbtn { height: 40px; font-size: 13px; }
	.sbbtn--cta { margin-left: 0; }
	body.sb-on .note { display: none; }
	body.sb-on .sbsrc { display: none; }
	body.sb-on .maplibregl-ctrl-top-right { top: 56px; }
	.sb-poi { font-size: 0; gap: 0; padding: 3px; }
	.sb-poi i { font-size: 12px; }

	:root { --hd: 52px; }
	.hd { gap: 12px; padding: 0 12px; }
	.hd__sep, .hd__text { display: none; }
	.hd__nav { display: none; }
	.hd__call { padding: 8px 12px; font-size: 13px; }
	.panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 46%; border-radius: 18px 18px 0 0; transition: height .25s ease; padding-bottom: env(safe-area-inset-bottom); }
	.panel.is-min { height: 168px; }
	.panel.is-max { height: calc(100% - 56px); }
	.panel__grip { display: flex; justify-content: center; align-items: center; flex: none; height: 22px; border: 0; background: none; cursor: grab; }
	.panel__grip span { width: 40px; height: 5px; border-radius: 3px; background: #c9d1de; }
	.panel__list { height: calc(100% - 22px); }
	.panel__head { padding: 0 14px 10px; }
	.panel__head h1 { font-size: 18px; }
	.panel__count { margin: 0 0 8px; }
	.detail { height: calc(100% - 22px); }
	.detail__img { aspect-ratio: 16 / 8; }
	.note { left: 8px; bottom: auto; top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .panel { transition: none; } }

/* Số tháp trên đỉnh khối mô phỏng */
.tw-nums{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}
.tw-num{position:absolute;left:0;top:0;min-width:30px;height:30px;padding:0 6px;box-sizing:border-box;border-radius:15px;background:#0a3d91;color:#fff;border:2.5px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.3);font-weight:700;font-size:14px;line-height:25px;text-align:center;will-change:transform}
@media (max-width:760px){.tw-num{min-width:24px;height:24px;border-radius:12px;padding:0 4px;font-size:12px;line-height:19px}}
