/* 360 Public Tour Viewer CSS - Ultra Luxury Dark Theme */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  user-select: none;
}

#tour-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Vertical Controls Stack (Top-Right, positioned below top bar) */
.vertical-controls-stack {
  position: absolute;
  top: 92px;
  right: 20px;
  z-index: 35;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, top 0.2s ease;
}

body.has-preview-bar .tour-topbar {
  top: 44px;
}

body.has-preview-bar .vertical-controls-stack {
  top: 124px;
}

.vert-btn {
  background: none;
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vert-btn:last-child {
  border-bottom: none;
}

.vert-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #38bdf8;
}

.vert-btn.active {
  background: #0284c7;
  color: #fff;
}

/* ==========================================================================
   TOP BAR (Virtual Tour Floating Header — Image 2 Style)
   ========================================================================== */
.tour-topbar {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 8px 16px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tour-topbar.hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

/* Left Group: Brand & Unit */
.topbar-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 360° Neon Brand Badge */
.topbar-brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-badge-360 {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #0b0f19;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  color: #fbbf24;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
  flex-shrink: 0;
}

.topbar-badge-360::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f59e0b 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.topbar-brand-text {
  display: flex;
  flex-direction: column;
}

.topbar-brand-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-brand-name {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
}

.topbar-vt-tag {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.topbar-project-title {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 1px;
  white-space: nowrap;
}

/* Unit / Layout Dropdown Pill */
.topbar-unit-pill-wrap {
  position: relative;
}

.topbar-unit-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.topbar-unit-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
}

.topbar-unit-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  flex-shrink: 0;
}

.topbar-unit-text {
  display: flex;
  flex-direction: column;
}

.topbar-unit-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
  text-transform: uppercase;
  line-height: 1;
}

.topbar-unit-val {
  font-size: 0.775rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  margin-top: 2px;
}

.topbar-unit-chevron {
  font-size: 0.65rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.topbar-unit-pill.open .topbar-unit-chevron {
  transform: rotate(180deg);
}

.topbar-unit-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 60;
  animation: fadeInDown 0.2s ease;
}

.topbar-unit-dropdown.open {
  display: block;
}

.unit-dropdown-item {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}

.unit-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.unit-dropdown-item.active {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.unit-item-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.unit-item-desc {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 1px;
}

/* Center Section: Active Room Capsule */
.topbar-center-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 500px;
  flex-grow: 1;
  margin: 0 8px;
  transition: all 0.2s ease;
  user-select: none;
}

.topbar-room-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.topbar-room-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.topbar-floor-tag {
  background: rgba(99, 102, 241, 0.24);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #c7d2fe;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.topbar-cat-tag {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34d399;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.topbar-room-desc {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 440px;
}

/* Right Group: Actions & Controls */
.topbar-right-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Guided Tour Button */
.topbar-btn-guided {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.775rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.topbar-btn-guided:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.6);
  filter: brightness(1.1);
}

.topbar-btn-guided.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

/* 4K ULTRA Badge Button */
.topbar-badge-4k {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fbbf24;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.topbar-badge-4k:hover {
  background: rgba(245, 158, 11, 0.22);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

/* Floor Plan Button */
.topbar-btn-floorplan {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.topbar-btn-floorplan:hover {
  background: rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

/* Circular Icon Buttons: Eye, Info "I", Share */
.topbar-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.topbar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Specifically for the Info (I) Icon Button */
.topbar-btn-info {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(139, 92, 246, 0.45);
  color: #c4b5fd;
  font-weight: 900;
  font-size: 1rem;
}

.topbar-btn-info:hover,
.topbar-btn-info.active {
  background: #6366f1;
  color: #ffffff;
  border-color: #818cf8;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.6);
}

/* ==========================================================================
   PROPERTY PASSPORT SIDE DRAWER (Architectural Specifications — Image 1 Style)
   ========================================================================== */
.passport-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.passport-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.passport-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 440px;
  max-width: 100vw;
  height: 100%;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 130;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.7);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.passport-drawer.open {
  right: 0;
}

/* Passport Header */
.passport-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.4);
  flex-shrink: 0;
}

.passport-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.passport-icon-i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #4f46e5;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 0 16px rgba(79, 70, 229, 0.5);
  flex-shrink: 0;
}

.passport-header-title-box h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

.passport-header-title-box p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 2px 0 0;
}

.passport-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}

.passport-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: scale(1.05);
}

/* Passport Body (Scrollable) */
.passport-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.passport-body::-webkit-scrollbar {
  width: 5px;
}
.passport-body::-webkit-scrollbar-track {
  background: transparent;
}
.passport-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 3px;
}

/* Active Room Details Section */
.passport-section-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: #818cf8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.passport-room-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.passport-room-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0 0 20px;
}

/* 2x2 Specs Grid */
.passport-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.passport-spec-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

.passport-spec-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.passport-spec-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.passport-spec-val.val-yellow {
  color: #fbbf24;
}

.passport-spec-val.val-green {
  color: #34d399;
}

/* Full Width Spec Cards */
.passport-full-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.passport-full-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

/* Architectural Highlights Section */
.passport-highlights-wrap {
  margin-top: 8px;
  margin-bottom: 16px;
}

.passport-highlights-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.passport-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.825rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.passport-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #818cf8;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 6px #818cf8;
}

/* Divider */
.passport-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 10px 0 18px;
}

/* CTA Action Buttons */
.passport-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.passport-btn-schedule {
  background: linear-gradient(90deg, #f59e0b 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.passport-btn-schedule:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55);
  filter: brightness(1.08);
}

.passport-btn-dealroom {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.passport-btn-dealroom:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* ==========================================================================
   MODALS: Site Visit Booking, Private Deal Room, Share Dialog, Toast
   ========================================================================== */
.tour-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.tour-modal-backdrop.open {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tour-modal-card {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 26px;
  max-width: 480px;
  width: 100%;
  color: #ffffff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes modalScaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.tour-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.tour-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.tour-modal-subtitle {
  font-size: 0.775rem;
  color: #94a3b8;
  margin: 3px 0 0;
}

.tour-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.tour-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Floating Toast Notification */
.tour-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Zen View Mode */
body.zen-mode .tour-topbar,
body.zen-mode .gallery-dock,
body.zen-mode .vertical-controls-stack,
body.zen-mode .door-portal-banner {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

body.zen-mode .gallery-dock {
  transform: translateY(100%);
}

.zen-floating-eye {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

body.zen-mode .zen-floating-eye {
  display: flex;
}

.zen-floating-eye:hover {
  transform: scale(1.08);
  background: #2563eb;
}

/* Responsive Rules */
@media (max-width: 1100px) {
  .topbar-center-pill {
    max-width: 340px;
  }
  .topbar-room-desc {
    display: none;
  }
}

@media (max-width: 900px) {
  .topbar-unit-pill-wrap {
    display: none;
  }
  .topbar-badge-4k {
    display: none;
  }
}

@media (max-width: 768px) {
  .tour-topbar {
    top: 8px;
    left: 8px;
    right: 8px;
    padding: 6px 12px;
    border-radius: 14px;
  }
  .topbar-project-title {
    display: none;
  }
  .topbar-btn-guided .btn-lbl,
  .topbar-btn-floorplan .btn-lbl {
    display: none;
  }
  .passport-drawer {
    width: 100%;
    right: -100%;
  }
  .vertical-controls-stack {
    top: 76px;
    right: 12px;
  }
  body.has-preview-bar .vertical-controls-stack {
    top: 112px;
  }
}

/* Door Portal Hint Banner */
.door-portal-banner {
  position: absolute;
  bottom: 236px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 500;
  color: #e2e8f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.door-portal-banner.hidden {
  opacity: 0;
  transform: translate(-50%, 15px);
}

/* Bottom Gallery Dock */
.gallery-dock {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 35;
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px 24px 16px;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-dock.collapsed {
  transform: translateY(calc(100% - 44px));
}

/* Gallery Header: Filter Pills, Search Bar & Admin Button */
.gallery-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}

.gallery-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.775rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.category-pill.active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

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

.search-box-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box-wrap input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 6px 14px 6px 32px;
  color: #fff;
  font-size: 0.775rem;
  outline: none;
  width: 140px;
  transition: width 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

.search-box-wrap input:focus {
  width: 190px;
  background: rgba(255, 255, 255, 0.14);
  border-color: #38bdf8;
}

.search-box-wrap .search-icon {
  position: absolute;
  left: 11px;
  font-size: 0.75rem;
  color: #94a3b8;
  pointer-events: none;
}

.admin-studio-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.775rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.admin-studio-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.5);
  color: #fff;
}

/* Dock Collapse/Expand Toggle Tab */
.dock-toggle-tab {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(11, 15, 25, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 4px 18px;
  font-size: 0.75rem;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
}

.dock-toggle-tab:hover {
  color: #fff;
  background: #1e293b;
}

/* Thumbnail Cards Track */
.room-cards-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-behavior: smooth;
}

.room-cards-track::-webkit-scrollbar {
  height: 6px;
}
.room-cards-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
}
.room-cards-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
.room-cards-track::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Individual Room Card */
.room-card {
  width: 175px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.room-card.active {
  border-color: #3b82f6;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.65), 0 0 0 1px #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}

.room-card-img-wrap {
  position: relative;
  width: 100%;
  height: 84px;
  background: #000;
  overflow: hidden;
}

.room-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.room-card:hover .room-card-img {
  transform: scale(1.06);
}

/* Badges on Card */
.floor-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.floor-badge-ground {
  background: #059669;
  color: #fff;
}
.floor-badge-f1 {
  background: #4f46e5;
  color: #fff;
}
.floor-badge-f2 {
  background: #7c3aed;
  color: #fff;
}

.active-pill-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #f59e0b;
  color: #000;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.6);
  z-index: 2;
  display: none;
  animation: activePulse 2s infinite;
}

.room-card.active .active-pill-badge {
  display: block;
}

@keyframes activePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.room-card-info {
  padding: 8px 10px;
}

.room-card-title {
  font-size: 0.775rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.room-card-area {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* Hotspot Custom Stying */
.custom-hotspot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.9);
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.custom-hotspot::after {
  content: '➜';
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
}

/* Doorway / Next Room Hotspot */
.custom-hotspot.hs-door {
  background: rgba(14, 165, 233, 0.92);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(14, 165, 233, 0.4);
  animation: pulseDoorHotspot 2.2s infinite ease-in-out;
}

.custom-hotspot.hs-door::after {
  content: '🚪';
  font-size: 1.25rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

@keyframes pulseDoorHotspot {
  0% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(14, 165, 233, 0.7);
  }
  70% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 12px rgba(14, 165, 233, 0);
  }
  100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

.custom-hotspot.hs-stairs::after {
  content: '🪜';
  font-size: 1.2rem;
}

.custom-hotspot.hs-elevator::after {
  content: '🛗';
  font-size: 1.2rem;
}

.custom-hotspot:hover {
  transform: scale(1.22);
  background: #2563eb;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(37, 99, 235, 0.55);
}

.custom-hotspot.hs-door:hover {
  background: #0284c7;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(14, 165, 233, 0.6);
}

.custom-hotspot.hs-info {
  background: rgba(16, 185, 129, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 0 5px rgba(16, 185, 129, 0.35);
}

.custom-hotspot.hs-info::after {
  content: 'ℹ';
  font-weight: bold;
}

/* Floor Plan Modal Overlay */
.floorplan-overlay {
  position: absolute;
  top: 80px;
  right: 24px;
  width: 360px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(18px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  z-index: 40;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: none;
}

.floorplan-overlay.open {
  display: block;
  animation: fadeInDown 0.25s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.floorplan-header {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.floorplan-container {
  position: relative;
  width: 100%;
  background: #fff;
}

.floorplan-img {
  width: 100%;
  display: block;
}

.fp-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  border-radius: 50%;
  background: #0284c7;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}

.fp-marker:hover {
  transform: scale(1.35);
}

.fp-marker.active {
  background: #ef4444;
  animation: markerPulse 1.5s infinite;
}

@keyframes markerPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8); }
  70% { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Side Drawer (Lead inquiry & Details) */
.side-drawer {
  position: absolute;
  top: 0;
  right: -440px;
  width: 420px;
  height: 100%;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 50;
  padding: 32px;
  box-sizing: border-box;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-drawer.open {
  right: 0;
}
