/*
Theme Name: Nhà Đất Giá Rẻ
Description: Theme nhẹ, hiện đại cho nhadatgiare.net – tin BĐS Bình Dương, chuẩn SEO, mượt trên điện thoại/iPad/máy tính. Cần plugin Nhà Đất Core.
Version: 0.6.0
Text Domain: nhadat
*/
/* ============ Nền tảng ============ */
:root {
  --brand: #0b6b5f; --brand-600: #095a50; --brand-800: #063f39; --brand-50: #ecf7f4; --brand-100: #d3ede7;
  --gold: #f2b13d; --gold-600: #e09a1c; --zalo: #0068ff; --red: #e03a3a;
  --ink: #14211f; --ink-2: #3b4a48; --muted: #6a7a77; --line: #e4e9e8; --bg: #f5f7f6; --card: #fff;
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --sh-1: 0 1px 2px rgba(16, 40, 36, .06), 0 2px 8px rgba(16, 40, 36, .05);
  --sh-2: 0 10px 30px -10px rgba(16, 40, 36, .22);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hdr: 64px; --bnav: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; font: 400 16px/1.65 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; overflow-x: clip; padding-bottom: calc(var(--bnav) + var(--safe-b)); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 5.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3.4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.sec { padding: 40px 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } .sec { padding: 64px 0; } }
@media (min-width: 1024px) { body { padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ============ Nút ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; border: 0; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background-color .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: #1d1503; }
.btn-zalo { background: var(--zalo); color: #fff; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand-800); }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn-gold:hover { background: var(--gold-600); color: #1d1503; }
  .btn-zalo:hover { filter: brightness(1.08); color: #fff; }
  .btn-brand:hover { background: var(--brand-600); color: #fff; }
  .btn-line:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }
  .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
}

/* ============ Đầu trang ============ */
.hdr { position: sticky; top: 0; z-index: 60; height: var(--hdr); background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s, box-shadow .25s; }
.hdr.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(16,40,36,.25); }
.hdr .wrap { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), #14a38f); color: #fff; display: grid; place-items: center; flex: none; }
.brand-mark .ic { width: 22px; height: 22px; stroke-width: 2; }
.brand > span:not(.brand-mark) { min-width: 0; }
.brand b { display: block; font-weight: 800; font-size: 1.02rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .brand b { font-size: .92rem; } }
.brand small { display: block; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { margin-left: auto; display: none; }
.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav .menu > li { position: relative; }
.nav .menu > li > a { display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.nav .menu > li.current-menu-item > a, .nav .menu > li > a:hover { color: var(--brand); background: var(--brand-50); }
.nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: #fff;
  border-radius: 14px; box-shadow: var(--sh-2); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-size: .94rem; }
.nav .sub-menu a:hover { background: var(--brand-50); color: var(--brand); }
.hdr-cta { display: none; }
.menu-btn { margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.menu-btn .ic { width: 22px; height: 22px; }
@media (min-width: 1024px) {
  .nav, .hdr-cta { display: flex; }
  .menu-btn { display: none; }
  .hdr { --hdr: 72px; }
}
/* Trang chủ: đầu trang trong suốt trên ảnh nền, đổi trắng khi cuộn */
.home .hdr:not(.scrolled) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.home .hdr:not(.scrolled) .brand, .home .hdr:not(.scrolled) .nav .menu > li > a { color: #fff; }
.home .hdr:not(.scrolled) .brand small { color: rgba(255,255,255,.8); }
.home .hdr:not(.scrolled) .nav .menu > li > a:hover { background: rgba(255,255,255,.14); color: #fff; }
.home .hdr:not(.scrolled) .menu-btn { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.35); color: #fff; }
.home .hdr { position: fixed; left: 0; right: 0; }

/* Ngăn kéo menu (điện thoại/iPad) */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(6, 20, 18, .5); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 380px); background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); padding: 16px 16px calc(16px + var(--safe-b)); overflow-y: auto; overscroll-behavior: contain; }
.drawer.open .drawer-panel { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.drawer-top .brand b { white-space: normal; font-size: .95rem; }
.crumbs:empty { display: none; }
.crumbs p { margin: 0; }
.drawer .menu, .drawer .sub-menu { list-style: none; margin: 0; padding: 0; }
.drawer .menu > li { border-bottom: 1px solid var(--line); }
.drawer .menu a { display: flex; align-items: center; min-height: 50px; color: var(--ink); font-weight: 600; }
.drawer .sub-menu { padding: 0 0 10px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.drawer .sub-menu a { min-height: 40px; font-weight: 500; color: var(--ink-2); font-size: .94rem; }
.drawer-cta { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; }
body.lock { overflow: hidden; }

/* ============ Hero trang chủ ============ */
.hero { position: relative; color: #fff; padding: calc(var(--hdr) + 28px) 0 32px; isolation: isolate; overflow: hidden; background: var(--brand-800); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4,28,25,.72) 0%, rgba(4,28,25,.55) 45%, rgba(4,28,25,.88) 100%); }
.hero-grid { display: grid; gap: 24px; align-items: end; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22); font-size: .82rem; font-weight: 600; margin-bottom: 14px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.eyebrow b { color: #fff; }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 4.4vw, 2.75rem); line-height: 1.15; margin-bottom: 12px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: rgba(255,255,255,.86); font-size: clamp(.95rem, 1.8vw, 1.06rem); max-width: 52ch; margin: 0 0 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.hero-agent { display: none; position: relative; align-self: end; justify-self: center; }
.hero-agent img { display: block; width: auto; max-height: 440px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }
.agent-badge { position: absolute; left: -64px; bottom: 28px; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 14px; box-shadow: var(--sh-2);
  display: flex; gap: 10px; align-items: center; font-size: .88rem; }
.agent-badge b { display: block; font-size: .98rem; }
.agent-badge .ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--brand-50); color: var(--brand); }
.stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: .9rem; color: rgba(255,255,255,.85); }
.stats b { color: #fff; font-size: 1.1rem; margin-right: 4px; }
@media (min-width: 1024px) {
  .hero { padding: calc(var(--hdr) + 36px) 0 36px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
  .hero-agent { display: block; margin-bottom: -36px; }
}
/* ô tìm trong hero: tab + nút trợ lý chung 1 hàng, ô chọn thấp hơn */
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.search-head .as-inline { white-space: nowrap; }
@media (max-width: 559px) { .as-more { display: none; } .hero .search .as-inline { background: var(--brand-50); } }
.saved-btn { white-space: nowrap; }
.search-head .tabs { margin-bottom: 0; }
.hero .search { max-width: 820px; }
.hero .search .as-inline { margin: 0; padding: 6px 10px; border-radius: 999px; color: var(--brand); text-shadow: none; font-size: .88rem; }
@media (hover: hover) { .hero .search .as-inline:hover { background: var(--brand-50); } }
.hero .quick { margin-top: 12px; }
@media (min-width: 768px) {
  .hero .search { padding: 14px 16px 16px; }
  .hero .field select { min-height: 46px; }
  .hero .search-go { min-height: 46px; }
}

/* ============ Ô tìm nhà ============ */
.search { background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 14px; }
.tabs { display: inline-flex; padding: 4px; background: var(--bg); border-radius: 999px; margin-bottom: 12px; }
.tabs button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 600; color: var(--muted); cursor: pointer; min-height: 38px; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--brand); box-shadow: var(--sh-1); }
.search-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: block; min-width: 0; }
.field-l { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); margin: 0 0 4px 4px; }
.field-l .ic { width: 14px; height: 14px; color: var(--brand); }
.field select, .field input { width: 100%; min-height: 48px; padding: 0 36px 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font-size: 16px; /* iOS không tự phóng to */ appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a7a77' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; text-overflow: ellipsis; }
.field select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-100); }
.field select:disabled { opacity: .45; }
.search-go { grid-column: 1 / -1; min-height: 50px; border-radius: 14px; }
.search-row > .field:nth-child(3):nth-last-child(2) { grid-column: 1 / -1; }   /* 3 ô: ô thứ 3 trải hết hàng trên điện thoại */
.search-go .ic { width: 20px; height: 20px; }
@media (min-width: 768px) {
  .search { padding: 18px; }
  .search-row { grid-template-columns: repeat(3, 1fr) auto; align-items: end; }
  .search-row:has(.field:nth-of-type(4)) { grid-template-columns: repeat(4, 1fr) auto; }
  .search-go { grid-column: auto; padding: 0 26px; }
  .search-row > .field:nth-child(3):nth-last-child(2) { grid-column: auto; }
}
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick a { font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.2); }
@media (hover: hover) { .quick a:hover { background: rgba(255,255,255,.26); } }

/* ============ Tiêu đề mục + rail ============ */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }
.sec-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; }
.rail-btn { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; color: var(--ink); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 320px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 16px; scroll-padding: 0 16px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 768px) { .rail { grid-auto-columns: calc((100% - 28px) / 2.4); margin: 0 -24px; padding: 4px 24px 16px; scroll-padding: 0 24px; } }
@media (min-width: 1024px) { .rail { grid-auto-columns: calc((100% - 42px) / 4); margin: 0; padding: 4px 0 16px; scroll-padding: 0; } .rail-btn { display: grid; } }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (min-width: 1280px) { .grid.g4 { grid-template-columns: repeat(4, 1fr); } }

/* ============ Thẻ tin ============ */
.card { position: relative; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--brand-100), var(--brand-50)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-media::after { content: ""; position: absolute; inset: auto 0 0; height: 50%; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; }
.card-price { position: absolute; left: 12px; bottom: 10px; z-index: 1; color: #fff; font-weight: 800; font-size: 1.3rem; text-shadow: 0 1px 8px rgba(0,0,0,.35); line-height: 1.1; }
.card-price small { display: block; font-size: .72rem; font-weight: 500; opacity: .9; }
.badges { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; gap: 6px; }
.badge { font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--gold); color: #1d1503; }
.badge.type { background: rgba(255,255,255,.92); color: var(--brand-800); }
.badge.off { background: #1f2937; color: #fff; }
.photos { position: absolute; right: 10px; bottom: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.5); color: #fff;
  font-size: .75rem; padding: 3px 8px; border-radius: 8px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a { color: var(--ink); }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }   /* cả thẻ bấm được */
.specs { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: .88rem; }
.specs span { display: inline-flex; align-items: center; gap: 5px; }
.specs .ic { color: var(--brand); }
.loc { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .86rem; }
.card-foot { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); position: relative; z-index: 1; }
.card-foot .btn { flex: 1; min-height: 40px; font-size: .88rem; padding: 0 10px; }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
  .card:hover .card-media img { transform: scale(1.06); }
  .card h3 a:hover { color: var(--brand); }
}

/* ============ Khu vực (bento) ============ */
.areas { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.area { position: relative; border-radius: var(--r); overflow: hidden; min-height: 150px; display: flex; align-items: flex-end; padding: 14px; color: #fff; isolation: isolate;
  background: linear-gradient(135deg, var(--brand), #14a38f); }
.area img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.area::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(3,25,22,.8)); }
.area b { display: block; font-size: 1.08rem; line-height: 1.3; }
.area span { font-size: .8rem; opacity: .9; }
.area:first-child { grid-column: 1 / -1; min-height: 200px; }
.area span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.area:not(:first-child) .w { display: none; }
@media (max-width: 767px) { .area:not(:first-child) b { font-size: .98rem; } }
@media (min-width: 768px) {
  .areas { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; }
  .area { min-height: 0; }
  .area:first-child { grid-column: span 2; grid-row: span 2; min-height: 0; }
  .area:first-child b { font-size: 1.5rem; }
}
@media (hover: hover) { .area:hover img { transform: scale(1.07); } .area:hover { color: #fff; } }

/* ============ Ngân sách / loại ============ */
.budget { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.budget a { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--sh-1); color: var(--ink); display: flex; flex-direction: column; gap: 4px; border: 1px solid transparent; transition: .2s; }
.budget a .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-50); color: var(--brand); margin-bottom: 6px; }
.budget b { font-size: 1rem; }
.budget span { color: var(--muted); font-size: .84rem; }
@media (min-width: 768px) { .budget { grid-template-columns: repeat(5, 1fr); } }
@media (hover: hover) { .budget a:hover { border-color: var(--brand); transform: translateY(-2px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: .92rem; }
.chip .ic { color: var(--brand); }
@media (hover: hover) { .chip:hover { border-color: var(--brand); color: var(--brand); } }

/* ============ Môi giới / lý do ============ */
.agent { display: grid; gap: 24px; background: #fff; border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-1); overflow: hidden; }
.agent-photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; max-height: 460px; background: var(--brand-50); }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.agent-name { display: flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 700; margin-bottom: 6px; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.feats { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 18px 0; }
.feat { display: flex; gap: 12px; align-items: flex-start; }
.feat .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.feat b { display: block; }
.feat span { color: var(--muted); font-size: .9rem; }
.agent .actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 640px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .agent { grid-template-columns: 380px 1fr; padding: 28px; gap: 36px; align-items: center; } }

/* ============ Quy trình ============ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--sh-1); position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); font-weight: 800; font-size: 1.6rem; color: var(--brand-100); display: block; line-height: 1; margin-bottom: 8px; }
.steps b { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: .9rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, 1fr); } }

/* ============ Hỏi đáp ============ */
.faq-wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 48px; } }
.faq details { background: #fff; border-radius: 14px; margin-bottom: 10px; box-shadow: var(--sh-1); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; position: relative; min-height: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50);
  color: var(--brand); display: grid; place-items: center; font-size: 1.1rem; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }

/* ============ CTA ============ */
.cta { position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 32px 20px; color: #fff; text-align: center; isolation: isolate;
  background: radial-gradient(circle at 20% 0%, #14a38f, transparent 55%), linear-gradient(135deg, var(--brand-800), var(--brand)); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 18px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (min-width: 768px) { .cta { padding: 52px; } }

/* ============ Trang danh sách ============ */
.page-head { background: linear-gradient(135deg, var(--brand-800), var(--brand)); color: #fff; padding: 28px 0 70px; }
.page-head h1 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.3rem); margin: 6px 0; }
.page-head p { color: rgba(255,255,255,.8); margin: 0; }
.page-head .crumbs, .page-head .crumbs a { color: rgba(255,255,255,.75); }
.page-search { margin-top: -50px; position: relative; z-index: 2; }
.subareas { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 18px -16px 0; padding: 0 16px; }
.subareas::-webkit-scrollbar { display: none; }
.subareas .chip { flex: none; }
.result-bar { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 14px; color: var(--muted); font-size: .92rem; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pager .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: var(--sh-1); color: var(--ink); font-weight: 600; }
.pager .current { background: var(--brand); color: #fff; }
.empty { background: #fff; border-radius: var(--r); padding: 36px 20px; text-align: center; color: var(--muted); box-shadow: var(--sh-1); }
.term-desc { background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--sh-1); margin-top: 28px; color: var(--ink-2); }
.crumbs { font-size: .86rem; color: var(--muted); padding: 12px 0; }
.crumbs a { color: inherit; }
.crumbs .separator { margin: 0 4px; opacity: .6; }

/* ============ Trang tin ============ */
.pd-top { padding-top: 4px; }
.gal { position: relative; margin: 0 -16px; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-item { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; border: 0; padding: 0; background: var(--brand-50); cursor: zoom-in; display: block; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .82rem; display: inline-flex; gap: 6px; align-items: center; pointer-events: none; }
.gal-all { display: none; }
@media (min-width: 768px) {
  .gal { margin: 0; }
  /* minmax(0,1fr): hàng/cột chia đều, ảnh dọc không đẩy lệch lưới */
  .gal-track { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: clamp(340px, 42vw, 500px); overflow: hidden; border-radius: var(--r-lg); }
  .gal-item { aspect-ratio: auto; min-width: 0; min-height: 0; overflow: hidden; }
  .gal-item:first-child { grid-row: span 2; }
  .gal-item:nth-child(n+6) { display: none; }
  .gal-track.n1 { grid-template-columns: 1fr; } .gal-track.n1 .gal-item { grid-row: span 2; }
  .gal-track.n2 { grid-template-columns: 1fr 1fr; } .gal-track.n2 .gal-item { grid-row: span 2; }
  .gal-track.n3 { grid-template-columns: 2fr 1fr; } .gal-track.n4 .gal-item:nth-child(4) { grid-column: span 2; }
  .gal-count { display: none; }
  .gal-all { display: inline-flex; position: absolute; right: 14px; bottom: 14px; }
}
@media (hover: hover) { .gal-item img { transition: filter .2s; } .gal-item:hover img { filter: brightness(.9); } }
.pd { display: grid; gap: 24px; margin-top: 18px; }
@media (min-width: 1024px) { .pd { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; } }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pd-tags .badge { position: static; }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 6px 0 4px; }
.pd-price b { font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--red); font-weight: 800; }
.pd-price span { color: var(--muted); }
.pd h1 { font-size: clamp(1.35rem, 3.4vw, 2rem); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.fact { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--sh-1); min-width: 0; }
.fact .ic { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--brand-50); color: var(--brand); }
.fact span { display: block; color: var(--muted); font-size: .76rem; }
.fact b { display: block; font-size: .95rem; overflow-wrap: anywhere; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.box { background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--sh-1); }
.box + .box { margin-top: 16px; }
.box h2 { font-size: 1.2rem; }
.entry { font-size: 1.02rem; color: var(--ink-2); }
.entry h2 { font-size: 1.3rem; margin-top: 1.4em; }
.entry h3 { margin-top: 1.2em; }
.entry ul { padding-left: 1.2em; }
.entry > :first-child { margin-top: 0; }
.entry img { border-radius: 12px; }
.sold { display: flex; gap: 10px; background: #fff7e6; border: 1px solid #f6d58e; border-radius: 14px; padding: 14px 16px; margin: 14px 0; color: #5b4300; }
.map { border: 0; width: 100%; height: 300px; border-radius: 14px; background: var(--brand-50); }
.aside { display: grid; gap: 16px; }
@media (min-width: 1024px) { .aside { position: sticky; top: calc(var(--hdr) + 16px); } }
.mini-agent { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.mini-agent img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
.mini-agent b { display: block; }
.mini-agent span { color: var(--muted); font-size: .85rem; }
.lead-form { display: grid; gap: 10px; }
.lead-form input, .lead-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 16px; background: #fff; }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.lead-form .hp { position: absolute; left: -9999px; }
.lead-msg { font-size: .9rem; margin: 0; min-height: 1.2em; }
.video-lite { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: #000 center / cover; cursor: pointer; overflow: hidden; margin: 18px 0; }
.video-lite .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; background: var(--red);
  color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.video-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-lite.short { aspect-ratio: 9 / 16; max-width: 360px; margin-inline: auto; }
/* Thanh liên hệ dưới đáy trang tin (điện thoại/iPad) */
.pd-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 8px 12px calc(8px + var(--safe-b)); display: flex; gap: 8px; align-items: center; }
.pd-bar .p { flex: 1; min-width: 0; line-height: 1.2; }
.pd-bar .p b { color: var(--red); font-size: 1.1rem; display: block; }
.pd-bar .p span { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pd-bar .btn { min-height: 46px; padding: 0 16px; }
@media (min-width: 1024px) { .pd-bar { display: none; } }

/* ============ Xem ảnh toàn màn hình ============ */
.lb { position: fixed; inset: 0; z-index: 100; background: #050807; display: none; flex-direction: column; }
.lb.open { display: flex; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; color: #fff; }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn .ic { width: 22px; height: 22px; }
/* Ảnh luôn nằm gọn trong khung (min-height:0 để flex không bị ảnh gốc kéo giãn) */
.lb-stage { position: relative; flex: 1; min-height: 0; }
.lb-track { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-track figure { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: 8px; }
.lb-track img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
@media (min-width: 768px) { .lb-track figure { padding: 16px 84px; } }
.lb-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px calc(10px + var(--safe-b)); scrollbar-width: none; justify-content: safe center; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: 0 0 auto; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #111; opacity: .55; cursor: pointer; transition: opacity .15s, border-color .15s; }
.lb-thumbs button.on { opacity: 1; border-color: var(--gold); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); display: none; width: 52px; height: 52px; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
@media (hover: hover) and (min-width: 768px) { .lb-nav { display: grid; } }

/* ============ Bài viết ============ */
.article { max-width: 780px; margin: 0 auto; }
.article .entry { background: #fff; border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
@media (min-width: 768px) { .article .entry { padding: 40px; } }
.post-card .card-body p { color: var(--muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ Chân trang + thanh dưới ============ */
.ftr { background: #071a18; color: #9fb7b2; padding: 48px 0 24px; margin-top: 40px; font-size: .93rem; }
.ftr a { color: #dcebe8; }
.ftr .brand { color: #fff; margin-bottom: 12px; }
.ftr .brand small { color: #9fb7b2; }
.ftr-cols { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.ftr-cols > :first-child { grid-column: 1 / -1; }
.ftr h3 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr-office { font-style: normal; display: grid; gap: 6px; margin-top: 12px; font-size: .92rem; }
.ftr-office b { color: #fff; }
.ftr-office a { display: inline-flex; gap: 8px; align-items: flex-start; }
.ftr-office .ic { flex: none; margin-top: 2px; }
.ftr-map { color: var(--gold) !important; font-weight: 600; }
.ftr-contact { display: grid; gap: 10px; margin-top: 14px; }
.ftr-contact a { display: inline-flex; gap: 8px; align-items: center; }
.ftr-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding-top: 18px; font-size: .82rem; }
@media (min-width: 900px) { .ftr-cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .ftr-cols > :first-child { grid-column: auto; } }
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--bnav) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); }
.bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .72rem; font-weight: 600; }
.bnav a .ic { width: 22px; height: 22px; }
.bnav a.on { color: var(--brand); }
.bnav .call { color: #b77800; } .bnav .zalo { color: var(--zalo); }
@media (min-width: 1024px) { .bnav { display: none; } }
.single-bds .bnav { display: none; }
.fab { display: none; }
@media (min-width: 1024px) {
  .fab { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
  .fab a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--sh-2); color: #fff; }
  .fab .ic { width: 24px; height: 24px; }
  .fab .call { background: var(--gold); color: #1d1503; animation: ring 2.4s infinite; }
  .fab .zalo { background: var(--zalo); font-weight: 800; font-size: .8rem; }
}
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,177,61,.55); } 60% { box-shadow: 0 0 0 14px rgba(242,177,61,0); } }

/* ===================================================================
   v0.3 – hướng khách hàng: giá tách riêng nổi bật, ♥ lưu tin, menu xổ lớn,
   ô loại BĐS, thẻ giá trang tin, trả góp, thanh đáy 5 mục
   =================================================================== */
:root { --r: 18px; --soft: #f0f6f4; }
.hdr-act { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1024px) { .hdr-act { margin-left: 8px; } }
.saved-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.saved-btn .ic { width: 22px; height: 22px; }
.saved-txt { display: none; }
@media (min-width: 1280px) { .saved-txt { display: inline; } }
.saved-n:empty { display: none; }
.saved-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: .7rem; line-height: 18px; text-align: center; }
.saved-btn .saved-n { position: absolute; top: 4px; left: 26px; }
@media (min-width: 1280px) { .saved-btn .saved-n { position: static; } }
.menu-btn { margin-left: 0; }
.home .hdr:not(.scrolled) .saved-btn { color: #fff; }

/* Menu ngang kiểu truyền thống: gạch chân vàng khi rê, mục con xổ xuống, cấp 3 bật sang phải */
.nav .menu > li > a { gap: 4px; position: relative; white-space: nowrap; }
@media (max-width: 1279px) { .nav .menu > li:first-child { display: none; } .nav .menu > li > a { padding: 0 9px; } }
.nav .menu > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.nav .menu > li:hover > a::after, .nav .menu > li:focus-within > a::after { transform: scaleX(1); }
.nav .chev { width: 15px; height: 15px; opacity: .7; transition: transform .2s; flex: none; }
.nav .menu > li:hover > a > .chev { transform: rotate(180deg); }
.nav .sub-menu { padding: 6px; min-width: 240px; }
.nav .sub-menu li { position: relative; }
.nav .sub-menu a { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.nav .sub-menu a .ic:not(.chev) { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--brand-50); color: var(--brand); flex: none; }
.nav .sub-menu small { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: .74rem; text-align: center; }
.nav .sub-menu span + .chev { margin-left: auto; }
.nav .sub-menu small + .chev { margin-left: 4px; }
.nav .sub-menu .sub-menu { top: -6px; left: 100%; margin-left: 4px; max-height: 70vh; overflow-y: auto; }
.nav .sub-menu .sub-menu::before { inset: 0 auto 0 -10px; width: 10px; height: auto; }
.nav .sub-menu .sub-menu a { font-weight: 500; padding: 8px 12px; }

/* Ngăn kéo điện thoại: danh sách dọc, mục có con bấm để mở */
.dr-menu { margin-top: 4px; }
.drawer .dr-menu > li { border-bottom: 1px solid var(--line); }
.dr-menu a, .dr-menu summary { display: flex; align-items: center; gap: 12px; min-height: 52px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.dr-menu summary::-webkit-details-marker { display: none; }
.dr-menu > li > a > .ic, .dr-menu > li > details > summary > .ic:not(.chev) { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--brand-50); color: var(--brand); flex: none; }
.dr-menu small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: .8rem; }
.dr-menu .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; flex: none; }
.dr-menu span + .chev { margin-left: auto; }
.dr-menu small + .chev { margin-left: 8px; }
.dr-menu details[open] > summary > .chev { transform: rotate(180deg); }
.drawer .dr-menu .sub-menu { display: block; padding: 0 0 8px 46px; }
.drawer .dr-menu .sub-menu a, .drawer .dr-menu .sub-menu summary { min-height: 42px; font-weight: 500; color: var(--ink-2); font-size: .95rem; }
.dr-menu .sub-menu .ic:not(.chev) { width: 18px; height: 18px; color: var(--brand); flex: none; }
.drawer .dr-menu .sub-menu .sub-menu { padding-left: 14px; border-left: 2px solid var(--line); }
.dr-menu .dr-all { color: var(--brand) !important; font-weight: 700 !important; }
.dr-menu .saved-n { margin-left: auto; }

/* Hero: cụm tìm nhiều */
.quick span { font-size: .85rem; color: rgba(255,255,255,.75); align-self: center; margin-right: 2px; }

/* Ô loại nhà đất */
.sec-types { padding: 22px 0 0; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: var(--r); background: #fff; box-shadow: var(--sh-1); color: var(--ink); text-align: center; transition: transform .2s, box-shadow .2s; }
.type-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); color: var(--brand); transition: .2s; }
.type-ic .ic { width: 28px; height: 28px; }
.type-tile b { font-size: .95rem; }
.type-tile small { color: var(--muted); font-size: .78rem; }
@media (min-width: 768px) { .types { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; } .sec-types { padding-top: 36px; } }
@media (hover: hover) { .type-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); color: var(--ink); } .type-tile:hover .type-ic { background: var(--brand); color: #fff; } }

/* Thẻ tin: giá tách dòng riêng */
.card-media::after { height: 35%; }
.media-info { position: absolute; right: 10px; bottom: 10px; z-index: 1; display: flex; gap: 6px; }
.media-info span { display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; padding: 3px 8px; border-radius: 8px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.save { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.15); transition: transform .15s, color .15s; }
.save .ic { width: 21px; height: 21px; }
.save.on, [data-save].on { color: var(--red); }
.save.on .ic, [data-save].on .ic { fill: currentColor; }
.pop { animation: pop .4s ease; }
@keyframes pop { 40% { transform: scale(1.25); } }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-row .price { color: var(--red); font-weight: 800; font-size: 1.35rem; line-height: 1.1; letter-spacing: -.01em; }
.price-row .ppm { color: var(--muted); font-size: .8rem; font-weight: 500; }
.card h3 { font-size: .98rem; font-weight: 600; color: var(--ink-2); }
.specs span { background: var(--soft); padding: 3px 9px; border-radius: 8px; font-size: .82rem; }
.legal { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; color: #0a7a45; background: #e8f7ee; font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 8px; }
.legal .ic { width: 15px; height: 15px; }

/* Trang tin: tiêu đề + thẻ giá */
.pd-head h1 { font-size: clamp(1.45rem, 3.6vw, 2.2rem); margin: 6px 0 6px; }
.pd-loc { display: flex; align-items: center; gap: 6px; color: var(--ink-2); margin: 0 0 14px; flex-wrap: wrap; }
.pd-loc .ic { color: var(--brand); }
.pd-loc span { color: var(--muted); }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.tag .ic { width: 14px; height: 14px; }
.tag-type { background: var(--brand-50); color: var(--brand-800); box-shadow: none; }
.tag-legal { background: #e8f7ee; color: #0a7a45; box-shadow: none; }
.tag-off { background: #1f2937; color: #fff; box-shadow: none; }
.price-card { position: relative; display: grid; gap: 12px; background: #fff; border-radius: var(--r); padding: 18px 20px; box-shadow: var(--sh-1); border-left: 5px solid var(--red); }
.pc-main { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.pc-label { width: 100%; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.pc-price { color: var(--red); font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.pc-ppm { color: var(--ink-2); font-weight: 600; background: #fff1f1; padding: 4px 10px; border-radius: 8px; font-size: .9rem; }
.pc-sum { color: var(--ink-2); font-weight: 600; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pc-sum span { color: var(--muted); font-weight: 500; font-size: .88rem; }
.pc-act { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 640px) { .price-card { grid-template-columns: 1fr auto; align-items: center; } .pc-sum { grid-column: 1; } .pc-act { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; } }
.hl { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
.hl li { display: flex; gap: 8px; align-items: flex-start; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: var(--sh-1); font-weight: 500; }
.hl .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: #e8f7ee; color: #0a7a45; stroke-width: 3; }
@media (min-width: 640px) { .hl { grid-template-columns: 1fr 1fr; } }
.pd article > .box, .pd article > section { margin-top: 16px; }
.box-h { display: flex; align-items: center; gap: 8px; font-size: 1.15rem !important; margin-bottom: 14px; }
.box-h .ic { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--brand-50); color: var(--brand); }
.box .facts { margin: 0; }
.fact { box-shadow: none; background: var(--soft); }
.entry h2 { position: relative; padding-left: 14px; font-size: 1.2rem; }
.entry h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--gold); }
.entry h2[id] { scroll-margin-top: calc(var(--hdr) + 16px); }
/* Mục lục tự động đầu bài */
.entry-img { margin: 18px 0; }
.entry-img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; }
.toc { margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.toc summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.toc ol { margin: 8px 0 2px; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--brand); font-weight: 500; }
.note { color: var(--muted); font-size: .85rem; margin: 10px 0 0; }
.contact-price { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; margin-bottom: 12px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.contact-price span { color: var(--muted); font-size: .85rem; }
.contact-price b { color: var(--red); font-size: 1.5rem; font-weight: 800; }
.mini-agent span { display: inline-flex; align-items: center; gap: 4px; }
.mini-agent span .ic { color: #0a7a45; width: 14px; height: 14px; }

/* Trả góp */
.calc-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.calc-grid label { display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.calc-grid b { color: var(--brand); }
.calc-grid input[type=range] { width: 100%; accent-color: var(--brand); height: 28px; }
.calc-grid input[type=number] { min-height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font-size: 16px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.calc-out div { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.calc-out span { display: block; color: var(--muted); font-size: .78rem; }
.calc-out b { font-size: 1.05rem; }
.calc-out .calc-main { grid-column: 1 / -1; background: var(--brand); color: #fff; }
.calc-out .calc-main span { color: rgba(255,255,255,.8); }
.calc-out .calc-main b { font-size: 1.5rem; }
@media (min-width: 640px) { .calc-grid { grid-template-columns: 1fr 1fr 1fr; } .calc-out { grid-template-columns: 1fr 1fr 1.4fr; } .calc-out .calc-main { grid-column: auto; } }

/* Tin đã lưu */
.saved-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.saved-note .ic { color: var(--gold-600); }
.page-head h1 .ic { color: #ff8a8a; fill: currentColor; margin-right: 6px; }

/* Thanh dưới: 5 mục; thanh trang tin có nút ♥ */
.bnav { grid-template-columns: repeat(5, 1fr); }
.bnav a { position: relative; }
.bnav .saved-n { position: absolute; top: 6px; left: calc(50% + 4px); }
.pd-bar .icon-only { width: 46px; padding: 0; flex: none; }
.pd-bar .icon-only .ic { width: 22px; height: 22px; }

/* ===================================================================
   v0.5 – nút Gọi / Zalo: đậm, có chiều sâu; hiệu ứng theo mức độ quan trọng của từng chỗ
   - cta-ring: icon điện thoại rung 0,8 giây rồi nghỉ ~5 giây (chỗ chính: trang tin, đầu trang, thanh đáy, nút nổi)
   - cta-shine: vệt sáng lướt qua 6 giây/lần (nút chính duy nhất của khối: cột liên hệ trang tin, khối mời cuối trang chủ)
   - cta-live: chấm xanh "đang trực tuyến" trên Zalo
   - thẻ tin: không chạy hiệu ứng (nhiều thẻ cùng động là rối), chỉ nhấc nhẹ khi rê chuột
   Người dùng bật "giảm chuyển động" → tắt hết (luật chung ở đầu tệp).
   =================================================================== */
.btn-gold { background: linear-gradient(180deg, #ffcf5c 0%, #f2b13d 55%, #e39a17 100%); color: #2a1c00;
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 6px 16px -6px rgba(227,154,23,.75); text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.btn-zalo { background: linear-gradient(180deg, #2b8bff 0%, #0068ff 60%, #0054d6 100%); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 6px 16px -6px rgba(0,88,230,.75); }
.btn-gold .ic, .btn-zalo .ic { width: 20px; height: 20px; }
@media (hover: hover) {
  .btn-gold:hover { background: linear-gradient(180deg, #ffd56e, #f5b843 55%, #e8a01d); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.55) inset, 0 10px 22px -8px rgba(227,154,23,.9); }
  .btn-zalo:hover { filter: none; background: linear-gradient(180deg, #3b95ff, #0a70ff 60%, #005be6); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 10px 22px -8px rgba(0,88,230,.9); }
}
.btn-gold:active, .btn-zalo:active { transform: translateY(0) scale(.97); }

.cta-ring .ic { transform-origin: 50% 60%; animation: cta-ring 6s ease-in-out 2s infinite; }
@keyframes cta-ring {
  0%, 14%, 100% { transform: rotate(0); }
  2% { transform: rotate(-16deg); } 4% { transform: rotate(14deg); } 6% { transform: rotate(-12deg); }
  8% { transform: rotate(10deg); } 10% { transform: rotate(-6deg); } 12% { transform: rotate(4deg); }
}
.cta-shine { position: relative; overflow: hidden; isolation: isolate; }
.cta-shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: cta-shine 6s ease-in-out 1.5s infinite; }
@keyframes cta-shine { 0% { left: -60%; } 18%, 100% { left: 130%; } }
.cta-live { position: relative; }
.cta-live::before { content: ""; position: absolute; top: 7px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: #2ee66b;
  box-shadow: 0 0 0 2px #0068ff; animation: cta-live 2s ease-out infinite; }
@keyframes cta-live { 0% { box-shadow: 0 0 0 2px #0068ff, 0 0 0 2px rgba(46,230,107,.6); } 80%, 100% { box-shadow: 0 0 0 2px #0068ff, 0 0 0 8px rgba(46,230,107,0); } }

/* Thẻ tin: nút nhỏ gọn, không hiệu ứng chạy */
.card .btn-gold, .card .btn-zalo { box-shadow: 0 1px 0 rgba(255,255,255,.4) inset; text-shadow: none; }

/* Thanh đáy (điện thoại): Gọi nổi thành nút tròn vàng, Zalo có chấm trực tuyến */
.bnav .call, .bnav .zalo { position: relative; }
.bnav .call .ic, .bnav .zalo .ic { width: 38px; height: 30px; padding: 5px 9px; border-radius: 999px; box-sizing: border-box; }
.bnav .call .ic { background: linear-gradient(180deg, #ffcf5c, #e9a21f); color: #2a1c00; box-shadow: 0 4px 10px -4px rgba(227,154,23,.9); }
.bnav .zalo .ic { background: linear-gradient(180deg, #2b8bff, #0058e6); color: #fff; box-shadow: 0 4px 10px -4px rgba(0,88,230,.9); }
.bnav .call { color: #8a5a00; } .bnav .zalo { color: #0058e6; }
.bnav .zalo::before { content: ""; position: absolute; top: 7px; left: calc(50% + 12px); width: 8px; height: 8px; border-radius: 50%; background: #2ee66b; box-shadow: 0 0 0 2px #fff; }

/* Thanh đáy trang tin: nút Gọi chiếm nhiều chỗ hơn Zalo */
.pd-bar .btn-gold { flex: 1.3; } .pd-bar .btn-zalo { flex: 1; }

/* Nút nổi máy tính: vòng lan tỏa nhẹ 3 giây/lần, có nhãn khi rê chuột */
@media (min-width: 1024px) {
  .fab a { position: relative; transition: transform .15s; }
  .fab .call { background: linear-gradient(180deg, #ffcf5c, #e39a17); animation: ring 3s ease-out 3s infinite; }
  .fab .zalo { background: linear-gradient(180deg, #2b8bff, #0058e6); }
  .fab .call .ic { animation: cta-ring 6s ease-in-out 2s infinite; }
  .fab a::after { content: attr(aria-label); position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(6px); opacity: 0; pointer-events: none;
    white-space: nowrap; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; transition: .15s; }
  .fab a:hover { transform: scale(1.06); }
  .fab a:hover::after { opacity: 1; transform: translateY(-50%); }
}
/* ===================================================================
   v0.5 – Trợ lý tìm nhà: nút nổi + khung trò chuyện (điện thoại: tấm trượt lên; máy tính: khung góc phải)
   =================================================================== */
.as-open { position: fixed; right: 12px; bottom: calc(var(--bnav) + var(--safe-b) + 12px); z-index: 52; display: inline-flex; align-items: center; gap: 7px;
  height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; font-size: .9rem; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #14a38f 100%); box-shadow: 0 10px 24px -10px rgba(6,63,57,.75), 0 0 0 3px rgba(255,255,255,.7);
  animation: as-in .5s cubic-bezier(.2,.9,.3,1.3) 1.2s both; }
.as-open .ic { width: 20px; height: 20px; animation: as-spark 5s ease-in-out 3s infinite; }
.single-bds .as-open { bottom: calc(70px + var(--safe-b) + 12px); }
@keyframes as-in { from { opacity: 0; transform: translateY(16px) scale(.9); } }
@keyframes as-spark { 0%, 88%, 100% { transform: rotate(0) scale(1); } 92% { transform: rotate(25deg) scale(1.2); } 96% { transform: rotate(-10deg) scale(1); } }
@media (min-width: 1024px) { .as-open, .single-bds .as-open { bottom: 150px; right: 20px; } }
@media (hover: hover) { .as-open:hover { filter: brightness(1.08); } }
body.lock .as-open { visibility: hidden; }

.assist { position: fixed; inset: 0; z-index: 95; }
.assist[hidden] { display: none; }
.as-bg { position: absolute; inset: 0; background: rgba(6,20,18,.45); opacity: 0; transition: opacity .22s; }
.as-panel { position: absolute; left: 0; right: 0; bottom: 0; height: min(86dvh, 720px); background: #f4f7f6; border-radius: 20px 20px 0 0; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 40px rgba(0,0,0,.2); overflow: hidden; }
.assist.open .as-bg { opacity: 1; } .assist.open .as-panel { transform: none; }
@media (min-width: 768px) {
  .as-bg { background: transparent; }
  .as-panel { left: auto; right: 20px; bottom: 20px; width: 400px; height: min(680px, calc(100dvh - 40px)); border-radius: 20px; transform: translateY(20px) scale(.98); opacity: 0; transition: .22s; }
  .assist.open .as-panel { opacity: 1; }
}
.as-top { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: linear-gradient(135deg, var(--brand-800), var(--brand)); color: #fff; }
.as-top img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid rgba(255,255,255,.6); }
.as-top div { flex: 1; line-height: 1.25; } .as-top b { display: block; } .as-top small { color: #bfe6dd; font-size: .78rem; }
.as-top small::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2ee66b; margin-right: 5px; vertical-align: 1px; }
.as-x { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; display: grid; place-items: center; cursor: pointer; }
.as-x .ic { width: 20px; height: 20px; }
.as-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.as-msg { max-width: 92%; padding: 10px 13px; border-radius: 16px; font-size: .94rem; line-height: 1.5; animation: as-msg .2s ease-out; }
.as-msg.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.as-msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
@keyframes as-msg { from { opacity: 0; transform: translateY(6px); } }
.as-dots { display: inline-flex; gap: 4px; } .as-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9db2ad; animation: as-dot 1s infinite; }
.as-dots i:nth-child(2) { animation-delay: .15s; } .as-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes as-dot { 50% { transform: translateY(-4px); opacity: .5; } }
.as-list { display: grid; gap: 8px; margin: 10px 0 6px; }
.as-card { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; padding: 6px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); background: #fff; }
.as-card img, .as-noimg { width: 96px; height: 72px; border-radius: 9px; object-fit: cover; background: var(--brand-50); display: block; }
.as-card span { min-width: 0; line-height: 1.3; } .as-card b { color: var(--red); display: block; }
.as-card em { font-style: normal; font-weight: 600; font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-card small { display: block; color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .as-card:hover { border-color: var(--brand); } }
.as-all { display: inline-block; font-weight: 700; font-size: .88rem; margin-bottom: 4px; }
.as-note { margin: 8px 0 6px; font-size: .86rem; color: var(--muted); }
.as-cta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .as-cta .btn { min-height: 38px; }
.as-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 8px; scrollbar-width: none; } .as-chips::-webkit-scrollbar { display: none; }
.as-chips:empty { display: none; }
.as-chips button { flex: none; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--brand-100, #d3ede7); background: #fff; color: var(--brand); font: inherit; font-weight: 600; font-size: .86rem; cursor: pointer; }
@media (hover: hover) { .as-chips button:hover { background: var(--brand-50); } }
.as-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); }
.as-form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: #f6f9f8; }
.as-form input:focus { outline: 2px solid var(--brand); outline-offset: 0; background: #fff; }
.as-form button { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; }
.as-form button .ic { width: 20px; height: 20px; }
.as-lead { display: grid; gap: 8px; } .as-lead input { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.as-lead .hp { position: absolute; left: -9999px; } .as-lmsg { color: var(--brand); font-weight: 600; }
/* nút mở trợ lý trong ô tìm trang chủ */
.as-inline { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.as-inline .ic { width: 18px; height: 18px; }
.hero .as-inline { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
@media (max-width: 1023px) { .as-open { transition: width .2s, padding .2s; } .as-open.mini { width: 48px; height: 48px; padding: 0; justify-content: center; } .as-open.mini span { display: none; } .as-open.mini .ic { width: 22px; height: 22px; } }

/* ===================================================================
   v0.5 – Tin tức: bìa theo chuyên mục (không dùng ảnh báo), thanh chuyên mục, khung mời cuối bài
   =================================================================== */
.pc-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--brand-800), var(--brand)); }
.pc-cover.cv-thi-truong-quy-hoach { background: linear-gradient(135deg, #063f39, #0b6b5f 55%, #14a38f); }
.pc-cover.cv-phap-ly-nha-dat { background: linear-gradient(135deg, #1c2b4a, #2f4f8f 60%, #4a76c9); }
.pc-cover.cv-cam-nang-khu-vuc { background: linear-gradient(135deg, #6b3d07, #b8730f 55%, #e9a21f); }
.pc-cover.cv-phong-thuy-nha-dat { background: linear-gradient(135deg, #5a1414, #9b2b2b 55%, #d0573b); }
.pc-cover img { width: 100%; height: 100%; object-fit: cover; }
.pc-art { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; text-align: center; padding: 12px; }
.pc-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 15%, rgba(255,255,255,.22), transparent 45%), repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); }
.pc-art .ic { width: 48px; height: 48px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.16); position: relative; }
.pc-art b { position: relative; font-size: .95rem; letter-spacing: .02em; }
.pc-meta { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.pc-cat { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--brand); font-size: .78rem; }
.pc-cat .ic { width: 15px; height: 15px; }
.pc-cat.on-dark { color: #ffd56e; margin-top: 6px; font-size: .85rem; }
.news-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; padding-bottom: 2px; }
.news-tabs::-webkit-scrollbar { display: none; }
.news-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: #fff; box-shadow: var(--sh-1); color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.news-tabs a .ic { width: 17px; height: 17px; color: var(--brand); }
.news-tabs a.on { background: var(--brand); color: #fff; } .news-tabs a.on .ic { color: #fff; }
.entry .news-src { font-size: .9rem; } .entry .news-src a { color: var(--brand); }
.news-faq { margin-top: 18px; }
.news-cta { margin-top: 18px; display: grid; gap: 14px; padding: 20px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--brand-800), var(--brand)); color: #fff; }
.news-cta b { font-size: 1.15rem; } .news-cta p { margin: 4px 0 0; color: rgba(255,255,255,.85); }
.news-cta-btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 768px) { .news-cta { grid-template-columns: 1fr auto; align-items: center; padding: 24px 28px; } }
.sec-sm { margin-top: 36px; }
/* v0.6 – icon Gọi (tống nghe đặc + sóng) / Zalo (bong bóng có chữ) */
.ic .wave { stroke-width: 2.2; }
.btn-zalo .ic { width: 26px; height: 26px; margin: -3px 0; }
.btn-gold .ic, .btn-line .ic { stroke-width: 2; }
.cta-ring .ic .wave { animation: cta-wave 6s ease-in-out 2s infinite; }
@keyframes cta-wave { 0%, 14%, 100% { opacity: 1; } 3%, 9% { opacity: .15; } 6%, 12% { opacity: 1; } }
.bnav .zalo .ic { padding: 2px 6px; }
.fab .zalo .ic { width: 32px; height: 32px; }
.pd-bar .btn { font-size: 1rem; font-weight: 700; }
.pd-bar .btn .ic { width: 22px; height: 22px; } .pd-bar .btn-zalo .ic { width: 28px; height: 28px; }
/* v0.6b – thẻ tin: Gọi vàng + Zalo xanh cân nhau; icon Zalo dạng ô vuông trắng bo góc */
.card-foot .btn { flex: 1; min-height: 42px; font-weight: 700; } .card-foot .btn-gold { box-shadow: 0 4px 10px -6px rgba(227,154,23,.9), 0 1px 0 rgba(255,255,255,.5) inset; }
.btn-zalo .ic { width: 22px; height: 22px; margin: 0; } .pd-bar .btn-zalo .ic { width: 24px; height: 24px; } .fab .zalo .ic { width: 30px; height: 30px; }
.bnav .zalo .ic { padding: 3px 8px; }

/* ghi công ảnh có giấy phép */
.entry-cover { margin: 0 0 20px; } .entry-img figcaption, .entry-cover figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; text-align: right; } .entry-img figcaption a, .entry-cover figcaption a { color: var(--muted); text-decoration: underline; }
