/* Khoác giao diện "hồ sơ" lên các trang con (dự án, căn, bảng hàng, tin tức, ký gửi, về tôi). Nạp sau style.css + theme.css. */
:root {
  --bg: #1a1510; --bg-2: #211a14; --panel: #2a211a; --zinc: #2e251d;
  --line: rgba(217, 188, 140, .16); --line-strong: rgba(217, 188, 140, .38);
  --gold: #d9bc8c; --gold-deep: #b38b52;
  --text: #efe6d8; --muted: #c4b6a2; --dim: #9a8d7f;
  --radius: 18px;
  --gold-grad: linear-gradient(135deg, #e3c795, #b38b52);
  --gold-text: linear-gradient(110deg, #b38b52 0%, #e9cf9f 35%, #fff4dc 50%, #e9cf9f 65%, #b38b52 100%);
  --font: "Be Vietnam Pro", system-ui, sans-serif;
}
body { font-weight: 300; font-size: 16px; line-height: 1.75; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: #f6ead6; letter-spacing: -.005em; line-height: 1.2; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
b, strong { font-weight: 600; }
.gold-text { background-size: 250% 100%; animation: shimmer 7s linear infinite; }
.wrap { max-width: none; width: min(1160px, 100% - 40px); padding: 0; }

/* tiêu đề phần: chữ thường, chữ nhỏ trang trí phía trên */
.section { border-top: 1px solid var(--line); padding: clamp(72px, 9vw, 120px) 0; }
.section-alt { background: radial-gradient(120% 70% at 20% 0%, #2a2119 0%, #1d1712 70%); }
.section-head { margin-bottom: 52px; gap: 14px; }
.section-head h2, .page-hero h1, .cta-band h2, .hero h1 { text-transform: none !important; letter-spacing: -.005em; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); }
.pill { background: none; border: 0; padding: 0; color: var(--gold); font: 500 12px/1.6 var(--sans); letter-spacing: .32em; gap: 12px; }
.pill::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.pill svg { display: none; }
.divider { width: 56px; height: 1px; background: var(--gold-deep); }

/* nút */
.btn { border-radius: 999px; min-height: 48px; font: 500 15px/1 var(--sans); letter-spacing: 0; position: relative; overflow: hidden; }
.btn-gold { text-transform: none; background: var(--gold-grad); color: #1a1510; box-shadow: none; }
.btn-gold:hover { color: #1a1510; box-shadow: 0 14px 34px -12px rgba(227, 199, 149, .55); transform: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); background: rgba(217, 188, 140, .06); }
.btn-ghost::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .25), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none; }
.btn-ghost:hover::after { left: 130%; }

/* thẻ */
.card { background: rgba(255, 255, 255, .025); border: 1px solid var(--line); border-radius: var(--radius); }
.card:hover { border-color: var(--line-strong); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
.glow { box-shadow: none; border-color: var(--line-strong); }
.icon-box { border-radius: 50%; background: transparent; border: 1px solid var(--line-strong); color: var(--gold); transition: transform .6s var(--ease), background .4s, color .4s; }
.card:hover .icon-box { transform: rotate(-10deg) scale(1.06); background: var(--gold-deep); color: #1a1510; }
.service h3, .contact-card h3, .project-body h3, .video-card .body h3, .news h3 { font-weight: 500; }
.tag-dev { background: rgba(26, 21, 16, .78); border-color: var(--line-strong); color: var(--gold); border-radius: 999px; padding: 5px 12px; }
.tag-hot { background: var(--gold-grad); color: #1a1510; border-radius: 999px; }
.project-img::after { background: linear-gradient(to top, rgba(26, 21, 16, .9), transparent 55%); }
.project-img img, .unit-img img, .news-img img, .p-gallery img { transition: transform 1s var(--ease), filter 1s; }
.project:hover .project-img img, .unit:hover .unit-img img { transform: scale(1.07); }
.project-body li::before { content: '—'; color: var(--gold-deep); font-size: 12px; margin-top: 2px; }
.project-body .cat, .unit-kind, .fact small, th, .contact-card .label, .stat small, .news-topic { font-weight: 500; }
.fbtn { border-color: var(--line-strong); background: transparent; color: var(--muted); font-weight: 500; }
.fbtn:hover { color: var(--gold); border-color: var(--gold); }
.fbtn[aria-pressed="true"] { background: var(--gold-grad); color: #1a1510; }
.search, .bh-search input, .bh-sel, .bh-clear { background-color: rgba(255, 255, 255, .04); border-color: var(--line-strong); }
.bh-sel { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d9bc8c' stroke-width='1.6'/%3E%3C/svg%3E"); border-radius: 999px; }
.bh-sel option, .form select option { background: #231c16; color: #efe6d8; }

/* đầu trang con: ảnh nền ấm, tiêu đề chữ có chân, mờ dần */
.page-hero { padding: clamp(96px, 12vw, 150px) 0 clamp(72px, 9vw, 110px); border-bottom: 1px solid var(--line); }
.page-hero .hero-bg img { opacity: .42; filter: saturate(.85) sepia(.15); height: 130%; margin-top: -12%; will-change: transform; }
.page-hero .hero-bg::after, .hero-bg::after { background: linear-gradient(to top, #1a1510 0%, rgba(26, 21, 16, .78) 45%, rgba(26, 21, 16, .55) 100%); }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); }
.page-hero p { color: var(--muted); font-size: 18px; }
.crumbs { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; }
.crumbs a { color: var(--gold); }

/* chi tiết dự án / căn */
.detail-cover, .article-cover { border-color: var(--line); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.fact { background: rgba(255, 255, 255, .03); border-color: var(--line); border-radius: 14px; transition: border-color .3s, transform .4s var(--ease); }
.fact:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.fact b { font: 500 18px/1.4 var(--serif); color: #f6ead6; }
.amenities span { background: transparent; border-color: var(--line-strong); }
.table-wrap { background: rgba(255, 255, 255, .02); }
tr { transition: background .3s; }
tbody tr:hover { background: rgba(217, 188, 140, .05); }
.advisor img, .agent img, .person img { border-color: var(--gold-deep); }
.agent { background: rgba(255, 255, 255, .03); border-color: var(--line-strong); }
.unit-bigprice, .unit-price, .big-number, .price b { font-family: var(--serif); font-weight: 500; }
.unit-chips span { background: rgba(255, 255, 255, .03); }
.ug-tile { border-color: var(--line); }
.ug-back, .ug-count { background: rgba(26, 21, 16, .78); border-color: var(--line-strong); font-weight: 500; }
.ul-list a.current { background: rgba(217, 188, 140, .1); }
.plan-empty { border-color: var(--line-strong); }
.lightbox { background: rgba(18, 14, 10, .96); }
details.faq { background: rgba(255, 255, 255, .02); border-color: var(--line); transition: border-color .3s; }
details.faq[open], details.faq:hover { border-color: var(--line-strong); }
details.faq summary { font: 500 19px/1.4 var(--serif); color: #f6ead6; }
.tl::before { background: var(--gold-deep); box-shadow: 0 0 0 5px rgba(179, 139, 82, .15); width: 13px; height: 13px; left: -8px; }
.timeline { border-left: 1px solid var(--line-strong); }
.tl small { font-weight: 500; letter-spacing: .24em; }
.step::before { font-family: var(--serif); font-style: italic; font-weight: 500; }
.quote { border-left: 1px solid var(--gold); font-family: var(--serif); font-weight: 500; color: var(--gold); }
.checklist svg { color: var(--gold-deep); }
.cta-band { border-radius: 24px; background: radial-gradient(ellipse at top, rgba(217, 188, 140, .14), transparent 60%), linear-gradient(to bottom, #2a2119, #1a1510); border-color: var(--line-strong); }
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); }

/* chân dung (trang Về tôi) */
.portrait-card::before { display: none; }
.portrait-inner { background: rgba(255, 255, 255, .02); border-color: var(--line-strong); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); border-radius: 24px; }
.portrait-photo { border-radius: 18px; }
.portrait-caption .pill { background: none; color: var(--gold); padding: 0; }
.portrait-caption .pill::before { display: none; }
.portrait-caption strong { font: 500 28px/1.2 var(--serif); letter-spacing: 0; }
.stat { background: rgba(255, 255, 255, .03); border-color: var(--line); }
.stat b { font-family: var(--serif); font-weight: 500; }

/* biểu mẫu */
.form label { font-weight: 500; }
.form input, .form select, .form textarea { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); color: var(--text); transition: border-color .25s, box-shadow .25s; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 188, 140, .14); }
.tip { background: rgba(217, 188, 140, .06); border-color: var(--line-strong); }
.year-btn[aria-pressed="true"] { background: var(--gold-grad); color: #1a1510; }
input[type=range] { accent-color: #b38b52; }
.bar { background: var(--zinc); }

/* tin tức */
.news-topic { background: transparent; border-color: var(--line-strong); border-radius: 999px; }
.news-tip, .article-lead { border-left-width: 1px; border-color: var(--gold-deep); background: rgba(217, 188, 140, .05); }
.article h1 { font-size: clamp(34px, 4.6vw, 54px); }
.article-body { font-size: 17.5px; line-height: 1.85; }
.article-body h2 { font-size: 30px; }

/* bảng hàng: thanh lọc dưới đầu trang 68px */
.bh-bar { top: 68px; background: rgba(26, 21, 16, .94); }
.bh-map-col { top: 143px; height: calc(100vh - 143px); }
.bh-pin { background: #1a1510; font-family: var(--sans); font-weight: 600; }
.bh-pin:hover, .bh-pin.on, .bh-cluster { color: #1a1510; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip, .bh-tip { background: #1a1510; }
.leaflet-control-zoom a { background: #1a1510 !important; }
.bh-pop, .bh-tip { font-family: var(--sans); }
@media (max-width: 1000px) { .bh-map-col { top: 0; height: 340px; } }
@media (max-width: 640px) { .bh-bar { top: 68px; } .wrap { width: calc(100% - 32px); } }

/* Bảng hàng: nút cụm dự án trên bản đồ bị trùng màu chữ/nền (chữ tối trên nền tối) */
.bh-pin.bh-cluster { background: linear-gradient(135deg, #e4cb9f, #b38b52); color: #1a1510; border-color: transparent; }
/* Bảng hàng trên điện thoại: thẻ gọn hơn để lướt nhanh */
@media (max-width: 560px) {
  #bh-list .unit-img img { height: 150px; }
}
