*, *::before, *::after { box-sizing: border-box; }

body, html {
  margin: 0; padding: 0;
  font-family: 'Outfit', Arial, sans-serif;
  overflow: hidden;
  background: #000;
}

/* ══════════════════════════════════════════
   ENTRY SPLASH
══════════════════════════════════════════ */
.splashScreen {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #0b0906;
  touch-action: none;
  overscroll-behavior: contain;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.splashScreen.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splashBg {
  position: absolute;
  inset: 0;
  background-color: #17110b;
  background-image: url("assets/Splash_Sceen/Splash_Screen_1600.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
  transition: transform 760ms cubic-bezier(.2,.8,.2,1), filter 760ms ease, opacity 760ms ease;
  will-change: transform, filter;
}

.splashVeil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 8, 5, .78) 0%, rgba(11, 8, 5, .42) 42%, rgba(11, 8, 5, .72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .16) 0%, rgba(0, 0, 0, .5) 100%);
  transition: background 760ms ease;
}

.splashIntro,
.splashMenu {
  position: relative;
  z-index: 1;
}

.splashIntro {
  display: flex;
  min-height: 100svh;
  width: min(92vw, 780px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 34px;
  transition: transform 760ms cubic-bezier(.2,.8,.2,1), opacity 520ms ease;
}

.splashLogo {
  width: clamp(220px, 28vw, 420px);
  max-height: 26svh;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .38));
}

.splashSwipeCue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: transparent;
  pointer-events: none;
}

.splashArrow {
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
  animation: splashArrowFloat 1.35s ease-in-out infinite;
}

@keyframes splashArrowFloat {
  0%, 100% { transform: translateY(3px) rotate(45deg); opacity: .55; }
  50% { transform: translateY(-4px) rotate(45deg); opacity: 1; }
}

.splashMenu {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: clamp(28px, 6vw, 96px);
  width: min(1180px, calc(100vw - 64px));
  margin: auto;
  padding: 0 0 clamp(46px, 8vh, 86px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(54px);
  transition: opacity 560ms ease 170ms, transform 720ms cubic-bezier(.2,.8,.2,1) 120ms;
}

.splashProjectCopy {
  max-width: 560px;
}

.splashEyebrow {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.splashProjectCopy h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 500;
  line-height: .96;
}

.splashProjectCopy p {
  margin: 0;
  max-width: 520px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
}

.splashActions {
  display: grid;
  gap: 14px;
  justify-self: stretch;
}

.splashBtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  width: 100%;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .28);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.splashBtn::after {
  content: "→";
  font-size: 20px;
  line-height: 1;
}

.splashBtn:hover,
.splashBtn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.splashBtnPrimary {
  background: #fff;
  color: #2b1d13;
  border-color: #fff;
}

.splashBtnSecondary {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  backdrop-filter: blur(14px);
}

.splashScreen.menu-open .splashBg {
  transform: scale(1.08);
  filter: blur(10px) saturate(.92);
}

.splashScreen.menu-open .splashVeil {
  background:
    linear-gradient(90deg, rgba(10, 7, 4, .86) 0%, rgba(10, 7, 4, .46) 48%, rgba(10, 7, 4, .82) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .62) 100%);
}

.splashScreen.menu-open .splashIntro {
  transform: translateY(-32svh) scale(.62);
  opacity: .96;
}

.splashScreen.menu-open .splashSwipeCue {
  opacity: 0;
}

.splashScreen.menu-open .splashMenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .splashVeil {
    background:
      linear-gradient(180deg, rgba(9, 7, 5, .46) 0%, rgba(9, 7, 5, .88) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .2));
  }

  .splashMenu {
    grid-template-columns: 1fr;
    align-content: end;
    align-items: end;
    width: min(100vw - 34px, 520px);
    gap: 24px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .splashProjectCopy h1 {
    font-size: clamp(38px, 14vw, 62px);
  }

  .splashScreen.menu-open .splashIntro {
    transform: translateY(-34svh) scale(.58);
  }

  .splashBtn {
    min-height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splashScreen,
  .splashBg,
  .splashIntro,
  .splashMenu,
  .splashBtn {
    transition: none;
  }

  .splashArrow {
    animation: none;
  }
}

/* ══════════════════════════════════════════
   MAIN CANVAS
══════════════════════════════════════════ */
#viewerCanvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; z-index: 0;
}

/* ══════════════════════════════════════════
   OVERLAY
══════════════════════════════════════════ */
.overlay {
  position: absolute; width: 100%; height: 100%;
  z-index: 10; pointer-events: none;
}
.overlay > * { pointer-events: auto; }

.topbar {
  position: absolute; top: 20px; width: 100%;
  display: flex; justify-content: space-between;
  padding: 0 30px; color: white;
}
/* legacy .logo removed — see .logoTopLeft below */

/* ══════════════════════════════════════════
   OFFICE MARKER
══════════════════════════════════════════ */
.marker.office {
  position: absolute; left: 60%; top: 50%;
  transform: translate(-50%, -50%);
  display: none; align-items: center; gap: 10px;
  cursor: pointer; z-index: 999;
}
.pulse {
  position: absolute; width: 20px; height: 20px;
  background: rgba(0,200,255,0.4); border-radius: 50%;
  animation: pulseAnim 1.5s infinite;
}
@keyframes pulseAnim { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
.marker.office .dot { width: 12px; height: 12px; background: #00c8ff; border-radius: 50%; }
.marker.office .label { background: rgba(0,0,0,0.75); color: #fff; padding: 6px 12px; font-size: 13px; border-radius: 6px; font-weight: 500; }

/* ══════════════════════════════════════════
   DETAIL VIEW
══════════════════════════════════════════ */
.detailView { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: none; z-index: 20; }

/* ══════════════════════════════════════════
   360 VIEW
══════════════════════════════════════════ */
.pondView {
  position: fixed !important; top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important;
  display: none !important; z-index: 99999 !important;
  background: #000 !important; cursor: grab !important;
}
.pondView:active { cursor: grabbing; }

#pondCanvas { 
  position: absolute !important; 
  top: 0 !important; 
  left: 0 !important; 
  display: block !important; 
  width: 100% !important;
  height: 100% !important;
  transition: opacity 180ms ease !important;
}

/* ══════════════════════════════════════════
   GLOBAL LOGO — TOP LEFT (persists everywhere)
══════════════════════════════════════════ */
.logoTopLeft {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 14px 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  cursor: default;
  user-select: none;
  pointer-events: auto;
}
.logoTopImg {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}
.logoTopTitle {
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   INFO BUTTON — TOP RIGHT
══════════════════════════════════════════ */
.infoBtn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(12,10,6,0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(245,208,128,0.24);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 22px rgba(0,0,0,0.38);
  pointer-events: auto;
}
.infoBtn:hover {
  background: rgba(200,134,10,0.32);
  border-color: rgba(245,208,128,0.55);
  color: #f5d080;
  box-shadow: 0 4px 20px rgba(200,134,10,0.25);
}
.infoBtn svg { flex-shrink: 0; }

/* ══════════════════════════════════════════
   LEFT SIDE PANEL (inside 360 view)
══════════════════════════════════════════ */
.leftSidePanel {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 37;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.logoSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.logoImg {
  width: 52px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.logoText {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}


/* ══════════════════════════════════════════
   BROCHURE OVERLAY
══════════════════════════════════════════ */
.brochureOverlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.brochureOverlay.open { opacity: 1; }

.brochurePanel {
  position: relative;
  width: 420px;
  max-width: 95vw;
  height: 100vh;
  background: linear-gradient(160deg, #10100d 0%, #211b11 58%, #0d0c09 100%);
  border-left: 1px solid rgba(200,134,10,0.25);
  box-shadow: -20px 0 60px rgba(0,0,0,0.7);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,134,10,0.2) transparent;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.2,0.8,0.2,1);
}
.brochureOverlay.open .brochurePanel { transform: translateX(0); }
.brochurePanel::-webkit-scrollbar { width: 3px; }
.brochurePanel::-webkit-scrollbar-thumb { background: rgba(200,134,10,0.25); border-radius: 2px; }

.brochureClose {
  position: sticky;
  top: 16px;
  left: calc(100% - 44px);
  z-index: 10;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  float: right;
  margin: 16px 16px -48px 0;
}
.brochureClose:hover { background: rgba(255,80,80,0.2); color: #ff8888; }

.brochureInner { padding: 0 0 40px; }

.brochureHeader {
  display: flex; align-items: center; gap: 14px;
  padding: 28px 24px 22px;
  border-bottom: 1px solid rgba(200,134,10,0.2);
  background: linear-gradient(135deg, rgba(200,134,10,0.14), rgba(255,255,255,0.03));
}
.brochureHeaderLogo {
  width: 52px; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  flex-shrink: 0;
}
.brochureHeaderText { display: flex; flex-direction: column; gap: 4px; }
.brochureTitle {
  color: #f0d49a;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
}
.brochureSubtitle {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.brochureImgStrip {
  margin: 20px 22px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(200,134,10,0.25);
}
.brochureProjectImg {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
  background: rgba(200,134,10,0.04);
  transition: transform 0.5s ease;
}
.brochureOverlay.open .brochureProjectImg { transform: scale(1.025); }
.brochureImgPlaceholder {
  height: 180px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: rgba(200,134,10,0.04);
  color: rgba(255,255,255,0.25);
  font-size: 13px;
}

.brochureFactsGrid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 0 22px 20px;
}
.brochureFact {
  background: rgba(200,134,10,0.07);
  border: 1px solid rgba(200,134,10,0.18);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.brochureFactVal {
  color: #f0d49a;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brochureFactLabel {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.brochureSection {
  margin: 0 22px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.brochureSectionTitle {
  color: rgba(200,134,10,0.8);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.brochureSectionBody {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  line-height: 1.8;
}

.brochureAmenityList {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.brochureAmenity {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  padding: 6px 14px;
}

.brochurePlaceholderNote {
  margin: 0 22px;
  padding: 12px 16px;
  background: rgba(200,134,10,0.07);
  border: 1px solid rgba(200,134,10,0.2);
  border-radius: 10px;
  color: rgba(200,134,10,0.7);
  font-size: 12px;
  line-height: 1.6;
}



/* ══════════════════════════════════════════
   HOTSPOT CONTAINER
══════════════════════════════════════════ */
.hotspotContainer {
  position: absolute; inset: 0;
  z-index: 34; pointer-events: none;
}

/* ══════════════════════════════════════════
   HOTSPOT ELEMENT
══════════════════════════════════════════ */
.hotspot {
  position: absolute; display: flex;
  flex-direction: column; align-items: center;
  cursor: pointer; pointer-events: auto;
  user-select: none; gap: 4px;
}

.hotspot-pulse {
  position: absolute; width: 46px; height: 46px;
  background: rgba(245,208,128,0.28); border-radius: 50%;
  animation: hsPulse 1.7s ease-out infinite;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
@keyframes hsPulse {
  0%   { transform: translate(-50%,-50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}

.hotspot-dot {
  width: 30px; height: 30px;
  background: radial-gradient(circle at 35% 30%, #fff8dc 0%, #f5d080 42%, #c8860a 100%);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.96);
  box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 22px rgba(245,208,128,0.62);
  transition: transform 0.15s, box-shadow 0.15s; z-index: 1;
}
.hotspot:hover .hotspot-dot {
  transform: scale(1.16);
  box-shadow: 0 5px 18px rgba(0,0,0,0.56), 0 0 30px rgba(245,208,128,0.78);
}

.hotspot-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  pointer-events: none;
  z-index: 2;
}

.hotspot-label {
  background: rgba(10,8,4,0.82); backdrop-filter: blur(8px);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 18px;
  white-space: nowrap; border: 1px solid rgba(245,208,128,0.45);
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.hotspot:hover .hotspot-label { opacity: 1; transform: translateY(0); }

/* ── Editor mode hotspot ── */
.hotspot.hs-editor .hotspot-pulse { background: rgba(255,180,0,0.3); animation: hsPulseEditor 1.8s ease-out infinite; }
@keyframes hsPulseEditor {
  0%   { transform: translate(-50%,-50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}
.hotspot.hs-editor .hotspot-dot { background: #ffb400; box-shadow: 0 0 10px rgba(255,180,0,0.7); cursor: move; }
.hotspot.hs-editor .hotspot-label { opacity: 1; transform: none; border-color: rgba(255,180,0,0.4); }

.hotspot.hs-selected .hotspot-dot {
  background: #ff4d4d; box-shadow: 0 0 14px rgba(255,77,77,0.8);
  transform: scale(1.4); border-color: #fff;
}
.hotspot.hs-selected .hotspot-label { border-color: rgba(255,77,77,0.5); color: #ff9999; }

.hs-drag-hint {
  font-size: 10px; color: rgba(255,180,0,0.7);
  background: rgba(0,0,0,0.5); padding: 2px 6px;
  border-radius: 10px; white-space: nowrap; pointer-events: none;
}

.hs-delete-btn {
  margin-top: 2px;
  padding: 3px 8px;
  border: 1px solid rgba(255,80,80,0.35);
  border-radius: 6px;
  background: rgba(80,0,0,0.72);
  color: #ffb2b2;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  pointer-events: auto;
}
.hs-delete-btn:hover {
  background: rgba(140,0,0,0.86);
  color: #fff;
}

.hotspotContextMenu {
  position: absolute;
  z-index: 80;
  min-width: 150px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(8,10,16,0.96);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
  transform: translate(8px, 8px);
}

.hotspotContextBtn {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 9px 10px;
  background: transparent;
  color: rgba(255,255,255,0.86);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.hotspotContextBtn:hover {
  background: rgba(255,255,255,0.08);
}

.hotspotContextBtn.danger {
  color: #ff9b9b;
}

.hotspotContextBtn.danger:hover {
  background: rgba(255,70,70,0.16);
  color: #fff;
}

/* ══════════════════════════════════════════
   360 TOP BAR
══════════════════════════════════════════ */
.viewer360Bar {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 35; display: flex; align-items: center;
  justify-content: space-between; padding: 16px 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, transparent 100%);
  pointer-events: none;
}
.viewer360Bar > * { pointer-events: auto; }

.viewer360BarRight { display: flex; align-items: center; gap: 8px; pointer-events: auto; }

.sceneBreadcrumb {
  color: rgba(255,255,255,0.9); font-size: 15px; font-weight: 500;
  letter-spacing: 0.5px; text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  pointer-events: none;
}

.editorToggleBtn {
  background: rgba(0,0,0,0.55); backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.65); padding: 8px 14px;
  border-radius: 20px; font-size: 12px; font-weight: 500;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s, color 0.2s; user-select: none;
}
.editorToggleBtn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.editorToggleBtn.editor-active { background: rgba(255,150,0,0.7) !important; color: #fff !important; border-color: rgba(255,180,0,0.5); }

/* ── Editor tip bar ── */
.editorTip {
  position: absolute; top: 64px; left: 0; right: 0; z-index: 36;
  display: none; align-items: center; justify-content: space-between;
  background: rgba(255,150,0,0.15); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,180,0,0.2);
  border-bottom: 1px solid rgba(255,180,0,0.2);
  padding: 10px 20px; color: rgba(255,220,150,0.9); font-size: 13px;
}
.editorKey {
  background: rgba(255,255,255,0.1); padding: 3px 10px;
  border-radius: 10px; font-size: 12px; color: rgba(255,255,255,0.6); white-space: nowrap;
}

/* ── Toast ── */
.editorToast {
  position: absolute; bottom: 60px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.88); backdrop-filter: blur(10px);
  color: #00c8ff; font-size: 13px; padding: 10px 20px;
  border-radius: 20px; border: 1px solid rgba(0,200,255,0.3);
  z-index: 50; pointer-events: none; opacity: 0;
  transition: opacity 0.3s; white-space: nowrap;
}

/* ══════════════════════════════════════════
   BACK BUTTON
══════════════════════════════════════════ */
.backBtn {
  color: white; background: rgba(12,10,6,0.62); backdrop-filter: blur(10px);
  padding: 8px 16px; cursor: pointer; border-radius: 20px;
  font-size: 13px; font-weight: 600; border: 1px solid rgba(245,208,128,0.22);
  user-select: none; transition: background 0.2s;
}
.backBtn:hover { background: rgba(200,134,10,0.25); }
.detailView .backBtn { position: absolute; top: 20px; left: 20px; z-index: 31; }

/* ══════════════════════════════════════════
   LOADING SPINNER
══════════════════════════════════════════ */
.viewer360Loader {
  position: absolute; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.7); gap: 14px;
}
.spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #00c8ff; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinnerLabel { color: rgba(255,255,255,0.7); font-size: 13px; letter-spacing: 0.5px; }

/* ══════════════════════════════════════════
   DRAG HINT
══════════════════════════════════════════ */
.pondHint {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55); font-size: 13px;
  letter-spacing: 0.5px; pointer-events: none;
  animation: fadeHint 4s ease forwards; animation-delay: 1s; z-index: 36;
}
@keyframes fadeHint { 0% { opacity: 1; } 100% { opacity: 0; } }

/* ══════════════════════════════════════════
   HOTSPOT EDITOR PANEL (left side)
══════════════════════════════════════════ */
.editorPanel {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 320px; z-index: 38;
  background: rgba(8,10,16,0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255,180,0,0.15);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.editorPanel.open { transform: translateX(0); }

.editorPanelHeader {
  padding: 20px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  background: rgba(255,150,0,0.06);
}
.editorPanelTitle { color: #ffb400; font-size: 14px; font-weight: 600; letter-spacing: 0.5px; }
.editorSceneName  { color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 3px; }

.editorPanelSection { padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.editorSectionLabel { color: rgba(255,255,255,0.3); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 2px; }

.editorPanelDivider { height: 1px; background: rgba(255,255,255,0.06); flex-shrink: 0; margin: 0 14px; }

/* Hotspot list inside editor */
.editorHotspotList {
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; flex: 1; padding: 14px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
  min-height: 0;
}
.editorHotspotList::-webkit-scrollbar { width: 3px; }
.editorHotspotList::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.editorEmpty {
  color: rgba(255,255,255,0.3); font-size: 13px;
  text-align: center; padding: 24px 12px; line-height: 1.6;
}

.editorHsRow {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px; padding: 10px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.editorHsRow:hover  { background: rgba(255,255,255,0.07); border-color: rgba(255,180,0,0.25); }
.editorHsRow.selected { background: rgba(255,180,0,0.08); border-color: rgba(255,180,0,0.4); }

.editorHsNum {
  width: 20px; height: 20px; flex-shrink: 0;
  background: rgba(255,180,0,0.2); color: #ffb400;
  border-radius: 50%; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

.editorHsFields { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.editorInput {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; color: #fff; font-family: 'Outfit', sans-serif;
  font-size: 13px; padding: 6px 10px; width: 100%;
  transition: border-color 0.2s; outline: none;
}
.editorInput:focus { border-color: rgba(255,180,0,0.5); background: rgba(255,180,0,0.05); }

.editorSelect {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; color: #fff; font-family: 'Outfit', sans-serif;
  font-size: 12px; padding: 6px 8px; width: 100%;
  transition: border-color 0.2s; outline: none; cursor: pointer;
}
.editorSelect:focus { border-color: rgba(0,200,255,0.5); }
.editorSelect option, .editorSelect optgroup { background: #111; color: #fff; }

.editorHsCoords {
  color: rgba(255,255,255,0.3); font-size: 11px; font-family: monospace;
  letter-spacing: 0.3px;
}
.editorHsDragHint { color: rgba(255,180,0,0.4); font-size: 10px; }

.editorHsDelete {
  background: none; border: none; color: rgba(255,255,255,0.25);
  font-size: 14px; cursor: pointer; padding: 4px; border-radius: 6px;
  transition: color 0.2s, background 0.2s; flex-shrink: 0; margin-top: 2px;
}
.editorHsDelete:hover { color: #ff5555; background: rgba(255,50,50,0.1); }

/* ── Editor buttons ── */
.editorBtn {
  border: none; border-radius: 8px; font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 500; padding: 9px 14px;
  cursor: pointer; transition: opacity 0.2s, background 0.2s; text-align: center;
}
.editorBtn.primary   { background: rgba(0,200,255,0.2); color: #00c8ff; border: 1px solid rgba(0,200,255,0.3); }
.editorBtn.primary:hover { background: rgba(0,200,255,0.35); }
.editorBtn.secondary { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.1); }
.editorBtn.secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }
.editorBtn.export    { background: rgba(100,200,100,0.12); color: #6ecf6e; border: 1px solid rgba(100,200,100,0.25); }
.editorBtn.export:hover { background: rgba(100,200,100,0.2); }
.editorBtn.reset     { background: rgba(255,80,80,0.1); color: rgba(255,130,130,0.8); border: 1px solid rgba(255,80,80,0.2); }
.editorBtn.reset:hover { background: rgba(255,80,80,0.2); color: #ff8888; }

/* ══════════════════════════════════════════
   BOTTOM CATEGORY NAV
══════════════════════════════════════════ */
.categoryPanel {
  position: fixed !important; 
  left: 50% !important; 
  right: auto !important; 
  bottom: 0 !important;
  width: 100% !important; 
  z-index: 100 !important;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.9));
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
}

.categoryTabs {
  display: flex !important; 
  flex-direction: row !important; 
  justify-content: center !important; 
  gap: 8px !important;
  padding: 12px 14px 8px !important; 
  flex-shrink: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
.categoryTabs::-webkit-scrollbar { display: none !important; }

.catTab {
  background: rgba(255,255,255,0.05) !important; 
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.68) !important;
  padding: 10px 18px !important; 
  border-radius: 6px !important; 
  cursor: pointer !important;
  display: flex !important; 
  align-items: center !important; 
  justify-content: center !important;
  font-family: 'Outfit', sans-serif !important; 
  font-size: 13px !important; 
  font-weight: 500 !important;
  text-align: center !important; 
  transition: background 0.18s, color 0.18s, border-color 0.18s !important; 
  flex-shrink: 0 !important;
  text-transform: uppercase !important; 
  letter-spacing: 0.7px !important;
  border: none !important;
}
.catTab:hover  { background: rgba(255,255,255,0.1) !important; color: #fff !important; }
.catTab.active { background: rgba(0,200,255,0.25) !important; color: #00c8ff !important; border: 1px solid rgba(0,200,255,0.5) !important; }

.sceneList {
  flex: 1 !important; 
  overflow-x: auto !important;
  padding: 10px 14px 14px !important; 
  display: flex !important; 
  flex-direction: column !important;
  justify-content: center !important; 
  gap: 8px !important;
  scrollbar-width: none !important;
}
.sceneList::-webkit-scrollbar { display: none !important; }

.sceneCard {
  border-radius: 6px !important; 
  cursor: pointer !important;
  background: rgba(0,0,0,0.22) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.78) !important;
  font-family: 'Outfit', sans-serif !important;
  min-height: 38px !important; 
  padding: 0 16px !important;
  transition: border-color 0.2s, transform 0.2s, background 0.2s, color 0.2s !important;
  flex: 0 0 auto !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}
.sceneCard:hover { 
  border-color: rgba(245,208,128,0.45) !important; 
  background: rgba(245,208,128,0.12) !important; 
  color: #fff !important; 
  transform: translateY(-1px) !important; 
}
.sceneCard.active { 
  border-color: rgba(245,208,128,0.75) !important; 
  background: rgba(245,208,128,0.2) !important; 
  color: #f5d080 !important; 
}

.panelHeader {
  display: none;
}

.categoryTabs {
  display: flex; flex-direction: row; justify-content: center; gap: 8px;
  padding: 12px 14px 8px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow-x: auto;
  scrollbar-width: none;
}
.categoryTabs::-webkit-scrollbar { display: none; }
.catTab {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.68);
  padding: 10px 18px; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 500;
  text-align: center; transition: background 0.18s, color 0.18s, border-color 0.18s; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: 0.7px;
}
.catTab:hover  { background: rgba(255,255,255,0.1); color: #fff; }
.catTab.active { background: rgba(216,192,142,0.18); color: #f5dfad; border-color: rgba(216,192,142,0.42); }
.catLabel { white-space: nowrap; }

.sceneList {
  flex: 1; overflow-x: auto;
  padding: 10px 14px 14px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  scrollbar-width: none;
}
.sceneList::-webkit-scrollbar { display: none; }

.sceneCard {
  border-radius: 6px; cursor: pointer;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.78);
  font-family: 'Outfit', sans-serif;
  min-height: 38px; padding: 0 16px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s, color 0.2s;
  flex: 0 0 auto;
}
.sceneCard:hover { border-color: rgba(216,192,142,0.45); background: rgba(216,192,142,0.12); color: #fff; transform: translateY(-1px); }
.sceneCard.active { border-color: rgba(216,192,142,0.75); background: rgba(216,192,142,0.2); color: #f5dfad; }

.cardLabel { color: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; }

.emptyState { padding: 10px 14px; text-align: center; color: rgba(255,255,255,0.38); font-size: 13px; }

/* ── Add Scene button at bottom of scene list ── */
.addSceneBtn {
  background: none; border: 1px dashed rgba(0,200,255,0.25);
  border-radius: 10px; color: rgba(0,200,255,0.5);
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 500;
  padding: 12px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; gap: 6px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0; margin-top: 4px;
}
.addSceneBtn:hover { background: rgba(0,200,255,0.08); color: #00c8ff; border-color: rgba(0,200,255,0.4); }

/* ══════════════════════════════════════════
   MODALS
══════════════════════════════════════════ */
.modalOverlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}

.modal {
  background: rgba(12,14,22,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; width: 400px; max-width: 90vw;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: none; } }

.modalHeader {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.modalTitle { color: #fff; font-size: 16px; font-weight: 600; margin: 0; }
.modalClose { background: none; border: none; color: rgba(255,255,255,0.4); font-size: 16px; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: color 0.2s; }
.modalClose:hover { color: #fff; }

.modalBody { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }

.modalLabel { color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: -6px; }

.modalInput {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; color: #fff; font-family: 'Outfit', sans-serif;
  font-size: 14px; padding: 10px 14px; width: 100%; outline: none;
  transition: border-color 0.2s;
}
.modalInput:focus { border-color: rgba(0,200,255,0.5); background: rgba(0,200,255,0.04); }
.modalInput option { background: #111; }

.modalHint {
  background: rgba(0,200,255,0.06); border: 1px solid rgba(0,200,255,0.15);
  border-radius: 8px; color: rgba(0,200,255,0.7); font-size: 12px;
  padding: 10px 14px; line-height: 1.6;
}
.modalHint code { background: rgba(0,0,0,0.3); padding: 1px 5px; border-radius: 4px; font-size: 11px; }

.modalFooter {
  padding: 14px 22px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ══════════════════════════════════════════
   POND MARKER (inside office)
══════════════════════════════════════════ */
.marker.pond {
  position: absolute; left: 50%; bottom: 120px;
  transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center;
  cursor: pointer; z-index: 32; pointer-events: auto;
  animation: pondMarkerPop 360ms cubic-bezier(.2,.9,.2,1);
}
.marker.pond .labelBox { display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.75); padding: 8px 14px; border-radius: 8px; margin-bottom: 6px; }
.marker.pond .dot { width: 10px; height: 10px; background: #00c8ff; border-radius: 50%; }
.marker.pond .label { color: #fff; font-size: 13px; font-weight: 500; }
.marker.pond .line { width: 2px; height: 80px; background: rgba(255,255,255,0.8); }

@keyframes pondMarkerPop {
  from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.94); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ══════════════════════════════════════════
   CATEGORY PANEL (Bottom UI)
══════════════════════════════════════════ */
.categoryPanel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 50;
  display: flex;
  flex-direction: column;
  max-height: 180px;
}

.categoryTabs {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 16px 8px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.categoryTabs::-webkit-scrollbar { height: 4px; }
.categoryTabs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.catTab {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.68);
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  white-space: nowrap;
  gap: 6px;
}
.catTab:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}
.catTab.active {
  background: rgba(0,200,255,0.25);
  color: #00c8ff;
  border-color: rgba(0,200,255,0.5);
}

.catLabel {
  white-space: nowrap;
}

.sceneList {
  flex: 1;
  overflow-x: auto;
  padding: 10px 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.sceneList::-webkit-scrollbar { height: 4px; }
.sceneList::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.sceneCard {
  border-radius: 6px;
  cursor: pointer;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.78);
  font-family: 'Outfit', sans-serif;
  min-height: 38px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  transition: border-color 0.2s, transform 0.2s, background 0.2s, color 0.2s;
  flex: 0 0 auto;
  white-space: nowrap;
}
.sceneCard:hover {
  border-color: rgba(0,200,255,0.45);
  background: rgba(0,200,255,0.12);
  color: #fff;
  transform: translateY(-1px);
}
.sceneCard.active {
  border-color: rgba(0,200,255,0.75);
  background: rgba(0,200,255,0.2);
  color: #00c8ff;
}

.cardLabel {
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.sceneGroupRow,
.sceneItemRow {
  display: flex;
  flex-direction: row;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sceneGroupRow::-webkit-scrollbar,
.sceneItemRow::-webkit-scrollbar { display: none; }

.sceneGroupCard {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.sceneGroupCard.active {
  background: rgba(200,134,10,0.25) !important;
  border-color: rgba(200,134,10,0.5) !important;
  color: #f5d080 !important;
}

/* ══════════════════════════════════════════
   360 VIEWER BAR (inside pondView)
══════════════════════════════════════════ */
.viewer360Bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 40;
  color: #fff;
  font-size: 14px;
}

.backBtn {
  cursor: pointer;
  padding: 8px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.backBtn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

.sceneBreadcrumb {
  flex: 1;
  text-align: center;
  font-weight: 600;
  letter-spacing: 1px;
}

.viewer360BarRight {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.editorToggleBtn {
  cursor: pointer;
  padding: 8px 12px;
  background: rgba(200,134,10,0.2);
  border: 1px solid rgba(200,134,10,0.35);
  border-radius: 6px;
  color: rgba(200,134,10,0.9);
  font-weight: 500;
  font-size: 12px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.editorToggleBtn:hover {
  background: rgba(200,134,10,0.35);
  border-color: rgba(200,134,10,0.5);
  color: #f5d080;
}

body:not(.admin-mode) #editorToggleBtn,
body:not(.admin-mode) #editorTip,
body:not(.admin-mode) #editorPanel {
  display: none !important;
}

/* ══════════════════════════════════════════
   POND HINT
══════════════════════════════════════════ */
.pondHint {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  pointer-events: none;
  z-index: 35;
}

/* ══════════════════════════════════════════
   LOADING SPINNER
══════════════════════════════════════════ */
.viewer360Loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 41;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0,200,255,0.2);
  border-top-color: #00c8ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinnerLabel {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════
   EDITOR TIP
══════════════════════════════════════════ */
.editorTip {
  position: absolute;
  top: 70px;
  left: 24px;
  right: 24px;
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: rgba(0,200,255,0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  z-index: 38;
}

.editorKey {
  background: rgba(0,200,255,0.15);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   MOBILE
══════════════════════════════════════════ */
@media (max-width: 600px) {
  .categoryPanel { max-height: 140px; }
  .categoryTabs { justify-content: flex-start; padding: 10px 10px 7px; gap: 6px; }
  .sceneList { justify-content: flex-start; padding: 8px 10px 12px; gap: 6px; }
  .catTab { padding: 9px 12px; font-size: 12px; }
  .sceneCard { min-height: 36px; padding: 0 12px; }

  .viewer360Bar { padding: 0 16px; height: 50px; }
  .sceneBreadcrumb { font-size: 12px; }

  .editorPanel { width: 100%; border-right: none; border-top: 1px solid rgba(255,180,0,0.15); top: auto; height: 70vh; transform: translateY(100%); left: 0; }
  .editorPanel.open { transform: translateY(0); }

  .editorToggleBtn { font-size: 11px; padding: 6px 10px; }
  .viewer360BarRight { gap: 5px; }

  .leftSidePanel { left: 12px; top: 12px; }
  .logoSection { padding: 10px 10px; }
  .logoImg { width: 38px; }
  .logoText { font-size: 9px; letter-spacing: 1.5px; }

  /* Top-left logo */
  .logoTopLeft { padding: 6px 10px 6px 8px; gap: 7px; }
  .logoTopImg { height: 28px; }
  .logoTopTitle { font-size: 11px; letter-spacing: 1.8px; }

  /* Info button */
  .infoBtn span { display: none; }
  .infoBtn { padding: 8px 10px; }

  /* Brochure */
  .brochurePanel { width: 100%; border-left: none; border-top: 1px solid rgba(200,134,10,0.25); height: 90vh; }
  .brochureOverlay { align-items: flex-end; }
  .brochurePanel { transform: translateY(100%); }
  .brochureOverlay.open .brochurePanel { transform: translateY(0); }
  .brochureFactsGrid { grid-template-columns: 1fr 1fr; gap: 8px; }

  .pondHint { font-size: 12px; bottom: 20px; left: 20px; }
}

/* Final top-control layout overrides */
#pondView .leftSidePanel {
  display: none !important;
}

.viewer360Bar {
  height: auto !important;
  min-height: 60px !important;
  padding: 12px 18px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  background: linear-gradient(180deg, rgba(0,0,0,0.68), rgba(0,0,0,0.12)) !important;
  border-bottom: 0 !important;
}

.viewer360Bar .backBtn {
  border-radius: 999px !important;
  padding: 9px 14px !important;
  white-space: nowrap !important;
  background: rgba(12,10,6,0.68) !important;
  border-color: rgba(245,208,128,0.25) !important;
}

.viewer360Bar .sceneBreadcrumb {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-align: center !important;
  font-size: 14px !important;
  letter-spacing: 0.4px !important;
}

.viewer360BarRight {
  justify-content: flex-end !important;
  min-width: 44px !important;
}

@media (max-width: 600px) {
  .topbar {
    top: 12px !important;
    padding: 0 12px !important;
    gap: 10px !important;
  }

  .logoTopLeft {
    max-width: calc(100vw - 76px) !important;
    min-width: 0 !important;
  }

  .logoTopTitle {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .viewer360Bar {
    min-height: 54px !important;
    padding: 9px 10px !important;
    grid-template-columns: auto minmax(80px, 1fr) auto !important;
    gap: 8px !important;
  }

  .viewer360Bar .backBtn {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  .viewer360Bar .sceneBreadcrumb {
    font-size: 12px !important;
  }

  .editorToggleBtn {
    max-width: 86px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .detailView .backBtn {
    top: auto !important;
    bottom: 18px !important;
    left: 12px !important;
  }

}

.detailView .backBtn {
  top: auto !important;
  left: 24px !important;
  bottom: 24px !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  background: rgba(12,10,6,0.76) !important;
  border-color: rgba(245,208,128,0.28) !important;
  box-shadow: 0 8px 26px rgba(0,0,0,0.42) !important;
}

@media (max-width: 600px) {
  .detailView .backBtn {
    left: 12px !important;
    bottom: 16px !important;
  }
}

/* ══════════════════════════════════════════
   MOBILE-FIRST 360 SCENE PICKER
══════════════════════════════════════════ */
.categoryPanel {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-height: none !important;
  height: auto !important;
  transform: none !important;
  padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
  background: linear-gradient(180deg, rgba(12,14,16,0.65), rgba(7,8,10,0.94)) !important;
  border-top: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: 0 -14px 34px rgba(0,0,0,0.36) !important;
  z-index: 48 !important;
  pointer-events: auto !important;
}

.categoryPanel::before {
  content: "";
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  align-self: center;
  margin: 8px 0 2px;
  flex: 0 0 auto;
}

.categoryTabs {
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 8px 14px 7px !important;
  overflow-x: auto !important;
  overscroll-behavior-x: contain !important;
  scroll-snap-type: x proximity !important;
  border-bottom: 0 !important;
  scrollbar-width: none !important;
}

.categoryTabs::-webkit-scrollbar,
.sceneList::-webkit-scrollbar,
.sceneGroupRow::-webkit-scrollbar,
.sceneItemRow::-webkit-scrollbar {
  display: none !important;
}

.catTab {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  flex: 0 0 auto !important;
  scroll-snap-align: start !important;
  font-size: 12px !important;
  letter-spacing: 0.4px !important;
  text-transform: none !important;
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.78) !important;
}

.catTab.active {
  background: rgba(216,192,142,0.22) !important;
  border-color: rgba(216,192,142,0.55) !important;
  color: #f5dfad !important;
}

.catIcon {
  line-height: 1;
}

.sceneList {
  padding: 2px 14px 8px !important;
  gap: 8px !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  min-height: 126px !important;
}

.sceneGroupRow,
.sceneItemRow {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain !important;
  touch-action: pan-x !important;
  scroll-snap-type: x proximity !important;
  padding-bottom: 2px !important;
  flex: 0 0 auto !important;
}

.sceneGroupRow {
  min-height: 34px;
}

.sceneItemRow {
  min-height: 74px;
}

.sceneScroller {
  position: relative;
  min-width: 0;
}

.sceneScroller .sceneItemRow {
  padding-left: 42px !important;
  padding-right: 42px !important;
}

.sceneScrollBtn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 58px;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245,208,128,0.3);
  border-radius: 7px;
  background: rgba(8,8,7,0.72);
  color: rgba(245,208,128,0.92);
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.18s, background 0.18s, border-color 0.18s;
}

.sceneScroller.has-scroll .sceneScrollBtn {
  display: flex;
}

.sceneScrollBtn.left { left: 0; }
.sceneScrollBtn.right { right: 0; }

.sceneScrollBtn:hover {
  background: rgba(32,24,12,0.88);
  border-color: rgba(245,208,128,0.58);
}

.sceneScroller.at-start .sceneScrollBtn.left,
.sceneScroller.at-end .sceneScrollBtn.right {
  opacity: 0.28;
  pointer-events: none;
}

.sceneCard {
  border-radius: 7px !important;
  min-height: 34px !important;
  min-width: auto !important;
  padding: 0 12px !important;
  scroll-snap-align: start !important;
  touch-action: manipulation !important;
}

.sceneGroupCard {
  height: 34px !important;
  max-width: min(74vw, 260px) !important;
}

.sceneImageCard {
  width: 132px !important;
  height: 72px !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  background: #111 !important;
  border-color: rgba(255,255,255,0.14) !important;
}

.sceneThumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  opacity: 0.78;
}

.sceneImageCard .cardLabel {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 18px 8px 7px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.82));
  font-size: 11px !important;
  line-height: 1.15;
  white-space: normal !important;
  text-align: left;
}

.sceneImageCard.active {
  border-color: rgba(245,208,128,0.9) !important;
  box-shadow: inset 0 0 0 1px rgba(245,208,128,0.62), 0 0 18px rgba(245,208,128,0.16) !important;
}

.sceneImageCard.active .sceneThumb {
  opacity: 0.95;
}

@media (max-width: 700px) {
  .categoryPanel {
    max-height: min(42svh, 236px) !important;
  }

  .pondHint {
    bottom: min(44svh, 246px) !important;
  }

  .sceneImageCard {
    width: 116px !important;
    height: 66px !important;
  }

  .sceneScroller .sceneItemRow {
    padding-left: 36px !important;
    padding-right: 36px !important;
  }

  .sceneScrollBtn {
    width: 30px;
    height: 52px;
    font-size: 26px;
  }

  .categoryTabs,
  .sceneList {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

@media (min-width: 701px) {
  .categoryPanel {
    left: 50% !important;
    right: auto !important;
    bottom: 18px !important;
    width: min(920px, calc(100% - 48px)) !important;
    transform: translateX(-50%) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  .sceneImageCard {
    width: 154px !important;
    height: 82px !important;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .categoryPanel {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-height: 132px !important;
    padding-bottom: max(4px, env(safe-area-inset-bottom)) !important;
    transform: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  .categoryPanel::before {
    width: 34px !important;
    height: 3px !important;
    margin: 5px 0 1px !important;
  }

  .categoryTabs {
    gap: 6px !important;
    padding: 5px 10px 4px !important;
  }

  .catTab {
    min-height: 27px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }

  .sceneList {
    min-height: 82px !important;
    gap: 5px !important;
    padding: 1px 10px 5px !important;
  }

  .sceneGroupRow {
    min-height: 28px !important;
    gap: 6px !important;
  }

  .sceneItemRow {
    min-height: 48px !important;
    gap: 6px !important;
  }

  .sceneCard {
    min-height: 28px !important;
    border-radius: 6px !important;
  }

  .sceneGroupCard {
    height: 28px !important;
    max-width: 220px !important;
  }

  .sceneImageCard {
    width: 92px !important;
    height: 48px !important;
  }

  .sceneImageCard .cardLabel {
    padding: 14px 6px 5px !important;
    font-size: 9px !important;
    line-height: 1.1 !important;
  }

  .sceneScroller .sceneItemRow {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  .sceneScrollBtn {
    width: 24px !important;
    height: 40px !important;
    font-size: 22px !important;
  }

  .pondHint {
    bottom: 140px !important;
  }
}
