/* === 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-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-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-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-edge-x, 12px);
    bottom: var(--mascot-mobile-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-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-edge-x, 12px);
  }

  .mascot-wrapper.pos-top-left,
  .mascot-wrapper.pos-top-right {
    top: var(--mascot-mobile-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, 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);
  }
}


/* === 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-menu-h: var(--re-desktop-menu-h, 64px);
  --re-topbar-h: 58px;
  --radius: 10px;
}

#vr-skin.skin-real-estate :is(.vr-re-top-btn, .vr-re-top-icon, .vr-re-rail-toggle, .vr-re-rail-item, .vr-re-sidebar-link, #vr-re-apartment-map-btn) {
  background: var(--re-floating-background, var(--re-control-bg));
  color: var(--re-floating-textColor, var(--re-control-text));
  backdrop-filter: var(--re-floating-backdrop, none);
  -webkit-backdrop-filter: var(--re-floating-backdrop, none);
}

#vr-skin.skin-real-estate .vr-re-rail-item,
#vr-skin.skin-real-estate .vr-re-sidebar-link {
  background: var(--re-floating-background, var(--re-control-bg-soft));
}

#vr-skin.skin-real-estate :is(.vr-re-top-btn, .vr-re-top-icon, .vr-re-rail-toggle, .vr-re-rail-item, .vr-re-sidebar-link, #vr-re-apartment-map-btn):is(.active, :focus-visible),
#vr-skin.skin-real-estate .vr-re-rail.is-open .vr-re-rail-toggle {
  background: var(--re-floating-activeBackground, var(--re-control-bg-hover));
  color: var(--re-floating-activeTextColor, var(--re-floating-textColor, var(--re-control-text)));
}

@media (hover: hover) and (pointer: fine) {
  #vr-skin.skin-real-estate :is(.vr-re-top-btn, .vr-re-top-icon, .vr-re-rail-toggle, .vr-re-rail-item, .vr-re-sidebar-link, #vr-re-apartment-map-btn):hover {
    background: var(--re-floating-activeBackground, var(--re-control-bg-hover));
    color: var(--re-floating-activeTextColor, var(--re-floating-textColor, var(--re-control-text)));
  }
}

/* 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;
} */

.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-skin.skin-real-estate.re-apartment-focused #vr-re-bottom-menu {
  z-index: 60;
  background: transparent !important;
  box-shadow: none !important;
}

#vr-skin.skin-real-estate.re-apartment-focused.re-top-menu-open #vr-re-bottom-menu {
  z-index: 180;
  background: var(--re-mobile-drawer-bg, var(--re-bottom-menu-bg)) !important;
  box-shadow: 12px 16px 32px rgba(0, 48, 86, 0.25) !important;
}

#vr-skin.skin-real-estate.re-apartment-focused #btn-re-top-menu-toggle {
  pointer-events: auto;
}

#vr-re-bottom-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  transform: none;
  height: var(--re-desktop-menu-h, 64px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  max-width: 100vw;
  overflow: visible;
  scrollbar-width: none;
  border-radius: 0;
  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-menu-logo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  align-self: stretch;
  flex: 0 0 auto;
  min-width: 150px;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.vr-re-menu-logo img {
  display: block;
  width: auto;
  max-width: 178px;
  max-height: 52px;
  object-fit: contain;
}

#vr-re-bottom-menu::-webkit-scrollbar {
  display: none;
}

.vr-re-menu-items {
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.vr-re-menu-items::-webkit-scrollbar {
  display: none;
}

#btn-re-top-menu-toggle {
  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: var(--re-menu-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(220px, calc(100vw - 32px));
  max-height: 340px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)), var(--re-submenu-background, #fff);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-top: 0;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  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;
  padding: 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(15, 23, 42, 0.25);
  border-radius: 2px;
}

.vr-re-node-popup-item {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1f2937;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.vr-re-node-popup-item:hover,
.vr-re-node-popup-item:focus-visible {
  background: rgba(15, 23, 42, 0.06);
  color: #111827;
}

.vr-re-node-popup-item:focus-visible {
  outline: 2px solid #475569;
  outline-offset: -2px;
}

.vr-re-node-popup-item.active {
  background: rgba(15, 23, 42, 0.1);
  color: #111827;
  font-weight: 600;
  box-shadow: inset 3px 0 currentColor;
}


.vr-re-node-popup-item + .vr-re-node-popup-item {
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

.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: static;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

#vr-re-bottom-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 110;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

#vr-re-bottom-actions > * {
  pointer-events: auto;
}

#vr-re-bottom-actions .mascot-wrapper {
  position: static;
  inset: auto;
  flex-direction: row;
  align-items: flex-end;
}

.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;
}

@media (min-width: 901px) {
  #vr-re-bottom-menu.re-menu-layout-inline .vr-re-menu-item {
    flex-direction: row;
    gap: 7px;
  }
}

.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: auto;
  right: 20px;
  bottom: 72px;
  width: 260px;
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 156px);
  z-index: 112;
  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: bottom 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: 113;
  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;
  flex: 0 0 36px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  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 button svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

#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: 20px 34px 14px;
  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: 16px 20px 10px;
    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 - 156px);
  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: var(--re-left-rail-desktop-left, 20px);
  bottom: var(--re-left-rail-desktop-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 {
  width: 21px;
  height: 21px;
}

.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;
  width: min(180px, calc(100vw - 28px));
  max-width: min(310px, calc(100vw - 28px));
  display: grid;
  gap: 12px;
  color: #fff;
  pointer-events: none;
}

#vr-re-apartment-info.hidden {
  display: none;
}

body.vr-re-apartment-map-open .vr-real-estate-host .vr-re-apartment-floorplan {
  pointer-events: auto !important;
  z-index: 73;
}

#vr-re-apartment-map-btn {
  position: fixed;
  z-index: 75;
  top: calc(var(--re-menu-h) + 12px);
  right: 12px;
  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-skin.skin-real-estate.re-apartment-map-enabled #vr-re-apartment-map-btn {
  display: inline-flex;
}

#vr-re-apartment-map-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#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-apartment-info[data-position="top-left"] {
  top: calc(var(--re-menu-h) + 12px);
  left: 8px;
}

#vr-re-apartment-info[data-position="top-right"] {
  top: calc(var(--re-menu-h) + 12px);
  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,
.vr-re-apartment-switcher {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--re-apartment-info-bg, #52705c);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  font-size: 14px;
  line-height: 1.55;
}

.vr-re-apartment-info-content:empty,
.vr-re-apartment-quick-links:empty {
  display: none;
}

.vr-re-apartment-info-content {
  width: 100%;
  max-width: 100%;
  max-height: 30vh;
  overflow-y: auto;
  pointer-events: auto;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.58) transparent;
  box-sizing: border-box;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.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-apartment-quick-links {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 30vh;
  overflow-y: auto;
  pointer-events: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.58) transparent;
}

.vr-re-apartment-info-content::-webkit-scrollbar,
.vr-re-apartment-quick-links::-webkit-scrollbar {
  width: 5px;
}

.vr-re-apartment-info-content::-webkit-scrollbar-track,
.vr-re-apartment-quick-links::-webkit-scrollbar-track {
  background: transparent;
}

.vr-re-apartment-info-content::-webkit-scrollbar-thumb,
.vr-re-apartment-quick-links::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.vr-re-apartment-info-content::-webkit-scrollbar-thumb:hover,
.vr-re-apartment-quick-links::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.78);
}

.vr-re-apartment-switcher {
  position: relative;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  color: inherit;
  pointer-events: auto;
}

.vr-re-apartment-switcher[hidden],
.vr-re-apartment-switcher.is-collapsed .vr-re-apartment-quick-links {
  display: none;
}

.vr-re-apartment-list-toggle {
  position: absolute;
  top: 50%;
  right: -32px;
  transform: translateY(-50%);
  display: block;
  margin: 0;
  width: 32px;
  min-height: 40px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--re-apartment-info-bg, #52705c);
  color: inherit;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

.vr-re-apartment-list-toggle:hover,
.vr-re-apartment-list-toggle:focus-visible,
.vr-re-apartment-list-toggle:active {
  background: var(--re-apartment-info-bg, #52705c);
  color: inherit;
  filter: brightness(1.1);
}

.vr-re-apartment-switcher.is-collapsed {
  justify-self: start;
  padding: 4px 8px;
}

.vr-re-apartment-switcher.is-collapsed .vr-re-apartment-list-toggle {
  position: static;
  transform: none;
  background: transparent;
  width: auto;
  min-height: 32px;
  border-radius: 4px;
  margin: 0;
  font-size: 13px;
}

.vr-re-apartment-switcher.is-collapsed:has(.vr-re-apartment-list-toggle:is(:hover, :focus-visible, :active)) {
  background: var(--re-apartment-info-bg, #52705c);
  color: inherit;
}

#vr-re-apartment-info[data-position="top-right"] .vr-re-apartment-info-content,
#vr-re-apartment-info[data-position="bottom-right"] .vr-re-apartment-info-content {
  justify-self: end;
}

#vr-re-apartment-info[data-position="top-right"] .vr-re-apartment-switcher:not(.is-collapsed) .vr-re-apartment-list-toggle,
#vr-re-apartment-info[data-position="bottom-right"] .vr-re-apartment-switcher:not(.is-collapsed) .vr-re-apartment-list-toggle {
  right: auto;
  left: -32px;
  border-radius: 8px 0 0 8px;
}

#vr-re-apartment-info .vr-re-apartment-quick-link {
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
  pointer-events: auto !important;
  touch-action: manipulation;
  box-shadow: none;
  cursor: pointer;
  transform: none;
}

#vr-re-apartment-info .vr-re-apartment-quick-link::after {
  display: none;
}

#vr-re-apartment-info .vr-re-apartment-quick-link:hover,
#vr-re-apartment-info .vr-re-apartment-quick-link:focus-visible,
#vr-re-apartment-info .vr-re-apartment-quick-link:active {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

#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) {
  #vr-skin.skin-real-estate {
    --re-menu-h: 58px;
  }

  :root {
    --re-menu-h: 58px;
    --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-menu-item span {
    display: block;
    font-size: 14px;
    line-height: 1.15;
    white-space: nowrap;
  }

  #vr-re-bottom-menu {
    height: 58px;
    top: 0;
    bottom: auto;
    justify-content: center;
  }

  #btn-re-top-menu-toggle {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--re-bottom-menu-text, #fff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
  }

  #btn-re-top-menu-toggle span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .vr-re-menu-logo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    min-width: 0;
    padding: 5px 8px;
  }

  .vr-re-menu-logo img {
    max-width: 72px;
    max-height: 46px;
  }

  .vr-re-menu-items {
    position: absolute;
    top: 58px;
    left: 0;
    width: min(240px, 78vw);
    height: auto;
    max-height: calc(100vh - 58px);
    padding: 8px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--re-mobile-drawer-bg, inherit);
    box-shadow: 12px 16px 32px rgba(0, 48, 86, 0.25);
    backdrop-filter: var(--re-bottom-menu-backdrop, blur(12px) saturate(140%));
    -webkit-backdrop-filter: var(--re-bottom-menu-backdrop, blur(12px) saturate(140%));
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-16px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }

  #vr-skin.skin-real-estate.re-top-menu-open .vr-re-menu-items {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  #vr-skin.skin-real-estate .vr-re-menu-items .vr-re-menu-item {
    width: 100%;
    min-width: 0;
    height: 52px;
    flex: 0 0 52px;
    padding: 0 18px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    text-align: left;
  }

  #vr-skin.skin-real-estate .vr-re-menu-items .vr-re-menu-item span {
    display: block;
  }

  #vr-skin.skin-real-estate #vr-re-node-popup.vr-re-node-popup-inline {
    position: relative;
    inset: auto;
    z-index: 1;
    width: 100%;
    max-height: 260px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.22);
    background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)), var(--re-submenu-background, #fff);
  }

  #vr-skin.skin-real-estate #vr-re-node-popup.vr-re-node-popup-inline .vr-re-node-popup-title {
    display: none;
  }

  #vr-skin.skin-real-estate #vr-re-node-popup.vr-re-node-popup-inline .vr-re-node-popup-item {
    padding: 11px 28px;
    color: #1f2937;
  }

  #vr-skin.skin-real-estate #vr-re-node-popup.vr-re-node-popup-inline .vr-re-node-popup-item:hover,
  #vr-skin.skin-real-estate #vr-re-node-popup.vr-re-node-popup-inline .vr-re-node-popup-item:focus-visible,
  #vr-skin.skin-real-estate #vr-re-node-popup.vr-re-node-popup-inline .vr-re-node-popup-item.active {
    color: #111827;
  }

  #vr-re-top-actions {
    gap: 5px;
  }

  #vr-re-bottom-actions {
    right: 10px;
    bottom: 12px;
    gap: 8px;
  }

  .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: auto;
    right: 10px;
    bottom: 60px;
    width: 42px;
  }

  .vr-re-rail-left {
    left: var(--re-left-rail-mobile-left, 14px);
    bottom: max(var(--re-left-rail-mobile-bottom, 54px), env(safe-area-inset-bottom));
    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: 20px 34px 14px;
  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 {
  width: auto;
  min-height: 64px;
  box-sizing: border-box;
  align-items: flex-end;
  gap: 22px;
  margin: 0 34px;
  padding: 0;
}

#vr-info-panel .vr-tab-btn {
  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 {
  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: 16px 20px 10px;
    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;
  }
}
