/* Concept 4 — Immersive Explorer: ứng dụng khám phá toàn màn hình, nền tối + vàng kim */
:root {
  --sbw: 230px;
  --gold: #d4af37;
  --gold-light: #e8cf7a;
  --gold-dim: #8a7020;
  --bg: #0b0a07;
  --bg-2: #14110b;
  --bg-3: #1d1910;
  --panel: rgba(17, 14, 9, 0.9);
  --panel-solid: #151209;
  --text: #f3f0e7;
  --muted: #a9a28c;
  --line: rgba(212, 175, 55, 0.22);
  --ok: #59c26a;
  --warn: #e0902f;
  --off: #8d8d8d;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Giao diện sáng — đổi qua nút toggle, lưu localStorage */
.theme-light {
  --bg: #f4f0e6;
  --bg-2: #ffffff;
  --bg-3: #ece6d6;
  --panel: rgba(255, 253, 247, 0.94);
  --panel-solid: #fffdf7;
  --text: #272217;
  --muted: #6d6450;
  --line: rgba(138, 112, 32, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ===== Sidebar cố định ===== */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sbw);
  background: #0a0805;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 300;
  transition: transform 0.3s ease;
}
.theme-light .sidebar { background: #171307; }

.side-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 16px 20px;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.side-logo-mark { color: var(--gold); display: inline-flex; }
.side-logo-text {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 5px;
  text-align: center;
  line-height: 1.35;
}

.side-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.side-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 22px;
  color: #cfc9b8;
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.6px;
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.side-link-icon { display: inline-flex; color: var(--gold-dim); transition: color 0.2s; }
.side-link:hover { color: var(--gold-light); background: rgba(212, 175, 55, 0.07); }
.side-link:hover .side-link-icon { color: var(--gold-light); }
.side-link.active {
  color: var(--gold-light);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.03));
  border-left-color: var(--gold);
}
.side-link.active .side-link-icon { color: var(--gold); }

.side-cta {
  margin: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.06);
  text-align: center;
}
.side-cta-label {
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
}
.side-cta-phone {
  display: block;
  margin: 6px 0 12px;
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}
.side-cta-phone:hover { color: var(--gold-light); }
.side-cta-row { display: flex; gap: 8px; }
.side-cta-row a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.58rem;
  letter-spacing: 0.4px;
  transition: background 0.2s, color 0.2s;
}
.side-cta-row a:hover { background: var(--gold); color: #17130a; }

/* Nút mở menu mobile + backdrop */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 320;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 5, 0.85);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--gold);
  cursor: pointer;
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 290;
}

/* ===== Khung nội dung ===== */
.app-main { margin-left: var(--sbw); }

/* ===== Màn hình khám phá ===== */
.explorer {
  position: relative;
  height: 100vh;
  min-height: 620px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.explorer-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 6, 3, 0.68) 0%, rgba(8, 6, 3, 0.12) 30%, rgba(8, 6, 3, 0.1) 62%, rgba(8, 6, 3, 0.72) 100%);
  pointer-events: none;
}

.explorer-head {
  position: absolute;
  top: 34px;
  left: 44px;
  right: 380px;
  z-index: 5;
  pointer-events: none;
}
.explorer-tagline {
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
}
.explorer-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  line-height: 1.15;
}
.explorer-slogan {
  margin-top: 6px;
  font-size: 0.92rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
}

/* Nút góc */
.corner-actions {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 20;
  display: flex;
  gap: 10px;
}
.corner-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(12, 10, 6, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #efe9d8;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
}
.corner-btn:hover { background: var(--gold); color: #17130a; border-color: var(--gold); }

/* Icon âm thanh: mặc định tắt tiếng */
#sound-btn .snd-wave { display: none; }
#sound-btn.on .snd-wave { display: block; }
#sound-btn.on .snd-mute { display: none; }

/* Nút sáng/tối: hiển thị icon theo theme */
#theme-btn .ic-sun, #theme-btn .ic-moon { display: inline-flex; }
#theme-btn .ic-sun { display: none; }
.theme-light #theme-btn .ic-sun { display: inline-flex; }
.theme-light #theme-btn .ic-moon { display: none; }

/* ===== Hotspot ===== */
.hotspot-layer { position: absolute; inset: 0; z-index: 8; }
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  border: none;
  background: none;
  cursor: pointer;
  color: #241c08;
}
.hotspot-utility {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 30%, #f4e3a1, var(--gold) 62%, #a8831c);
  border: 2px solid rgba(255, 244, 200, 0.85);
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.22), 0 6px 18px rgba(0, 0, 0, 0.55);
  animation: hs-pulse 2.6s ease-in-out infinite;
  transition: transform 0.2s;
}
.hotspot-utility:hover { transform: translate(-50%, -50%) scale(1.12); animation-play-state: paused; }
@keyframes hs-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.24), 0 6px 18px rgba(0, 0, 0, 0.55); }
  50% { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0.08), 0 6px 18px rgba(0, 0, 0, 0.55); }
}

.hotspot-unit { width: 30px; height: 30px; }
.hotspot-unit .hu-dot {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff6da;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3), 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hotspot-unit.st-reserved .hu-dot { background: var(--warn); box-shadow: 0 0 0 4px rgba(224, 144, 47, 0.3), 0 2px 8px rgba(0, 0, 0, 0.6); }
.hotspot-unit.st-sold .hu-dot { background: var(--off); box-shadow: 0 0 0 4px rgba(140, 140, 140, 0.3), 0 2px 8px rgba(0, 0, 0, 0.6); }
.hotspot-unit:hover .hu-dot, .hotspot-unit.active .hu-dot { transform: scale(1.35); }
.hotspot-unit.active .hu-dot { box-shadow: 0 0 0 7px rgba(232, 207, 122, 0.45), 0 0 22px rgba(212, 175, 55, 0.9); }
.hotspot.hidden { display: none; }

/* Tooltip cho hotspot & pin radar */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(10, 8, 5, 0.92);
  border: 1px solid var(--line);
  color: var(--gold-light);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 30;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; }

/* ===== Panel bên phải ===== */
.explorer-panel {
  position: absolute;
  top: 80px;
  right: 22px;
  bottom: 22px;
  width: 306px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  scrollbar-width: thin;
  animation: panel-in 0.45s ease;
}
@keyframes panel-in {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: none; }
}
.explorer-panel.slide-in { animation: panel-in 0.35s ease; }
.panel-close {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(12, 10, 6, 0.8);
  border: 1px solid var(--line);
  color: var(--gold-light);
  cursor: pointer;
}

.unit-card, .panel-utilities {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}
.unit-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.unit-card-head h3 {
  font-size: 0.98rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 700;
}
.unit-code-badge {
  padding: 3px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold), #a8831c);
  color: #17130a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.unit-card-media { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.unit-card-media img { width: 100%; height: 150px; object-fit: cover; transition: transform 0.4s; }
.unit-card:hover .unit-card-media img { transform: scale(1.04); }

.unit-specs { list-style: none; margin: 12px 0 14px; }
.unit-specs li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
  font-size: 0.8rem;
}
.unit-specs li:last-child { border-bottom: none; }
.us-ic { display: inline-flex; color: var(--gold); flex: none; }
.us-label { color: var(--muted); }
.unit-specs strong { margin-left: auto; font-weight: 600; color: var(--text); text-align: right; }
.us-status.st-available { color: var(--ok); }
.us-status.st-reserved { color: var(--warn); }
.us-status.st-sold { color: var(--off); }

.panel-utilities h3 {
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.pu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 6px; }
.pu-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pu-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
}
.pu-name { font-size: 0.62rem; color: var(--muted); line-height: 1.35; }

/* ===== Thanh dưới màn hình chính ===== */
.explorer-bottom {
  position: absolute;
  left: 44px;
  right: 350px;
  bottom: 26px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.filter-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(12, 10, 6, 0.75);
  backdrop-filter: blur(6px);
}
.tab-btn {
  padding: 11px 22px;
  background: none;
  border: none;
  color: #d8d2c0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tab-btn + .tab-btn { border-left: 1px solid rgba(212, 175, 55, 0.18); }
.tab-btn:hover { color: var(--gold-light); }
.tab-btn.active { background: linear-gradient(135deg, var(--gold), #a8831c); color: #17130a; }
.view-actions { display: flex; gap: 10px; }

/* ===== Hàng 4 card ===== */
.cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px 22px;
  background: var(--bg);
}
.feature-card {
  position: relative;
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  padding: 18px;
  overflow: hidden;
  scroll-margin-top: 20px;
  transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.feature-card h3 {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.card-vr { display: block; text-decoration: none; background-size: cover; background-position: center; }
.card-vr .fc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 6, 3, 0.75), rgba(8, 6, 3, 0.25)); }
.card-vr h3 { color: #fff; }
.fc-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -38%);
  color: var(--gold-light);
  z-index: 2;
  transition: transform 0.25s, color 0.25s;
}
.card-vr:hover .fc-play { transform: translate(-50%, -38%) scale(1.15); color: #fff; }

.fc-plan-img { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.fc-plan-img img { width: 100%; height: 140px; object-fit: cover; transition: transform 0.35s; }
.fc-plan-img:hover img { transform: scale(1.06); }

/* Timeline ngang 5 mốc */
.mini-timeline { display: flex; justify-content: space-between; position: relative; padding-top: 26px; }
.mini-timeline::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: rgba(212, 175, 55, 0.3);
}
.mtl-item { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; text-align: center; }
.mtl-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  background: var(--bg-2);
}
.mtl-done .mtl-dot { background: var(--gold-dim); border-color: var(--gold-dim); }
.mtl-doing .mtl-dot {
  background: var(--gold);
  border-color: var(--gold-light);
  box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.25), 0 0 16px rgba(212, 175, 55, 0.8);
}
.mtl-year { font-size: 0.74rem; color: var(--muted); margin-top: 4px; }
.mtl-title { font-size: 0.62rem; color: var(--muted); line-height: 1.3; }
.mtl-doing .mtl-year, .mtl-doing .mtl-title { color: var(--gold-light); font-weight: 700; }
.mtl-done .mtl-year { color: var(--text); }

/* Danh sách tài liệu */
.doc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.doc-list a, .doc-list .doc-soon {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.76rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.doc-list a:hover { background: rgba(212, 175, 55, 0.1); border-color: var(--gold); }
.doc-ic { display: inline-flex; color: var(--gold); flex: none; }
.doc-list small {
  margin-left: auto;
  padding: 1px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--gold-light);
  font-size: 0.6rem;
  letter-spacing: 1px;
}
.doc-soon { opacity: 0.55; }

/* ===== Dải số liệu ===== */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 26px 22px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.stat-icon { color: var(--gold); }
.stat-value { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--text); }
.stat-value small { font-size: 0.85rem; color: var(--gold-light); }
.stat-label { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

/* ===== Section chung ===== */
.section { padding: 72px 0; scroll-margin-top: 10px; }
.section-alt { background: var(--bg-2); }
.section-inner { max-width: 1080px; margin: 0 auto; padding: 0 26px; }
.section-narrow { max-width: 780px; }
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--gold-light); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-desc { color: var(--muted); max-width: 640px; margin-bottom: 22px; }
.center { text-align: center; margin-top: 30px; }

/* ===== Nút ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font: 700 0.78rem var(--sans);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-gold { background: linear-gradient(135deg, var(--gold), #a8831c); color: #17130a; }
.btn-gold:hover { filter: brightness(1.12); box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4); }
.btn-outline { background: transparent; color: var(--gold-light); }
.btn-outline:hover { background: rgba(212, 175, 55, 0.12); }
.btn-block { width: 100%; }
.theme-light .btn-outline { color: var(--gold-dim); }

/* ===== Vị trí ===== */
.loc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.loc-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.loc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 0.84rem;
}
.section-alt .loc-list li { background: var(--bg); }
.loc-ic { display: inline-flex; color: var(--gold); flex: none; }
.loc-list strong { color: var(--gold-light); white-space: nowrap; }
.loc-list span:last-child { color: var(--muted); }

.loc-radar {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.09), transparent 70%);
}
.radar-ring { position: absolute; border: 1px dashed rgba(212, 175, 55, 0.35); border-radius: 50%; }
.radar-ring.r1 { inset: 33%; }
.radar-ring.r2 { inset: 18%; }
.radar-ring.r3 { inset: 3%; }
.radar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #a8831c);
  color: #17130a;
  box-shadow: 0 0 26px rgba(212, 175, 55, 0.55);
}
.radar-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
}

/* ===== Tiện ích ===== */
.util-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.util-card {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  transition: border-color 0.25s, transform 0.25s;
}
.util-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.util-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
  margin-bottom: 12px;
}
.util-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.util-card p { font-size: 0.8rem; color: var(--muted); }

/* ===== Sản phẩm ===== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  transition: border-color 0.25s, transform 0.25s;
}
.product-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.product-card header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pc-type { font-size: 0.62rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.pc-code {
  padding: 2px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #a8831c);
  color: #17130a;
  font-size: 0.72rem;
  font-weight: 700;
}
.pc-status { margin-left: auto; font-size: 0.66rem; letter-spacing: 0.8px; font-weight: 700; text-transform: uppercase; }
.pc-status.st-available { color: var(--ok); }
.pc-status.st-reserved { color: var(--warn); }
.pc-status.st-sold { color: var(--off); }
.product-card ul { list-style: none; margin-bottom: 10px; }
.product-card ul li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  padding: 5px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}
.product-card ul span { color: var(--muted); }
.product-card > p { font-size: 0.74rem; color: var(--muted); flex: 1; margin-bottom: 12px; }
.pc-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.pc-view:hover { background: var(--gold); color: #17130a; }

.legal-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.legal-item {
  display: flex;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  font-size: 0.76rem;
}
.legal-ic { display: inline-flex; color: var(--gold); flex: none; }
.legal-item strong { display: block; font-size: 0.8rem; }
.legal-item span { color: var(--muted); }

/* ===== Thư viện ===== */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-btn {
  padding: 8px 18px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--gold-light); border-color: var(--gold); }
.filter-btn.active { background: linear-gradient(135deg, var(--gold), #a8831c); color: #17130a; border-color: var(--gold); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  text-decoration: none;
  background: var(--bg-3);
}
.gallery-item.hidden { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gold-dim); }
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 22px 13px 11px;
  background: linear-gradient(transparent, rgba(8, 6, 3, 0.9));
  color: #f3f0e7;
  font-size: 0.78rem;
}
.gallery-caption svg { color: var(--gold-light); flex: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 4, 2, 0.92);
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox-body { max-width: 1080px; width: 100%; }
.lightbox-body img { max-height: 86vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 8px; }
.lightbox-body iframe { width: 100%; aspect-ratio: 16 / 9; border: none; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  color: var(--gold-light);
  cursor: pointer;
}

/* ===== Tin tức ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s;
}
.section-alt .news-card { background: var(--bg); }
.news-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.news-card img { height: 170px; width: 100%; object-fit: cover; }
.news-body { padding: 16px; }
.news-body time { font-size: 0.7rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.news-body h3 { font-size: 0.98rem; margin: 7px 0; line-height: 1.4; color: var(--text); }
.news-body p { font-size: 0.8rem; color: var(--muted); }

/* Trang con: đầu trang */
.page-head {
  position: relative;
  padding: 96px 0 56px;
  background-size: cover;
  background-position: center;
}
.page-head-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 6, 3, 0.72), rgba(11, 10, 7, 0.94)); }
.theme-light .page-head-overlay { background: linear-gradient(180deg, rgba(8, 6, 3, 0.6), rgba(244, 240, 230, 0.96)); }
.page-head-inner { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 26px; }
.page-head .section-title { color: #fff; }
.theme-light .page-head .section-title { color: var(--text); }
.page-404 { min-height: 55vh; }

/* Bài viết */
.article-thumb { border-radius: 14px; border: 1px solid var(--line); margin-bottom: 24px; }
.article-content { color: var(--text); }
.article-content p { margin-bottom: 14px; }
.article-content h2, .article-content h3 { font-family: var(--serif); margin: 22px 0 10px; color: var(--gold-light); }
.article-content ul, .article-content ol { margin: 0 0 14px 22px; }
.article-content img { border-radius: 10px; margin: 12px 0; }

/* ===== Liên hệ ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: start; }
.contact-hotline { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.contact-hotline a { color: inherit; text-decoration: none; }
.contact-form { display: flex; flex-direction: column; gap: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { min-height: 104px; resize: vertical; }
.agree { display: flex; align-items: center; gap: 8px; font-size: 0.76rem; color: var(--muted); }
.agree input { width: auto; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-message { font-size: 0.84rem; min-height: 1.2em; }
.form-message.ok { color: var(--ok); }
.form-message.err { color: #e06767; }

/* ===== Footer ===== */
.app-footer { background: #080604; border-top: 1px solid var(--line); padding: 40px 0 22px; }
.theme-light .app-footer { background: #17130a; color: #f3f0e7; }
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 44px;
  align-items: start;
}
.footer-brand { display: flex; gap: 13px; align-items: center; color: var(--gold); }
.footer-brand strong { font-family: var(--serif); letter-spacing: 2.5px; }
.footer-brand p { font-size: 0.72rem; color: #a9a28c; letter-spacing: 1px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer-cols h4 {
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 10px 0 4px;
}
.footer-cols h4:first-child { margin-top: 0; }
.footer-cols p { font-size: 0.8rem; color: #cfc9b8; display: flex; align-items: center; gap: 7px; }
.footer-cols svg { color: var(--gold); flex: none; }
.footer-cols a { color: inherit; text-decoration: none; }
.footer-cols a:hover { color: var(--gold-light); }
.footer-note {
  max-width: 1080px;
  margin: 26px auto 0;
  padding: 16px 26px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  font-size: 0.72rem;
  color: #8d8672;
}

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .cards-row, .product-grid, .legal-row { grid-template-columns: repeat(2, 1fr); }
  .explorer-head { right: 360px; }
}

@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5); }
  .sidebar.open { transform: none; }
  .mobile-menu-btn { display: inline-flex; }
  .app-main { margin-left: 0; }

  .explorer { height: 100svh; min-height: 560px; }
  .explorer-head { left: 72px; right: 20px; top: 20px; }
  .explorer-bottom { left: 16px; right: 16px; bottom: 16px; flex-wrap: wrap; }

  /* Panel thành lớp trượt từ cạnh phải, mở khi chạm hotspot sản phẩm */
  .explorer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(330px, 92vw);
    padding: 54px 14px 14px;
    background: rgba(10, 8, 5, 0.96);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: transform 0.32s ease;
    animation: none;
    z-index: 340;
  }
  .explorer-panel.open { transform: none; }
  .panel-close { display: inline-flex; }

  .loc-grid, .contact-grid { grid-template-columns: 1fr; }
  .util-grid, .gallery-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .cards-row, .product-grid, .legal-row, .util-grid, .gallery-grid, .news-grid, .form-row, .loc-list, .footer-cols { grid-template-columns: 1fr; }
  .explorer-title { font-size: 1.5rem; letter-spacing: 1.5px; }
  .explorer-tagline { font-size: 0.66rem; letter-spacing: 2.5px; }
  .explorer-slogan { font-size: 0.78rem; letter-spacing: 1.5px; }
  .explorer-head { top: 72px; left: 16px; right: 16px; }
  .hotspot-utility { width: 38px; height: 38px; }
  .tab-btn { padding: 10px 13px; font-size: 0.66rem; letter-spacing: 1px; }
  .corner-actions { gap: 7px; }
  .corner-btn { width: 38px; height: 38px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .pu-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==== WordPress — trang tin tức & chi tiết ==== */
.bds-page{padding-top:40px;padding-bottom:40px;min-height:50vh}
.bds-pagination{margin-top:40px;text-align:center}
.bds-pagination .page-numbers{display:inline-block;min-width:40px;padding:9px 12px;margin:0 3px;border:1px solid rgba(255,255,255,.15);border-radius:8px;text-decoration:none}
.bds-pagination .page-numbers.current{background:currentColor;color:#111}
.bds-post-hero{position:relative;min-height:360px;display:flex;align-items:flex-end;padding:80px 40px 40px;background:#1a1a1a center/cover no-repeat;border-radius:0 0 24px 24px}
.bds-post-hero-ov{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.2),rgba(0,0,0,.82));border-radius:inherit}
.bds-post-hero-in{position:relative;z-index:2}
.bds-post-hero-in h1{color:#fff;font-size:clamp(24px,3.4vw,40px);margin:0 0 12px;max-width:900px}
.bds-post-meta{color:rgba(255,255,255,.8);font-size:14px}
.bds-back{display:inline-block;margin:26px 0 6px;font-weight:600;text-decoration:none}
.bds-post-content{max-width:820px;margin:14px 0 0;font-size:17px;line-height:1.85}
.bds-post-content h2{font-size:26px;margin:30px 0 12px}
.bds-post-content h3{font-size:20px;margin:24px 0 10px}
.bds-post-content p{margin:0 0 18px}
.bds-post-content img{max-width:100%;height:auto;border-radius:12px;margin:18px 0}
