/* ============================================
   MAI VÀNG BĐS · Landing Page
   ============================================ */

:root {
  /* Default palette — Forest (will be overridden by Tweaks) */
  --primary: oklch(0.32 0.05 150);
  --primary-soft: oklch(0.42 0.05 150);
  --accent: oklch(0.78 0.13 85);
  --accent-deep: oklch(0.62 0.13 75);
  --ink: oklch(0.22 0.015 80);
  --ink-soft: oklch(0.42 0.015 80);
  --paper: oklch(0.97 0.012 85);
  --paper-deep: oklch(0.94 0.015 85);
  --line: oklch(0.88 0.015 85);

  --display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --body: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;

  --container: 1280px;
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- typography ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--paper);
}
.display em { font-style: italic; color: var(--accent); }

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--primary);
}
.section-title em { font-style: italic; color: var(--accent-deep); }
.section-title.light { color: var(--paper); }
.section-title.light em { color: var(--accent); }

.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 16px;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-soft);
  margin-bottom: 18px;
}
.eyebrow-line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow-light { color: oklch(0.85 0.01 85); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 26px;
  font-family: var(--body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--paper);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--paper);
  opacity: 0.85;
}
.btn-ghost:hover { opacity: 1; }
.section:not(.section-register):not(.hero) .btn-ghost { color: var(--primary); border-color: var(--line); }
.btn-block { display: flex; width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(252, 250, 244, 0.94);
  backdrop-filter: blur(16px);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.nav.is-scrolled .nav-inner,
.nav.is-scrolled .brand,
.nav.is-scrolled .nav-links a,
.nav.is-scrolled .hotline { color: var(--ink); }
.nav.is-scrolled .nav-links a { color: var(--ink-soft); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
  color: var(--paper);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--body);
}
.brand-mark { color: var(--accent); display: inline-flex; }
.nav.is-scrolled .brand-mark { color: var(--primary); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 600; letter-spacing: 0.18em; font-size: 15px; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.12em; opacity: 0.7; text-transform: uppercase; }

.nav-links { display: flex; list-style: none; gap: 28px; padding: 0; margin: 0 auto 0 24px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  padding: 6px 0;
  transition: opacity 0.18s;
}
.nav-links a:hover { opacity: 1; }

.nav-cta { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.hotline {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.hotline-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
}
.hotline-label { display: block; font-size: 10.5px; opacity: 0.7; letter-spacing: 0.1em; text-transform: uppercase; }
.hotline-number { display: block; font-weight: 600; letter-spacing: 0.04em; }
.nav-btn { padding: 12px 20px; font-size: 13px; }

.nav-burger { display: none; background: none; border: 0; padding: 8px; flex-direction: column; gap: 4px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: currentColor; }
.nav-mobile { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 80px;
  color: var(--paper);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(0.95) brightness(0.85);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, oklch(0.22 0.05 150 / 0.55) 0%, transparent 35%, oklch(0.18 0.04 150 / 0.85) 100%),
    linear-gradient(90deg, oklch(0.18 0.04 150 / 0.7) 0%, transparent 55%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}
.hero .eyebrow { color: oklch(0.85 0.05 85); }
.hero-lede {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.5;
  color: oklch(0.9 0.01 85);
  margin: 28px 0 40px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 40px;
  padding: 28px 0;
  border-top: 1px solid oklch(0.6 0.02 80 / 0.4);
  border-bottom: 1px solid oklch(0.6 0.02 80 / 0.4);
  max-width: 820px;
}
.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.hero-stats span { font-size: 12px; opacity: 0.75; letter-spacing: 0.05em; text-wrap: balance; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-meta {
  position: absolute;
  bottom: 28px; right: 32px;
  z-index: 2;
  display: flex;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}
.hero-meta-sep { opacity: 0.5; }

/* hero-split variant */
.hero-split .hero-media {
  inset: 0 0 0 50%;
}
.hero-split .hero-scrim {
  background: linear-gradient(90deg, transparent 0%, oklch(0.18 0.04 150 / 0.3) 100%);
  inset: 0 0 0 50%;
}
.hero-split { background: var(--primary); }
.hero-split .hero-content { padding-right: 56%; }
.hero-split .hero-lede { color: oklch(0.9 0.01 85); }

/* hero-minimal variant */
.hero-minimal .hero-media img { filter: saturate(0.9) brightness(0.95); }
.hero-minimal .hero-scrim {
  background: linear-gradient(180deg, oklch(0.18 0.04 150 / 0.45) 0%, oklch(0.18 0.04 150 / 0.7) 100%);
}
.hero-minimal .hero-stats { display: none; }
.hero-minimal { min-height: 88vh; align-items: center; text-align: center; }
.hero-minimal .hero-content { text-align: center; }
.hero-minimal .eyebrow { justify-content: center; display: inline-flex; }
.hero-minimal .hero-lede { margin-left: auto; margin-right: auto; }
.hero-minimal .hero-actions { justify-content: center; }

/* ---------- SECTION SHELL ---------- */
.section { padding: 120px 0; position: relative; }
.section-head { display: flex; gap: 36px; align-items: flex-start; margin-bottom: 60px; }
.section-num {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.2em;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--accent-deep);
  width: 80px;
  flex-shrink: 0;
}

/* ---------- OVERVIEW ---------- */
.section-overview { background: var(--paper); }
.overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.overview-body p { color: var(--ink-soft); margin: 0 0 20px; text-wrap: pretty; max-width: 560px; }
.overview-body .lede { color: var(--ink); font-size: 20px; }

.fact-list { margin: 0; padding: 0; }
.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.fact-row dt { color: var(--ink-soft); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.fact-row dd {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  color: var(--primary);
  text-align: right;
  letter-spacing: -0.005em;
}

/* ---------- LOCATION ---------- */
.section-location { background: var(--paper-deep); }
.loc-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.map-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.map-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: oklch(0.94 0.02 145);
  color: var(--primary);
}
.map-real { position: absolute; inset: 0; }
.map-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--ink-soft); letter-spacing: 0.04em;
}
.map-frame .leaflet-container {
  width: 100%; height: 100%;
  background: oklch(0.94 0.02 145);
  font-family: inherit;
}
.map-frame .leaflet-control-attribution { font-size: 9px; opacity: 0.85; }

/* Map markers (Leaflet divIcons anchored at [0,0]; children self-center) */
.mk { display: block; }
.mk-project .mk-pulse {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px;
  border-radius: 50%; background: var(--accent);
  transform: translate(-50%, -50%);
  animation: mkPulse 2.4s infinite ease-in-out;
}
.mk-project .mk-dot {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px;
  border-radius: 50%; background: var(--accent);
  border: 2px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}
.mk-project .mk-label {
  position: absolute; left: 0; top: -22px;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em;
  background: var(--primary); color: var(--paper);
  padding: 4px 8px; border-radius: 4px; white-space: nowrap;
}
@keyframes mkPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.55); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.1; }
}
.mk-dest .mk-dest-dot {
  position: absolute; left: 0; top: 0; width: 9px; height: 9px;
  border-radius: 50%; background: var(--primary);
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  transition: transform 0.25s, background-color 0.25s;
}
.mk-dest .mk-dest-label {
  position: absolute; left: 0; top: 8px;
  transform: translateX(-50%);
  font-size: 10.5px; letter-spacing: 0.02em; white-space: nowrap;
  color: var(--primary); background: rgba(255, 255, 255, 0.88);
  padding: 2px 7px; border-radius: 3px;
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.show-dest-labels .mk-dest .mk-dest-label,
.mk-dest.is-target .mk-dest-label { opacity: 1; }
.mk-dest.is-target .mk-dest-dot {
  background: var(--accent-deep);
  transform: translate(-50%, -50%) scale(1.5);
}
.mk-head .mk-head-dot {
  position: absolute; left: 0; top: 0; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent-deep);
  border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}
.route-line {
  stroke: var(--accent-deep);
  stroke-width: 3.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .mk-project .mk-pulse { animation: none; opacity: 0.18; }
}
.map-legend {
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--r-md);
  padding: 10px 14px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.map-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.map-legend .dot-accent { background: var(--accent); }
.map-legend .dot-line { background: transparent; border-top: 2px dashed var(--ink-soft); border-radius: 0; height: 2px; width: 14px; }

.map-borders {
  padding: 24px 28px;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
}
.border-row { display: flex; gap: 20px; font-size: 14px; }
.border-dir {
  flex-shrink: 0;
  width: 90px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
}
.border-desc { color: var(--ink-soft); }

.conn-card {
  background: var(--primary);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.conn-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 44px;
  line-height: 0.98;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.conn-sub { font-size: 14px; opacity: 0.75; margin: 0 0 32px; line-height: 1.5; max-width: 280px; }
.conn-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.conn-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
.conn-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.conn-time {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  width: 70px;
}
.conn-time strong {
  font-family: var(--display);
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.01em;
}
.conn-time em { font-style: normal; font-size: 11px; opacity: 0.7; }
.conn-name { font-size: 14px; line-height: 1.4; }
.conn-list li { cursor: pointer; }
.conn-name { transition: color 0.2s, transform 0.25s; }
.conn-list li:hover .conn-name,
.conn-list li.is-active .conn-name { color: var(--accent); transform: translateX(4px); }
.conn-km {
  display: block;
  font-style: normal;
  font-size: 11px;
  opacity: 0;
  margin-top: 2px;
  letter-spacing: 0.03em;
  max-height: 0;
  transition: opacity 0.25s, max-height 0.25s;
}
.conn-list li:hover .conn-km,
.conn-list li.is-active .conn-km { opacity: 0.6; max-height: 16px; }
.map-hint { color: var(--ink-soft); }

/* ---------- LOT MAP ---------- */
.section-lotmap { background: var(--paper); }
.lotmap-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: all 0.18s;
}
.chip:hover { color: var(--primary); border-color: var(--primary-soft); }
.chip.is-active { background: var(--primary); color: var(--paper); border-color: var(--primary); }
.lotmap-hint { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; }

.lotmap-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.lotmap-canvas {
  position: relative;
  background: oklch(0.95 0.018 145);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1000 / 480;
  border: 1px solid var(--line);
}
.lotmap-svg { width: 100%; height: 100%; display: block; }
.lot-tooltip {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 20px;
  border-radius: var(--r-md);
  min-width: 240px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.tooltip-id { font-family: var(--display); font-size: 24px; line-height: 1; }
.tooltip-type { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin: 6px 0 14px; font-weight: 600; }
.lot-tooltip dl { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.lot-tooltip dl > div { display: flex; justify-content: space-between; gap: 16px; }
.lot-tooltip dt { color: oklch(0.7 0.01 80); margin: 0; }
.lot-tooltip dd { margin: 0; font-weight: 500; }

.lotmap-legend {
  background: var(--paper-deep);
  border-radius: var(--r-lg);
  padding: 24px;
}
.lotmap-legend h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  color: var(--primary);
}
.legend-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  background: none;
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  width: 100%;
  text-align: left;
  transition: all 0.15s;
}
.legend-row:hover, .legend-row.is-active { padding-left: 6px; padding-right: 6px; }
.legend-row.is-active { background: var(--paper); border-radius: var(--r-sm); }
.legend-swatch { width: 14px; height: 14px; border-radius: 3px; }
.legend-text { display: flex; flex-direction: column; }
.legend-text strong { font-size: 14px; color: var(--ink); }
.legend-text em { font-style: normal; font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.legend-price {
  font-family: var(--display);
  font-size: 15px;
  color: var(--accent-deep);
}
.lotmap-legend .btn { margin-top: 20px; font-size: 12px; padding: 12px 16px; }

/* ---------- AMENITIES ---------- */
.section-amenities { background: var(--paper-deep); }

/* Shared wide illustration figure used in Overview and Amenities */
.section-photo {
  margin: 56px 0 0;
}
.section-amenities .section-photo { margin: 0 0 48px; }
.section-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.section-photo figcaption {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding-top: 12px;
  text-align: center;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.amenity {
  background: var(--paper);
  padding: 32px 28px 36px;
  transition: background 0.2s;
}
.amenity:hover { background: var(--paper-deep); }
.amenity-icon {
  color: var(--accent-deep);
  margin-bottom: 24px;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: oklch(0.94 0.04 85);
}
.amenity-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--primary);
  line-height: 1.15;
}
.amenity-spec {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
  margin-bottom: 14px;
}
.amenity-desc { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.5; text-wrap: pretty; }

/* ---------- HOUSES ---------- */
.section-houses { background: var(--paper); }
.house-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
}
.tab {
  background: none;
  border: 0;
  text-align: left;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  transition: all 0.2s;
  position: relative;
}
.tab:last-child { border-right: 0; }
.tab::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.tab.is-active::after { transform: scaleX(1); }
.tab-label {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  color: var(--ink-soft);
  line-height: 1;
  margin-bottom: 6px;
  transition: color 0.2s;
}
.tab.is-active .tab-label { color: var(--primary); }
.tab-sub { display: block; font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; }

.house-detail {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.house-render {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.render-photo {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.render-label {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
}

.house-name h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 48px;
  margin: 0;
  color: var(--primary);
  line-height: 1;
}
.house-name p { font-size: 14px; color: var(--ink-soft); margin: 6px 0 32px; letter-spacing: 0.04em; }

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 24px;
}
.spec {
  background: var(--paper);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spec span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.spec strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  color: var(--ink);
  line-height: 1;
}
.house-note {
  font-size: 14px;
  color: var(--ink-soft);
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin: 0 0 28px;
  line-height: 1.55;
}

/* ---------- POLICY ---------- */
.section-policy { background: var(--paper-deep); }
.policy-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.installment-card, .offers-stack {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 36px 36px 32px;
  border: 1px solid var(--line);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.card-head h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  color: var(--primary);
  margin: 0;
}
.card-meta { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft); }

.installment-table { width: 100%; border-collapse: collapse; }
.installment-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.installment-table th.num, .installment-table td.num { text-align: right; }
.installment-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}
.installment-table tbody tr:last-child td { border-bottom: 0; }
.installment-table td small { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 3px; }
.installment-table td.num {
  font-family: var(--display);
  font-size: 22px;
  color: var(--accent-deep);
}

.offer-list { display: grid; gap: 16px; margin-bottom: 24px; }
.offer {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.offer:last-child { border-bottom: 0; }
.offer-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.offer-value {
  grid-column: 2;
  font-family: var(--display);
  font-size: 28px;
  color: var(--accent-deep);
  line-height: 1;
  margin-bottom: 4px;
}
.offer-label {
  grid-column: 2;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.legal-note {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  background: oklch(0.94 0.04 85);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--ink);
  align-items: flex-start;
}
.legal-note strong { color: var(--primary); display: block; margin-bottom: 2px; }
.legal-dot {
  flex-shrink: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-deep);
  margin-top: 6px;
}

/* ---------- LEGAL ---------- */
.section-legal { background: var(--paper); }
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.legal-intro p { color: var(--ink-soft); max-width: 380px; margin: 20px 0 0; text-wrap: pretty; }
.legal-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
.legal-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--paper);
}
.legal-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  font-weight: 600;
}
.legal-title { font-weight: 500; font-size: 14.5px; }
.legal-issuer { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.legal-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}
.check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
}

/* ---------- REGISTER ---------- */
.section-register {
  background: var(--primary);
  color: var(--paper);
  padding: 100px 0;
}
.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.pitch-list {
  list-style: none;
  padding: 0;
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pitch-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.4;
  color: oklch(0.9 0.01 85);
  padding-bottom: 16px;
  border-bottom: 1px solid oklch(1 0 0 / 0.1);
}
.pitch-list li:last-child { border-bottom: 0; }
.pitch-list li span {
  font-family: var(--display);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.04em;
  width: 22px;
  flex-shrink: 0;
}
.pitch-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid oklch(1 0 0 / 0.15);
}
.pitch-contact small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.75 0.01 85);
  margin-bottom: 6px;
}
.pitch-contact strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  color: var(--paper);
}

.register-form {
  background: var(--paper);
  color: var(--ink);
  padding: 40px;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color 0.18s;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--primary);
}
.field.has-error input { border-color: #c4604e; }
.field .error { font-size: 12px; color: #c4604e; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-30%) rotate(45deg);
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  pointer-events: none;
}
.field select { appearance: none; padding-right: 40px; }
.form-disclaimer {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin: 8px 0 0;
  line-height: 1.5;
}

.section-thanks { padding: 160px 0; text-align: center; }
.thanks-card { max-width: 560px; margin: 0 auto; }
.thanks-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 28px;
}
.thanks-card p { color: oklch(0.85 0.01 85); font-size: 17px; margin: 16px 0 28px; }

/* ---------- FOOTER ---------- */
.footer {
  background: oklch(0.16 0.025 145);
  color: oklch(0.78 0.01 85);
  padding: 80px 0 32px;
  font-size: 14px;
}
.footer .brand { color: var(--paper); margin-bottom: 18px; }
.footer .brand-mark { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
}
.footer-brand p { margin: 0; line-height: 1.6; max-width: 360px; opacity: 0.85; }
.footer h4 {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 20px;
  font-weight: 600;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-list a:hover { color: var(--accent); }
.footer-list strong { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 12px;
  color: oklch(0.6 0.01 85);
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- FLOATING HOTLINE ---------- */
.floating-hotline {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px oklch(0.32 0.05 150 / 0.3);
  z-index: 90;
  transition: transform 0.2s;
}
.floating-hotline:hover { transform: translateY(-2px) scale(1.05); }
.fh-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ring 2s infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    padding: 20px 32px;
    gap: 14px;
    border-top: 1px solid var(--line);
  }
  .nav-mobile a { color: var(--ink); font-size: 15px; }

  .overview-grid,
  .loc-grid,
  .lotmap-wrap,
  .house-detail,
  .policy-grid,
  .legal-grid,
  .register-grid { grid-template-columns: 1fr; gap: 40px; }

  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-split .hero-content { padding-right: 32px; }
  .hero-split .hero-media { inset: 0; opacity: 0.4; }

  .section { padding: 80px 0; }
  .section-head { flex-direction: column; gap: 20px; margin-bottom: 40px; }
  .section-num { padding-top: 16px; }
}

@media (max-width: 640px) {
  .container, .nav-inner { padding: 0 20px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats strong { font-size: 32px; }
  .amenities-grid { grid-template-columns: 1fr; }
  .nav-cta .hotline-label { display: none; }
  .nav-btn { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .display { font-size: 56px; }
  .legal-item { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .legal-status { justify-content: flex-start; }
  .register-form { padding: 28px 24px; }
  .conn-list li { flex-direction: column; gap: 6px; }
  .conn-time { width: auto; }
  .pitch-contact { grid-template-columns: 1fr; gap: 16px; }
  .lotmap-canvas { aspect-ratio: 4 / 3; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- SCROLL REVEAL ---------- */
/* Word mask: padding absorbs Vietnamese diacritics above and descenders
   below the tight heading line-height; negative margins cancel the layout
   shift so the heading metrics stay identical. */
.wm {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.24em 0.08em 0.16em 0.02em;
  margin: -0.24em -0.08em -0.16em -0.02em;
}
.wi {
  display: inline-block;
  transform: translateY(135%);
  transition: transform 0.85s cubic-bezier(0.22, 0.61, 0.2, 1);
}
.rv-words.in .wi { transform: translateY(0); }

.rv {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease var(--rvd, 0ms),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.2, 1) var(--rvd, 0ms);
}
.rv.in {
  opacity: 1;
  transform: none;
}

/* Eyebrow rule draws itself in as the label fades up */
.eyebrow.rv .eyebrow-line {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.2, 1) 0.15s;
}
.eyebrow.rv.in .eyebrow-line { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .wm { overflow: visible; }
  .wi,
  .rv,
  .eyebrow.rv .eyebrow-line {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
