/* === Shared CSS === */
/* Shared runtime styles used by skin-ui.js and hotspot renderers across themes.
   Theme CSS is appended after this file and may override these defaults. */

/* Shared AddToAny share menu */
.vr-share-menu {
  position: fixed;
  z-index: 9999;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
  pointer-events: auto;
}

.vr-share-menu.hidden {
  display: none;
}

.vr-share-kit {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.vr-share-kit a {
  cursor: pointer;
}

.vr-share-copy-btn {
  width: var(--vr-share-icon-size, 40px);
  height: var(--vr-share-icon-size, 40px);
  border: 0;
  border-radius: 4px !important;
  background: #7f8a99;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  overflow: hidden;
  line-height: 1;
  vertical-align: middle;
  transition: width 0.18s ease, background 0.18s ease;
}

.vr-share-copy-btn svg {
  width: calc(var(--vr-share-icon-size, 40px) * 0.6);
  height: calc(var(--vr-share-icon-size, 40px) * 0.6);
  flex: 0 0 auto;
}

.vr-share-copy-btn span {
  display: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.vr-share-copy-btn.is-copied {
  width: calc(var(--vr-share-icon-size, 40px) + 66px);
  background: #16a34a;
}

.vr-share-copy-btn.is-copied span {
  display: inline;
}

/* Shared mascot base. Theme CSS may override spacing via CSS variables. */
.mascot-wrapper {
  position: fixed;
  right: var(--mascot-right, var(--mascot-edge-x, 24px));
  bottom: var(--mascot-bottom, 24px);
  z-index: var(--mascot-zindex, 18);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: auto;
}

.mascot-wrapper.pos-left,
.mascot-wrapper.pos-bottom-left,
.mascot-wrapper.pos-top-left {
  left: var(--mascot-left, var(--mascot-edge-x, 24px));
  right: auto;
  align-items: flex-start;
}

.mascot-wrapper.pos-right,
.mascot-wrapper.pos-bottom-right,
.mascot-wrapper.pos-top-right {
  left: auto;
  right: var(--mascot-right, var(--mascot-edge-x, 24px));
  align-items: flex-end;
}

.mascot-wrapper.pos-top-left,
.mascot-wrapper.pos-top-right {
  top: var(--mascot-top, 24px);
  bottom: auto;
}

.mascot-wrapper.pos-left,
.mascot-wrapper.pos-right,
.mascot-wrapper.pos-bottom-left,
.mascot-wrapper.pos-bottom-right {
  top: auto;
  bottom: var(--mascot-bottom, 24px);
}

#vr-mascot {
  width: var(--mascot-size, 80px);
  max-width: calc(100vw - (var(--mascot-edge-x, 24px) * 2));
  height: auto;
  cursor: pointer;
  pointer-events: auto;
  opacity: 1;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

#vr-mascot.hidden {
  display: none;
}

#vr-mascot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .mascot-wrapper {
    right: var(--mascot-mobile-right, var(--mascot-right, var(--mascot-mobile-edge-x, 12px)));
    bottom: var(--mascot-mobile-bottom, var(--mascot-bottom, 74px));
    z-index: var(--mascot-zindex-mobile, var(--mascot-zindex, 18));
  }

  .mascot-wrapper.pos-left,
  .mascot-wrapper.pos-bottom-left,
  .mascot-wrapper.pos-top-left {
    left: var(--mascot-mobile-left, var(--mascot-left, var(--mascot-mobile-edge-x, 12px)));
    right: auto;
  }

  .mascot-wrapper.pos-right,
  .mascot-wrapper.pos-bottom-right,
  .mascot-wrapper.pos-top-right {
    left: auto;
    right: var(--mascot-mobile-right, var(--mascot-right, var(--mascot-mobile-edge-x, 12px)));
  }

  .mascot-wrapper.pos-top-left,
  .mascot-wrapper.pos-top-right {
    top: var(--mascot-mobile-top, var(--mascot-top, 74px));
    bottom: auto;
  }

  .mascot-wrapper.pos-left,
  .mascot-wrapper.pos-right,
  .mascot-wrapper.pos-bottom-left,
  .mascot-wrapper.pos-bottom-right {
    top: auto;
    bottom: var(--mascot-mobile-bottom, var(--mascot-bottom, 74px));
  }

  #vr-mascot {
    width: var(--mascot-mobile-size, var(--mascot-size, 80px));
    max-width: calc(100vw - (var(--mascot-mobile-edge-x, 12px) * 2));
  }
}

/* Hotspot base */
.vr-hotspot {
  position: absolute;
  cursor: pointer;
  transform-origin: center center;
}

.vr-hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: var(--radius-sm, 8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
}

.vr-hotspot-tooltip.visible {
  opacity: 1;
}

/* Hotspot: pulse */
.hs-pulse {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hs-pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary, #1a73e8);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
  transition: transform 0.15s;
}

.hs-pulse:hover .hs-pulse-dot {
  transform: scale(1.25);
}

.hs-pulse-ring {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--color-primary, #1a73e8);
  animation: vr-pulse 1.8s ease-out infinite;
  pointer-events: none;
}

@keyframes vr-pulse {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Hotspot: callout */
.hs-callout {
  pointer-events: auto;
}

.hs-callout-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  background: var(--glass-bg, rgba(255, 255, 255, 0.6));
  backdrop-filter: var(--glass-blur, blur(12px));
  -webkit-backdrop-filter: var(--glass-blur, blur(12px));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.35));
  border-radius: 4px;
  color: var(--color-text, #111827);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

.hs-callout:hover .hs-callout-label {
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  transform: scale(1.05);
}

.hs-callout-arrow {
  color: var(--color-primary, #1a73e8);
  flex-shrink: 0;
}

/* Hotspot: circle */
.hs-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hs-circle-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.hs-circle:hover .hs-circle-icon {
  transform: scale(1.12);
  border-color: var(--color-primary, #1a73e8);
  box-shadow: 0 0 12px rgba(26, 115, 232, 0.6);
}

.hs-circle-label {
  font-size: 11px;
  color: #fff;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Hotspot: default fallback */
.hs-default {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hs-default-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent, #facc15);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Location labels (tab Nhan) */
.vr-custom-hs {
  pointer-events: auto;
}

.vr-label {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
  user-select: none;
}

.vr-label-flag {
  position: absolute;
  top: -51px;
  left: 29px;
  padding: 8px 16px;
  background: rgba(11, 168, 129, 0.95);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}

.vr-label-flag:hover {
  transform: rotate(var(--callout-counter-rotation, 0deg)) scale(1.05);
}

.vr-label-callout-visual {
  position: absolute;
  width: 0;
  height: 0;
  inset: 0;
  overflow: visible;
  transform-origin: 0 0;
  pointer-events: none;
}

.vr-label-callout-visual .vr-label-flag {
  transform: var(--callout-counter-rotation, none);
}

.vr-label-callout-visual .vr-label-flag:hover {
  transform: var(--callout-counter-rotation, none) scale(1.05);
}

.vr-label-callout-top {
  transform: none !important;
}

.vr-label-callout-top .vr-label-flag {
  top: -51px;
  left: 0;
  transform: none;
}

.vr-label-callout-top .vr-label-stem {
  top: -51px;
  left: -1px;
  height: 51px;
  transform: none;
}

.vr-label-callout-top .vr-label-elbow {
  display: none;
}

.vr-label-stem {
  position: absolute;
  width: 2px;
  height: 40px;
  top: -40px;
  left: -1px;
  background: rgba(255, 255, 255, 0.85);
  transform: rotate(35deg);
  transform-origin: bottom center;
  border-radius: 2px;
}

.vr-label-elbow {
  position: absolute;
  width: 2px;
  height: 36px;
  top: -51px;
  left: 22px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
}

.vr-label-icon {
  position: absolute;
  width: 24px;
  height: 24px;
  top: -12px;
  left: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
}

.vr-label-badge {
  position: absolute;
  transform: translate(-50%, calc(-100% - 10px));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  cursor: default;
  transition: transform 0.15s;
  letter-spacing: 0.01em;
}

.vr-label-badge:hover {
  transform: translate(-50%, calc(-100% - 10px)) scale(1.05);
}

.vr-label-badge--icon,
.vr-label-badge--custom-icon {
  padding: 4px;
  border-radius: 50%;
}

.vr-label-badge--preview-room {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.vr-label-preview-thumb {
  display: block;
  flex-shrink: 0;
}

.vr-label-badge--label,
.vr-label-badge--name {
  border-radius: 4px;
}

.vr-label-badge-text {
  line-height: 1.2;
}

.vr-label-badge-anchor {
  position: absolute;
  width: 14px;
  height: 14px;
  top: -7px;
  left: -7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

/* ── Shared hotspot PDF viewer ─────────────────────────────────────────── */
.vr-pdf-viewer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  gap: 10px;
}

.vr-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 12px;
  color: var(--color-text, #0f172a);
  font-size: 13px;
}

.vr-pdf-toolbar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vr-pdf-toolbar a {
  flex-shrink: 0;
  color: var(--color-primary, #2563eb);
  font-weight: 600;
  text-decoration: none;
}

.vr-pdf-viewer iframe {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius, 8px);
  background: #fff;
}
/* Native touch scrolling for every skin panel.
 * skin-ui-core.js adds these classes to current and dynamically-created
 * overflow containers so touch gestures do not fall through to Pano2VR. */
.vr-native-scroll-y {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.vr-native-scroll-x {
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.vr-native-scroll-x.vr-native-scroll-y {
  touch-action: pan-x pan-y;
  overscroll-behavior: contain;
}

/* Configurable intro language switcher position. */
.vr-intro-langs.pos-bottom-left,
.vr-intro-langs.pos-bottom-center,
.vr-intro-langs.pos-bottom-right {
  position: fixed;
  bottom: var(--intro-langs-bottom, 10px);
  z-index: 3;
  width: max-content;
  max-width: calc(100vw - 20px);
  margin-top: 0;
}

.vr-intro-langs.pos-bottom-left {
  left: var(--intro-langs-left, 10px);
}

.vr-intro-langs.pos-bottom-center {
  left: 50%;
  transform: translateX(-50%);
}

.vr-intro-langs.pos-bottom-right {
  right: var(--intro-langs-right, 10px);
}

@media (max-width: 600px) {
  .vr-intro-langs.pos-bottom-left,
  .vr-intro-langs.pos-bottom-center,
  .vr-intro-langs.pos-bottom-right {
    bottom: var(--intro-langs-bottom-m, 10px);
  }

  .vr-intro-langs.pos-bottom-left {
    left: var(--intro-langs-left-m, 10px);
  }

  .vr-intro-langs.pos-bottom-right {
    right: var(--intro-langs-right-m, 10px);
  }
}
#vr-skin .vr-secondary-logo {
  position: absolute;
  z-index: 14;
  height: auto;
  max-width: 100%;
  max-height: 40%;
  object-fit: contain;
  pointer-events: none;
}
.vr-intro-langs.has-text-color .vr-intro-lang-btn:not(.active) {
  color: var(--intro-language-text);
}

.vr-intro-langs.has-active-text-color .vr-intro-lang-btn.active {
  color: var(--intro-language-active-text);
}

.vr-intro-langs.has-background .vr-intro-lang-btn:not(.active) {
  background: var(--intro-language-background);
}

.vr-intro-langs.has-active-background .vr-intro-lang-btn.active {
  background: var(--intro-language-active-background);
}


/* === Theme CSS === */
/* VR360 Theme: Real Estate */

#vr-skin.skin-real-estate {
  --re-blue: var(--brand-primary, #075f9d);
  --re-cyan: var(--brand-secondary, #79d5e8);
  --re-gold: var(--brand-accent, #dcae34);
  --re-ink: var(--brand-primary, #074b7f);
  --re-white: rgba(255, 255, 255, 0.94);
  --re-glass: rgba(113, 200, 218, 0.72);
  --re-shadow: 0 18px 48px rgba(0, 59, 96, 0.22);
  --re-control-bg: var(--brand-primary, #075f9d);
  --re-control-bg-soft: color-mix(in srgb, var(--re-control-bg) 78%, white);
  --re-control-bg-hover: var(--brand-accent, #f59e0b);
  --re-control-text: #fff;
  /* Bottom menu giữ màu cố định, không đổi theo Primary/Secondary/Accent. */
  --re-bottom-menu-bg: #075f9d;
  --re-topbar-h: 58px;
  --radius: 10px;
}

/* Hide authored Pano2VR skin UI for this theme. The real-estate overlay below
   owns the navigation. */
/* .vr-real-estate-host > .ggskin:not(.ggdefaulthotspot):not(:where(.vr-re-authored-floorplan, .vr-re-apartment-floorplan)) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
} */

.vr-real-estate-host #hotspottext.ggdefaulthotspot,
.vr-real-estate-host .ggdefaulthotspot {
  display: block;
}

/* Authored location/node hotspots (Pano2VR skinid Hs_info_right_short,
   Hs_Node, ...) render as a "ggskin_hotspot" wrapper div (0x0, positioning
   only) containing nested ggskin_* children (text label, background
   rectangle, lottie icon) that carry the actual visible content and the
   pointer-events:auto that makes them clickable. The blanket hide rule above
   catches the wrapper itself too — its selector ".ggskin:not(.ggdefaulthotspot)"
   has the SAME specificity as ".ggskin_hotspot" alone (both 3 classes once
   :not()'s argument is counted), so a lower-specificity override here would
   lose and display:none on the wrapper would take the whole subtree with it
   regardless of the children's own rules. Match ".ggskin.ggskin_hotspot" (3
   classes) so this rule ties on specificity and wins on source order. */
.vr-real-estate-host .ggskin.ggskin_hotspot,
.vr-real-estate-host .ggskin_hotspot .ggskin {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.vr-real-estate-host > #vr-skin,
.vr-real-estate-host #vr-skin,
.vr-real-estate-host #vr-skin * {
  visibility: visible;
}

#vr-skin.skin-real-estate {
  position: absolute;
  inset: 0;
  font-family: var(--brand-font, Arial, sans-serif);
  color: var(--re-ink);
  pointer-events: none;
  z-index: 20;
}

#vr-skin.skin-real-estate * {
  font-family: inherit;
}

/* Khôi phục font FontAwesome cho icon — tránh bị font-family:inherit đè */
#vr-skin.skin-real-estate i[class*="fa-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Brands", "FontAwesome";
  font-weight: 900;
}

#vr-skin.skin-real-estate i[class*="fa-brands"] {
  font-weight: 400;
}

#vr-skin.skin-real-estate .interactive {
  pointer-events: auto;
}

#vr-skin.skin-real-estate .hidden {
  display: none !important;
}

#vr-skin.skin-real-estate #vr-logo,
#vr-skin.skin-real-estate #vr-navbar,
#vr-skin.skin-real-estate #vr-controls,
#vr-skin.skin-real-estate #vr-category,
#vr-skin.skin-real-estate #vr-infobar {
  display: none !important;
}

#vr-re-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  display: block;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 80;
  pointer-events: none;
}

.vr-re-logo {
  position: fixed;
  top: 22px;
  left: 22px;
  height: auto;
  display: flex;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  pointer-events: auto;
}

.vr-re-logo img {
  max-width: 178px;
  max-height: 110px;
  object-fit: contain;
}

#vr-skin.skin-real-estate.re-apartment-focused .vr-re-logo,
#vr-skin.skin-real-estate.re-apartment-focused #vr-re-top-actions,
#vr-skin.skin-real-estate.re-apartment-focused #vr-re-sidebar,
#vr-skin.skin-real-estate.re-apartment-focused .vr-re-rail,
#vr-skin.skin-real-estate.re-apartment-focused .mascot-wrapper,
body.vr-re-apartment-focused #s4-chat-fab,
body.vr-re-apartment-focused #chat-popup {
  display: none !important;
}

#vr-re-apartment-map-btn {
  height: 40px;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--re-control-bg);
  color: var(--re-control-text);
  box-shadow: 0 8px 20px rgba(126, 52, 10, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

#vr-re-apartment-map-btn.active {
  background: var(--re-control-bg);
}

#vr-re-apartment-map-btn:hover {
  background: var(--re-control-bg-hover);
}

#vr-re-bottom-menu {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  height: 64px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  max-width: calc(100vw - 44px);
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--re-bottom-menu-bg), color-mix(in srgb, var(--re-bottom-menu-bg) 78%, white));
  border: 0;
  box-shadow: 0 18px 46px rgba(0, 48, 86, 0.28);
  backdrop-filter: var(--re-bottom-menu-backdrop, blur(12px) saturate(140%));
  -webkit-backdrop-filter: var(--re-bottom-menu-backdrop, blur(12px) saturate(140%));
  pointer-events: auto;
  z-index: 82;
}

#vr-re-bottom-menu::-webkit-scrollbar {
  display: none;
}

.vr-re-menu-item {
  min-width: 100px;
  height: 100%;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: var(--re-bottom-menu-text, #fff);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

#vr-skin.skin-real-estate .vr-re-menu-item span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
}

.vr-re-menu-item svg {
  width: 16px;
  height: 16px;
  display: block;
}

.vr-re-menu-item i {
  font-size: 16px;
  line-height: 1;
}

.vr-re-menu-img-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  transition: filter 0.16s ease, opacity 0.16s ease;
}

.vr-re-menu-item.active {
  color: var(--re-bottom-menu-active, var(--brand-accent, var(--color-accent, #f59e0b)));
}

.vr-re-menu-item.active span,
.vr-re-menu-item.active i,
.vr-re-menu-item.active svg {
  color: inherit;
}

.vr-re-menu-item.active span {
  font-weight: 500;
  text-decoration: none;
}

.vr-re-menu-item.active .vr-re-menu-img-icon {
  filter: drop-shadow(0 0 5px var(--re-bottom-menu-active, var(--brand-accent, var(--color-accent, #f59e0b))));
  opacity: 1;
}

.vr-re-menu-item:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Màu chữ menu dưới dạng gradient — chỉ áp cho mục chưa active, mục active
   vẫn giữ màu Accent (xem .vr-re-menu-item.active ở trên). Áp cho cả icon
   FontAwesome: glyph thực tế được vẽ ở ::before (do CSS FontAwesome định
   nghĩa content ở đó), nên phải clip trên ::before chứ không phải trên <i>
   — nếu clip trên <i> (rỗng, không có text) icon sẽ biến mất luôn.
   Icon ảnh upload (<img>) và SVG mặc định không áp được kỹ thuật này nên giữ
   nguyên màu hiện tại, không bị vỡ hình. */
#vr-re-bottom-menu.re-menu-text-gradient .vr-re-menu-item:not(.active) span,
#vr-re-bottom-menu.re-menu-text-gradient .vr-re-menu-item:not(.active) i::before {
  background: var(--re-bottom-menu-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Màu chữ khi active dưới dạng gradient — cùng kỹ thuật, chỉ áp cho mục
   đang active. */
#vr-re-bottom-menu.re-menu-active-gradient .vr-re-menu-item.active span,
#vr-re-bottom-menu.re-menu-active-gradient .vr-re-menu-item.active i::before {
  background: var(--re-bottom-menu-active-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#vr-re-node-popup {
  position: absolute;
  z-index: 160;
  width: min(280px, calc(100vw - 32px));
  max-height: 340px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  pointer-events: auto;
}

#vr-re-node-popup.hidden {
  display: none;
}

.vr-re-node-popup-title {
  flex-shrink: 0;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  color: var(--brand-primary, #2563eb);
  font-size: 14px;
  font-weight: 800;
}

.vr-re-node-popup-list {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.vr-re-node-popup-list::-webkit-scrollbar {
  width: 4px;
}

.vr-re-node-popup-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.65);
  border-radius: 2px;
}

.vr-re-node-popup-item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  background: transparent;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.vr-re-node-popup-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-primary, #2563eb);
}

.vr-re-node-popup-item.active {
  background: color-mix(in srgb, var(--brand-primary, #2563eb) 12%, transparent);
  color: var(--brand-primary, #2563eb);
  font-weight: 700;
}

.vr-re-project-name {
  display: none;
  min-width: 0;
  padding: 0 18px;
  color: var(--re-ink);
  font-size: 16px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vr-re-langs {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding-right: 18px;
}

.vr-re-lang {
  border: 0;
  background: transparent;
  color: var(--re-ink);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
}

.vr-re-lang.active {
  color: #fff;
  font-weight: 700;
}

.vr-re-lang + .vr-re-lang {
  border-left: 1px solid rgba(255, 255, 255, 0.58);
  padding-left: 10px;
}

#vr-skin.skin-real-estate #vr-language-dropdown {
  position: fixed;
  z-index: 190;
  min-width: 132px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  pointer-events: auto;
}

#vr-skin.skin-real-estate #vr-language-dropdown .vr-lang-item {
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

#vr-skin.skin-real-estate #vr-language-dropdown .vr-lang-item:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--brand-primary, #2563eb);
}

#vr-skin.skin-real-estate #vr-language-dropdown .vr-lang-item.active {
  background: var(--brand-primary, #2563eb);
  color: #fff;
}

#vr-re-top-actions {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.vr-re-top-btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--re-control-bg);
  color: var(--re-control-text);
  box-shadow: 0 8px 20px rgba(126, 52, 10, 0.22);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.vr-re-top-btn:hover {
  background: var(--re-control-bg-hover);
}

.vr-re-top-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.vr-re-top-img-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.vr-re-top-icon {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: var(--re-control-bg);
  color: var(--re-control-text);
  box-shadow: 0 8px 22px rgba(126, 88, 0, 0.24);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.vr-re-top-icon span {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  display: block;
}

.vr-re-top-icon.active {
  background: var(--re-control-bg-hover);
}

#vr-re-sidebar {
  position: fixed;
  top: 58px;
  right: 10px;
  width: 260px;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 92px);
  z-index: 108;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(7, 95, 157, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(0, 50, 86, 0.26);
  pointer-events: auto;
  transform-origin: top right;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

#vr-skin.skin-real-estate:not(.re-sidebar-open) #vr-re-sidebar {
  transform: scale(0.92) translateY(-8px);
  opacity: 0;
  pointer-events: none;
}

#vr-skin.skin-real-estate:not(.re-sidebar-open) #vr-re-sidebar * {
  pointer-events: none !important;
}

/* Map popup opened from the real-estate top button. */
#vr-skin.skin-real-estate #vr-minimap {
  position: fixed;
  right: 18px;
  bottom: 76px;
  width: min(360px, calc(100vw - 36px));
  height: min(320px, calc(100vh - 130px));
  z-index: 105;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(0, 59, 96, 0.26);
  pointer-events: auto;
  transform: translateX(0);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

#vr-skin.skin-real-estate #vr-minimap.hidden {
  display: block !important;
  opacity: 0;
  pointer-events: none !important;
  transform: translateX(calc(100% + 40px));
}

#vr-skin.skin-real-estate #vr-minimap.hidden * {
  pointer-events: none !important;
}

#vr-skin.skin-real-estate #vr-map-container {
  width: 100%;
  height: 100%;
}

#vr-skin.skin-real-estate .vr-map-backdrop {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
  z-index: 0;
}

#vr-skin.skin-real-estate .vr-map-inner {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
}

#vr-skin.skin-real-estate .vr-map-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1000;
  display: flex;
  gap: 5px;
}

#vr-skin.skin-real-estate .vr-map-controls button {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--re-control-bg);
  color: #fff;
  cursor: pointer;
}

#vr-skin.skin-real-estate .vr-map-controls button:hover {
  background: var(--re-control-bg-hover);
}

#vr-skin.skin-real-estate .vr-map-controls button svg {
  width: 14px;
  height: 14px;
}

#vr-skin.skin-real-estate.map-expanded-open #vr-minimap {
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  z-index: 130;
  transform: none;
}

#vr-skin.skin-real-estate.map-expanded-open .vr-map-inner,
#vr-skin.skin-real-estate.map-expanded-open #vr-map-container,
#vr-skin.skin-real-estate.map-expanded-open .leaflet-container {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0;
}

#vr-skin.skin-real-estate .vr-map-cluster {
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--brand-accent, #f2571a);
  border: 2px solid rgba(255, 255, 255, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

#vr-skin.skin-real-estate .vr-map-cluster-sm { background: rgba(100, 200, 70, 0.92); }
#vr-skin.skin-real-estate .vr-map-cluster-md { background: rgba(240, 185, 0, 0.92); }
#vr-skin.skin-real-estate .vr-map-cluster-lg { background: rgba(220, 75, 55, 0.92); }

#vr-skin.skin-real-estate .vr-map-dot {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid var(--brand-accent, #f2571a);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

#vr-skin.skin-real-estate .vr-map-dot:hover,
#vr-skin.skin-real-estate .vr-map-dot.active {
  background: var(--brand-accent, #f2571a);
  border-color: rgba(255, 255, 255, 0.86);
  transform: scale(1.35);
}

#vr-skin.skin-real-estate .vr-map-wrap {
  position: relative;
}

#vr-skin.skin-real-estate .vr-map-wrap .vr-map-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
}

#vr-skin.skin-real-estate .vr-map-wrap .vr-map-dot:hover,
#vr-skin.skin-real-estate .vr-map-wrap .vr-map-dot.active {
  transform: translate(-50%, -50%) scale(1.35);
}

#vr-skin.skin-real-estate .vr-map-radar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  clip-path: polygon(50% 50%, 15% 0%, 85% 0%);
  background: var(--brand-accent, #f2571a);
  opacity: 0.48;
  transform-origin: 50% 50%;
  display: none;
  pointer-events: none;
  z-index: 1;
}

#vr-skin.skin-real-estate .vr-map-radar.active {
  display: block;
}

#vr-skin.skin-real-estate .vr-map-pin {
  color: rgba(7, 75, 127, 0.9);
  transition: color 0.15s, transform 0.15s;
}

#vr-skin.skin-real-estate .vr-map-pin svg {
  width: 100%;
  height: 100%;
  display: block;
}

#vr-skin.skin-real-estate .vr-map-pin:hover,
#vr-skin.skin-real-estate .vr-map-pin.active {
  color: var(--brand-accent, #f2571a);
  transform: scale(1.2) translateY(-2px);
}

#vr-skin.skin-real-estate .vr-map-img {
  transition: transform 0.15s, filter 0.15s;
}

#vr-skin.skin-real-estate .vr-map-img:hover,
#vr-skin.skin-real-estate .vr-map-img.active {
  transform: scale(1.2) translateY(-2px);
  filter: drop-shadow(0 0 4px var(--brand-accent, #f2571a));
}

#vr-skin.skin-real-estate .vr-map-vn-label {
  background: rgba(201, 33, 39, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

#vr-skin.skin-real-estate #vr-re-map-image-panel {
  position: fixed;
  inset: 0;
  z-index: 175;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
}

#vr-skin.skin-real-estate #vr-re-map-image-panel.hidden {
  display: none !important;
}

#vr-skin.skin-real-estate .vr-re-map-image-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

#vr-skin.skin-real-estate .vr-re-map-image-box {
  position: relative;
  z-index: 1;
  max-width: min(900px, 90vw);
  max-height: min(640px, 80vh);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

#vr-skin.skin-real-estate .vr-re-map-image-box.expanded {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0;
  box-shadow: none;
}

#vr-skin.skin-real-estate .vr-re-map-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  cursor: grab;
}

#vr-skin.skin-real-estate .vr-re-map-image-box.expanded .vr-re-map-image {
  width: 100%;
  height: 100%;
}

#vr-skin.skin-real-estate .vr-re-map-image-box.dragging .vr-re-map-image {
  cursor: grabbing;
}

#vr-skin.skin-real-estate .vr-re-map-image-toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

#vr-skin.skin-real-estate .vr-re-map-image-toolbar .vr-re-map-image-expand,
#vr-skin.skin-real-estate .vr-re-map-image-toolbar .vr-re-map-image-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 42px;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}

#vr-skin.skin-real-estate .vr-re-map-image-toolbar .vr-re-map-image-expand:hover,
#vr-skin.skin-real-estate .vr-re-map-image-toolbar .vr-re-map-image-close:hover {
  background: rgba(0, 0, 0, 0.65);
}

#vr-skin.skin-real-estate .vr-re-map-image-toolbar .vr-re-map-image-close {
  font-size: 26px;
  line-height: 1;
}

#vr-skin.skin-real-estate .vr-re-map-image-zoombar {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  padding: 4px;
}

#vr-skin.skin-real-estate .vr-re-map-zoom-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#vr-skin.skin-real-estate .vr-re-map-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Info modal opened from the real-estate sidebar. */
#vr-skin.skin-real-estate #vr-info-panel {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.18s ease;
}

#vr-skin.skin-real-estate #vr-info-panel.hidden {
  opacity: 0;
  pointer-events: none;
}

#vr-skin.skin-real-estate #vr-info-panel.hidden .vr-modal-box {
  transform: scale(0.96);
}

#vr-skin.skin-real-estate #vr-info-panel.hidden * {
  pointer-events: none !important;
}

#vr-skin.skin-real-estate .vr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  cursor: pointer;
}

#vr-skin.skin-real-estate .vr-modal-box {
  position: relative;
  width: min(680px, calc(100vw - 32px));
  max-height: min(730px, calc(100vh - 72px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.24);
  color: #1f2937;
  pointer-events: auto;
  transition: transform 0.18s ease;
}

#vr-skin.skin-real-estate .vr-modal-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

#vr-skin.skin-real-estate .vr-panel-close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#vr-skin.skin-real-estate .vr-panel-close:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

#vr-skin.skin-real-estate .vr-info-tabs {
  display: flex;
  gap: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  flex-shrink: 0;
}

#vr-skin.skin-real-estate .vr-tab-btn {
  min-height: 40px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 0 16px;
  margin-bottom: -1px;
}

#vr-skin.skin-real-estate .vr-tab-btn.active {
  color: var(--brand-primary, #2563eb);
  border-bottom-color: var(--brand-primary, #2563eb);
}

/* Project info popup layout — follows the editorial frame from the reference. */
#vr-skin.skin-real-estate #vr-info-panel .vr-modal-box {
  width: min(620px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 40px));
  border-radius: 2px;
  background: #fff;
}

#vr-skin.skin-real-estate #vr-info-panel .vr-modal-header {
  min-height: 72px;
  box-sizing: border-box;
  padding: 17px 34px;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#vr-skin.skin-real-estate #vr-info-panel .vr-panel-close {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  box-sizing: border-box;
  padding: 0;
  margin-right: -8px;
  border-radius: 4px;
  font-size: 30px;
  font-weight: 300;
}

#vr-skin.skin-real-estate #vr-info-panel .vr-info-tabs {
  min-height: 64px;
  box-sizing: border-box;
  align-items: flex-end;
  gap: 22px;
  margin: 0 34px;
  padding: 0;
}

#vr-skin.skin-real-estate #vr-info-panel .vr-tab-btn {
  min-height: 52px;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#vr-skin.skin-real-estate #vr-info-panel .vr-modal-body {
  margin-top: 5px;
  padding: 28px 34px 40px;
  background: #fff;
  font-size: 16px;
  line-height: 1.75;
  scrollbar-color: var(--brand-primary, #2563eb) color-mix(in srgb, var(--brand-primary, #2563eb) 18%, white);
  scrollbar-width: thin;
}

#vr-skin.skin-real-estate #vr-info-panel .vr-modal-body::-webkit-scrollbar {
  width: 8px;
}

#vr-skin.skin-real-estate #vr-info-panel .vr-modal-body::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--brand-primary, #2563eb) 18%, white);
  border-radius: 999px;
}

#vr-skin.skin-real-estate #vr-info-panel .vr-modal-body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

#vr-skin.skin-real-estate #vr-info-panel .vr-modal-body::-webkit-scrollbar-thumb {
  background: var(--brand-primary, #2563eb);
  border-radius: 999px;
  border: 0;
}

#vr-skin.skin-real-estate #vr-info-panel #vr-info-text > :first-child {
  margin-top: 0;
}

@media (max-width: 600px) {
  #vr-skin.skin-real-estate #vr-info-panel .vr-modal-box {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  #vr-skin.skin-real-estate #vr-info-panel .vr-modal-header {
    min-height: 62px;
    padding: 13px 20px;
    font-size: 16px;
  }

  #vr-skin.skin-real-estate #vr-info-panel .vr-info-tabs {
    min-height: 56px;
    gap: 18px;
    margin: 0 20px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  #vr-skin.skin-real-estate #vr-info-panel .vr-info-tabs::-webkit-scrollbar {
    display: none;
  }

  #vr-skin.skin-real-estate #vr-info-panel .vr-tab-btn {
    min-height: 46px;
    font-size: 13px;
    white-space: nowrap;
  }

  #vr-skin.skin-real-estate #vr-info-panel .vr-modal-body {
    padding: 22px 20px 30px;
    font-size: 15px;
  }
}

#vr-skin.skin-real-estate .vr-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 10px 10px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.75;
}

#vr-skin.skin-real-estate .vr-modal-body::-webkit-scrollbar {
  width: 6px;
}

#vr-skin.skin-real-estate .vr-modal-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 3px;
}

#vr-skin.skin-real-estate .vr-tab-pane {
  display: none;
}

#vr-skin.skin-real-estate .vr-tab-pane.active {
  display: block;
}

/* Video tab: iframe/video có sẵn không có width/height attr → mặc định trình
   duyệt render nhỏ (300x150). Ép full-width + tỉ lệ 16:9 để video chính
   (1 video) hiển thị to, và video đang phát trong chế độ multi-video cũng vậy. */
#vr-skin.skin-real-estate #vr-info-video iframe,
#vr-skin.skin-real-estate #vr-info-video video.vr-video-player,
#vr-skin.skin-real-estate #vr-video-player-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #000;
}

#vr-skin.skin-real-estate #vr-info-text p,
#vr-skin.skin-real-estate #vr-info-text ul,
#vr-skin.skin-real-estate #vr-info-text ol {
  margin: 0 0 14px;
}

#vr-skin.skin-real-estate #vr-info-text h2,
#vr-skin.skin-real-estate #vr-info-text h3,
#vr-skin.skin-real-estate #vr-info-text h4 {
  margin: 18px 0 10px;
  color: #111827;
  font-weight: 700;
}

#vr-skin.skin-real-estate .vr-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#vr-skin.skin-real-estate .vr-gallery-grid.active {
  display: grid;
}

#vr-skin.skin-real-estate .vr-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.vr-hs-apartment-popup {
  color: #0f172a;
  --re-floorplan-primary: var(--brand-primary, #075f9d);
  --re-floorplan-secondary: var(--brand-secondary, #2f88bd);
  --re-floorplan-accent: var(--brand-accent, #f5a524);
}

.vr-re-floorplan-popup-body {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  background: #fff;
}

.vr-re-floorplan-aside {
  position: relative;
  width: min(380px, 25vw);
  min-width: 290px;
  height: 100%;
  flex-shrink: 0;
  padding: 22px 26px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(160deg,
      color-mix(in srgb, var(--re-floorplan-primary) 94%, #000 6%) 0%,
      color-mix(in srgb, var(--re-floorplan-secondary) 82%, var(--re-floorplan-primary)) 58%,
      color-mix(in srgb, var(--re-floorplan-accent) 52%, var(--re-floorplan-secondary)) 100%);
  color: #fff;
  box-shadow: 10px 0 28px rgba(15, 23, 42, 0.14);
}

.vr-re-floorplan-aside-header {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 32px;
}

.vr-re-floorplan-aside-header h2 {
  min-width: 0;
  flex: 1;
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.18;
  text-transform: uppercase;
  letter-spacing: 0;
  word-break: break-word;
}

.vr-re-floorplan-back {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background 0.15s ease, transform 0.15s ease;
}

.vr-re-floorplan-back svg {
  width: 16px;
  height: 16px;
  display: block;
}

.vr-re-floorplan-back:hover {
  background: rgba(255, 255, 255, 0.26);
}

.vr-re-floorplan-info {
  min-height: 0;
  flex: 1;
  margin-top: 0;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}

.vr-re-floorplan-info h2 {
  display: none;
}

.vr-re-floorplan-info-title {
  display: none;
}

.vr-re-floorplan-desc {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.vr-re-floorplan-desc p,
.vr-re-floorplan-desc div,
.vr-re-floorplan-desc h2,
.vr-re-floorplan-desc h3 {
  margin: 0 0 10px;
  color: inherit;
}

.vr-re-floorplan-main {
  position: relative;
  min-width: 0;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, #fff 96%, var(--re-floorplan-secondary));
}

.vr-re-floorplan-tabs {
  position: relative;
  height: 62px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  gap: clamp(24px, 6vw, 92px);
  align-items: stretch;
  padding: 0 58px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: none;
  z-index: 1;
}

.vr-re-floorplan-tabs.is-single {
  gap: 0;
}

.vr-re-floorplan-tab {
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--re-floorplan-primary) 72%, #64748b);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}

.vr-re-floorplan-tab svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.vr-re-floorplan-close {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 36px;
  height: 36px;
  transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #475569;
  cursor: pointer;
  z-index: 4;
}

.vr-re-floorplan-close:hover { background: #f1f5f9; color: #0f172a; }
.vr-re-floorplan-close svg { width: 18px; height: 18px; }

.vr-re-floorplan-tab:hover {
  background: color-mix(in srgb, var(--re-floorplan-secondary) 8%, transparent);
}

.vr-re-floorplan-tab.active {
  color: var(--re-floorplan-accent);
}

.vr-re-floorplan-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--re-floorplan-primary), var(--re-floorplan-accent));
}

.vr-re-floorplan-content {
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.vr-re-floorplan-pane {
  width: 100%;
  height: 100%;
  display: none;
  overflow-y: auto;
  scrollbar-width: thin;
}

.vr-re-floorplan-pane.active {
  display: block;
}

.vr-re-floorplan-viewer {
  width: 100%; height: 100%; min-height: 0;
  display: flex; flex-direction: column; overflow: hidden; background: #fff;
}
.vr-re-floorplan-viewer:fullscreen { background: #fff; }
.vr-re-floorplan-viewer.is-single .vr-re-floorplan-thumbnails { display: none; }
.vr-re-floorplan-viewer.is-single .vr-re-floorplan-stage {
  padding: clamp(20px, 4vh, 48px) clamp(58px, 7vw, 110px);
}
.vr-re-floorplan-stage {
  position: relative; min-height: 0; flex: 1;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: clamp(20px, 4vh, 48px) clamp(58px, 7vw, 110px) 16px;
  box-sizing: border-box; background: #fff;
}
.vr-re-floorplan-main-image {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transform-origin: center; transition: transform 0.16s ease; cursor: zoom-in;
}
.vr-re-floorplan-tools {
  position: absolute; top: 70px; right: 22px; z-index: 2;
  display: flex; flex-direction: column; gap: 7px;
}
.vr-re-floorplan-active-label {
  width: min(760px, calc(100% - 48px));
  min-height: 20px;
  margin: 2px auto 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--re-floorplan-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}
.vr-re-floorplan-tool {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border: 1px solid #e2e8f0; border-radius: 7px;
  background: rgba(255,255,255,.96); color: #334155;
  box-shadow: 0 2px 8px rgba(15,23,42,.08); font-size: 23px; line-height: 1; cursor: pointer;
}
.vr-re-floorplan-tool:last-child { margin-top: 6px; font-size: 19px; }
.vr-re-floorplan-tool:hover:not(:disabled) { border-color: var(--re-floorplan-primary); color: var(--re-floorplan-primary); }
.vr-re-floorplan-tool:disabled { opacity: .38; cursor: default; }
.vr-re-floorplan-thumbnails {
  min-height: 112px; flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: center;
  gap: 18px; overflow-x: auto; padding: 12px 24px 18px; box-sizing: border-box; scrollbar-width: thin;
}
.vr-re-floorplan-thumbnail {
  width: 154px; flex: 0 0 154px; display: flex; flex-direction: column; gap: 7px;
  padding: 7px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff;
  color: #475569; font: inherit; font-size: 12px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.vr-re-floorplan-thumbnail img { width: 100%; height: 64px; display: block; object-fit: contain; }
.vr-re-floorplan-thumbnail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-re-floorplan-thumbnail.active {
  border-color: var(--re-floorplan-primary); box-shadow: 0 0 0 1px var(--re-floorplan-primary);
  color: var(--re-floorplan-primary); font-weight: 700;
}

.vr-re-floorplan-image-pair {
  width: 100%;
  min-height: 100%;
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 82px);
  padding: clamp(34px, 8vh, 92px) clamp(42px, 7vw, 126px);
  box-sizing: border-box;
}

.vr-re-floorplan-image-pair.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.vr-re-floorplan-image-cell,
.vr-re-floorplan-gallery-item {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.vr-re-floorplan-image-cell {
  position: relative;
  min-width: 0;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  padding: 16px;
  outline: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, outline-color 0.16s ease;
}

.vr-re-floorplan-image-cell:hover {
  transform: translateY(-2px);
  outline-color: color-mix(in srgb, var(--re-floorplan-secondary) 36%, transparent);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.vr-re-floorplan-image-cell img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.vr-re-floorplan-gallery-grid {
  height: 100%;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  align-content: start;
  gap: 18px;
  padding: 34px;
  box-sizing: border-box;
}

.vr-re-floorplan-gallery-grid.is-single {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(20px, 4vh, 48px) clamp(24px, 5vw, 80px);
}

.vr-re-floorplan-gallery-grid.is-single .vr-re-floorplan-gallery-item {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
}

.vr-re-floorplan-gallery-grid.is-single .vr-re-floorplan-gallery-item img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 10px;
}

.vr-re-floorplan-gallery-item {
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.vr-re-floorplan-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.vr-re-floorplan-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--re-floorplan-primary) 54%, #64748b);
  font-size: 15px;
  border: 1px dashed color-mix(in srgb, var(--re-floorplan-secondary) 34%, #cbd5e1);
  border-radius: 16px;
  background: color-mix(in srgb, #fff 88%, var(--re-floorplan-secondary));
  padding: 18px;
  min-height: 180px;
}

/* ── Bố cục "Tab cạnh bên" (sideTabs): thẻ như tay cầm gắn liền mép aside, cạnh trong vuông, cạnh ngoài bo nhẹ ── */
.vr-re-floorplan-tabs--side {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 3;
}

.vr-re-floorplan-tabs--side .vr-re-floorplan-tab {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  min-width: 92px;
  padding: 12px 18px;
  border-radius: 0 10px 10px 0;
  background: #fff;
  color: color-mix(in srgb, var(--re-floorplan-primary) 82%, #1f2937);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.vr-re-floorplan-tabs--side .vr-re-floorplan-tab:hover {
  background: #f8fafc;
}

.vr-re-floorplan-tabs--side .vr-re-floorplan-tab.active {
  background: var(--re-floorplan-primary);
  color: #fff;
}

.vr-re-floorplan-tabs--side .vr-re-floorplan-tab.active::after {
  content: none;
}

.vr-re-floorplan-layout-side .vr-re-floorplan-close {
  position: absolute;
  top: 14px;
  right: 14px;
  transform: none;
  z-index: 4;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.vr-re-floorplan-layout-side .vr-re-floorplan-stage {
  padding: 20px 64px 12px;
}

.vr-re-floorplan-layout-side .vr-re-floorplan-image-pair {
  height: 100%;
  overflow-y: auto;
  grid-auto-rows: minmax(260px, 1fr);
  padding: 14px;
  gap: 14px;
}

.vr-re-floorplan-layout-side .vr-re-floorplan-image-cell {
  height: 100%;
  min-height: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.vr-re-floorplan-layout-side .vr-re-floorplan-image-cell:hover {
  transform: none;
  box-shadow: none;
  outline-color: transparent;
}

.vr-re-floorplan-layout-side .vr-re-floorplan-image-cell img {
  max-height: 100%;
  height: 100%;
  width: 100%;
}

#vr-re-sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.vr-re-sidebar-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--re-control-bg);
  cursor: pointer;
  margin: 2px 8px;
  padding: 8px 16px;
  text-align: left;
}

.vr-re-sidebar-link:hover {
  background: rgba(242, 87, 26, 0.08);
}

.vr-re-sidebar-link.active {
  background: rgba(242, 87, 26, 0.12);
  font-weight: 700;
}

.vr-re-sidebar-link.active .vr-re-sidebar-link-label {
  font-weight: 700;
}

.vr-re-sidebar-link-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vr-re-sidebar-link-icon svg {
  width: 18px;
  height: 18px;
}

.vr-re-action-img-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.vr-re-sidebar-link-label {
  color: var(--re-control-bg);
  font-size: 14px;
  font-weight: 500;
}

.vr-re-floorplan-image-label {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 1;
  overflow: hidden;
  padding: 7px 11px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.74);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

/* Right action menu: mirror the compact, icon-only treatment of the left rail. */
#vr-re-sidebar {
  width: 42px;
  max-width: none;
  max-height: calc(100vh - 110px);
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#vr-re-sidebar-nav {
  gap: 8px;
  padding: 0;
}

.vr-re-sidebar-link {
  width: 42px;
  min-height: 42px;
  height: 42px;
  justify-content: center;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--re-control-bg-soft);
  color: var(--re-control-text);
  box-shadow: 0 10px 24px rgba(0, 84, 134, 0.22);
}

.vr-re-sidebar-link:hover,
.vr-re-sidebar-link.active {
  background: var(--re-control-bg-hover);
}

.vr-re-sidebar-link-icon,
.vr-re-sidebar-link-icon svg {
  width: 21px;
  height: 21px;
}

.vr-re-sidebar-link-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.vr-re-top-icon.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.vr-re-top-icon.active span:nth-child(2) {
  opacity: 0;
}

.vr-re-top-icon.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.vr-re-top-icon span {
  transition: transform 0.16s ease, opacity 0.16s ease;
}

#vr-skin.skin-real-estate .vr-re-qr-box {
  width: min(340px, calc(100vw - 32px));
}

#vr-skin.skin-real-estate #vr-re-qr-panel {
  position: fixed;
  inset: 0;
  z-index: 172;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.18s ease;
}

#vr-skin.skin-real-estate #vr-re-qr-panel.hidden {
  opacity: 0;
  pointer-events: none;
}

#vr-skin.skin-real-estate #vr-re-qr-panel.hidden .vr-modal-box {
  transform: scale(0.96);
}

#vr-skin.skin-real-estate #vr-re-qr-panel.hidden * {
  pointer-events: none !important;
}

#vr-skin.skin-real-estate .vr-re-qr-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 18px;
}

#vr-skin.skin-real-estate .vr-re-qr-image {
  width: min(230px, 70vw);
  height: auto;
  object-fit: contain;
  display: block;
}

#vr-skin.skin-real-estate .vr-re-qr-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  flex-wrap: wrap;
}

#vr-skin.skin-real-estate .vr-re-qr-download,
#vr-skin.skin-real-estate .vr-re-qr-open {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  color: var(--re-control-bg);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

#vr-skin.skin-real-estate .vr-re-qr-open {
  background: var(--re-control-bg);
  border-color: var(--re-control-bg);
  color: #fff;
}

#vr-skin.skin-real-estate .vr-re-qr-box .vr-modal-header {
  min-height: 44px;
  padding: 8px 10px 4px;
}

#vr-skin.skin-real-estate .vr-re-qr-download:hover,
#vr-skin.skin-real-estate .vr-re-qr-open:hover {
  transform: translateY(-1px);
}

#vr-skin.skin-real-estate .mascot-wrapper {
  --mascot-edge-x: 20px;
  --mascot-bottom: 26px;
  --mascot-top: 78px;
  --mascot-mobile-edge-x: 12px;
  --mascot-mobile-bottom: 84px;
  --mascot-mobile-top: 64px;
}

.vr-re-rail {
  position: fixed;
  z-index: 78;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

.vr-re-rail-right {
  top: 10px;
  right: 10px;
}

.vr-re-rail-left {
  left: 20px;
  bottom: 26px;
  top: auto;
  transform: none;
  flex-direction: column-reverse;
}

.vr-re-rail-toggle,
.vr-re-rail-item {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--re-control-bg);
  color: var(--re-control-text);
  box-shadow: 0 10px 24px rgba(0, 84, 134, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.vr-re-rail-toggle {
  position: relative;
}

.vr-re-rail-item {
  background: var(--re-control-bg-soft);
}

.vr-re-rail-left .vr-re-rail-toggle,
.vr-re-rail-left .vr-re-rail-item {
  border-radius: 50%;
}

.vr-re-rail-toggle svg,
.vr-re-rail-item svg {
  display: block;
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
}

.vr-re-rail-item-facebook svg {
  width: 26px;
  height: 26px;
  transform: translateY(-2px);
}

.vr-re-rail-toggle-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.vr-re-rail-toggle-icon-close {
  opacity: 0;
  transform: scale(0.78) rotate(-45deg);
}

.vr-re-rail.is-open .vr-re-rail-toggle-icon-open {
  opacity: 0;
  transform: scale(0.78) rotate(45deg);
}

.vr-re-rail.is-open .vr-re-rail-toggle-icon-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

@media (hover: hover) and (pointer: fine) {
  .vr-re-rail-toggle:hover,
  .vr-re-rail-item:hover {
    background: var(--re-control-bg-hover);
  }
}

.vr-re-rail.is-open .vr-re-rail-toggle {
  background: var(--re-control-bg-hover);
}

.vr-re-rail-toggle {
  gap: 3px;
}

.vr-re-rail-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  opacity: 0;
  transform: scaleY(0.8);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vr-re-rail-left .vr-re-rail-items {
  flex-direction: column;
  transform-origin: bottom center;
}

.vr-re-rail.is-open .vr-re-rail-items {
  opacity: 1;
  transform: scaleY(1);
  pointer-events: auto;
}

.vr-re-rail-item span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.vr-re-icon-fallback {
  font-size: 16px;
  font-weight: 700;
}

#vr-re-panel {
  position: fixed;
  z-index: 76;
  pointer-events: auto;
}

#vr-re-panel.hidden {
  display: none;
}

#vr-re-apartment-info {
  position: fixed;
  z-index: 74;
  max-width: min(310px, calc(100vw - 28px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #52705c;
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

#vr-re-apartment-info.hidden {
  display: none;
}

#vr-re-apartment-info[data-position="top-left"] {
  top: 18px;
  left: 8px;
}

#vr-re-apartment-info[data-position="top-right"] {
  top: 18px;
  right: 8px;
}

#vr-re-apartment-info[data-position="bottom-left"] {
  bottom: 84px;
  left: 8px;
}

#vr-re-apartment-info[data-position="bottom-right"] {
  right: 8px;
  bottom: 84px;
}

.vr-re-apartment-info-content {
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
}

.vr-re-apartment-info-content strong:first-child {
  font-size: 15px;
  line-height: 1.35;
}

.vr-re-apartment-info-content p,
.vr-re-apartment-info-content h2,
.vr-re-apartment-info-content h3,
.vr-re-apartment-info-content h4,
.vr-re-apartment-info-content ul,
.vr-re-apartment-info-content ol {
  margin: 0;
}

.vr-re-apartment-info-content ul,
.vr-re-apartment-info-content ol {
  padding-left: 18px;
}

.vr-re-apartment-info-content a {
  color: inherit;
  text-decoration: underline;
}

#vr-re-panel[data-panel-display="side"] {
  top: 156px;
  right: 0;
  width: min(380px, 38vw);
  bottom: 156px;
}

#vr-re-panel[data-panel-display="center"] {
  inset: var(--re-topbar-h) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 32, 54, 0.56);
}

.vr-re-panel-box {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 26px 38px 34px;
  background: linear-gradient(160deg, rgba(252, 132, 55, 0.96), rgba(219, 113, 194, 0.9) 52%, rgba(90, 190, 230, 0.95));
  color: #fff;
  box-shadow: var(--re-shadow);
  overflow: auto;
}

#vr-re-panel[data-panel-display="side"] .vr-re-panel-box {
  border-radius: 0;
}

#vr-re-panel[data-panel-display="center"] .vr-re-panel-box {
  width: min(960px, calc(100vw - 48px));
  height: auto;
  max-height: min(640px, calc(100vh - 116px));
    border-radius: var(--radius);
}

#vr-re-panel[data-panel-name="apartments"][data-panel-display="center"] {
  inset: 0;
  z-index: 180;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(2px);
}

#vr-re-panel[data-panel-name="apartments"][data-panel-display="center"] .vr-re-panel-box {
  width: min(1060px, calc(100vw - 48px));
  max-height: min(680px, calc(100vh - 148px));
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.92);
  color: #1f2937;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

#vr-re-panel[data-panel-name="apartments"] .vr-re-panel-close {
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #64748b;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#vr-re-panel[data-panel-name="apartments"] .vr-re-panel-close:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

#vr-re-panel[data-panel-name="apartments"] .vr-re-panel-title {
  flex: 0 0 auto;
  color: #0f172a;
  font-size: 22px;
  letter-spacing: 0.02em;
  margin: 0 48px 18px;
}

#vr-re-panel[data-panel-name="apartments"] .vr-re-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 2px 2px;
  scrollbar-width: thin;
}

.vr-re-panel-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--re-ink);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

#vr-re-panel-reopen {
  position: fixed;
  top: 70px;
  right: 0;
  width: 40px;
  height: 58px;
  border: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: color-mix(in srgb, var(--brand-primary, #075f9d) 82%, transparent);
  color: #fff;
  cursor: pointer;
  z-index: 75;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: -4px 8px 20px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s;
}

#vr-re-panel-reopen::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: translate(calc(-50% + 4px), -50%) rotate(45deg);
}

#vr-re-panel-reopen:hover {
  background: var(--brand-accent, #f59e0b);
}

#vr-re-panel-reopen.hidden {
  display: none;
}

.vr-re-panel-title {
  color: var(--re-ink);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin: 14px 0 26px;
}

#vr-re-panel[data-panel-display="side"] .vr-re-panel-title {
  color: #fff;
  font-size: 22px;
  text-align: left;
  margin-top: 0;
}

.vr-re-amenity-group + .vr-re-amenity-group {
  margin-top: 26px;
}

.vr-re-amenity-group h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.vr-re-amenity-list,
.vr-re-node-child-list {
  display: grid;
  gap: 12px;
}

.vr-re-amenity-item,
.vr-re-node-child {
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
}

.vr-re-empty {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] {
  top: 70px;
  right: 12px;
  bottom: auto;
  width: min(300px, calc(100vw - 32px));
  z-index: 130;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-box {
  height: auto;
  max-height: calc(100vh - 110px);
  padding: 18px 18px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand-primary, #075f9d) 88%, transparent);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-close {
  top: 12px;
  right: 12px;
  left: auto;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  box-shadow: none;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-close::before {
  display: none;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-title {
  flex: 0 0 auto;
  color: #fff;
  margin: 2px 42px 16px 0;
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(153, 231, 220, 0.38) rgba(255, 255, 255, 0.05);
  scrollbar-gutter: stable;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-body::-webkit-scrollbar {
  width: 6px;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-body::-webkit-scrollbar-thumb {
  min-height: 44px;
  background: rgba(153, 231, 220, 0.38);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-body::-webkit-scrollbar-thumb:hover {
  background: rgba(153, 231, 220, 0.56);
  background-clip: padding-box;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-group + .vr-re-amenity-group {
  margin-top: 22px;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-group h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-list {
  gap: 8px;
}

/* Chế độ menu 2 cấp: nhóm là nút bấm để mở/đóng, danh sách ẩn đến khi nhóm .open */
#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenities-accordion .vr-re-amenity-group + .vr-re-amenity-group {
  margin-top: 8px;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 10px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-group-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-group-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-group-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-group.open .vr-re-amenity-group-chevron {
  transform: rotate(180deg);
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenities-accordion .vr-re-amenity-group .vr-re-amenity-list {
  display: none;
  margin-top: 8px;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenities-accordion .vr-re-amenity-group.open .vr-re-amenity-list {
  display: grid;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-item {
  min-height: 42px;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-item.active {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.82);
}

/* ── Floorplan panel (side) — glassmorphism giống amenities ── */
#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] {
  top: 70px;
  right: 12px;
  bottom: auto;
  width: min(300px, calc(100vw - 32px));
  z-index: 130;
}

#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-panel-box {
  height: auto;
  max-height: calc(100vh - 110px);
  padding: 18px 18px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand-primary, #075f9d) 88%, transparent);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-panel-close {
  top: 12px;
  right: 12px;
  left: auto;
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  box-shadow: none;
}

#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-panel-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-panel-close::before {
  display: none;
}

#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-panel-title {
  flex: 0 0 auto;
  color: #fff;
  margin: 2px 42px 16px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0;
}

#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}

/* Floorplan items (tòa nhà & tầng) — giống amenity items */
#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-node-child-list {
  gap: 8px;
  display: grid;
}

#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-node-child {
  min-height: 42px;
  gap: 0;
  padding: 9px 16px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-node-child:hover {
  background: rgba(255, 255, 255, 0.12);
}

#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-node-child.active {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.82);
}

/* Back button trong title floorplan */
#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-floorplan-back-btn {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-floorplan-back-btn svg {
  width: 21px;
  height: 21px;
  display: block;
}

#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-floorplan-back-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}

#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-floorplan-building-name {
  min-width: 0;
  word-break: break-word;
}

/* Empty state trong floorplan */
#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-empty {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 4px 8px;
}

.vr-re-apartment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  justify-items: stretch;
}

.vr-re-apartment-card {
  position: relative;
  width: 100%;
  min-height: 172px;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.vr-re-apartment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
}

.vr-re-apartment-card img,
.vr-re-apartment-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255,255,255,0.26), rgba(255,255,255,0.08));
}

.vr-re-apartment-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(15, 23, 42, 0.52) 0%, rgba(15, 23, 42, 0.34) 34%, rgba(15, 23, 42, 0.12) 68%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.22));
}

.vr-re-apartment-card span:last-child {
  position: relative;
  z-index: 1;
  min-height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

@media (max-width: 900px) {
  :root {
    --re-topbar-h: 54px;
  }

  .vr-re-logo {
    top: 14px;
    left: 14px;
  }

  .vr-re-logo img {
    max-width: 82px;
  }

  .vr-re-project-name {
    display: none;
  }

  .vr-re-menu-item {
    min-width: 58px;
    padding: 0 5px;
    font-size: 14px;
  }

  #vr-re-bottom-menu[data-mobile-label-mode="active"] .vr-re-menu-item:not(.active),
  #vr-re-bottom-menu[data-mobile-label-mode="icon"] .vr-re-menu-item {
    min-width: 44px;
    padding-inline: 10px;
    gap: 0;
  }

  /* Giữ nhãn bị ẩn trong accessibility tree thay vì display:none. */
  #vr-re-bottom-menu[data-mobile-label-mode="active"] .vr-re-menu-item:not(.active) span,
  #vr-re-bottom-menu[data-mobile-label-mode="icon"] .vr-re-menu-item span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #vr-re-bottom-menu[data-mobile-label-mode="active"] .vr-re-menu-item.active {
    min-width: 86px;
    padding-inline: 10px;
  }

  #vr-re-bottom-menu[data-mobile-label-mode="active"] .vr-re-menu-item.active span {
    display: block;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    line-height: 1.15;
    white-space: nowrap;
  }

  #vr-re-bottom-menu {
    height: 58px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
    justify-content: center;
  }

  #vr-re-top-actions {
    top: 8px;
    right: 8px;
    gap: 5px;
  }

  .vr-re-floorplan-popup-body {
    flex-direction: column;
  }

  .vr-re-floorplan-aside {
    display: contents;
  }

  .vr-re-floorplan-aside-header {
    order: 1;
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 14px 18px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--re-floorplan-aside-custom,
      linear-gradient(160deg,
        color-mix(in srgb, var(--re-floorplan-primary) 94%, #000 6%) 0%,
        color-mix(in srgb, var(--re-floorplan-secondary) 82%, var(--re-floorplan-primary)) 58%,
        color-mix(in srgb, var(--re-floorplan-accent) 52%, var(--re-floorplan-secondary)) 100%));
    color: #fff;
  }

  .vr-re-floorplan-main {
    order: 2;
    flex: 6;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .vr-re-floorplan-info {
    order: 3;
    width: 100%;
    flex: 4;
    min-height: 0;
    padding: 14px 18px 18px;
    box-sizing: border-box;
    overflow-y: auto;
    background: #fff;
    color: #0f172a;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .vr-re-floorplan-info h2,
  .vr-re-floorplan-info h3,
  .vr-re-floorplan-info p,
  .vr-re-floorplan-info div,
  .vr-re-floorplan-desc,
  .vr-re-floorplan-desc * {
    color: inherit !important;
  }

  .vr-re-floorplan-aside-header h2 {
    margin: 0;
    font-size: 22px;
  }

  .vr-re-floorplan-back {
    position: static;
    width: 30px;
    height: 30px;
  }

  .vr-re-floorplan-back svg {
    width: 15px;
    height: 15px;
  }

  .vr-re-floorplan-info h2 {
    display: none;
  }

  .vr-re-floorplan-info-title {
    display: block;
    margin: 0 0 10px;
    color: var(--re-floorplan-primary) !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
  }

  .vr-re-floorplan-desc {
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
  }

  .vr-re-floorplan-tabs {
    height: 52px;
  }

  .vr-re-floorplan-tab {
    font-size: 17px;
  }

  .vr-re-floorplan-content {
    overflow: hidden;
  }

  .vr-re-floorplan-pane {
    height: 100%;
    overflow-y: auto;
  }

  .vr-re-floorplan-gallery-grid {
    height: auto;
  }

  .vr-re-floorplan-image-pair {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
    align-items: start;
  }

  .vr-re-floorplan-image-cell img {
    max-height: none;
  }

  .vr-re-floorplan-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    padding: 18px;
  }

  /* Bố cục "Tab cạnh bên" (thẻ nổi) chỉ áp dụng cho màn rộng — mobile luôn dùng lại giao diện mặc định (tab full-width trên đầu) */
  .vr-re-floorplan-tabs--side {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    height: 52px;
    flex-direction: row;
    gap: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  }

  .vr-re-floorplan-tabs--side.is-single {
    grid-template-columns: 1fr;
  }

  .vr-re-floorplan-tabs--side .vr-re-floorplan-tab {
    width: 100%;
    height: 100%;
    flex-direction: row;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: color-mix(in srgb, var(--re-floorplan-primary) 72%, #64748b);
    font-size: 17px;
  }

  .vr-re-floorplan-tabs--side .vr-re-floorplan-tab:hover {
    transform: none;
  }

  .vr-re-floorplan-tabs--side .vr-re-floorplan-tab.active {
    background: transparent;
    color: var(--re-floorplan-primary);
  }

  .vr-re-floorplan-tabs--side .vr-re-floorplan-tab.active::after {
    content: "";
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: auto;
    height: 3px;
    border-radius: 999px 999px 0 0;
  }

  .vr-re-floorplan-layout-side .vr-re-floorplan-image-pair {
    height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .vr-re-floorplan-layout-side .vr-re-floorplan-image-cell {
    height: auto;
  }

.vr-re-floorplan-layout-side .vr-re-floorplan-image-cell img {
    max-height: none;
    height: auto;
  }

  .vr-re-top-btn {
    width: 40px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius);
  }

  .vr-re-top-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .vr-re-top-icon {
    width: 40px;
    height: 40px;
  }

  #vr-re-sidebar {
    top: 54px;
    right: 8px;
    width: 42px;
  }

  .vr-re-rail-left {
    left: 14px;
    bottom: 84px;
    top: auto;
  }

  #vr-re-panel[data-panel-display="side"] {
    top: var(--re-topbar-h);
    right: 0;
    left: 0;
    width: auto;
    bottom: 0;
  }

  #vr-re-panel[data-panel-name="amenities"][data-panel-display="side"],
  #vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] {
    top: 70px;
    left: auto;
    right: 10px;
    bottom: auto;
    width: min(300px, calc(100vw - 20px));
  }

  #vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-box,
  #vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-panel-box {
    max-height: calc(100vh - 94px);
    padding: 18px;
  }

  #vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-body,
  #vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-panel-body {
    max-height: none;
  }

  #vr-re-panel[data-panel-display="center"] .vr-re-panel-box {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 90px);
    padding: 24px 18px 28px;
  }

  #vr-re-panel[data-panel-name="apartments"][data-panel-display="center"] {
    padding: 68px 14px 24px;
    box-sizing: border-box;
  }

  #vr-re-panel[data-panel-name="apartments"][data-panel-display="center"] .vr-re-panel-box {
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 20px 18px 18px;
  }

  #vr-re-panel[data-panel-name="apartments"] .vr-re-panel-title {
    margin: 0 44px 16px;
    font-size: 21px;
  }

  #vr-skin.skin-real-estate .vr-re-map-image-box {
    max-width: 88vw;
    max-height: 70vh;
  }

  #vr-skin.skin-real-estate .vr-re-map-image-toolbar {
    top: 8px;
    right: 8px;
  }

  #vr-skin.skin-real-estate .vr-re-map-image-zoombar {
    bottom: 14px;
  }

  .vr-re-apartment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.vr-re-floorplan-layout-side .vr-re-floorplan-image-label {
  left: 14px;
  right: 14px;
  bottom: 14px;
}

@media (max-width: 560px) {
  #vr-re-panel[data-panel-name="apartments"][data-panel-display="center"] {
    padding: 68px 10px 20px;
  }

  #vr-re-panel[data-panel-name="apartments"][data-panel-display="center"] .vr-re-panel-box {
    padding: 20px 16px 16px;
  }

  .vr-re-apartment-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Intro screen ─────────────────────────────────────────────
   #vr-intro is built by skin-ui.js _renderIntro() regardless of theme,
   but this theme had no styling for it at all — it rendered unstyled
   (no position/z-index/background) and was invisible behind the pano
   canvas. Mirrors theme-institutional's block, themed with real-estate
   tokens. */
#vr-intro {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Không có text nút "Bắt đầu" → cả màn hình đóng vai trò nút bắt đầu */
#vr-intro.vr-intro-clickable {
  cursor: pointer;
}
.vr-intro-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.vr-intro-dim {
  position: absolute;
  inset: 0;
}
.vr-intro-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 32px;
  max-width: 640px;
}
.vr-intro-logo { max-width: 200px; max-height: 100px; object-fit: contain; margin-bottom: 20px; }
.vr-intro-greeting { font-size: 20px; margin: 0 0 8px; opacity: 0.9; }
.vr-intro-title { font-size: 28px; font-weight: 700; margin: 0 0 24px; }
.vr-intro-cta {
  background: var(--re-control-bg, var(--color-primary, #075f9d));
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--re-shadow, 0 18px 48px rgba(0, 59, 96, 0.22));
}
/* Vị trí nút CTA — mặc định nằm trong luồng nội dung; 3 vị trí dưới đây neo cố định theo đáy màn hình.
   Desktop/window và mobile (≤600px) dùng cách lề độc lập nhau. */
.vr-intro-cta.pos-bottom-left,
.vr-intro-cta.pos-bottom-center,
.vr-intro-cta.pos-bottom-right {
  position: fixed;
  bottom: var(--intro-cta-bottom, 10px);
  z-index: 2;
  width: auto;
  max-width: none;
}
.vr-intro-cta.pos-bottom-left   { left: var(--intro-cta-left, 10px); }
.vr-intro-cta.pos-bottom-right  { right: var(--intro-cta-right, 10px); }
.vr-intro-cta.pos-bottom-center { left: 0; right: 0; margin-left: auto; margin-right: auto; width: max-content; }
@media (max-width: 600px) {
  .vr-intro-cta.pos-bottom-left,
  .vr-intro-cta.pos-bottom-center,
  .vr-intro-cta.pos-bottom-right {
    bottom: var(--intro-cta-bottom-m, 10px);
  }
  .vr-intro-cta.pos-bottom-left  { left: var(--intro-cta-left-m, 10px); }
  .vr-intro-cta.pos-bottom-right { right: var(--intro-cta-right-m, 10px); }
}
.vr-intro-langs { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.vr-intro-lang-btn {
  padding: 6px 16px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.vr-intro-lang-btn.active { background: #fff; color: var(--re-control-bg, var(--color-primary, #075f9d)); border-color: #fff; }
.vr-intro-exit { animation: vr-intro-fade-out 0.42s ease forwards; }
@keyframes vr-intro-fade-out { to { opacity: 0; transform: scale(1.02); } }

/* Hide skin overlay + authored hotspots under the intro until the visitor
   starts the tour. */
.vr-intro-hide-skin > * {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* .ggskin_hotspot restore rule above is 3 classes (0,3,0) specificity, which
   beats the ">* " rule just above (0,1,0) — without this, hotspots would
   stay visible through the intro. Match it at equal specificity so source
   order (this comes last) decides. */
.vr-intro-hide-skin > .ggskin.ggskin_hotspot {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* .vr-real-estate-host #vr-skin * (top of file) explicitly sets visibility:
   visible on every #vr-skin descendant, which breaks the inherited hidden
   from the ">* " rule above (an element with its own explicit visibility
   value ignores the inherited one). Re-assert hidden with !important so it
   wins regardless of specificity while the intro is up. */
.vr-intro-hide-skin > #vr-skin,
.vr-intro-hide-skin > #vr-skin * {
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 820px) {
  .vr-re-floorplan-tabs { padding: 0 42px 0 4px; gap: 0; }
  .vr-re-floorplan-tab { min-width: 0; flex: 1 1 0; gap: 6px; font-size: 13px; }
  .vr-re-floorplan-tab svg { width: 17px; height: 17px; }
  .vr-re-floorplan-close { right: 3px; width: 34px; height: 34px; }
  .vr-re-floorplan-stage { padding: 12px 48px 8px 10px; }
  .vr-re-floorplan-viewer.is-single .vr-re-floorplan-stage { padding: 12px 48px 12px 10px; }
  .vr-re-floorplan-tools { top: 54px; right: 8px; gap: 5px; }
  .vr-re-floorplan-active-label { width: calc(100% - 24px); margin-bottom: 4px; font-size: 12px; }
  .vr-re-floorplan-tool { width: 32px; height: 32px; font-size: 20px; }
  .vr-re-floorplan-tool:last-child { margin-top: 3px; font-size: 17px; }
  .vr-re-floorplan-thumbnails { min-height: 94px; justify-content: safe center; gap: 9px; padding: 8px 10px 12px; }
  .vr-re-floorplan-thumbnail { width: 110px; flex-basis: 110px; padding: 5px; font-size: 11px; }
  .vr-re-floorplan-thumbnail img { height: 48px; }
  .vr-re-floorplan-layout-side .vr-re-floorplan-close {
    position: absolute;
    top: 9px;
    right: 3px;
    transform: none;
    background: transparent;
    box-shadow: none;
  }
}


/* === Shared Info Popup Frame === */
/* Shared project-info frame. Theme colors and surfaces remain theme-owned. */
#vr-info-panel .vr-modal-box {
  width: min(620px, calc(100vw - 40px));
  max-width: 620px;
  max-height: min(760px, calc(100vh - 40px));
  border-radius: 2px;
}

#vr-info-panel .vr-modal-header {
  min-height: 72px;
  box-sizing: border-box;
  padding: 17px 34px;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#vr-info-panel .vr-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  flex: 0 0 36px;
  box-sizing: border-box;
  padding: 0;
  margin-right: -8px;
  border-radius: 4px;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

#vr-info-panel .vr-info-tabs {
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  flex-wrap: nowrap;
  scrollbar-width: none;
  width: auto;
  min-height: 64px;
  box-sizing: border-box;
  align-items: flex-end;
  gap: 22px;
  margin: 0 34px;
  padding: 0;
}

#vr-info-panel .vr-info-tabs::-webkit-scrollbar {
  display: none;
}

#vr-info-panel .vr-tab-btn {
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 52px;
  box-sizing: border-box;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#vr-info-panel .vr-modal-body {
  min-height: 0;
  margin-top: 5px;
  padding: 28px 34px 40px;
  font-size: 16px;
  line-height: 1.75;
  -webkit-mask-image: none;
  mask-image: none;
  scrollbar-color: var(--brand-primary, var(--color-primary, #2563eb)) color-mix(in srgb, var(--brand-primary, var(--color-primary, #2563eb)) 18%, transparent);
  scrollbar-width: thin;
}

#vr-info-panel .vr-modal-body::-webkit-scrollbar {
  width: 8px;
}

#vr-info-panel .vr-modal-body::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--brand-primary, var(--color-primary, #2563eb)) 18%, transparent);
  border-radius: 999px;
}

#vr-info-panel .vr-modal-body::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

#vr-info-panel .vr-modal-body::-webkit-scrollbar-thumb {
  background: var(--brand-primary, var(--color-primary, #2563eb));
  border: 0;
  border-radius: 999px;
}

#vr-info-panel #vr-info-text > :first-child,
#vr-info-panel [data-intro-article].vr-tab-pane > :first-child {
  margin-top: 0;
}

#vr-info-panel .vr-document-list.active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

#vr-info-panel .vr-document-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 64px;
  box-sizing: border-box;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--brand-primary, var(--color-primary, #2563eb)) 22%, transparent);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  opacity: 1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  background: color-mix(in srgb, var(--brand-primary, var(--color-primary, #2563eb)) 4%, transparent);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#vr-info-panel .vr-document-item + .vr-document-item {
  margin-top: 14px;
}

#vr-info-panel .vr-document-item:hover {
  border-color: var(--brand-primary, var(--color-primary, #2563eb));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--brand-primary, var(--color-primary, #2563eb)) 16%, transparent);
  transform: translateY(-2px);
}

#vr-info-panel .vr-document-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  border-radius: 8px;
  background: var(--brand-primary, var(--color-primary, #2563eb));
  color: #fff;
  box-shadow: 0 5px 12px color-mix(in srgb, var(--brand-primary, var(--color-primary, #2563eb)) 25%, transparent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#vr-info-panel .vr-document-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#vr-info-panel .vr-document-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-primary, var(--color-primary, #2563eb)) 10%, transparent);
  color: var(--brand-primary, var(--color-primary, #2563eb));
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

#vr-info-panel .vr-document-item:hover .vr-document-open {
  background: var(--brand-primary, var(--color-primary, #2563eb));
  color: #fff;
}

#vr-info-panel .vr-project-document-viewer.is-embedded {
  height: min(56vh, 620px);
  min-height: 420px;
}

.vr-project-document-popup .vr-project-document-viewer {
  height: 100%;
}

@media (max-width: 600px) {
  #vr-info-panel .vr-modal-box {
    width: calc(100vw - 24px);
    max-width: none;
    max-height: calc(100vh - 24px);
  }

  #vr-info-panel .vr-modal-header {
    min-height: 62px;
    padding: 13px 20px;
    font-size: 16px;
  }

  #vr-info-panel .vr-info-tabs {
    min-height: 56px;
    gap: 18px;
    margin: 0 20px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  #vr-info-panel .vr-info-tabs::-webkit-scrollbar {
    display: none;
  }

  #vr-info-panel .vr-tab-btn {
    min-height: 46px;
    font-size: 13px;
    white-space: nowrap;
  }

  #vr-info-panel .vr-modal-body {
    padding: 22px 20px 30px;
    font-size: 15px;
  }

  #vr-info-panel .vr-project-document-viewer.is-embedded {
    height: 60vh;
    min-height: 300px;
  }

  #vr-info-panel .vr-document-item {
    min-height: 58px;
    gap: 10px;
    padding: 10px 12px;
  }

  #vr-info-panel .vr-document-icon {
    width: 34px;
    height: 34px;
  }
}

/* ==== EBV custom (2026-11-06): Be Vietnam Pro font, full-screen apartment popup, golden scene links, amenities panel, image viewer full screen, lighter bottom menu, location map popup, #297F76 main UI, deep-teal animated hotspots, editorial info panel, popup entrance animations ==== */
/* Be Vietnam Pro, self-hosted from Google Fonts (OFL) */
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-300-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-400-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-500-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-600-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-700-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-800-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/be-vietnam-pro-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Typography: every text uses Be Vietnam Pro ---- */
html, body { font-family: 'Be Vietnam Pro', sans-serif; }
body .ggskin, body .ggskin * { font-family: 'Be Vietnam Pro', sans-serif; }

/* ---- Apartment info popup (full screen) ---- */
.vr-hs-popup.ebv-apt {
  --ebv-emerald-950: #0f3d38;
  --ebv-emerald-900: #17544e;
  --ebv-emerald-800: #1f6a62;
  --ebv-emerald-700: #297f76;
  --ebv-emerald-600: #34938a;
  --ebv-gold: #c9a45c;
  --ebv-gold-soft: #ead6a6;
  --ebv-ivory: #f6f3ec;
  --ebv-ink: #13221f;
  --ebv-muted: #6d7c78;
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--ebv-ink);
}
.ebv-apt *, .ebv-apt *::before, .ebv-apt *::after { box-sizing: border-box; font-family: inherit; }
.ebv-apt button { font: inherit; color: inherit; }

.ebv-apt__body {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.ebv-apt__backdrop {
  position: absolute;
  inset: 0;
  background: #17544e;
  animation: ebvFade 0.25s ease both;
}
.ebv-apt__card {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: clamp(340px, 27vw, 430px) minmax(0, 1fr);
  overflow: hidden;
  background: var(--ebv-ivory);
  animation: ebvFade 0.32s ease both;
}

/* aside */
.ebv-apt__aside {
  position: relative;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(130% 55% at 0% 0%, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(90% 50% at 100% 100%, rgba(201, 164, 92, 0.16) 0%, rgba(201, 164, 92, 0) 70%),
    linear-gradient(168deg, #34938a 0%, #297f76 46%, #1f6a62 100%);
}
.ebv-apt__aside::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 0 0, transparent 46px, rgba(255, 255, 255, 0.045) 47px, rgba(255, 255, 255, 0.045) 48px, transparent 49px),
    radial-gradient(circle at 100% 100%, transparent 46px, rgba(255, 255, 255, 0.045) 47px, rgba(255, 255, 255, 0.045) 48px, transparent 49px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 55%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}
.ebv-apt__aside::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(201, 164, 92, 0) 0%, rgba(201, 164, 92, 0.65) 50%, rgba(201, 164, 92, 0) 100%);
}
.ebv-apt__aside-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 40px 36px 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.ebv-apt__logo { display: block; height: 42px; width: auto; max-width: 70%; margin: 0 0 36px; object-fit: contain; object-position: left center; }
.ebv-apt__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ebv-gold-soft);
}
.ebv-apt__eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--ebv-gold); }
.ebv-apt__code {
  margin: 14px 0 0;
  font-size: 44px;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  text-transform: none;
}
.ebv-apt__model {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(201, 164, 92, 0.65);
  background: linear-gradient(135deg, rgba(201, 164, 92, 0.16), rgba(201, 164, 92, 0.04));
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ebv-gold-soft);
}
.ebv-apt__model b { font-size: 15px; letter-spacing: 0.06em; color: #fff; font-weight: 700; }
.ebv-apt__rule { height: 1px; margin: 28px 0 24px; background: linear-gradient(90deg, rgba(201, 164, 92, 0.9) 0%, rgba(201, 164, 92, 0) 100%); }
.ebv-apt__hl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ebv-apt__hl-item {
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.ebv-apt__hl-val { font-size: 26px; line-height: 1.05; font-weight: 700; color: #fff; white-space: nowrap; letter-spacing: -0.01em; }
.ebv-apt__hl-val small { margin-left: 4px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--ebv-gold-soft); }
.ebv-apt__hl-lbl { margin-top: 10px; font-size: 10px; line-height: 1.45; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); }
.ebv-apt__specs { margin: 24px 0 0; padding: 0; }
.ebv-apt__spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.ebv-apt__spec:first-child { border-top: 1px solid rgba(255, 255, 255, 0.09); }
.ebv-apt__spec dt { font-size: 13px; color: rgba(255, 255, 255, 0.66); }
.ebv-apt__spec dd { margin: 0; font-size: 14.5px; font-weight: 600; color: #fff; white-space: nowrap; }
.ebv-apt__sub {
  margin: 26px 0 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ebv-gold-soft);
}
.ebv-apt__floors { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.ebv-apt__floor { padding: 11px 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.16); border: 1px solid rgba(255, 255, 255, 0.07); }
.ebv-apt__floor span { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.ebv-apt__floor b { display: block; margin-top: 5px; font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; }
.ebv-apt__desc { font-size: 13.5px; line-height: 1.8; color: rgba(255, 255, 255, 0.88); }
.ebv-apt__desc p { margin: 0 0 0.6em; }
.ebv-apt__foot { margin-top: auto; padding-top: 28px; }
.ebv-apt__call {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 164, 92, 0.6);
  background: linear-gradient(135deg, rgba(201, 164, 92, 0.18), rgba(201, 164, 92, 0.05));
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.ebv-apt__call:hover { background: linear-gradient(135deg, rgba(201, 164, 92, 0.32), rgba(201, 164, 92, 0.12)); border-color: var(--ebv-gold); transform: translateY(-1px); }
.ebv-apt__call svg {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 10px;
  border-radius: 50%;
  color: var(--ebv-emerald-900);
  background: linear-gradient(135deg, #f3e3b5 0%, #d9b46a 55%, #c39a4f 100%);
}
.ebv-apt__call-text { display: flex; flex-direction: column; gap: 3px; }
.ebv-apt__call-text small { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ebv-gold-soft); }
.ebv-apt__call-text b { font-size: 18px; font-weight: 700; letter-spacing: 0.06em; }
.ebv-apt__note { margin-top: 16px; font-size: 11px; line-height: 1.6; color: rgba(255, 255, 255, 0.5); font-style: italic; }

/* main */
.ebv-apt__main {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: radial-gradient(85% 70% at 65% 0%, #ffffff 0%, var(--ebv-ivory) 58%, #eee9dd 100%);
}
.ebv-apt__top { position: relative; display: flex; align-items: center; justify-content: center; padding: 24px 92px 8px; }
.ebv-apt__tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(19, 34, 31, 0.08), inset 0 0 0 1px rgba(19, 34, 31, 0.06);
}
.ebv-apt__tab {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4b5c58 !important;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.ebv-apt__tab svg { width: 16px; height: 16px; flex: 0 0 auto; }
.ebv-apt__tab:hover { color: var(--ebv-emerald-700) !important; }
.ebv-apt__tab.is-active {
  background: linear-gradient(135deg, #34938a 0%, #24766d 100%);
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(31, 106, 98, 0.32), inset 0 0 0 1px rgba(201, 164, 92, 0.45);
}
.ebv-apt__close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(19, 34, 31, 0.08);
  background: #fff;
  color: var(--ebv-ink) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(19, 34, 31, 0.14);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.ebv-apt__close svg { width: 18px; height: 18px; }
.ebv-apt__close:hover { transform: rotate(90deg); background: var(--ebv-emerald-700); color: #fff !important; }
.ebv-apt__panes { position: relative; flex: 1; min-height: 0; }
.ebv-apt__pane { position: absolute; inset: 0; display: none; flex-direction: column; padding: 14px 30px 26px; }
.ebv-apt__pane.is-active { display: flex; animation: ebvFade 0.3s ease both; }

/* floor plan viewer */
.ebv-apt__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(19, 34, 31, 0.10), inset 0 0 0 1px rgba(19, 34, 31, 0.05);
  cursor: zoom-in;
  touch-action: none;
}
.ebv-apt__stage.is-zoomed { cursor: grab; }
.ebv-apt__stage.is-zoomed:active { cursor: grabbing; }
.ebv-apt__plan {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: calc(100% - 56px);
  max-height: calc(100% - 56px);
  transform: translate(-50%, -50%);
  transform-origin: center center;
  transition: transform 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.ebv-apt__tools {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(19, 34, 31, 0.16), inset 0 0 0 1px rgba(19, 34, 31, 0.06);
}
.ebv-apt__tool {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 19px !important;
  line-height: 1;
  color: var(--ebv-ink) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.ebv-apt__tool:hover:not(:disabled) { background: rgba(41, 127, 118, 0.1); color: var(--ebv-emerald-700) !important; }
.ebv-apt__tool:disabled { opacity: 0.32; cursor: default; }
.ebv-apt__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ebv-muted);
}
.ebv-apt__caption::before, .ebv-apt__caption::after { content: ''; width: 40px; height: 1px; background: linear-gradient(90deg, rgba(201, 164, 92, 0), var(--ebv-gold)); }
.ebv-apt__caption::after { transform: scaleX(-1); }
.ebv-apt__thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 12px; overflow-x: auto; }
.ebv-apt__thumb { flex: 0 0 auto; width: 96px; padding: 4px; border: 1px solid rgba(19, 34, 31, 0.08); border-radius: 12px; background: #fff; cursor: pointer; }
.ebv-apt__thumb img { display: block; width: 100%; height: 56px; object-fit: contain; }
.ebv-apt__thumb span { display: block; margin-top: 4px; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ebv-apt__thumb.is-active { border-color: var(--ebv-gold); box-shadow: 0 0 0 2px rgba(201, 164, 92, 0.3); }

/* gallery */
.ebv-apt__grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  align-content: start;
  padding: 2px;
}
.ebv-apt__grid.is-single { grid-template-columns: 1fr; align-content: stretch; }
.ebv-apt__shot {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #d9d5cb;
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
  box-shadow: 0 22px 50px rgba(19, 34, 31, 0.16);
}
.ebv-apt__grid.is-single .ebv-apt__shot { aspect-ratio: auto; height: 100%; background: #17544e; }
.ebv-apt__shot-bg {
  position: absolute;
  inset: -40px;
  background-position: center;
  background-size: cover;
  filter: blur(28px) brightness(0.72) saturate(1.1);
  transform: scale(1.05);
}
.ebv-apt__shot img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ebv-apt__grid.is-single .ebv-apt__shot img { object-fit: contain; }
.ebv-apt__shot:hover img { transform: scale(1.035); }
.ebv-apt__shot::after { content: ''; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(180deg, rgba(4, 35, 33, 0), rgba(4, 35, 33, 0.55)); pointer-events: none; }
.ebv-apt__badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(31, 106, 98, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 164, 92, 0.55);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ebv-apt__badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ebv-gold); }

/* "Ảnh minh họa" placeholder */
.ebv-apt__ph {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: #297f76 url('assets/real-estate-floorplan-info/minh-hoa-nen.jpg') center / cover no-repeat;
  box-shadow: 0 22px 50px rgba(19, 34, 31, 0.16);
}
.ebv-apt__ph::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(23, 84, 78, 0.55) 0%, rgba(23, 84, 78, 0.3) 100%), linear-gradient(180deg, rgba(41, 127, 118, 0.25) 0%, rgba(23, 84, 78, 0.6) 100%); }
.ebv-apt__ph::after { content: ''; position: absolute; inset: 18px; border-radius: 14px; border: 1px solid rgba(201, 164, 92, 0.35); pointer-events: none; }
.ebv-apt__ph-inner { position: relative; z-index: 1; max-width: 460px; padding: 0 28px; }
.ebv-apt__ph-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 92, 0.75);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ebv-gold-soft);
}
.ebv-apt__ph-icon svg { width: 30px; height: 30px; }
.ebv-apt__ph-title { font-size: 23px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; } /* EBV 2026-11-11: was 30px ("chữ Ảnh minh họa cho bé đi xíu") */
.ebv-apt__ph-sub { margin-top: 12px; font-size: 13.5px; line-height: 1.75; color: rgba(255, 255, 255, 0.8); }

@keyframes ebvFade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1100px) {
  .ebv-apt__card { grid-template-columns: 320px minmax(0, 1fr); }
  .ebv-apt__aside-inner { padding: 30px 26px 26px; }
  .ebv-apt__code { font-size: 34px; }
  .ebv-apt__hl-val { font-size: 21px; }
}
@media (max-width: 760px) {
  .vr-hs-popup.ebv-apt { overflow: hidden !important; }
  .vr-hs-popup.ebv-apt .ebv-apt__body { height: 100% !important; max-height: none !important; overflow: hidden !important; }
  .ebv-apt__card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, auto) minmax(0, 1fr);
  }
  .ebv-apt__aside { max-height: 46dvh; }
  .ebv-apt__aside::after { top: auto; bottom: 0; width: 100%; height: 1px; background: linear-gradient(90deg, rgba(201, 164, 92, 0), rgba(201, 164, 92, 0.65), rgba(201, 164, 92, 0)); }
  .ebv-apt__aside-inner { padding: 20px 18px 18px; }
  .ebv-apt__logo { height: 28px; margin-bottom: 14px; }
  .ebv-apt__code { font-size: 28px; margin-top: 10px; }
  .ebv-apt__model { margin-top: 12px; }
  .ebv-apt__rule { margin: 18px 0 16px; }
  .ebv-apt__hl-val { font-size: 19px; }
  .ebv-apt__hl-item { padding: 13px 12px 12px; }
  .ebv-apt__foot { padding-top: 18px; }
  .ebv-apt__call { padding: 8px 14px 8px 8px; }
  .ebv-apt__call svg { width: 32px; height: 32px; padding: 8px; }
  .ebv-apt__call-text b { font-size: 15px; }
  .ebv-apt__top { justify-content: flex-start; padding: 12px 66px 6px 12px; }
  .ebv-apt__tab { padding: 10px 14px; font-size: 10.5px !important; letter-spacing: 0.08em; }
  .ebv-apt__close { top: 8px; right: 10px; width: 42px; height: 42px; }
  .ebv-apt__pane { padding: 8px 12px 14px; }
  .ebv-apt__tools { right: 10px; bottom: 10px; padding: 4px; border-radius: 14px; }
  .ebv-apt__tool { width: 32px; height: 32px; font-size: 16px !important; }
  .ebv-apt__grid { grid-template-columns: 1fr; }
  .ebv-apt__ph-title { font-size: 18px; } /* EBV 2026-11-11: was 22px */
}

/* ---- Scene links (Pano2VR skin "ht_node_a"): golden ring + halo, pill label ---- */
/* ht_node_a is the only skin template whose hotspot holds a node image, so these selectors only hit it. */
.ggskin_hotspot > .ggskin_nodeimage ~ .ggskin_rectangle {
  border: 2px solid #ecd08f !important;
  animation: ebvNodeGlow 2.8s ease-in-out infinite !important;
}
.ggskin_hotspot > .ggskin_nodeimage ~ .ggskin_rectangle::after {
  content: '';
  position: absolute;
  left: -2px;
  top: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 212, 146, 0.95);
  animation: ebvNodeRipple 2.8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  pointer-events: none;
}
.ggskin_hotspot:hover > .ggskin_nodeimage ~ .ggskin_rectangle::after { animation: none; opacity: 0; }
@keyframes ebvNodeGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 64, 59, 0.55), 0 0 0 4px rgba(236, 208, 143, 0.35), 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 12px 2px rgba(240, 206, 128, 0.35); }
  50% { box-shadow: 0 0 0 3px rgba(16, 64, 59, 0.55), 0 0 0 4px rgba(236, 208, 143, 0.6), 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 26px 7px rgba(240, 206, 128, 0.6); }
}
@keyframes ebvNodeRipple {
  0% { transform: scale(1); opacity: 0.9; }
  75% { opacity: 0; }
  100% { transform: scale(1.75); opacity: 0; }
}
.ggskin_hotspot > .ggskin_nodeimage ~ .ggskin_text { overflow: visible !important; }
.ggskin_hotspot > .ggskin_nodeimage ~ .ggskin_text > div {
  position: absolute !important;
  left: 50% !important;
  top: 9px !important;
  width: auto !important;
  height: auto !important;
  transform: translateX(-50%);
  padding: 5px 12px !important;
  border-radius: 999px;
  overflow: visible !important;
  white-space: nowrap !important;
  background: linear-gradient(135deg, #24766d 0%, #1b5f58 50%, #134943 100%);
  border: 1px solid rgba(236, 208, 143, 0.85);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.38);
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: none !important;
}

/* ---- Left rail: Facebook icon same size/stroke as the other contact icons ---- */
.vr-re-rail .vr-re-rail-item-facebook svg { width: 21px; height: 21px; transform: none; }

/* ---- Amenities panel: compact list, clear main (group) / sub (item) hierarchy ---- */
#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-box { padding: 16px 12px 14px 18px; }
#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-close { top: 12px; right: 12px; width: 30px; height: 30px; font-size: 22px; line-height: 30px; }
#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-title {
  margin: 4px 44px 12px 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-title::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ecd08f, rgba(236, 208, 143, 0));
}
#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-group + .vr-re-amenity-group { margin-top: 14px; }
#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-group h3 {
  margin: 0 0 4px;
  padding: 0 0 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0d595;
}
#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-list { display: grid; gap: 1px; }
#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-item {
  min-height: 0;
  padding: 6px 10px;
  border-radius: 8px;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}
#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-item span { font-weight: 400; }
#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-item:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-amenity-item.active {
  background: rgba(236, 208, 143, 0.16);
  box-shadow: inset 2px 0 0 #ecd08f;
  color: #fff;
}

/* ---- Image viewer: full-screen toggle ---- */
[data-vr-lightbox].vr-lb-expanded { background: #000 !important; }
[data-vr-lightbox].vr-lb-expanded img[data-lightbox-index] { max-width: 100vw !important; max-height: 100vh !important; border-radius: 0 !important; box-shadow: none !important; }
[data-vr-lightbox].vr-lb-expanded .vr-lb-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 20px 18px !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
}

/* ---- Bottom menu: lighter labels ---- */
#vr-skin.skin-real-estate .vr-re-menu-item span,
#vr-skin.skin-real-estate .vr-re-menu-item.active span {
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ---- "Vị trí dự án" map popup: larger, whole image always visible ---- */
#vr-skin.skin-real-estate .vr-re-map-image-box:not(.expanded) { max-width: min(1320px, 94vw); max-height: 88vh; }
#vr-skin.skin-real-estate .vr-re-map-image-box:not(.expanded) .vr-re-map-image { max-width: min(1320px, 94vw); max-height: 88vh; }
@media (max-width: 900px) {
  #vr-skin.skin-real-estate .vr-re-map-image-box:not(.expanded),
  #vr-skin.skin-real-estate .vr-re-map-image-box:not(.expanded) .vr-re-map-image { max-width: 94vw; max-height: 80vh; }
}

/* ==== Luxury pass: deep emerald glass + gold hairlines on the main-screen UI ==== */
#vr-skin.skin-real-estate {
  --re-control-bg: rgba(41, 127, 118, 0.86);
  --re-control-bg-soft: rgba(41, 127, 118, 0.78);
  --re-control-bg-hover: rgba(52, 147, 138, 0.95);
}

/* bottom menu (its base colour comes from realEstate.bottomMenu.style.background) */
#vr-skin.skin-real-estate #vr-re-bottom-menu {
  border: 1px solid rgba(236, 208, 143, 0.55);
  border-radius: 18px;
  padding: 0 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
/* lighter glass menu: keep the white labels readable over the panorama */
#vr-skin.skin-real-estate .vr-re-menu-item:not(.active) span,
#vr-skin.skin-real-estate .vr-re-menu-item:not(.active) i { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.38); }
#vr-skin.skin-real-estate .vr-re-menu-item {
  position: relative;
  height: calc(100% - 12px);
  margin: 6px 0;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}
#vr-skin.skin-real-estate .vr-re-menu-item:hover { background: rgba(255, 255, 255, 0.08); }
#vr-skin.skin-real-estate .vr-re-menu-item i { font-size: 15px; }
#vr-skin.skin-real-estate .vr-re-menu-item.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(236, 208, 143, 0) 0%, #ecd08f 50%, rgba(236, 208, 143, 0) 100%);
}

/* round controls: menu button, its sidebar buttons, contact rail */
#vr-skin.skin-real-estate .vr-re-top-icon,
#vr-skin.skin-real-estate .vr-re-sidebar-link,
#vr-skin.skin-real-estate .vr-re-rail-toggle,
#vr-skin.skin-real-estate .vr-re-rail-item {
  box-sizing: border-box;
  border: 1px solid rgba(236, 208, 143, 0.6);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  transition: background 0.2s ease, border-color 0.2s ease;
}
#vr-skin.skin-real-estate .vr-re-top-icon:hover,
#vr-skin.skin-real-estate .vr-re-sidebar-link:hover,
#vr-skin.skin-real-estate .vr-re-rail-toggle:hover,
#vr-skin.skin-real-estate .vr-re-rail-item:hover { border-color: rgba(236, 208, 143, 0.85); }
#vr-skin.skin-real-estate .vr-re-top-icon { border-radius: 50%; gap: 5px; }
#vr-skin.skin-real-estate .vr-re-top-icon span { width: 17px; height: 2px; }

/* place callouts (Pano2VR ht_info_center*): child 1 = anchor dot, child 2 = pole, child 3 > text = pill.
   The scene-link template starts with a node image, so these selectors never touch it. */
/* Hotspots: same hue as the #297F76 interface, a deeper shade so they stand out; gold hairlines kept. */
.ggskin_hotspot > .ggskin_rectangle > .ggskin_text > div {
  position: relative;
  background: linear-gradient(135deg, #24766d 0%, #1b5f58 50%, #134943 100%) !important;
  border: 1px solid rgba(236, 208, 143, 0.85) !important;
  border-radius: 999px !important;
  padding: 7px 16px !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
  animation: ebvTealGlow 3.6s ease-in-out infinite;
}
/* soft light sweeping across the label */
.ggskin_hotspot > .ggskin_rectangle > .ggskin_text > div::after {
  content: '';
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 38%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-170%) skewX(-18deg);
  animation: ebvShimmer 5.6s ease-in-out infinite;
  pointer-events: none;
}
.ggskin_hotspot:nth-child(3n+1) > .ggskin_rectangle > .ggskin_text > div::after { animation-delay: 1.8s; }
.ggskin_hotspot:nth-child(3n+2) > .ggskin_rectangle > .ggskin_text > div::after { animation-delay: 3.6s; }
/* pole with a light pulse running from the label down to the point */
.ggskin_hotspot > .ggskin_rectangle:first-child + .ggskin_rectangle {
  background-color: transparent !important;
  background-image:
    linear-gradient(180deg, rgba(255, 252, 240, 0) 0%, rgba(255, 252, 240, 1) 50%, rgba(255, 252, 240, 0) 100%),
    linear-gradient(180deg, rgba(240, 214, 150, 0.95) 0%, rgba(255, 255, 255, 0.55) 100%) !important;
  background-size: 100% 36%, 100% 100% !important;
  background-repeat: no-repeat !important;
  animation: ebvPoleFlow 2.8s linear infinite;
}
.ggskin_hotspot > .ggskin_rectangle:first-child {
  background: #ecd08f !important;
  box-shadow: 0 0 0 2px rgba(16, 64, 59, 0.55);
  animation: ebvAnchorPulse 1.8s ease-out infinite !important;
}
@keyframes ebvAnchorPulse {
  0% { outline: 2px solid rgba(236, 208, 143, 0.9); outline-offset: 0; }
  100% { outline: 2px solid rgba(236, 208, 143, 0); outline-offset: 10px; }
}
@keyframes ebvShimmer {
  0%, 64% { transform: translateX(-170%) skewX(-18deg); }
  100% { transform: translateX(330%) skewX(-18deg); }
}
@keyframes ebvTealGlow {
  0%, 100% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32), 0 0 0 0 rgba(64, 176, 162, 0); }
  50% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32), 0 0 16px 3px rgba(64, 176, 162, 0.55); }
}
@keyframes ebvPoleFlow {
  0% { background-position: 0 -60%, 0 0; }
  100% { background-position: 0 160%, 0 0; }
}

/* numbered amenity markers: deep teal medallion + ripple */
.vr-custom-hs {
  border: 1.5px solid #ecd08f !important;
  background: radial-gradient(circle at 32% 28%, #2e8a80 0%, #1b5f58 55%, #123f3a 100%) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(236, 208, 143, 0.18) !important;
}
.vr-custom-hs > span { font-weight: 600; letter-spacing: 0.01em; }
.vr-custom-hs::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(110, 205, 190, 0.9);
  animation: ebvMarkerRipple 2.6s ease-out infinite;
  pointer-events: none;
}
.vr-custom-hs:nth-child(2n)::after { animation-delay: 1.3s; }
@keyframes ebvMarkerRipple {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* unit polygons on "Mặt bằng": deep teal, gently breathing; brighter with a glow on hover */
polygon[data-polygon-id^="hs_lk"] {
  fill: #1b5f58;
  stroke: #bfe9e2;
  stroke-width: 1.2px;
  stroke-opacity: 0.85;
  animation: ebvPolyBreath 3.8s ease-in-out infinite;
}
polygon[data-polygon-id^="hs_lk"][data-polygon-hovered="true"] {
  animation: none;
  fill-opacity: 0.7;
  stroke: #ffffff;
  stroke-width: 2px;
  filter: drop-shadow(0 0 6px rgba(110, 205, 190, 0.95));
}
@keyframes ebvPolyBreath {
  0%, 100% { fill-opacity: 0.32; }
  50% { fill-opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .ggskin_hotspot *, .ggskin_hotspot *::after, .vr-custom-hs::after, polygon[data-polygon-id^="hs_lk"] { animation: none !important; }
}

/* side panels (Tiện ích, Mặt bằng) in the same emerald glass */
#vr-re-panel[data-panel-name="amenities"][data-panel-display="side"] .vr-re-panel-box,
#vr-re-panel[data-panel-name="floorplan"][data-panel-display="side"] .vr-re-panel-box {
  background: linear-gradient(180deg, rgba(41, 127, 118, 0.92) 0%, rgba(31, 106, 98, 0.94) 100%);
  border: 1px solid rgba(236, 208, 143, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---- "Thông tin" panel: editorial layout (hero image, logo, gold details, ivory page) ---- */
#vr-skin.skin-real-estate #vr-info-panel .vr-modal-backdrop {
  background: rgba(15, 52, 48, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
#vr-skin.skin-real-estate #vr-info-panel .vr-modal-box {
  width: min(780px, calc(100vw - 40px));
  max-width: min(780px, calc(100vw - 40px));
  max-height: min(840px, calc(100vh - 48px));
  border-radius: 20px;
  border: 1px solid rgba(236, 208, 143, 0.6);
  background: #faf7f0;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}
#vr-skin.skin-real-estate #vr-info-panel .vr-modal-header {
  position: relative;
  min-height: 220px;
  padding: 0 40px 26px;
  align-items: flex-end;
  justify-content: flex-start;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(15, 61, 56, 0.25) 0%, rgba(23, 84, 78, 0.35) 45%, rgba(15, 61, 56, 0.92) 100%),
    url('assets/info-image/info-image_260722_020759_wbcu.webp') center 58% / cover no-repeat;
}
#vr-skin.skin-real-estate #vr-info-panel .vr-modal-header::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 26px;
  width: 128px;
  height: 61px;
  background: url('assets/logo/logo.png') left top / contain no-repeat;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
#vr-skin.skin-real-estate #vr-info-panel .vr-modal-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(236, 208, 143, 0) 0%, #ecd08f 50%, rgba(236, 208, 143, 0) 100%);
}
#vr-skin.skin-real-estate #vr-info-panel .vr-modal-header > span {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #f0d79a;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
#vr-skin.skin-real-estate #vr-info-panel .vr-modal-header > span::before { content: ''; width: 32px; height: 1px; background: #ecd08f; }
#vr-skin.skin-real-estate #vr-info-panel .vr-panel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  border: 1px solid rgba(236, 208, 143, 0.7);
  background: rgba(15, 61, 56, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 26px;
  font-weight: 300;
  transition: transform 0.3s ease, background 0.3s ease;
}
#vr-skin.skin-real-estate #vr-info-panel .vr-panel-close:hover { background: #297f76; color: #fff; transform: rotate(90deg); }
#vr-skin.skin-real-estate #vr-info-panel .vr-info-tabs { border-bottom-color: rgba(201, 164, 92, 0.3); }
#vr-skin.skin-real-estate #vr-info-panel .vr-tab-btn { color: #6b7d79; }
#vr-skin.skin-real-estate #vr-info-panel .vr-tab-btn.active { color: #1f6a62; border-bottom-color: #c9a45c; }
#vr-skin.skin-real-estate #vr-info-panel .vr-modal-body {
  margin-top: 0;
  padding: 36px 64px 48px;
  background: radial-gradient(120% 60% at 50% 0%, #ffffff 0%, #faf7f0 60%);
  color: #2b4743;
  font-size: 15.5px;
  line-height: 1.9;
  scrollbar-color: #c9a45c rgba(201, 164, 92, 0.15);
}
#vr-skin.skin-real-estate #vr-info-panel .vr-modal-body::-webkit-scrollbar-track { background: rgba(201, 164, 92, 0.15); }
#vr-skin.skin-real-estate #vr-info-panel .vr-modal-body::-webkit-scrollbar-thumb { background: #c9a45c; }
#vr-skin.skin-real-estate #vr-info-text h1 {
  margin: 0 0 24px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: #1f6a62;
}
#vr-skin.skin-real-estate #vr-info-text h1 strong { font-weight: 500; }
#vr-skin.skin-real-estate #vr-info-text h1::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, #c9a45c, rgba(201, 164, 92, 0));
}
#vr-skin.skin-real-estate #vr-info-text p { margin: 0 0 18px; }
#vr-skin.skin-real-estate #vr-info-text h1 + p { font-size: 17px; line-height: 1.85; color: #1f3b37; }
#vr-skin.skin-real-estate #vr-info-text h1 + p::first-letter {
  float: left;
  margin: 8px 12px 0 0;
  font-size: 60px;
  line-height: 0.82;
  font-weight: 300;
  color: #b8893f;
}
#vr-skin.skin-real-estate #vr-info-text::after {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  margin: 30px auto 0;
  background: #c9a45c;
  transform: rotate(45deg);
  box-shadow: -26px 26px 0 -3px rgba(201, 164, 92, 0.5), 26px -26px 0 -3px rgba(201, 164, 92, 0.5);
}
@media (max-width: 600px) {
  #vr-skin.skin-real-estate #vr-info-panel .vr-modal-box { width: calc(100vw - 24px); max-height: calc(100vh - 24px); border-radius: 16px; }
  #vr-skin.skin-real-estate #vr-info-panel .vr-modal-header { min-height: 168px; padding: 0 22px 20px; }
  #vr-skin.skin-real-estate #vr-info-panel .vr-modal-header::before { left: 22px; top: 20px; width: 100px; height: 48px; }
  #vr-skin.skin-real-estate #vr-info-panel .vr-modal-body { padding: 26px 22px 34px; font-size: 15px; }
  #vr-skin.skin-real-estate #vr-info-text h1 { font-size: 27px; }
  #vr-skin.skin-real-estate #vr-info-text h1 + p { font-size: 16px; }
  #vr-skin.skin-real-estate #vr-info-text h1 + p::first-letter { font-size: 50px; }
}

/* ==== Popup entrances: slow, soft, staggered (ease-out-quint) ==== */
@keyframes ebvFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ebvRiseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ebvDropIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes ebvPopIn { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes ebvSlideInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes ebvSlideInRight { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes ebvFocusIn { from { opacity: 0; filter: blur(12px); } to { opacity: 1; filter: blur(0); } }
@keyframes ebvDrawLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ebvHeroDrift { from { background-position: 0 0, center 70%; } to { background-position: 0 0, center 58%; } }

/* apartment popup */
.ebv-apt__backdrop { animation: ebvFadeIn 0.5s ease both; }
.ebv-apt__card { animation: ebvFadeIn 0.45s ease both; }
.ebv-apt__aside { animation: ebvSlideInLeft 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.ebv-apt__main { animation: ebvFadeIn 0.7s 0.1s ease both; }
.ebv-apt__aside-inner > * { animation: ebvRiseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.ebv-apt__aside-inner > :nth-child(1) { animation-delay: 0.18s; }
.ebv-apt__aside-inner > :nth-child(2) { animation-delay: 0.24s; }
.ebv-apt__aside-inner > :nth-child(3) { animation-delay: 0.30s; }
.ebv-apt__aside-inner > :nth-child(4) { animation-delay: 0.36s; }
.ebv-apt__aside-inner > :nth-child(5) { animation-delay: 0.42s; }
.ebv-apt__aside-inner > :nth-child(6) { animation-delay: 0.48s; }
.ebv-apt__aside-inner > :nth-child(7) { animation-delay: 0.54s; }
.ebv-apt__aside-inner > :nth-child(8) { animation-delay: 0.60s; }
.ebv-apt__aside-inner > :nth-child(n+9) { animation-delay: 0.66s; }
.ebv-apt__aside-inner > .ebv-apt__rule { transform-origin: left center; animation: ebvDrawLine 1.1s 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.ebv-apt__tabs { animation: ebvDropIn 0.8s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
.ebv-apt__close { animation: ebvFadeIn 0.6s 0.5s ease both; }
.ebv-apt__panes { animation: ebvPopIn 1s 0.32s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* "Thông tin" panel (display:none while hidden, so entrance = animations) */
#vr-skin.skin-real-estate #vr-info-panel:not(.hidden) .vr-modal-backdrop { animation: ebvFadeIn 0.5s ease both; }
#vr-skin.skin-real-estate #vr-info-panel:not(.hidden) .vr-modal-box { animation: ebvPopIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
#vr-skin.skin-real-estate #vr-info-panel:not(.hidden) .vr-modal-header { animation: ebvHeroDrift 2.4s cubic-bezier(0.22, 1, 0.36, 1) both; }
#vr-skin.skin-real-estate #vr-info-panel:not(.hidden) .vr-modal-header::before { animation: ebvFadeIn 1s 0.25s ease both; }
#vr-skin.skin-real-estate #vr-info-panel:not(.hidden) .vr-modal-header > span { animation: ebvRiseIn 0.8s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
#vr-skin.skin-real-estate #vr-info-panel:not(.hidden) #vr-info-text > * { animation: ebvRiseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
#vr-skin.skin-real-estate #vr-info-panel:not(.hidden) #vr-info-text > :nth-child(1) { animation-delay: 0.30s; }
#vr-skin.skin-real-estate #vr-info-panel:not(.hidden) #vr-info-text > :nth-child(2) { animation-delay: 0.40s; }
#vr-skin.skin-real-estate #vr-info-panel:not(.hidden) #vr-info-text > :nth-child(3) { animation-delay: 0.50s; }
#vr-skin.skin-real-estate #vr-info-panel:not(.hidden) #vr-info-text > :nth-child(4) { animation-delay: 0.60s; }
#vr-skin.skin-real-estate #vr-info-panel:not(.hidden) #vr-info-text > :nth-child(n+5) { animation-delay: 0.70s; }
#vr-skin.skin-real-estate #vr-info-panel:not(.hidden) #vr-info-text h1::after { transform-origin: left center; animation: ebvDrawLine 1.2s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* "Vị trí dự án" map */
#vr-skin.skin-real-estate #vr-re-map-image-panel:not(.hidden) .vr-re-map-image-backdrop { animation: ebvFadeIn 0.5s ease both; }
#vr-skin.skin-real-estate #vr-re-map-image-panel:not(.hidden) .vr-re-map-image-box { animation: ebvPopIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) both; }
#vr-skin.skin-real-estate #vr-re-map-image-panel:not(.hidden) .vr-re-map-image { animation: ebvFocusIn 1.1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
#vr-skin.skin-real-estate #vr-re-map-image-panel:not(.hidden) .vr-re-map-image-toolbar,
#vr-skin.skin-real-estate #vr-re-map-image-panel:not(.hidden) .vr-re-map-image-zoombar { animation: ebvFadeIn 0.6s 0.5s ease both; }

/* image viewer */
[data-vr-lightbox] { animation: ebvFadeIn 0.5s ease both; }
[data-vr-lightbox] img[data-lightbox-index] { animation: ebvFocusIn 1.1s 0.1s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
[data-vr-lightbox] .vr-lb-caption { animation: ebvRiseIn 0.9s 0.35s cubic-bezier(0.22, 1, 0.36, 1) backwards; }

/* side panels (Tiện ích, Mặt bằng) */
#vr-re-panel[data-panel-display="side"]:not(.hidden) .vr-re-panel-box { animation: ebvSlideInRight 0.85s cubic-bezier(0.22, 1, 0.36, 1) both; }
#vr-re-panel[data-panel-name="amenities"]:not(.hidden) .vr-re-amenity-group { animation: ebvRiseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
#vr-re-panel[data-panel-name="amenities"]:not(.hidden) .vr-re-amenity-group:nth-child(1) { animation-delay: 0.20s; }
#vr-re-panel[data-panel-name="amenities"]:not(.hidden) .vr-re-amenity-group:nth-child(2) { animation-delay: 0.32s; }
#vr-re-panel[data-panel-name="amenities"]:not(.hidden) .vr-re-amenity-group:nth-child(3) { animation-delay: 0.44s; }
#vr-re-panel[data-panel-name="amenities"]:not(.hidden) .vr-re-amenity-group:nth-child(n+4) { animation-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  .ebv-apt, .ebv-apt *, #vr-info-panel, #vr-info-panel *, #vr-info-panel *::before, #vr-info-panel *::after,
  #vr-re-map-image-panel *, [data-vr-lightbox], [data-vr-lightbox] *, #vr-re-panel * { animation: none !important; transition: none !important; }
}

/* ---- narrower bottom menu (desktop): 5 equal items ---- */
@media (min-width: 901px) {
  #vr-skin.skin-real-estate .vr-re-menu-item { flex: 0 0 90px; min-width: 90px; padding: 0 6px; }
}

/* ---- "Vị trí dự án" map: full-screen viewer + zoom hint ---- */
#vr-skin.skin-real-estate #vr-re-map-image-panel .vr-re-map-image-backdrop {
  background: rgba(6, 30, 28, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
#vr-skin.skin-real-estate .vr-re-map-image-box.expanded { background: transparent; }
#vr-skin.skin-real-estate .vr-re-map-image-box.expanded .vr-re-map-image { padding: 10px; box-sizing: border-box; }
#vr-skin.skin-real-estate .vr-re-map-image-toolbar .vr-re-map-image-expand,
#vr-skin.skin-real-estate .vr-re-map-image-toolbar .vr-re-map-image-close {
  width: 42px;
  height: 42px;
  background: rgba(15, 61, 56, 0.72);
  border: 1px solid rgba(236, 208, 143, 0.6);
}
#vr-skin.skin-real-estate .vr-re-map-image-zoombar {
  background: rgba(15, 61, 56, 0.78);
  border: 1px solid rgba(236, 208, 143, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#vr-skin.skin-real-estate .vr-re-map-image-zoombar::before {
  content: 'Lăn chuột hoặc nhấn đúp để phóng to · kéo để xem';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(15, 61, 56, 0.82);
  border: 1px solid rgba(236, 208, 143, 0.45);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  animation: ebvHintFade 6s ease forwards;
}
@media (hover: none) {
  #vr-skin.skin-real-estate .vr-re-map-image-zoombar::before { content: 'Dùng 2 ngón hoặc chạm đúp để phóng to'; }
}
@keyframes ebvHintFade {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}
/* ==== /EBV custom ==== */

/* Feedback 09/11/2026 */
.ebv-apt__eyebrow {font-size:13px;letter-spacing:.18em}
.ebv-apt__code {font-size:40px}
.ebv-apt__model {font-size:13px}
.ebv-apt__model b {font-size:17px}
.ebv-apt__aside-inner {padding:28px 28px 22px}
.ebv-apt__logo {margin-bottom:22px}
.ebv-apt__rule {margin:22px 0}
.ebv-apt__foot {padding-top:20px}
.ebv-apt__call-text {display:flex;flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap}
.ebv-apt__call-text small {font-size:16px;letter-spacing:0;text-transform:none}
.ebv-apt__call-text b {font-size:19px}
.ebv-apt__note {font-size:12px;line-height:1.5;opacity:.8;margin-top:16px}
.ebv-apt__status {font-size:15px;line-height:1.6;margin-top:18px;color:#fff}
.ebv-apt__status b::before {content:'';display:inline-block;width:10px;height:10px;border-radius:3px;background:#d9dfdd;margin-right:7px}
.ebv-apt__status[data-status="reserved"] b::before {background:#efc85c}
.ebv-apt__status[data-status="deposited"] b::before {background:#df7370}
.ebv-apt__status[data-status="sold"] b::before {background:#69bd88}
.ebv-apt__status[data-status=""] b::before {display:none}
.ebv-apt__plan {max-width:calc(100% - 24px);max-height:calc(100% - 24px)}
.ebv-apt__tool {width:48px;height:48px;font-size:24px!important}
.ebv-nav-marker > .ggskin_external::after {content:'';position:absolute;inset:-8px;border:3px solid #ffe6a1;border-radius:50%;pointer-events:none;box-shadow:0 0 12px #e7c66c;animation:ebvNavRipple 2.2s ease-out infinite}
.ebv-nav-marker > .ggskin_external::before {content:'';position:absolute;inset:-8px;border:2px solid #fff5ca;border-radius:50%;pointer-events:none;animation:ebvNavRipple 2.2s 1.1s ease-out infinite}
@keyframes ebvNavRipple {0%{transform:scale(1);opacity:1}65%{opacity:.65}100%{transform:scale(1.6);opacity:0}}
@media(min-width:761px) and (max-height:800px) {
 .ebv-apt__aside-inner{padding:20px 24px}.ebv-apt__logo{height:32px;margin-bottom:14px}.ebv-apt__rule{margin:16px 0}.ebv-apt__foot{padding-top:14px}.ebv-apt__code{font-size:36px}.ebv-apt__status{margin-top:12px}
}
@media(max-width:760px){.ebv-apt__code{font-size:26px}.ebv-apt__aside-inner{padding:20px 18px}.ebv-apt__tool{width:44px;height:44px}.ebv-apt__eyebrow{font-size:12px}}
@media(prefers-reduced-motion:reduce){.ebv-nav-marker > .ggskin_external::after,.ebv-nav-marker > .ggskin_external::before{animation:none;opacity:.65}}
/* EBV custom (2026-11-10): three gallery photos (LK05) - large first photo on top, two below, fitted to the pane */
@media (min-width: 761px) {
  .ebv-apt__grid.is-trio { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1.65fr) minmax(0, 1fr); align-content: stretch; overflow: hidden; }
  .ebv-apt__grid.is-trio .ebv-apt__shot { aspect-ratio: auto; height: 100%; }
  .ebv-apt__grid.is-trio .ebv-apt__shot:first-child { grid-column: 1 / -1; }
}
/* EBV custom (2026-11-20): four gallery photos (LK05 + Cong vien Huong Giang) - 2 x 2, fitted to the pane */
@media (min-width: 761px) {
  .ebv-apt__grid.is-quad { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); align-content: stretch; overflow: hidden; }
  .ebv-apt__grid.is-quad .ebv-apt__shot { aspect-ratio: auto; height: 100%; }
}
/* phones: the default one-column grid let the 16:10 shots overlap (auto rows squeezed to the pane) - 2 x 2 fitted to the pane, smaller badge */
@media (max-width: 760px) {
  .ebv-apt__grid.is-quad { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-content: stretch; overflow: hidden; }
  .ebv-apt__grid.is-quad .ebv-apt__shot { aspect-ratio: auto; height: 100%; border-radius: 14px; box-shadow: 0 10px 24px rgba(19, 34, 31, 0.14); }
  .ebv-apt__grid.is-quad .ebv-apt__badge { left: 8px; bottom: 8px; gap: 5px; padding: 4px 8px; font-size: 8.5px !important; letter-spacing: 0.1em; }
  .ebv-apt__grid.is-quad .ebv-apt__badge::before { width: 4px; height: 4px; }
}
/* landscape phones (wide but short): same small badge on the 2 x 2 tiles */
@media (min-width: 761px) and (max-height: 560px) {
  .ebv-apt__grid.is-quad { gap: 12px; }
  .ebv-apt__grid.is-quad .ebv-apt__shot { border-radius: 14px; }
  .ebv-apt__grid.is-quad .ebv-apt__badge { left: 10px; bottom: 10px; gap: 5px; padding: 4px 9px; font-size: 8.5px !important; letter-spacing: 0.1em; }
  .ebv-apt__grid.is-quad .ebv-apt__badge::before { width: 4px; height: 4px; }
}
/* EBV custom (2026-11-10): airier unit info panel - spacing grows with the screen height, still fits without scrolling */
@media (min-width: 761px) {
  .ebv-apt__logo { margin-bottom: clamp(18px, 3.4vh, 40px); }
  .ebv-apt__code { margin-top: clamp(12px, 1.9vh, 22px); }
  .ebv-apt__model { margin-top: clamp(14px, 2.4vh, 26px); }
  .ebv-apt__rule { margin: clamp(18px, 3.8vh, 42px) 0; }
  .ebv-apt__hl { gap: 14px; }
  .ebv-apt__hl-item { padding: clamp(14px, 2.2vh, 22px) 18px clamp(13px, 2vh, 20px); }
  .ebv-apt__hl-lbl { margin-top: clamp(8px, 1.3vh, 13px); line-height: 1.55; }
  .ebv-apt__specs { margin-top: clamp(18px, 3.4vh, 38px); }
  .ebv-apt__spec { padding: clamp(12px, 2vh, 20px) 0; }
  .ebv-apt__status { margin-top: clamp(14px, 3vh, 34px); line-height: 1.7; }
}
/* EBV custom (2026-11-10): road-name plates that are off screen / behind the camera are not drawn (see skin-ui.js plateObstacles) */
img.ggmedia.ebv-plate-off { visibility: hidden !important; }
/* EBV custom (2026-11-13): mobile bottom menu shows every label (client: "có thêm chữ chú thích Vị trí, Tiện ích,
   Mặt bằng, Thông tin ... thu nhỏ lại 1 chút để có thể hiện được hết text"); realEstate.bottomMenu.mobileLabelMode = "all" */
@media (max-width: 900px) {
  #vr-skin.skin-real-estate #vr-re-bottom-menu[data-mobile-label-mode="all"] {
    height: 56px;
    padding: 0 4px;
    gap: 0;
    max-width: calc(100vw - 16px);
  }
  #vr-skin.skin-real-estate #vr-re-bottom-menu[data-mobile-label-mode="all"] .vr-re-menu-item {
    flex: 0 1 auto;
    min-width: 0;
    padding: 0 clamp(4px, 1.6vw, 9px);
    gap: 3px;
  }
  #vr-skin.skin-real-estate #vr-re-bottom-menu[data-mobile-label-mode="all"] .vr-re-menu-item span {
    font-size: clamp(10px, 2.9vw, 12.5px) !important;
    line-height: 1.15;
    white-space: nowrap;
    letter-spacing: 0;
  }
  #vr-skin.skin-real-estate #vr-re-bottom-menu[data-mobile-label-mode="all"] .vr-re-menu-item i { font-size: 14px; }
}
/* EBV custom (2026-11-13): a photo never taller than the area above the caption (landscape phones cut its top off) */
[data-vr-lightbox]:not(.vr-lb-expanded) img[data-lightbox-index] { max-height: min(85vh, calc(100% - 24px)) !important; }
/* EBV custom (2026-11-13): image viewer prev/next keys. Client: "mũi tên 2 chiều ... liên tục", "bỏ chữ Trước/Tiếp theo",
   "phong cách như ảnh mà sang hơn" (tall dark key with a white triangle), "đồng bộ với các nút" (zoom tool column),
   "làm nó nhỏ nhỏ thôi, sửa lại bố cục cho hợp lý ở mobile". Same material as the zoom tools - slate panel
   rgba(15,23,42,.72) around an inner key with a 1px white 20 % hairline and 12 % white fill - in a small tall format.
   Portrait phones: photo + caption + one row "◀ 21 / 45 ▶" grouped in the middle (row placed by skin-ui.js); zoom tools
   become a compact row at the top left on phones. */
[data-vr-lightbox] .vr-lb-nav {
  position: fixed;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 80px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: none;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease, left 0.3s ease, top 0.3s ease;
}
[data-vr-lightbox] .vr-lb-nav::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}
[data-vr-lightbox] .vr-lb-nav--prev { left: 28px; }
[data-vr-lightbox] .vr-lb-nav--next { right: 28px; }
[data-vr-lightbox] .vr-lb-nav svg {
  position: relative;
  width: 14px;
  height: 14px;
  display: block;
  transition: transform 0.25s ease;
}
[data-vr-lightbox] .vr-lb-nav:hover::before,
[data-vr-lightbox] .vr-lb-nav:focus-visible::before { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.34); }
[data-vr-lightbox] .vr-lb-nav:focus-visible { outline: none; }
[data-vr-lightbox] .vr-lb-nav--prev:hover svg { transform: translateX(-2px); }
[data-vr-lightbox] .vr-lb-nav--next:hover svg { transform: translateX(2px); }
[data-vr-lightbox] .vr-lb-nav:active { transform: translateY(-50%) scale(0.96); }
[data-vr-lightbox] .vr-lb-counter {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 2;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
/* phones: compact zoom tools in a row at the top left */
@media (max-width: 760px), (max-height: 500px) {
  [data-vr-lightbox] .vr-lb-tools {
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    flex-direction: row !important;
    gap: 4px !important;
    padding: 4px !important;
    border-radius: 9px !important;
  }
  [data-vr-lightbox] .vr-lb-tools button {
    width: 32px !important;
    height: 32px !important;
    margin-top: 0 !important;
    border-radius: 6px !important;
    font-size: 18px !important;
  }
  [data-vr-lightbox] .vr-lb-tools button svg { width: 15px; height: 15px; }
  [data-vr-lightbox] .vr-lb-tools span { min-width: 34px !important; font-size: 10px !important; }
  [data-vr-lightbox] .vr-lb-nav { width: 34px; height: 64px; border-radius: 8px; }
  [data-vr-lightbox] .vr-lb-nav::before { inset: 3px; border-radius: 6px; }
  [data-vr-lightbox] .vr-lb-nav svg { width: 12px; height: 12px; }
}
/* portrait phones: photo, caption and the control row grouped in the middle */
@media (max-width: 760px) and (orientation: portrait) {
  [data-vr-lightbox]:not(.vr-lb-expanded) { justify-content: center; }
  [data-vr-lightbox]:not(.vr-lb-expanded) > div:first-child { flex: 0 0 auto !important; height: 62vw !important; }
  [data-vr-lightbox]:not(.vr-lb-expanded) img[data-lightbox-index] { max-width: 94vw !important; max-height: calc(62vw - 6px) !important; }
  [data-vr-lightbox]:not(.vr-lb-expanded) .vr-lb-caption { box-sizing: border-box; height: 150px; padding: 14px 18px 0 !important; overflow: hidden; }
  [data-vr-lightbox]:not(.vr-lb-expanded) .vr-lb-caption > div:first-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  [data-vr-lightbox] .vr-lb-nav { width: 40px; height: 40px; }
  [data-vr-lightbox] .vr-lb-nav::before { inset: 4px; }
}
/* EBV custom (2026-11-13): images inside the "Thông tin" text (client: after paragraph 3 "Tổng quan dự án",
   after the last paragraph "6 giá trị độc bản"); click opens the image viewer (skin-ui.js) */
#vr-skin.skin-real-estate #vr-info-text .ebv-info-figure,
#vr-skin.skin-real-estate .vr-info-section .ebv-info-figure {
  margin: 26px 0 30px;
  padding: 0;
}
#vr-skin.skin-real-estate .vr-info-section .ebv-info-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(201, 164, 92, 0.45);
  box-shadow: 0 12px 30px rgba(15, 45, 40, 0.18);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#vr-skin.skin-real-estate .vr-info-section .ebv-info-figure img:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 45, 40, 0.24);
}
/* EBV custom (2026-11-20, client feedback 20-11) ------------------------------------------------------------------ */
/* item 3: discreet illustration note on the overview scene (skin-ui.js #ebv-scene-note, node11 only) */
#ebv-scene-note {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 6;
  max-width: 46vw;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#ebv-scene-note.is-on { opacity: 1; }
@media (max-width: 760px) {
  #ebv-scene-note { right: 10px; bottom: 76px; font-size: 10px; max-width: 70vw; }
}
/* item 4: "Liên hệ" caption above the round contact button (hidden while the contact rail is open) */
#vr-skin.skin-real-estate .vr-re-rail-toggle { overflow: visible; }
#vr-skin.skin-real-estate .vr-re-rail-toggle .ebv-rail-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%);
  padding: 3px 10px 4px;
  border-radius: 999px;
  border: 1px solid rgba(236, 208, 143, 0.6);
  background: rgba(41, 127, 118, 0.82);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  transition: opacity 0.2s ease;
}
#vr-skin.skin-real-estate .vr-re-rail.is-open .vr-re-rail-toggle .ebv-rail-label { opacity: 0; }
/* item 5: "Nhận tư vấn ngay" partner block at the end of the "Thông tin" text */
#vr-skin.skin-real-estate .vr-info-section .ebv-info-contact {
  margin: 34px 0 8px;
  padding: 26px 4px 6px;
  border-top: 1px solid rgba(201, 164, 92, 0.45);
  text-align: center;
}
#vr-skin.skin-real-estate .vr-info-section .ebv-info-contact__title {
  margin: 0 0 22px;
  color: #1f6a62;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
#vr-skin.skin-real-estate .vr-info-section .ebv-info-contact__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 10px;
  align-items: end;
}
#vr-skin.skin-real-estate .vr-info-section .ebv-info-contact__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 2px;
  border-radius: 12px;
  color: #1f3b37;
  text-decoration: none;
  transition: background 0.2s ease;
}
#vr-skin.skin-real-estate .vr-info-section .ebv-info-contact__item:hover { background: rgba(41, 127, 118, 0.07); }
#vr-skin.skin-real-estate .vr-info-section .ebv-info-contact__logo {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#vr-skin.skin-real-estate .vr-info-section .ebv-info-contact__logo img { display: block; max-width: 100%; object-fit: contain; }
#vr-skin.skin-real-estate .vr-info-section .ebv-info-contact__tel {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  #vr-skin.skin-real-estate .vr-info-section .ebv-info-contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* item 7: LK05 status -> link to the client's live sheet */
.ebv-apt__status-link { color: #f3dc9e; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 600; }
.ebv-apt__status-link:hover { color: #fff; }
.ebv-apt__status-link::after { content: ' \2197'; font-size: 0.85em; }
.ebv-apt__status b.ebv-apt__status-detail::before { display: none; }
