/* ==========================================================================
   PROJECT DOCUMENTS MODAL — 5 TABS (HOÀNG DƯƠNG LAND)
   Design System Compliance: #7C7262 (Gold Primary), font 'teodor', font 'sans'
   ========================================================================== */

/* Hide default Nuxt penthouse floorplan modal and gallery modal when this modal is used */
aside.fixed.inset-0:not(#project-docs-modal):has(.js-content.bg-white),
aside.fixed.inset-0.z-\[9999\]:not(#project-docs-modal),
aside.fixed.inset-0[class*="z-\[9999\]"]:not(#project-docs-modal),
aside.fixed.inset-0[class*="z-8"]:not(#project-docs-modal):has(.js-content.bg-white),
aside.fixed.inset-0[class*="z-9"]:not(#project-docs-modal):has(.js-content.bg-white) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   DRAWER FIX: ELIMINATE UNEXPANDED WHITE BOX & PREVENT TRANSPARENCY
   ========================================================================== */
/* When drawer is open (has article content), hide .box__fill and .box__preview completely so no floating white card can ever appear */
.box:has(.box-content article) .box__fill,
.box .box-content:has(article) ~ .box__fill,
.box:has(.box-content article) .box__preview {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Ensure the drawer article content itself is the sole solid pure white panel */
.box-content article {
  background-color: #ffffff !important;
  border-radius: 0.5rem !important;
  border: 1px solid rgba(124, 114, 98, 0.3) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  overflow: hidden !important;
}

/* Ensure header inside drawer stays on top and blends seamlessly */
.box-content article header {
  background-color: #ffffff !important;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}


/* When drawer is open, hide any residual collapsed .box__preview */
.box:has(.box-content article) .box__preview {
  display: none !important;
}

/* ==========================================================================
   GLOBAL & DRAWER CTA BUTTON SIZING (MATCH SITE MẪU - IMAGE 2)
   Design System Compliance: #7C7262 (Gold Primary), font 'sans', compact luxury
   ========================================================================== */

/* 1. Global BaseButton / Intro Gate CTA & Header CTA (36.8px - 20% smaller from 46px, anti-clipping diacritics) */
.btn:not(:has(.btn__a)) {
  height: 36.8px !important;
  min-height: 36.8px !important;
  border-radius: 3.2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  overflow: hidden !important;
  border: 1.2px solid rgba(255, 255, 255, 0.45) !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  transition: border-color 0.3s ease !important;
}

.btn:not(:has(.btn__a)):hover {
  border-color: rgba(255, 255, 255, 0.9) !important;
}

header .btn,
header button.btn,
header a.btn,
header .btn:not(:has(.btn__a)),
header [class*="!absolute"] {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 20 !important;
  pointer-events: auto !important;
  height: 36.8px !important;
  min-height: 36.8px !important;
  border-radius: 3.2px !important;
}

@media (min-width: 650px) {
  header .btn,
  header button.btn,
  header a.btn,
  header .btn:not(:has(.btn__a)),
  header [class*="!absolute"] {
    top: 25px !important;
    right: 25px !important;
    left: auto !important;
    bottom: auto !important;
  }
}

.btn:not(:has(.btn__a)) .btn__content,
header .btn .btn__content,
header [class*="!absolute"] .btn__content {
  height: 100% !important;
  min-height: 100% !important;
  padding-left: 20.8px !important;
  padding-right: 20.8px !important;
  font-size: 11px !important;
  letter-spacing: 0.14em !important;
  display: grid !important;
  place-items: center !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  line-height: 1.4 !important;
  overflow: visible !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.btn:not(:has(.btn__a)) .btn__content > *,
header .btn .btn__content > *,
header [class*="!absolute"] .btn__content > * {
  grid-area: 1 / 1 !important;
  justify-self: center !important;
  align-self: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
  overflow: visible !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

@media (max-width: 649px) {
  .btn:not(:has(.btn__a)),
  header .btn,
  header button.btn,
  header a.btn,
  header .btn:not(:has(.btn__a)),
  header [class*="!absolute"] {
    height: 32px !important;
    min-height: 32px !important;
    border-radius: 2.5px !important;
  }
  .btn:not(:has(.btn__a)) .btn__content,
  header .btn .btn__content,
  header [class*="!absolute"] .btn__content {
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-size: 9.6px !important;
    letter-spacing: 0.12em !important;
  }
}

/* Ẩn text HOÀNG DƯƠNG LAND góc phải phía dưới ở slide Liên Hệ */
a.uline[class*="bottom-25"],
a.uline[class*="s:bottom-20"][class*="s:right-20"],
a[href*="hoangduongland.vn"][class*="s:bottom-20"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.uline-double {
  font-size: 11.5px !important;
  letter-spacing: 0.1em !important;
}

/* 2. Global .btn-norm specification (-15% on desktop per user request) */
.btn-norm {
  --font-size: 14.2px !important;
  --label-font-size: 14.2px !important;
  --height: 38.5px !important;
  --padding-left: 14px !important;
  --padding-right: 14px !important;
  --gap-x: 9px !important;
  --arrow-width: 12px !important;
  --border-radius: 4px !important;
  --color-primary: #7C7262 !important;
  --color-secondary: #FFFFFF !important;
  --border-opacity: 0.45 !important;
  height: 38.5px !important;
  min-height: 38.5px !important;
  display: inline-flex !important;
  border-radius: 4px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.btn-norm:before {
  border: 1px solid #7C7262 !important;
  border-radius: 4px !important;
  opacity: 0.45 !important;
}

.btn-norm:hover:before {
  opacity: 1 !important;
  border-color: #7C7262 !important;
}

.btn-norm .btn-norm__content {
  height: 38.5px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 14px !important;
  gap: 9px !important;
  color: #7C7262 !important;
}

.btn-norm .btn-norm-label {
  display: flex !important;
  align-items: center !important;
  transform: none !important;
}

.btn-norm .btn-norm-label__text {
  font-family: 'sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 14.2px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  padding-top: 0.05em !important;
  overflow: visible !important;
}

/* SINGLE ARROW: Only --1 is displayed on the right */
.btn-norm .btn-norm__a.--1,
.btn .btn__a.--1 {
  width: 12px !important;
  min-width: 12px !important;
  max-width: 12px !important;
  height: 10px !important;
  display: block !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s ease !important;
}

.btn-norm:hover .btn-norm__a.--1,
.btn:hover .btn__a.--1 {
  transform: translateX(4px) !important;
}

/* ELIMINATE DUPLICATE ARROW: Strictly hide --2 entrance arrow and any secondary arrows */
.btn-norm .btn-norm__a.--2,
.btn-norm__mask .btn-norm__a.--2,
.btn-norm-label .btn-norm__a.--2,
.btn-norm .btn-norm__a:not(.--1),
.btn .btn__a.--2,
.btn__mask .btn__a.--2,
.btn-label .btn__a.--2,
.btn .btn__a:not(.--1) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
}

.btn-norm .btn-norm__mask {
  position: absolute !important;
  inset: 0 !important;
  height: 38.5px !important;
  padding: 0 14px !important;
  background-color: #7C7262 !important;
  color: #FFFFFF !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* 3. Drawer Action Container and Buttons (Slide 01, 02, 03) */
.box-content article div[class*="mt-40"] {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: 100% !important;
  justify-content: flex-start !important;
  align-items: center !important;
  margin-top: 25px !important;
}

.box-content article div[class*="mt-40"] .btn-norm {
  flex: 1 1 0% !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 38.5px !important;
  line-height: 38.5px !important;
  font-size: 14.2px !important;
  padding: 0 !important;
  border-radius: 4px !important;
}

/* 4. Slide 01 CTA Button: "VỀ CHÚNG TÔI" (TẠM THỜI ẨN) */
.btn-cta-ve-chung-toi,
.box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  color: #7C7262 !important;
  border: 1px solid rgba(124, 114, 98, 0.45) !important;
  border-radius: 4px !important;
  font-family: 'sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 14.3px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi:before {
  display: none !important;
}

.box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi .btn-cta-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 13px !important;
}

.box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi .btn-cta-label {
  color: #7C7262 !important;
  font-family: 'sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 14.3px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transition: color 0.35s ease !important;
}

.box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi .btn-cta-arrow {
  width: 14.3px !important;
  height: 11.7px !important;
  fill: #7C7262 !important;
  color: #7C7262 !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
  transition: transform 0.35s ease, fill 0.35s ease, color 0.35s ease !important;
}

.box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi .btn-cta-arrow path {
  fill: inherit !important;
  color: inherit !important;
  transform: none !important;
  transition: fill 0.35s ease, color 0.35s ease !important;
}

.box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi:hover,
.box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi:focus-visible {
  background-color: #7C7262 !important;
  border-color: #7C7262 !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

.box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi:hover .btn-cta-label,
.box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi:focus-visible .btn-cta-label {
  color: #FFFFFF !important;
}

.box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi:hover .btn-cta-arrow,
.box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi:focus-visible .btn-cta-arrow {
  fill: #FFFFFF !important;
  color: #FFFFFF !important;
  transform: translateX(4px) !important;
}

.box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi:hover .btn-cta-arrow path,
.box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi:focus-visible .btn-cta-arrow path {
  fill: #FFFFFF !important;
  color: #FFFFFF !important;
  transform: none !important;
}

.box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi:active {
  transform: translateY(0) !important;
  box-shadow: none !important;
}

@media (max-width: 650px) {
  .box-content article div[class*="mt-40"] {
    gap: 8px !important;
    margin-top: 20px !important;
    flex-wrap: wrap !important;
  }
  .box-content article div[class*="mt-40"] .btn-norm,
  .box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi,
  .btn-norm {
    min-width: 140px !important;
    max-width: 165px !important;
    height: 34px !important;
    min-height: 34px !important;
    line-height: 34px !important;
    font-size: 10.5px !important;
    padding: 0 10px !important;
    border-radius: 3px !important;
    flex: 1 1 auto !important;
  }
  .btn-norm .btn-norm__content,
  .btn-norm .btn-norm__mask,
  .box-content article div[class*="mt-40"] .btn-norm .btn-norm__content,
  .box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi .btn-cta-content {
    height: 34px !important;
    padding: 0 10px !important;
    gap: 8px !important;
  }
  .btn-norm .btn-norm-label__text,
  .box-content article div[class*="mt-40"] .btn-norm .btn-norm-label__text,
  .box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi .btn-cta-label {
    font-size: 10.5px !important;
  }
  .btn-norm .btn-norm__a.--1,
  .btn .btn__a.--1,
  .box-content article div[class*="mt-40"] .btn-cta-ve-chung-toi .btn-cta-arrow {
    width: 11px !important;
    min-width: 11px !important;
    max-width: 11px !important;
    height: 9px !important;
  }
}

#project-docs-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1A1A1A;
}

#project-docs-modal.is-open {
  display: flex;
  opacity: 1;
}

.pdm-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #FAF9F6;
  overflow: hidden;
}

/* ---------------- HEADER BAR ---------------- */
.pdm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(124, 114, 98, 0.2);
  gap: 12px;
  flex-shrink: 0;
  z-index: 10;
}

.pdm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pdm-brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.pdm-project-info {
  display: none !important;
}

.pdm-project-title {
  font-family: 'teodor', Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  color: #7C7262;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
}

.pdm-project-sub {
  font-size: 10.5px;
  color: #8F8472;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------------- TABS NAVIGATION ---------------- */
.pdm-nav-wrapper {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 4px;
}

.pdm-nav-wrapper::-webkit-scrollbar {
  display: none;
}

.pdm-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.pdm-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: #555555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.pdm-tab-btn:hover {
  color: #7C7262;
  background: rgba(124, 114, 98, 0.06);
}

.pdm-tab-btn.active {
  color: #7C7262;
  background: rgba(124, 114, 98, 0.12);
  border-color: rgba(124, 114, 98, 0.35);
  font-weight: 600;
}

.pdm-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #7C7262;
}

.pdm-tab-btn .tab-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  background: rgba(124, 114, 98, 0.15);
  color: #7C7262;
}

.pdm-tab-btn.active .tab-num {
  background: #7C7262;
  color: #FFFFFF;
}

/* ---------------- ACTIONS & CLOSE BUTTON ---------------- */
.pdm-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdm-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  border: 1px solid rgba(124, 114, 98, 0.4);
  background: #FFFFFF;
  color: #7C7262;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pdm-close-btn:hover {
  background: #7C7262;
  color: #FFFFFF;
  border-color: #7C7262;
}

/* ---------------- MAIN BODY ---------------- */
.pdm-body {
  flex: 1;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pdm-pane {
  display: none;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 16px 24px 20px;
  animation: pdmFadeIn 0.3s ease;
  box-sizing: border-box;
  min-height: 0;
}

.pdm-pane.active {
  display: flex;
}

@keyframes pdmFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- TAB 1: BÓC MÁI CĂN HỘ ---------------- */
.pdm-bocmai-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  gap: 10px;
}

.pdm-viewer-main {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 6px;
  border: 1px solid rgba(124, 114, 98, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  padding: 12px;
  box-sizing: border-box;
}

.pdm-viewer-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  display: block;
}

.pdm-viewer-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(124, 114, 98, 0.2);
  backdrop-filter: blur(8px);
}

.pdm-ctrl-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #7C7262;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pdm-ctrl-btn:hover {
  background: rgba(124, 114, 98, 0.15);
}

.pdm-viewer-badge {
  position: absolute;
  bottom: 12px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(124, 114, 98, 0.25);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #7C7262;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(4px);
  z-index: 5;
  pointer-events: none;
}

/* THUMBNAIL RIBBON */
.pdm-ribbon-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid rgba(124, 114, 98, 0.15);
  border-radius: 6px;
  padding: 8px 12px 10px;
  flex-shrink: 0;
}

.pdm-ribbon-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #7C7262;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pdm-ribbon-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scroll-behavior: smooth;
}

.pdm-ribbon-scroll::-webkit-scrollbar {
  height: 4px;
}
.pdm-ribbon-scroll::-webkit-scrollbar-thumb {
  background: rgba(124, 114, 98, 0.35);
  border-radius: 2px;
}

.pdm-ribbon-thumb {
  flex: 0 0 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 4px 5px;
  border-radius: 4px;
  border: 1px solid rgba(124, 114, 98, 0.2);
  background: #FAF9F6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdm-ribbon-thumb:hover {
  border-color: #7C7262;
  background: #FFFFFF;
  transform: translateY(-2px);
}

.pdm-ribbon-thumb.active {
  border-color: #7C7262;
  border-width: 1.5px;
  background: rgba(124, 114, 98, 0.08);
  box-shadow: 0 2px 8px rgba(124, 114, 98, 0.18);
}

.pdm-ribbon-thumb img {
  width: 100%;
  height: 38px;
  object-fit: contain;
  border-radius: 2px;
}

.pdm-ribbon-thumb span {
  font-size: 9px;
  font-weight: 600;
  color: #7C7262;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ---------------- TAB 2 & 3: SUB-PILLS & VIEWERS ---------------- */
.pdm-subnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap !important;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 16px;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 114, 98, 0.35) transparent;
  touch-action: pan-x;
  cursor: grab;
}

.pdm-subnav:active {
  cursor: grabbing;
}

.pdm-subnav::-webkit-scrollbar {
  height: 4px;
}
.pdm-subnav::-webkit-scrollbar-track {
  background: rgba(124, 114, 98, 0.08);
  border-radius: 4px;
}
.pdm-subnav::-webkit-scrollbar-thumb {
  background: rgba(124, 114, 98, 0.35);
  border-radius: 4px;
}
.pdm-subnav::-webkit-scrollbar-thumb:hover {
  background: #7C7262;
}

.pdm-sub-btn {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  user-select: none;
  -webkit-user-select: none;
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid rgba(124, 114, 98, 0.3);
  background: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  color: #555555;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pdm-sub-btn:hover {
  border-color: #7C7262;
  color: #7C7262;
}

.pdm-sub-btn.active {
  background: #7C7262;
  color: #FFFFFF;
  border-color: #7C7262;
  font-weight: 600;
}

.pdm-plan-display {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid rgba(124, 114, 98, 0.15);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 16px;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
  box-sizing: border-box;
}

.pdm-plan-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pdm-plan-wrapper .pdm-plan-img {
  position: absolute;
  inset: 0;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease-out;
  pointer-events: none;
  margin: auto;
  user-select: none;
}

.pdm-plan-wrapper .pdm-plan-img.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.pdm-plan-img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pdm-download-float {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 4px;
  background: #7C7262;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(124, 114, 98, 0.3);
  transition: all 0.25s ease;
}

.pdm-download-float:hover {
  background: #8F8472;
  transform: translateY(-2px);
}

/* ---------------- TAB 4: CĂN HỘ MẪU ---------------- */
.pdm-models-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(124, 114, 98, 0.15);
  width: 100%;
  min-width: 0;
}

.pdm-model-switch {
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  background: #EEEEEE;
  padding: 4px;
  border-radius: 30px;
  gap: 4px;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  cursor: grab;
}

.pdm-model-switch:active {
  cursor: grabbing;
}

.pdm-model-switch::-webkit-scrollbar {
  display: none;
}

.pdm-model-tab {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  user-select: none;
  -webkit-user-select: none;
  padding: 8px 20px;
  border-radius: 26px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #666666;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pdm-model-tab.active {
  background: #7C7262;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(124, 114, 98, 0.25);
}

.pdm-room-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap !important;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 114, 98, 0.35) transparent;
  touch-action: pan-x;
  cursor: grab;
}

.pdm-room-filters:active {
  cursor: grabbing;
}

.pdm-room-filters::-webkit-scrollbar {
  height: 4px;
}
.pdm-room-filters::-webkit-scrollbar-track {
  background: rgba(124, 114, 98, 0.08);
  border-radius: 4px;
}
.pdm-room-filters::-webkit-scrollbar-thumb {
  background: rgba(124, 114, 98, 0.35);
  border-radius: 4px;
}
.pdm-room-filters::-webkit-scrollbar-thumb:hover {
  background: #7C7262;
}

.pdm-room-filter-btn {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  user-select: none;
  -webkit-user-select: none;
  padding: 7px 15px;
  border-radius: 4px;
  border: 1px solid rgba(124, 114, 98, 0.25);
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  color: #555555;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdm-room-filter-btn:hover {
  border-color: #7C7262;
  color: #7C7262;
}

.pdm-room-filter-btn.active {
  background: rgba(124, 114, 98, 0.15);
  border-color: #7C7262;
  color: #7C7262;
  font-weight: 600;
}

.pdm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  padding-bottom: 24px;
}

.pdm-gallery-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid rgba(124, 114, 98, 0.15);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdm-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(124, 114, 98, 0.18);
  border-color: #7C7262;
}

.pdm-card-img-wrap {
  width: 100%;
  padding-top: 62%;
  position: relative;
  background: #EFEFEF;
  overflow: hidden;
}

.pdm-card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pdm-gallery-card:hover .pdm-card-img-wrap img {
  transform: scale(1.05);
}

.pdm-card-caption {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
}

.pdm-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #2B2B2B;
}

.pdm-card-zoom-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(124, 114, 98, 0.1);
  color: #7C7262;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ---------------- TAB 5: BROCHURE FORM ---------------- */
.pdm-brochure-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 1100px;
  margin: auto;
  align-items: center;
  padding: 20px 0;
}

.pdm-brochure-preview {
  background: #FFFFFF;
  border: 1px solid rgba(124, 114, 98, 0.2);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdm-brochure-img-box {
  width: 100%;
  height: 260px;
  border-radius: 6px;
  overflow: hidden;
  background: #F0EDE8;
  position: relative;
  border: 1px solid rgba(124, 114, 98, 0.15);
}

.pdm-brochure-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdm-brochure-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdm-brochure-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #444;
}

.pdm-brochure-features li svg {
  color: #7C7262;
  flex-shrink: 0;
}

.pdm-brochure-form-card {
  background: #FFFFFF;
  border: 1px solid rgba(124, 114, 98, 0.25);
  border-radius: 8px;
  padding: 32px 36px;
  box-shadow: 0 8px 30px rgba(124, 114, 98, 0.08);
}

.pdm-form-title {
  font-family: 'teodor', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: #7C7262;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pdm-form-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.5;
}

.pdm-form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdm-form-label {
  font-size: 12px;
  font-weight: 600;
  color: #7C7262;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pdm-form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(124, 114, 98, 0.3);
  border-radius: 4px;
  font-size: 14px;
  color: #222;
  background: #FAF9F6;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.pdm-form-input:focus {
  outline: none;
  border-color: #7C7262;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(124, 114, 98, 0.15);
}

.pdm-form-btn {
  width: 100%;
  padding: 14px;
  background: #7C7262;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(124, 114, 98, 0.3);
}

.pdm-form-btn:hover {
  background: #8F8472;
  transform: translateY(-1px);
}

.pdm-form-toast {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  color: #2E7D32;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
}

/* ---------------- LIGHTBOX MODAL (WHITE LUXURY IMMERSIVE) ---------------- */
#pdm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: none;
  align-items: center;
  justify-content: center;
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  opacity: 1 !important;
}

#pdm-lightbox.is-open {
  display: flex !important;
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  opacity: 1 !important;
}

.pdm-lightbox-img {
  max-width: 100vw !important;
  max-height: 100vh !important;
  height: 100vh !important;
  height: 100dvh !important;
  width: auto !important;
  object-fit: contain !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  user-select: none;
  background: transparent !important;
  transition: opacity 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity;
}

.pdm-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(124, 114, 98, 0.28);
  background: #FFFFFF;
  color: #1A1A1A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: none !important;
  transition: all 0.25s ease;
  z-index: 10;
}

.pdm-lightbox-close:hover {
  background: #7C7262;
  color: #FFFFFF;
  border-color: #7C7262;
  box-shadow: none !important;
  transform: scale(1.05);
}

.pdm-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(124, 114, 98, 0.35);
  background: #FFFFFF;
  color: #1A1A1A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: none !important;
  transition: all 0.25s ease;
  z-index: 25;
}

.pdm-lightbox-nav:hover {
  background: #7C7262;
  color: #FFFFFF;
  border-color: #7C7262;
  transform: translateY(-50%) scale(1.08);
}

.pdm-lightbox-prev { left: 24px; }
.pdm-lightbox-next { right: 24px; }

.pdm-lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #7C7262;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(124, 114, 98, 0.28);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 30;
  backdrop-filter: blur(4px);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1024px) {
  .pdm-header {
    flex-wrap: wrap;
    padding: 12px 18px;
  }
  .pdm-nav-wrapper {
    order: 3;
    width: 100%;
    margin-top: 4px;
    padding-bottom: 6px;
  }
  .pdm-brochure-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pdm-pane {
    padding: 14px 16px 18px;
  }
  .pdm-viewer-main {
    min-height: 0;
  }
  .pdm-viewer-img {
    max-width: 100%;
    max-height: 100%;
  }
  .pdm-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 640px) {
  .pdm-brand-logo {
    height: 35px;
  }
  .pdm-project-title {
    font-size: 16px;
  }
  .pdm-tab-btn {
    padding: 8px 12px;
    font-size: 11px;
  }
  .pdm-ribbon-thumb {
    flex: 0 0 56px;
    padding: 3px 3px 4px;
    gap: 2px;
  }
  .pdm-ribbon-thumb img {
    height: 30px;
  }
  .pdm-ribbon-thumb span {
    font-size: 8px;
  }
  .pdm-subnav {
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 6px;
  }
  .pdm-sub-btn {
    padding: 6px 14px;
    font-size: 12px;
  }
  .pdm-models-header {
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .pdm-model-tab {
    padding: 6px 14px;
    font-size: 12px;
  }
  .pdm-room-filters {
    gap: 6px;
    padding-bottom: 6px;
  }
  .pdm-room-filter-btn {
    padding: 5px 12px;
    font-size: 11px;
  }
}

/* ---------------- INTERACTIVE HOTSPOT PINS ON TỔNG MẶT BẰNG (DISABLED) ---------------- */
#pdm-tmb-pins,
.pdm-hotspot-pin {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.pdm-plan-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  min-width: 0;
}

/* --- RESPONSIVE FIX: Loại bỏ khoảng trắng thừa trên dưới cho Bóc Mái, Tổng Mặt Bằng, Vị Trí & Kết Nối trên Mobile --- */
@media (max-width: 768px) {
  #pdm-pane-1,
  #pdm-pane-2,
  #pdm-pane-3 {
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 12px 16px !important;
    justify-content: flex-start !important;
  }

  /* 1. BÓC MÁI CĂN HỘ */
  .pdm-bocmai-wrapper {
    height: auto !important;
    min-height: 0 !important;
    gap: 8px !important;
  }

  .pdm-viewer-main {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1920 / 1358 !important;
    max-height: 52vh !important;
    padding: 6px !important;
    border-radius: 6px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .pdm-viewer-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }

  .pdm-viewer-controls {
    top: 6px !important;
    right: 6px !important;
    gap: 3px !important;
    padding: 2px 4px !important;
  }

  .pdm-ctrl-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 11.5px !important;
  }

  .pdm-ribbon-container {
    padding: 6px 8px 8px !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
  }

  /* 2 & 3. TỔNG MẶT BẰNG & VỊ TRÍ KẾT NỐI */
  #pdm-pane-2 .pdm-subnav,
  #pdm-pane-3 .pdm-subnav {
    margin-bottom: 8px !important;
    padding-bottom: 4px !important;
  }

  .pdm-plan-display {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 8px 8px 12px !important;
    gap: 10px !important;
    box-sizing: border-box !important;
  }

  .pdm-plan-wrapper {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1920 / 1358 !important;
    max-height: 52vh !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .pdm-plan-wrapper .pdm-plan-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }

  .pdm-download-float {
    position: static !important;
    transform: none !important;
    margin: 2px auto 0 !important;
    width: auto !important;
    max-width: calc(100% - 16px) !important;
    padding: 8px 16px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(124, 114, 98, 0.22) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .pdm-download-float:hover {
    transform: translateY(-1px) !important;
  }
}

.pdm-hotspot-pin::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #7C7262;
  opacity: 0.7;
  animation: pdmPulse 2.2s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes pdmPulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.pdm-hotspot-pin:hover {
  transform: translate(-50%, -50%) scale(1.2);
  background: #1A1A1A;
  border-color: #FAF9F6;
  z-index: 25;
}

.pdm-hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #FFFFFF;
  border: 1px solid rgba(124, 114, 98, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  border-radius: 6px;
  padding: 10px 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 30;
  min-width: 170px;
}

.pdm-hotspot-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #FFFFFF transparent transparent transparent;
}

.pdm-hotspot-pin:hover .pdm-hotspot-tooltip,
.pdm-hotspot-pin:focus .pdm-hotspot-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.pdm-hotspot-tt-title {
  font-size: 12px;
  font-weight: 700;
  color: #7C7262;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.pdm-hotspot-tt-desc {
  font-size: 11px;
  color: #555555;
  margin-bottom: 6px;
}

.pdm-hotspot-tt-btn {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  background: #7C7262;
  color: #FFFFFF;
  border-radius: 3px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.2s ease;
}

.pdm-hotspot-tt-btn:hover {
  background: #8F8472;
}

/* ---------------- PROJECT TOGGLE IN HEADER ---------------- */
.pdm-proj-selector {
  display: inline-flex;
  background: rgba(124, 114, 98, 0.1);
  padding: 3px;
  border-radius: 20px;
  gap: 2px;
  margin-left: 0;
}

.pdm-proj-btn {
  padding: 5px 14px;
  border-radius: 16px;
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  color: #7C7262;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdm-proj-btn.active {
  background: #7C7262;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(124, 114, 98, 0.3);
}


/* ==========================================================================
   PROJECT GALLERY SLIDER (IMMERSIVE FULLSCREEN PHOTO SLIDESHOW)
   ========================================================================== */
#project-gallery-slider {
  position: fixed;
  inset: 0;
  z-index: 99999999;
  display: none;
  background: #FFFFFF !important;
  opacity: 0;
  transition: opacity 0.25s ease;
  font-family: 'sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1A1A1A;
  flex-direction: column;
  user-select: text;
  overflow: hidden;
}

#project-gallery-slider:not(.is-open) {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#project-gallery-slider.is-open {
  display: flex !important;
  opacity: 1 !important;
}

.pgs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: #FFFFFF !important;
  border-bottom: 1px solid rgba(124, 114, 98, 0.18) !important;
  z-index: 10;
  flex-shrink: 0;
  gap: 16px;
}

.pgs-header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pgs-logo-img {
  height: 58px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block;
}

.pgs-header-center,
.pgs-slide-title,
.pgs-slide-divider,
.pgs-slide-counter,
#pgs-slide-title,
#pgs-slide-counter {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.pgs-header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pgs-btn-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid rgba(124, 114, 98, 0.35);
  color: #7C7262;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pgs-btn-close:hover {
  background: #7C7262;
  color: #FFFFFF;
  border-color: #7C7262;
  transform: scale(1.05);
}

.pgs-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px 24px;
  background: #FFFFFF !important;
}

.pgs-image-container {
  position: relative;
  max-width: 95vw;
  max-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pgs-main-img {
  max-width: 90vw;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
  margin: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  border: 1px solid rgba(124, 114, 98, 0.18);
  will-change: opacity;
  transition: opacity 0.28s cubic-bezier(0.25, 1, 0.5, 1);
}

.no-gsap .pgs-main-img {
  transition: opacity 0.2s ease;
}

.pgs-main-img.fade-out {
  opacity: 0;
}

.pgs-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(124, 114, 98, 0.35);
  color: #7C7262;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

.pgs-nav-btn:hover {
  background: #7C7262;
  color: #FFFFFF;
  border-color: #7C7262;
  transform: translateY(-50%) scale(1.08);
}

.pgs-nav-prev { left: 24px; }
.pgs-nav-next { right: 24px; }

@media (max-width: 650px) {
  .pgs-header { padding: 10px 14px; gap: 8px; }
  .pgs-logo-img { height: 42px !important; }
  .pgs-slide-title { display: none; }
  .pgs-slide-divider { display: none; }
  .pgs-slide-counter { font-size: 11px; padding: 2px 8px; }
  .pgs-btn-close { width: 34px; height: 34px; }
  .pgs-stage { padding: 8px; }
  .pgs-nav-btn { width: 40px; height: 40px; }
  .pgs-nav-prev { left: 8px; }
  .pgs-nav-next { right: 8px; }
  .pgs-image-container, .pgs-main-img { max-width: 98vw; max-height: calc(100vh - 68px); }
}

/* ==========================================================================
   INTRO GATE 3-LINE TITLE RESPONSIVE STYLING
   ========================================================================== */
.intro-h1-responsive, h1[data-v-140c621f] {
  font-family: 'Cormorant Garamond', 'teodor', Georgia, serif !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

@media (max-width: 649px) {
  .intro-h1-responsive, h1[data-v-140c621f] {
    font-size: 3.4rem !important; /* Reduced 15% from 4.0rem */
    line-height: 1.15 !important;
    letter-spacing: 0.04em !important;
  }
}

@media (min-width: 650px) {
  .intro-h1-responsive, h1[data-v-140c621f] {
    font-size: 7.5rem !important; /* Reduced 15% from 8.84rem */
    line-height: 1.12 !important;
    letter-spacing: 0.04em !important;
  }
}

/* ==========================================================================
   INITIAL PRELOADER SCREEN & ATMOSPHERE SEAMLESS FIT
   ========================================================================== */
html, body {
  background-color: #9BBAD0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
}

/* Initial Preloader Screen (0% -> 100%) - Pure White */
div[data-v-140c621f] > .text-gold.z-2 {
  background-color: #FFFFFF !important;
  z-index: 20 !important;
}

/* Gold Cursor on White Preloader Screen */
div[data-v-140c621f] > .text-gold.z-2 .fc {
  color: #7C7262 !important;
}

/* Intro Gate Container - Transparent to reveal 3D Sky Canvas */
div[data-v-140c621f] > div:first-child:not([class*="bg-black"]) {
  background: transparent !important;
}
div[data-v-140c621f] > div.flex {
  background: transparent !important;
}

/* Intro Gate Clouds Overlay (5% black overlay to enhance text contrast) */
div[data-v-140c621f] .bg-black\/10,
div[data-v-140c621f] [class*="bg-black/10"],
.intro-clouds-overlay {
  background-color: rgba(0, 0, 0, 0.05) !important;
  pointer-events: none !important;
}

#hero, .js-hero, #hero canvas {
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  min-height: 100svh !important;
  position: absolute !important;
  inset: 0 !important;
}

/* Ensure intro shutters/masks never overflow into viewport */
div[data-v-140c621f].absolute.inset-0 {
  overflow: hidden !important;
}

/* ==========================================================================
   TYPOGRAPHY: Headline line-height 1.15 for Luxury Vietnamese Diacritics
   ========================================================================== */
.leading-\[1\.05\],
.leading-\[1\.15\],
h2[class*="leading-[1.05]"],
h2[class*="leading-[1.15]"],
.js-hero h2,
h2[data-v-c1cb5361],
.intro-h1-responsive,
h1[data-v-140c621f] {
  line-height: 1.15 !important;
}

@media (min-width: 650px) {
  .intro-h1-responsive,
  h1[data-v-140c621f],
  h2[class*="leading-[1.05]"],
  h2[class*="leading-[1.15]"],
  .js-hero h2,
  h2[data-v-c1cb5361] {
    line-height: 1.15 !important;
  }
}

/* ==========================================================================
   VIETNAMESE UPPERCASE DIACRITICS ANTI-CLIPPING SYSTEM & BOX CONTROLS
   Solves "mất dấu / dấu bị cắt" across preview boxes, drawers, tabs, and buttons
   ========================================================================== */

/* 1. Box Preview (Slide Title / Floor Display at bottom-right) */
.box > div:not(.box-content) button:not(.box__preview),
.box button.absolute.top-1\/2.left-20,
.box button[class*="left-20"][class*="top-1/2"] {
  display: none !important;
}

.box__preview {
  overflow: visible !important;
}

.box__preview > div:not(.box__index):not([class*="border-l"]) {
  line-height: 1.6 !important;
  overflow: visible !important;
  padding-top: 4px !important;
  padding-bottom: 2px !important;
}

.box__preview div:not(.box__index) .stack {
  display: inline-grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
  overflow: visible !important;
  line-height: 1.6 !important;
  height: auto !important;
  min-height: 1.6em !important;
  max-height: none !important;
  vertical-align: middle !important;
  position: relative !important;
  padding-top: 4px !important;
}

.box__preview div:not(.box__index) .stack > div,
.box__preview div:not(.box__index) .stack > * {
  grid-area: 1 / 1 !important;
  overflow: visible !important;
  line-height: 1.6 !important;
  white-space: nowrap !important;
  padding-top: 2px !important;
}

.box__index {
  display: inline-flex !important;
  align-items: baseline !important;
  font-family: 'Cormorant Garamond', 'teodor', Georgia, serif !important;
  font-variant-numeric: tabular-nums lining-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
  line-height: 1.2 !important;
  height: auto !important;
  overflow: visible !important;
  font-size: 3.2rem !important;
}

.box__index .stack {
  display: inline-grid !important;
  overflow: hidden !important;
  line-height: 1.2 !important;
  height: 1.2em !important;
  vertical-align: baseline !important;
  margin: 0 !important;
  padding: 0 !important;
}

.box__index .stack > div {
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 2. Drawer Header Eyebrows & Floor Labels */
.box-content article header div[class*="text-14"],
.box-content article header .text-gold,
.box-content article header .js-fade {
  overflow: visible !important;
  line-height: 1.35 !important;
  padding-top: 0.15em !important;
}

/* 3. Drawer SplitText Titles (.js-title) */
.box-content article .js-title {
  font-family: 'Cormorant Garamond', 'teodor', Georgia, serif !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  margin-bottom: 2rem !important;
}

.box-content article .js-title .overflow-hidden {
  overflow: hidden !important;
  line-height: 1.15 !important;
}

.box-content article .h-trig,
.box-content article div:has(> .h-scale) {
  margin-top: 2.5rem !important;
  clear: both !important;
}

/* Phuong an 1: Tra quyen dieu khien cho GSAP SplitText, chi chan click tren lop text thu 2 */
.btn .btn__content > [aria-hidden="true"],
.btn .btn__content > *:last-child:not(:first-child) {
  pointer-events: none !important;
}

.btn-norm .btn-norm-label__text {
  line-height: 1.25 !important;
  overflow: visible !important;
  padding-top: 0.05em !important;
}

/* 5. General Uppercase Diacritics Safety */
.uppercase.leading-none,
div[class*="uppercase"][class*="leading-none"] {
  line-height: 1.25 !important;
  padding-top: 0.08em !important;
}

/* ==========================================================================
   QUADPLEX 80 SIGNATURE ANIMATIONS & TRANSITIONS (HOÀNG DƯƠNG LAND)
   Curtain Unmask, Smooth Page Transitions, and Luxury Photo Reveals
   ========================================================================== */

/* 1. Fullscreen White Silk Page Transition Mask */
html.hdl-transition-incoming #page-transition-mask {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
html.hdl-transition-incoming #page-transition-mask .page-mask-curtain {
  clip-path: inset(0 0% 0% 0%) !important;
}

/* Chặn triệt để hiện tượng 2 rèm đè nhau: Ẩn mọi menu overlay khi đang chuyển cảnh */
html.hdl-transition-incoming aside[class*="z-8"],
body:has(#page-transition-mask.is-active) aside[class*="z-8"],
body.is-page-transitioning aside[class*="z-8"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#page-transition-mask {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 99999999 !important;
  pointer-events: none;
  overflow: hidden !important;
  display: block !important;
}

#page-transition-mask.is-active {
  pointer-events: auto !important;
}

/* RÈM 1 TOÀN TRANG: Nền Gold #7C7262 + Animation clip-path chuẩn menu */
.page-mask-curtain {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #7C7262 !important;
  will-change: clip-path;
  clip-path: inset(0 0% 0% 0%);
}

/* Logo đỉnh chuẩn tọa độ header của website */
.page-mask-header {
  position: absolute !important;
  top: 2.3rem !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

.page-mask-logo-wrap {
  position: absolute !important;
  top: 0 !important;
  left: 2rem !important;
}

@media (min-width: 650px) {
  .page-mask-logo-wrap {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

/* 2. Modal & Slider Curtain Unmask Preparation */
.pdm-container {
  will-change: clip-path, transform;
}

#project-gallery-slider {
  will-change: clip-path, opacity;
}

.pgs-main-img {
  will-change: opacity;
}

.pdm-lightbox-img {
  will-change: clip-path, transform, opacity;
}

/* ==========================================================================
   NAVIGATION MENU TYPOGRAPHY & DIACRITIC CLIPPING FIX
   Ensure stacked Vietnamese diacritics (Ề, Ố, Ử, etc.) have full headroom
   and are never clipped by overflow: hidden or tight line-height
   ========================================================================== */
.menu-links,
.menu-links li,
.menu-links li > div,
.menu-links li div[class*="overflow-hidden"],
.menu-link,
button.menu-link,
.menu-link.stack,
.menu-link.stack > div {
  overflow: visible !important;
}

.menu-link,
button.menu-link,
.h3.--menu,
.menu-links button,
.menu-links a,
.menu-nav-link {
  font-family: 'teodor', Georgia, serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.35 !important;
  padding-top: 0.25em !important;
  padding-bottom: 0.15em !important;
}

/* ==========================================================================
   TAB 6: TOUR THỰC TẾ ẢO 360° (LUXURY IMMERSIVE VIEWER)
   ========================================================================== */
#pdm-pane-6 {
  padding: 12px 24px 16px;
}

.pdm-tour-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-height: 0;
  gap: 10px;
}

.pdm-tour-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 16px;
  background: #FFFFFF;
  border-radius: 6px;
  border: 1px solid rgba(124, 114, 98, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  flex-shrink: 0;
}

.pdm-tour-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdm-tour-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(124, 114, 98, 0.12);
  color: #7C7262;
  border: 1px solid rgba(124, 114, 98, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pdm-tour-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  letter-spacing: 0.02em;
}

.pdm-tour-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdm-tour-btn-ext {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 4px;
  background: #7C7262;
  color: #FFFFFF !important;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(124, 114, 98, 0.25);
}

.pdm-tour-btn-ext:hover {
  background: #8F8472;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(124, 114, 98, 0.35);
}

.pdm-tour-frame-wrapper {
  flex: 1;
  width: 100%;
  min-height: 0;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(124, 114, 98, 0.2);
  background: #000000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.pdm-tour-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.pdm-tour-loading {
  position: absolute;
  inset: 0;
  background: #111111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #FFFFFF;
  font-size: 13px;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.pdm-tour-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #7C7262;
  border-radius: 50%;
  animation: pdmTourSpin 0.8s linear infinite;
}

@keyframes pdmTourSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  #pdm-pane-6 {
    padding: 8px 10px 10px;
  }
}

@media (max-width: 640px) {
  .pdm-tour-toolbar {
    padding: 6px 10px;
    gap: 6px;
  }
  .pdm-tour-subtitle {
    font-size: 11.5px;
  }
  .pdm-tour-btn-ext {
    padding: 4px 10px;
    font-size: 11px;
  }
}



/* --- Highlight Information List in Drawer (Gold #7C7262, Không Bullet Point, Giãn Cách 1.5rem Chuẩn) --- */
.txt strong,
.txt b,
strong {
  font-weight: 700 !important;
  color: #7C7262 !important;
}

.highlight-heading,
p.highlight-heading {
  font-family: 'Inter', sans, -apple-system, sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.8rem !important;
  line-height: 1.3 !important;
  margin-top: 3rem !important;
  margin-bottom: 1.6rem !important;
  color: #7C7262 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

.highlight-list,
.txt .highlight-list,
div.highlight-list,
ul.highlight-list,
.txt ul.highlight-list,
.txt ul.features-list,
ul.features-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  padding-left: 0 !important;
  margin-top: 1.5rem !important;
  margin-bottom: 2rem !important;
  border-top: none !important;
}

.highlight-item,
.txt .highlight-item,
div.highlight-item,
li.highlight-item,
.txt ul.highlight-list li,
.txt ul.features-list li {
  display: block !important;
  padding-left: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  position: static !important;
  border: none !important;
  border-bottom: none !important;
  background: transparent !important;
  list-style: none !important;
  list-style-type: none !important;
}

.highlight-item::before,
.highlight-item:before,
.highlight-item::after,
.highlight-item:after,
.txt .highlight-item::before,
.txt .highlight-item:before,
.txt div.highlight-item::before,
.txt div.highlight-item:before,
div.highlight-item::before,
div.highlight-item:before,
.txt ul.highlight-list li::before,
.txt ul.highlight-list li:before,
.txt ul.features-list li::before,
.txt ul.features-list li:before,
li.highlight-item::before,
li.highlight-item:before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.highlight-main {
  display: block !important;
  font-family: 'Inter', sans, -apple-system, sans-serif !important;
  font-weight: 700 !important;
  color: #7C7262 !important;
  font-size: 1.65rem !important;
  line-height: 1.35 !important;
  margin: 0 0 0.35rem 0 !important;
  letter-spacing: -0.01em !important;
}

.highlight-sub {
  display: block !important;
  font-family: 'Inter', sans, -apple-system, sans-serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: #7C7262 !important;
  opacity: 0.88 !important;
  font-size: 1.45rem !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

@media (max-width: 649px) {
  .highlight-heading,
  p.highlight-heading {
    font-size: 1.6rem !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.4rem !important;
  }
  .highlight-list,
  .txt .highlight-list,
  div.highlight-list,
  .txt ul.highlight-list,
  .txt ul.features-list,
  ul.highlight-list,
  ul.features-list {
    gap: 1.4rem !important;
  }
  .highlight-item,
  div.highlight-item {
    margin: 0 !important;
  }
  .highlight-main {
    font-size: 1.55rem !important;
  }
  .highlight-sub {
    font-size: 1.35rem !important;
    margin: 0 !important;
  }
}

/* ==========================================================================
   ẨN HOÀN TOÀN MENU PHỤ PHÍA DƯỚI (TRANG CHỦ DỰ ÁN, ĐƠN VỊ PHÁT TRIỂN, THÔNG TIN PHÁP LÝ, SĐT)
   ========================================================================== */
.js-menu-mask nav.absolute.bottom-20,
.js-menu-mask nav[class*="bottom-20"],
.js-menu-mask nav.bottom-20,
aside.z-8 nav.absolute.bottom-20,
aside.z-8 nav[class*="bottom-20"],
aside#menu-overlay nav.absolute.bottom-20,
#menu-overlay nav.absolute.bottom-20,
nav.absolute.bottom-20,
.js-menu-mask a[href^="tel:"],
.js-menu-mask [class*="col-span"] a[href^="tel:"],
aside.z-8 a[href^="tel:"],
aside.z-8 nav a[href^="tel:"],
aside#menu-overlay a[href^="tel:"],
#menu-overlay a[href^="tel:"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Global Object Fit Utilities */
.object-cover {
  -o-object-fit: cover !important;
  object-fit: cover !important;
}
.object-contain {
  -o-object-fit: contain !important;
  object-fit: contain !important;
}

/* ==========================================================================
   GLOBAL BODY & PARAGRAPH TEXT LINE-HEIGHT (1.75 FOR DESKTOP & MOBILE)
   ========================================================================== */
body {
  line-height: 1.75 !important;
}

p,
.txt,
.txt p,
.txt li,
.txt div,
.body-text,
.content-text,
article p,
section p,
.hero-desc,
.statement-body,
.pillar-info p,
.core-values-grid p,
.core-value-card p,
.quote-ribbon p,
.vm-desc,
.value-desc,
.sector-card-desc,
.project-card-desc,
.pdm-form-desc,
.pdm-desc {
  line-height: 1.75 !important;
}

