@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500;1,600;1,700&subset=vietnamese,latin-ext&display=swap');

/* EcoPalace Apartment Pillar Hub (/can-ho-ecopalace-buon-ma-thuot) - Scoped CSS */
.ep-apt-hub,
.ep-apt-chrome {
  --ep-font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --ep-font-accent: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --ep-font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ep-bg: #faf7f2;
  --ep-surface: #ffffff;
  --ep-surface-alt: #f3ede2;
  --ep-ink: #0f172a;
  --ep-muted: #475569;
  --ep-emerald: #102a22;
  --ep-emerald-soft: #1a3d32;
  --ep-gold: #b4822c;
  --ep-gold-light: #e5c47f;
  --ep-crimson: #8b1e24;
  --ep-border: #e2dcd0;
  --ep-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  color: var(--ep-ink);
  font-family: var(--ep-font-sans);
  line-height: 1.65;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

.ep-apt-hub {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--ep-bg);
}

.ep-apt-hub *,
.ep-apt-hub *::before,
.ep-apt-hub *::after,
.ep-apt-chrome *,
.ep-apt-chrome *::before,
.ep-apt-chrome *::after {
  box-sizing: border-box;
}

.ep-apt-hub section[id],
.ep-apt-hub div[id] {
  scroll-margin-top: 86px;
}

.ep-apt-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.ep-apt-serif {
  font-family: var(--ep-font-serif) !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.ep-apt-num {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.ep-apt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.3;
}

.ep-apt-badge-gold {
  background: rgba(180, 130, 44, 0.16);
  color: #f6dfab;
  border: 1px solid rgba(229, 196, 127, 0.55);
}

.ep-apt-badge-emerald {
  background: #e7f0ec;
  color: var(--ep-emerald);
  border: 1px solid #bfd5cc;
}

.ep-apt-badge-crimson {
  background: #fbecee;
  color: var(--ep-crimson);
  border: 1px solid #ecc6cb;
}

/* Buttons */
.ep-apt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
  line-height: 1.3;
  text-align: center;
  margin: 0;
}

.ep-apt-btn:hover {
  transform: translateY(-1px);
}

.ep-apt-btn-primary {
  background: linear-gradient(135deg, #c79233 0%, #9b6b1a 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(155, 107, 26, 0.28);
}

.ep-apt-btn-primary:hover {
  background: linear-gradient(135deg, #b38026 0%, #865a11 100%);
  color: #ffffff !important;
}

.ep-apt-btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff !important;
}

.ep-apt-btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ep-apt-btn-dark {
  background: var(--ep-emerald);
  color: #ffffff !important;
  border-color: var(--ep-emerald);
}

.ep-apt-btn-dark:hover {
  background: var(--ep-emerald-soft);
}

.ep-apt-btn-ghost {
  background: #ffffff;
  color: var(--ep-emerald) !important;
  border-color: #cbd5e1;
}

.ep-apt-btn-ghost:hover {
  border-color: var(--ep-gold);
  background: #fcfaf6;
}

/* =========================================================
   STICKY PROJECT SUB-HEADER (Giống Nhà Phố EcoPalace & Era)
   ========================================================= */
.ep-apt-subnav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100001;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(180, 130, 44, 0.35);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.09);
  transform: translateY(-108%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
}

body.admin-bar .ep-apt-subnav-wrap {
  top: 32px;
}

.ep-apt-subnav-wrap.is-sticky {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ep-apt-subnav-inner {
  max-width: 1280px;
  height: 70px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ep-apt-subnav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.ep-apt-subnav-emblem {
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  border: none;
  padding: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ep-apt-subnav-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ep-apt-subnav-brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ep-apt-subnav-brand-txt strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--ep-emerald);
  letter-spacing: 0.06em;
}

.ep-apt-subnav-brand-txt small {
  font-size: 11px;
  font-weight: 600;
  color: var(--ep-gold);
}

.ep-apt-subnav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.ep-apt-subnav-links a {
  color: #1e293b !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ep-apt-subnav-links a:hover,
.ep-apt-subnav-links a.is-active {
  color: var(--ep-crimson) !important;
  border-bottom-color: var(--ep-gold);
}

.ep-apt-subnav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ep-apt-subnav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ep-emerald) !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.ep-apt-subnav-cta {
  padding: 9px 16px;
  border-radius: 8px;
  border: 0;
  background: linear-gradient(135deg, #c79233 0%, #9b6b1a 100%);
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  margin: 0;
}

.ep-apt-subnav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--ep-emerald);
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.ep-apt-subnav-drawer {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid var(--ep-border);
  padding: 10px 20px 14px;
  gap: 4px;
}

.ep-apt-subnav-drawer.is-open {
  display: flex;
}

.ep-apt-subnav-drawer a {
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ep-emerald) !important;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
}

.ep-apt-subnav-drawer a:hover {
  background: #faf7f2;
}

/* Hero Section */
.ep-apt-hero {
  background: radial-gradient(circle at 82% 20%, rgba(180, 130, 44, 0.2) 0%, transparent 48%),
              linear-gradient(135deg, #0b1915 0%, #102a22 52%, #18342c 100%);
  color: #f8fafc;
  padding: 28px 0 46px;
  border-bottom: 3px solid var(--ep-gold);
}

.ep-apt-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.ep-apt-breadcrumb a {
  color: #f6dfab !important;
  text-decoration: none;
  font-weight: 500;
}

.ep-apt-breadcrumb a:hover {
  text-decoration: underline;
}

.ep-apt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.98fr);
  gap: 32px;
  align-items: center;
}

.ep-apt-h1 {
  font-family: var(--ep-font-serif) !important;
  font-size: clamp(29px, 3.45vw, 45px);
  font-weight: 700;
  line-height: 1.16;
  color: #ffffff !important;
  margin: 14px 0 14px;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  text-wrap: balance;
}

.ep-apt-h1-accent {
  color: var(--ep-gold-light);
}

.ep-apt-hero-sub {
  color: #e2e8f0;
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 22px;
}

.ep-apt-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.ep-apt-hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}

.ep-apt-hero-stat-lbl {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 3px;
}

.ep-apt-hero-stat-val {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--ep-gold-light);
  line-height: 1.25;
}

.ep-apt-hero-stat-note {
  display: block;
  font-size: 12px;
  color: #e2e8f0;
  margin-top: 2px;
}

.ep-apt-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ep-apt-hero-media {
  position: relative;
  background: #091310;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(229, 196, 127, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.ep-apt-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ep-apt-hero-caption {
  padding: 12px 16px;
  font-size: 12.5px;
  color: #e2e8f0;
  background: rgba(9, 19, 16, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* Generic Sections & Centered Headings */
.ep-apt-sec {
  padding: 52px 0;
}

.ep-apt-sec-alt {
  background: #f3ede2;
}

.ep-apt-sec-white {
  background: #ffffff;
}

.ep-apt-sec-head {
  text-align: center;
  margin: 0 auto 30px;
  max-width: 980px;
}

.ep-apt-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ep-crimson);
  margin-bottom: 6px;
}

.ep-apt-h2 {
  font-family: var(--ep-font-serif) !important;
  font-size: clamp(25px, 2.75vw, 35px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--ep-emerald) !important;
  margin: 0 auto;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  text-wrap: balance;
}

.ep-apt-gold-rule {
  width: 68px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ep-emerald), var(--ep-gold));
  margin: 12px auto 14px;
}

.ep-apt-lead {
  color: #334155;
  font-size: 15.5px;
  max-width: 820px;
  margin: 0 auto;
}

.ep-apt-link-inline {
  color: var(--ep-crimson);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Cards & Grids */
.ep-apt-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ep-apt-spec-card {
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-top: 3px solid var(--ep-gold);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--ep-shadow);
  min-width: 0;
}

.ep-apt-spec-k {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 6px;
}

.ep-apt-spec-v {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ep-emerald);
  margin-bottom: 5px;
}

.ep-apt-spec-n {
  font-size: 13px;
  color: #475569;
  margin: 0;
}

.ep-apt-cross-banner {
  margin-top: 22px;
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-left: 4px solid var(--ep-emerald);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Section 2 Location */
.ep-apt-loc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.ep-apt-radius-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ep-apt-radius-card {
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.ep-apt-radius-time {
  min-width: 102px;
  background: var(--ep-emerald);
  color: var(--ep-gold-light);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  flex-shrink: 0;
}

.ep-apt-radius-time strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.ep-apt-radius-time span {
  display: block;
  font-size: 11px;
  color: #f8fafc;
  margin-top: 3px;
}

.ep-apt-radius-body h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ep-emerald);
}

.ep-apt-radius-body p {
  font-size: 14px;
  color: #334155;
  margin: 0;
}

.ep-apt-map-box {
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ep-shadow);
}

.ep-apt-map-visual {
  position: relative;
}

.ep-apt-map-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 410px;
  object-fit: cover;
  cursor: zoom-in;
}

.ep-apt-map-footer {
  padding: 16px 18px;
  background: #ffffff;
  border-top: 1px solid var(--ep-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ep-apt-map-coord {
  font-size: 13px;
  color: #475569;
}

.ep-apt-map-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.ep-apt-map-actions .ep-apt-btn {
  width: 100%;
  min-height: 46px;
  height: 100%;
  padding: 10px 14px;
  font-size: 13px;
}

.ep-apt-map-frame {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
  background: #f3ede2;
}

body:has(#epAptHubRoot) .page-header-excerpt {
  display: none !important;
}

body.bmt-ep-apt-yl-dock-ready #bmt-mobile-bottom-bar {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Section 3 Commercial vs NOXH */
.ep-apt-split-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.ep-apt-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  box-shadow: var(--ep-shadow);
}

.ep-apt-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  text-align: left;
}

.ep-apt-table th {
  background: var(--ep-emerald);
  color: #ffffff;
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 700;
}

.ep-apt-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #ede8de;
  font-size: 14px;
  vertical-align: top;
  color: #1e293b;
}

.ep-apt-table tbody tr:nth-child(even) td {
  background: #fcfaf6;
}

.ep-apt-visual-box {
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ep-shadow);
}

.ep-apt-visual-box img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  cursor: zoom-in;
}

.ep-apt-visual-cap {
  padding: 14px 16px;
  font-size: 13.5px;
  color: #334155;
}

/* Section 4 Units & Tabs */
.ep-apt-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.ep-apt-tab-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ep-emerald);
  border: 1.5px solid #cbd5e1;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.16s ease;
  margin: 0;
}

.ep-apt-tab-btn:hover {
  border-color: var(--ep-gold);
}

.ep-apt-tab-btn.is-active {
  background: var(--ep-emerald);
  color: #f6dfab;
  border-color: var(--ep-gold);
}

.ep-apt-unit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

.ep-apt-unit-card {
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--ep-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.ep-apt-unit-card.is-hidden {
  display: none;
}

.ep-apt-unit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ep-apt-unit-title {
  font-family: var(--ep-font-serif) !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: 24px;
  font-weight: 700;
  color: var(--ep-emerald);
  margin: 0 0 6px;
  line-height: 1.2;
}

.ep-apt-unit-price {
  font-size: 21px;
  font-weight: 800;
  color: var(--ep-crimson);
  margin: 0 0 12px;
}

.ep-apt-unit-specs {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 13.8px;
  color: #334155;
}

.ep-apt-unit-specs li {
  padding: 7px 0;
  border-bottom: 1px dashed #e2dcd0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ep-apt-unit-specs li strong {
  color: var(--ep-ink);
  text-align: right;
}

.ep-apt-unit-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* =========================================================
   CSBH PAYMENT SCHEDULE CALCULATOR (CHUẨN PHONG CÁCH ERA)
   ========================================================= */
.ep-pay-box {
  background: #ffffff;
  border: 1.5px solid #dfd3bd;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--ep-shadow);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.ep-pay-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ep-pay-title {
  font-family: var(--ep-font-serif) !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: 24px;
  font-weight: 700;
  color: var(--ep-emerald);
}

.ep-pay-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ep-pay-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.ep-pay-preset {
  background: #faf7f2;
  border: 1.5px solid #cbd5e1;
  border-radius: 11px;
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  margin: 0;
}

.ep-pay-preset strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ep-emerald);
}

.ep-pay-preset span {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.ep-pay-preset.is-active {
  background: var(--ep-emerald);
  border-color: var(--ep-gold);
  box-shadow: 0 6px 16px rgba(16, 42, 34, 0.22);
}

.ep-pay-preset.is-active strong {
  color: #f6dfab;
}

.ep-pay-preset.is-active span {
  color: #e2e8f0;
}

.ep-pay-slider-row {
  background: #faf7f2;
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.ep-pay-vat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.ep-pay-vat-item {
  background: #ffffff;
  border: 1px solid #e2dcd0;
  border-radius: 10px;
  padding: 10px 12px;
}

.ep-pay-vat-item.is-main {
  background: var(--ep-emerald);
  border-color: var(--ep-emerald);
  color: #ffffff;
}

.ep-pay-vat-item small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 2px;
}

.ep-pay-vat-item.is-main small {
  color: var(--ep-gold-light);
}

.ep-pay-vat-item strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ep-ink);
  font-variant-numeric: tabular-nums;
}

.ep-pay-vat-item.is-main strong {
  color: #ffffff;
}

.ep-pay-slider-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.ep-pay-slider-lbl {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.ep-pay-price-big {
  font-size: 24px;
  font-weight: 800;
  color: var(--ep-crimson);
  font-variant-numeric: tabular-nums;
}

.ep-pay-range {
  width: 100%;
  height: 8px;
  accent-color: var(--ep-crimson);
  cursor: pointer;
  margin: 4px 0 6px;
}

.ep-pay-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.ep-pay-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #d7cebd;
}

.ep-pay-chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #d7cebd;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ep-emerald);
  cursor: pointer;
  margin: 0;
}

.ep-pay-chk input {
  margin: 0;
  accent-color: var(--ep-crimson);
}

.ep-pay-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.ep-pay-tab {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 13px 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  font-family: inherit;
  line-height: 1.35;
  margin: 0;
}

.ep-pay-tab:hover {
  border-color: var(--ep-gold);
  background: #fcfaf6;
}

.ep-pay-tab.is-active {
  border-color: var(--ep-gold);
  background: var(--ep-emerald);
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(16, 42, 34, 0.24);
}

.ep-pay-tab-num {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 5px;
}

.ep-pay-tab.is-active .ep-pay-tab-num {
  background: var(--ep-gold);
  color: #ffffff;
}

.ep-pay-tab-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.ep-pay-tab-sub {
  display: block;
  font-size: 12px;
  color: #475569;
  margin-top: 3px;
}

.ep-pay-tab.is-active .ep-pay-tab-name {
  color: #f6dfab !important;
}

.ep-pay-tab.is-active .ep-pay-tab-sub {
  color: #e2e8f0 !important;
}

.ep-pay-loan-ctrl {
  display: none;
  background: #f0f6f3;
  border: 1px solid #b9d1c6;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ep-pay-loan-ctrl.is-open {
  display: grid;
}

.ep-pay-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ep-emerald);
  margin-bottom: 6px;
}

.ep-pay-pill-grp {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ep-pay-pill {
  background: #ffffff;
  border: 1px solid #99b8aa;
  color: var(--ep-emerald) !important;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin: 0;
  line-height: 1.2;
}

.ep-pay-pill.is-active {
  background: var(--ep-emerald);
  border-color: var(--ep-emerald);
  color: #f6dfab !important;
}

.ep-pay-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ep-pay-kpi {
  background: #faf7f2;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  padding: 14px 16px;
}

.ep-pay-kpi.is-highlight {
  background: linear-gradient(135deg, #72161b, #991b1b);
  border-color: #72161b;
  color: #ffffff;
}

.ep-pay-kpi-lbl {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #64748b;
  margin-bottom: 4px;
}

.ep-pay-kpi.is-highlight .ep-pay-kpi-lbl {
  color: #fde68a;
}

.ep-pay-kpi-val {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.ep-pay-kpi.is-highlight .ep-pay-kpi-val {
  color: #ffffff;
}

.ep-pay-kpi-sub {
  display: block;
  font-size: 12px;
  color: #475569;
  margin-top: 4px;
  line-height: 1.4;
}

.ep-pay-kpi.is-highlight .ep-pay-kpi-sub {
  color: #fee2e2;
}

.ep-pay-bar-wrap {
  background: #faf7f2;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.ep-pay-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
  margin-bottom: 10px;
}

.ep-pay-bar-seg {
  height: 100%;
  transition: width 0.25s ease;
}

.ep-pay-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
}

.ep-pay-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ep-pay-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.ep-pay-steps {
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.ep-pay-steps-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ep-emerald);
  margin: 0 0 10px;
}

.ep-pay-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ep-pay-step-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed #e2dcd0;
  font-size: 13.5px;
}

.ep-pay-step-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ep-pay-step-name {
  color: #334155;
  font-weight: 600;
  line-height: 1.45;
}

.ep-pay-step-name small {
  display: block;
  color: #64748b;
  font-weight: 400;
  font-size: 12px;
}

.ep-pay-step-amt {
  font-weight: 800;
  color: var(--ep-crimson);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ep-pay-tbl-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 14px 0;
  display: block;
  overscroll-behavior-x: contain;
}

.ep-pay-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 580px;
  margin: 0;
}

.ep-pay-tbl th {
  background: var(--ep-emerald);
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--ep-emerald);
}

.ep-pay-tbl td {
  padding: 11px 14px;
  border: 1px solid #e2dcd0;
  color: #1e293b;
  vertical-align: top;
  line-height: 1.5;
}

.ep-pay-cmp-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.ep-pay-cmp-row.is-selected td {
  background: #fef3c7 !important;
  font-weight: 700;
}

.ep-pay-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.ep-pay-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #72161b, #991b1b);
  color: #ffffff !important;
  border: 0;
  border-radius: 10px;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(114, 22, 27, 0.24);
  font-family: inherit;
  line-height: 1.35;
  width: 100%;
  max-width: 560px;
  text-align: center;
  transition: all 0.2s ease;
  margin: 0;
}

.ep-pay-cta-btn:hover {
  background: #581014;
  transform: translateY(-1px);
}

.ep-pay-disclaimer {
  margin: 14px 0 0 !important;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 4px solid #d97706;
  border-radius: 8px;
  font-size: 12.5px !important;
  color: #78350f !important;
  line-height: 1.55 !important;
}

/* Gallery Uniform Height (Hình 5 Fix) */
.ep-apt-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.ep-apt-gallery-item {
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

.ep-apt-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: zoom-in;
  flex-shrink: 0;
}

.ep-apt-gallery-cap {
  padding: 12px 14px;
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  flex: 1;
}

/* Section 5 Rental Yield Calculator */
.ep-apt-calc-shell {
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--ep-shadow);
}

.ep-apt-calc-presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.ep-apt-preset-btn {
  padding: 9px 15px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #faf7f2;
  color: var(--ep-emerald);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
}

.ep-apt-preset-btn.is-active {
  background: var(--ep-emerald);
  color: #f6dfab;
  border-color: var(--ep-gold);
}

.ep-apt-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 26px;
  align-items: start;
}

.ep-apt-ctrl {
  margin-bottom: 18px;
}

.ep-apt-ctrl-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
}

.ep-apt-ctrl-val {
  color: var(--ep-crimson);
  font-weight: 800;
  white-space: nowrap;
}

.ep-apt-range {
  width: 100%;
  accent-color: var(--ep-emerald);
  cursor: pointer;
}

.ep-apt-calc-results {
  background: linear-gradient(145deg, #0e251e 0%, #16372d 100%);
  color: #f8fafc;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid rgba(229, 196, 127, 0.45);
}

.ep-apt-res-hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 14px;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.ep-apt-res-k {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  display: block;
}

.ep-apt-res-big {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  color: var(--ep-gold-light);
  line-height: 1.1;
}

.ep-apt-res-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 13.8px;
}

.ep-apt-res-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}

.ep-apt-res-list li strong {
  color: #ffffff;
  text-align: right;
}

.ep-apt-disclaimer {
  margin-top: 18px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13.2px;
  color: #78350f;
}

/* Section 6 Operations Factors (Badge 01..05 Ngang Hàng Tiêu Đề) */
.ep-apt-ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ep-apt-ops-card {
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  padding: 20px;
  min-width: 0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.ep-apt-ops-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.ep-apt-ops-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ep-emerald);
  color: var(--ep-gold-light);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.ep-apt-ops-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ep-emerald);
  margin: 0;
  line-height: 1.3;
}

.ep-apt-ops-card p {
  font-size: 14px;
  color: #334155;
  margin: 0;
}

/* Section 7 Rental Slot + Articles */
.ep-apt-slot-status {
  background: #ffffff;
  border: 1.5px dashed var(--ep-gold);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 30px;
}

.ep-apt-slot-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.ep-apt-slot-heading {
  font-family: var(--ep-font-serif) !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: 26px;
  font-weight: 700;
  color: var(--ep-emerald);
  margin: 0 0 8px;
}

.ep-apt-slot-desc {
  max-width: 760px;
  margin: 0 auto 18px;
  color: #475569;
  font-size: 14.5px;
}

.ep-apt-slot-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ep-apt-rental-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.ep-apt-rental-card {
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ep-apt-rental-thumb-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.ep-apt-rental-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ep-apt-rental-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
}

.ep-apt-rental-price {
  margin: 0;
  font-weight: 800;
  color: var(--ep-crimson);
}

.ep-apt-spoke-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ep-apt-spoke-card {
  background: #faf7f2;
  border: 1px solid var(--ep-border);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.ep-apt-spoke-card:hover {
  border-color: var(--ep-gold);
  transform: translateY(-2px);
}

.ep-apt-spoke-tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ep-gold);
  margin-bottom: 6px;
}

.ep-apt-spoke-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ep-emerald);
  margin: 0 0 6px;
}

.ep-apt-spoke-desc {
  font-size: 13.5px;
  color: #475569;
  margin: 0 0 10px;
}

.ep-apt-spoke-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--ep-crimson);
}

/* Section 8 FAQ Accordion (Căn Giữa) */
.ep-apt-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
}

.ep-apt-faq-item {
  background: #ffffff;
  border: 1px solid var(--ep-border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.ep-apt-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.ep-apt-faq-item summary::-webkit-details-marker {
  display: none;
}

.ep-apt-faq-q {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ep-emerald);
  line-height: 1.4;
}

.ep-apt-faq-icon {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ep-gold);
  transition: transform 0.2s ease;
}

.ep-apt-faq-item[open] .ep-apt-faq-icon {
  transform: rotate(45deg);
}

.ep-apt-faq-a {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed #dcd4c5;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.68;
}

/* Section 9 Lead Form */
.ep-apt-form-shell {
  background: linear-gradient(135deg, #0b1915 0%, #102a22 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(229, 196, 127, 0.45);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}

.ep-apt-form-title {
  font-family: var(--ep-font-serif) !important;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  color: #ffffff !important;
  margin: 10px 0 12px;
  line-height: 1.18;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  text-wrap: balance;
}

.ep-apt-direct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ep-apt-form-card {
  background: #ffffff;
  color: var(--ep-ink);
  border-radius: 16px;
  padding: 24px;
}

.ep-apt-intent-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ep-apt-intent-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  background: #f8fafc;
}

.ep-apt-intent-opt:has(input:checked) {
  border-color: var(--ep-gold);
  background: #fffbeb;
  color: var(--ep-emerald);
}

.ep-apt-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.ep-apt-input,
.ep-apt-select,
.ep-apt-textarea {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--ep-ink);
  background: #ffffff;
}

.ep-apt-hub select.ep-apt-select,
.ep-apt-select {
  width: 100% !important;
  max-width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  line-height: 44px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23102a22' stroke-width='2.2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  padding: 0 44px 0 14px !important;
  padding-inline-end: 44px !important;
  box-shadow: none !important;
  margin: 0 !important;
  cursor: pointer;
}

.ep-apt-hub select.ep-apt-select::-ms-expand,
.ep-apt-select::-ms-expand,
.ep-apt-hub select.ep-apt-select::picker-icon,
.ep-apt-select::picker-icon {
  display: none !important;
}

.ep-apt-input:focus,
.ep-apt-select:focus,
.ep-apt-textarea:focus {
  outline: none;
  border-color: var(--ep-gold);
}

.ep-apt-form-status {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.ep-apt-form-status.is-success {
  display: block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.ep-apt-form-status.is-error {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* =========================================================
   DESKTOP FOOTER STICKY BAR (Giống Era City & Nhà Phố Eco)
   ========================================================= */
.ep-apt-floatbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(16, 42, 34, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(229, 196, 127, 0.56);
  padding: 11px 116px 11px 28px;
  z-index: 99985;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(105%);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.ep-apt-floatbar.is-visible:not(.is-hidden-for-context) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.ep-apt-float-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ep-apt-float-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ep-apt-float-price {
  color: var(--ep-gold-light);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-apt-float-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ep-apt-float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  margin: 0;
}

.ep-apt-float-btn--call {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
}

.ep-apt-float-btn--zalo {
  background: #0284c7;
  color: #ffffff !important;
}

.ep-apt-float-btn--quote {
  background: linear-gradient(135deg, #c79233, #9b6b1a);
  color: #ffffff !important;
  font-weight: 800;
}

/* Lightbox Modal */
.ep-apt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000000 !important;
  background: rgba(8, 15, 13, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ep-apt-lightbox.is-open {
  display: flex;
}

.ep-apt-lightbox-inner {
  position: relative;
  max-width: 960px;
  width: 100%;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(229, 196, 127, 0.5);
}

.ep-apt-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ep-apt-lightbox-img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #091310;
}

.ep-apt-lightbox-cap {
  padding: 12px 16px;
  color: #f8fafc;
  font-size: 13.5px;
  text-align: center;
}

/* Responsive */
@media (max-width: 1120px) {
  .ep-apt-subnav-links,
  .ep-apt-subnav-phone {
    display: none;
  }

  .ep-apt-subnav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .ep-apt-hero-grid,
  .ep-apt-loc-grid,
  .ep-apt-split-showcase,
  .ep-apt-calc-grid,
  .ep-apt-form-shell {
    grid-template-columns: 1fr;
  }

  .ep-apt-spec-grid,
  .ep-apt-pay-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ep-apt-unit-grid,
  .ep-apt-ops-grid,
  .ep-apt-rental-grid,
  .ep-apt-gallery,
  .ep-apt-pay-vat-strip,
  .ep-apt-pay-kpis,
  .ep-apt-pay-loan-ctrl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .ep-apt-floatbar {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .ep-apt-hub {
    padding-bottom: 84px;
  }

  .ep-apt-container {
    padding: 0 14px;
  }

  .ep-apt-sec {
    padding: 36px 0;
  }

  .ep-apt-hero {
    padding: 18px 0 32px;
  }

  .ep-apt-hero-stats,
  .ep-apt-spec-grid,
  .ep-apt-unit-grid,
  .ep-apt-ops-grid,
  .ep-apt-spoke-grid,
  .ep-apt-rental-grid,
  .ep-apt-gallery,
  .ep-apt-field-row,
  .ep-apt-pay-presets,
  .ep-apt-pay-vat-strip,
  .ep-apt-pay-tabs,
  .ep-apt-pay-kpis,
  .ep-apt-pay-loan-ctrl,
  .ep-apt-map-actions {
    grid-template-columns: 1fr;
  }

  .ep-apt-calc-shell,
  .ep-apt-pay-box,
  .ep-apt-form-shell,
  .ep-apt-form-card {
    padding: 16px;
  }

  .ep-apt-radius-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ep-apt-radius-time {
    min-width: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
  }

  .ep-apt-step-item,
  .ep-pay-step-item {
    flex-direction: column;
    gap: 4px;
  }

  .ep-apt-hub select.ep-apt-select,
  .ep-apt-chrome select.ep-apt-select {
    font-size: 13px !important;
  }

  .ep-apt-subnav-emblem {
    width: 36px;
    height: 36px;
  }

  .ep-apt-subnav-cta {
    padding: 8px 11px;
    font-size: 11.5px;
  }
}


/* ==========================================================================
   v2.2.71-hub9 — LEAD POPUP MODAL (#epLeadModal) — chuẩn phong cách Era City
   ========================================================================== */
.ep-apt-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000050 !important;
  background: rgba(8, 20, 16, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
}

.ep-apt-modal-overlay.is-open {
  display: flex;
}

html.ep-apt-modal-lock,
html.ep-apt-modal-lock body {
  overflow: hidden !important;
}

.ep-apt-modal-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border: 2px solid var(--ep-gold);
  border-radius: 20px;
  padding: 34px 26px 24px;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.6), 0 0 42px rgba(180, 130, 44, 0.22);
  color: var(--ep-ink);
  font-family: var(--ep-font-sans);
  animation: epAptModalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.ep-apt-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--ep-emerald), var(--ep-gold), var(--ep-gold-light), var(--ep-gold), var(--ep-emerald));
}

@keyframes epAptModalPop {
  from { opacity: 0; transform: translateY(-16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ep-apt-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid var(--ep-border) !important;
  background: var(--ep-bg) !important;
  color: var(--ep-emerald) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: none !important;
  transition: background 0.18s ease, color 0.18s ease, transform 0.2s ease;
}

.ep-apt-modal-close:hover {
  background: var(--ep-emerald) !important;
  color: var(--ep-gold-light) !important;
  transform: rotate(90deg);
}

.ep-apt-modal-head {
  text-align: center;
  margin-bottom: 16px;
}

.ep-apt-modal-head .ep-apt-eyebrow {
  display: inline-block;
  margin-bottom: 6px;
}

.ep-apt-modal-head h3 {
  margin: 4px 0 6px;
  font-family: var(--ep-font-serif);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 700;
  color: var(--ep-emerald);
  line-height: 1.28;
  text-wrap: balance;
}

.ep-apt-modal-head p {
  margin: 0;
  font-size: 13px;
  color: var(--ep-muted);
  line-height: 1.5;
}

.ep-apt-modal-ctx {
  background: #fbf6ea;
  border: 1px solid #e8d6ac;
  color: #7a5518;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 10px;
  margin: 0 0 14px;
  text-align: center;
  line-height: 1.45;
}

.ep-apt-modal-ctx[hidden] {
  display: none !important;
}

.ep-apt-modal-form {
  margin: 0;
}

.ep-apt-modal-field {
  margin-bottom: 12px;
}

.ep-apt-modal-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ep-ink);
}

.ep-apt-modal-field label span {
  color: var(--ep-crimson);
}

.ep-apt-modal-field .ep-apt-input,
.ep-apt-modal-field .ep-apt-select {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.ep-apt-modal-field .ep-apt-select {
  padding-right: 40px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.ep-apt-modal-submit {
  width: 100%;
  margin-top: 4px;
}

.ep-apt-modal-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--ep-muted);
  line-height: 1.45;
  text-align: center;
}

.ep-apt-modal-secure svg {
  flex: 0 0 auto;
  color: var(--ep-gold);
}

@media (max-width: 767px) {
  .ep-apt-modal-overlay {
    padding: 12px;
    align-items: flex-start;
  }
  .ep-apt-modal-card {
    margin-top: 4vh;
    padding: 30px 18px 20px;
    border-radius: 16px;
    max-height: 90vh;
  }
  .ep-apt-modal-head h3 {
    font-size: 19px;
    padding: 0 22px;
  }
}

@media (max-width: 767px) {
  .ep-apt-modal-head .ep-apt-eyebrow {
    padding: 0 34px;
    font-size: 10.5px;
    letter-spacing: 0.08em;
  }
}
