:root {
  --bg-obsidian: #080a0d;
  --surface-glass: rgba(16, 19, 24, 0.74);
  --surface-glass-strong: rgba(14, 17, 22, 0.88);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(245, 185, 66, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-gold: #f5b942;
  --accent-gold-bright: #ffd166;
  --accent-gold-soft: rgba(245, 185, 66, 0.16);
  --danger-soft: rgba(239, 68, 68, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html,
body,
#app,
.app-root {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  touch-action: none;
}

.is-hidden {
  display: none !important;
}

.glass-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.glass-pill {
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(155%);
  -webkit-backdrop-filter: blur(16px) saturate(155%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   360° VIEWER STAGE & CANVAS
   ========================================================================== */
.viewer-stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at center, #141820 0%, #07090c 100%);
}

.panorama-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  outline: none;
  touch-action: none;
}

.panorama-canvas.is-grabbing {
  cursor: grabbing;
}

/* ==========================================================================
   TOP HEADER
   ========================================================================== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  pointer-events: none;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  pointer-events: auto;
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
}

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

.expo-status-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  border: 1px solid var(--border-accent);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}

.btn-back-expo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 185, 66, 0.55);
  background: rgba(245, 185, 66, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff8e6;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-back-expo:hover {
  background: var(--accent-gold);
  color: #0b0d10;
  transform: translateY(-1px);
}

.btn-back-expo .back-arrow {
  font-size: 15px;
  line-height: 1;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.location-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.icon-btn.icon-only {
  width: 38px;
  padding: 0;
  justify-content: center;
}

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

.icon-btn.is-active {
  background: var(--accent-gold-soft);
  border-color: var(--border-accent);
  color: var(--accent-gold-bright);
}

/* ==========================================================================
   HOTSPOT LAYER
   ========================================================================== */
.hotspot-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
}

.hotspot-item {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform, opacity;
  transition: opacity 0.18s ease;
}

.hotspot-beacon {
  position: relative;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Caravan selection hotspot */
.hotspot-beacon-caravan {
  width: 48px;
  height: 48px;
}

.beacon-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--accent-gold);
  background: rgba(245, 185, 66, 0.15);
  animation: beaconPulse 2.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.beacon-core {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 17, 22, 0.85);
  border: 1.8px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hotspot-type-caravan:hover .beacon-core,
.hotspot-type-caravan.is-card-open .beacon-core {
  transform: scale(1.12);
  background: var(--accent-gold);
  color: #0b0d10;
}

.hotspot-pill-label {
  position: absolute;
  top: 26px;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(12, 15, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hotspot-type-caravan:hover .hotspot-pill-label,
.hotspot-type-caravan.is-card-open .hotspot-pill-label {
  opacity: 0;
  pointer-events: none;
}

/* Caravan hover / tap preview card */
.hotspot-preview-card {
  position: absolute;
  bottom: 34px;
  left: 0;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  width: 244px;
  border-radius: var(--radius-md);
  background: rgba(13, 16, 21, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(245, 185, 66, 0.36);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.22s ease;
  z-index: 40;
}

.hotspot-type-caravan:hover .hotspot-preview-card,
.hotspot-type-caravan.is-card-open .hotspot-preview-card {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.hotspot-type-caravan.card-flip-left .hotspot-preview-card {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(8px) scale(0.96);
}
.hotspot-type-caravan.card-flip-left:hover .hotspot-preview-card,
.hotspot-type-caravan.card-flip-left.is-card-open .hotspot-preview-card {
  transform: translateX(0) translateY(0) scale(1);
}

.hotspot-type-caravan.card-flip-right .hotspot-preview-card {
  left: -20px;
  transform: translateX(0) translateY(8px) scale(0.96);
}
.hotspot-type-caravan.card-flip-right:hover .hotspot-preview-card,
.hotspot-type-caravan.card-flip-right.is-card-open .hotspot-preview-card {
  transform: translateX(0) translateY(0) scale(1);
}

.hotspot-type-caravan.card-flip-down .hotspot-preview-card {
  bottom: auto;
  top: 34px;
}

.hpc-thumb {
  width: 100%;
  height: 112px;
  overflow: hidden;
  background: #141820;
}

.hpc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hpc-body {
  padding: 12px 13px 13px;
}

.hpc-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  margin-bottom: 3px;
}

.hpc-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.hpc-model {
  margin: 3px 0 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.hpc-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: var(--accent-gold);
  color: #0b0d10;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
}

.hpc-cta:hover {
  background: var(--accent-gold-bright);
  transform: translateY(-1px);
}

/* Interior navigation hotspot */
.hotspot-beacon-nav {
  width: 44px;
  height: 44px;
}

.nav-ripple {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  animation: beaconPulse 2.4s ease-out infinite;
}

.nav-arrow {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(16, 19, 25, 0.84);
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hotspot-type-navigation:hover .nav-arrow {
  transform: scale(1.14);
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0b0d10;
}

.hotspot-pill-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  top: 24px;
  padding: 6px 12px;
  border-radius: 12px;
}

.hotspot-pill-nav strong {
  font-size: 12px;
  font-weight: 600;
}

.hotspot-pill-nav span {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Expo floor walk waypoint */
.hotspot-beacon-walk {
  width: 44px;
  height: 44px;
}

.walk-ring {
  position: absolute;
  width: 34px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.walk-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
}

.hotspot-type-expo-walk:hover .walk-ring {
  transform: scale(1.2);
  border-color: var(--accent-gold);
  background: rgba(245, 185, 66, 0.26);
}

.hotspot-pill-walk {
  top: 18px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Coordinate editor pin */
.editor-target-pin {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 25;
}

.editor-target-cross {
  display: block;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border: 2px solid #38bdf8;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.22);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.editor-target-tag {
  position: absolute;
  top: 16px;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(8, 12, 20, 0.9);
  border: 1px solid #38bdf8;
  color: #bae6fd;
  font-size: 11px;
  font-family: ui-monospace, monospace;
}

@keyframes beaconPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  75% {
    transform: scale(1.42);
    opacity: 0;
  }
  100% {
    transform: scale(1.42);
    opacity: 0;
  }
}

/* ==========================================================================
   BOTTOM SCENE NAVIGATION BAR
   ========================================================================== */
.bottom-nav-wrap {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  max-width: calc(100vw - 24px);
}

.bottom-nav-dock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 20px;
}

.nav-step-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.nav-step-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.scene-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  max-width: min(68vw, 760px);
  padding: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.scene-strip::-webkit-scrollbar {
  display: none;
}

.scene-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px 4px 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.scene-tab:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text-primary);
}

.scene-tab.is-active {
  background: var(--accent-gold-soft);
  border-color: var(--accent-gold);
  color: #fff6df;
  font-weight: 600;
}

.scene-tab-caravan {
  border-color: rgba(245, 185, 66, 0.24);
}

.scene-tab-thumb {
  width: 36px;
  height: 26px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.strip-separator {
  flex: 0 0 auto;
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
  margin: 0 2px;
}

.dock-divider {
  width: 1px;
  height: 26px;
  background: var(--border-subtle);
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease;
}

.zoom-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   INFO DRAWER & MODALS
   ========================================================================== */
.info-drawer,
.coord-editor {
  position: fixed;
  top: 68px;
  right: 16px;
  bottom: 84px;
  width: min(390px, calc(100vw - 32px));
  z-index: 40;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.info-drawer.is-open,
.coord-editor.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.drawer-header,
.editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.drawer-title,
.editor-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.drawer-subtitle {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.drawer-scroll,
.editor-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-cover-wrap {
  border-radius: 14px;
  overflow: hidden;
  height: 170px;
  background: #141820;
}

.drawer-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drawer-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.drawer-section h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.spec-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-item.spec-full {
  grid-column: span 2;
}

.spec-item span {
  font-size: 10.5px;
  color: var(--text-muted);
}

.spec-item strong {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.highlights-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.contact-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}

.contact-box p {
  margin: 4px 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.contact-box a {
  color: var(--accent-gold);
  text-decoration: none;
}

.drawer-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-subtle);
}

.primary-cta-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: none;
  background: var(--accent-gold);
  color: #0b0d10;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease;
}

.primary-cta-btn:hover {
  background: var(--accent-gold-bright);
  transform: translateY(-1px);
}

.secondary-cta-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Modal Backdrop & Cards */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(5, 7, 10, 0.68);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-card {
  width: min(920px, 100%);
  max-height: 88dvh;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-guide {
  width: min(640px, 100%);
  padding-bottom: 18px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
}

.caravan-grid {
  padding: 20px 22px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.caravan-card {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.caravan-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.caravan-card.is-current {
  border-color: var(--accent-gold);
}

.cc-media {
  position: relative;
  height: 158px;
  background: #141820;
}

.cc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-code {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(8, 10, 14, 0.78);
  border: 1px solid var(--border-subtle);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-gold);
  color: #0b0d10;
  font-size: 10.5px;
  font-weight: 700;
}

.cc-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-body h3 {
  margin: 0;
  font-size: 16px;
}

.cc-model {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.cc-specs-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin: 4px 0;
}

.cc-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.cc-btn-enter {
  flex: 1;
  padding: 9px 12px;
  border-radius: 10px;
  border: none;
  background: var(--accent-gold);
  color: #0b0d10;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.cc-btn-info {
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Guide Grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 22px 10px;
}

.guide-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px;
}

.guide-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.guide-item h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.guide-item p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.guide-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 8px 22px 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.guide-shortcuts code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.guide-footer {
  padding: 0 22px;
}

/* ==========================================================================
   COORDINATE EDITOR
   ========================================================================== */
.editor-status-box {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(56, 189, 248, 0.07);
}

.editor-mono {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #bae6fd;
}

.editor-picked {
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-secondary);
}

.editor-group h4 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.editor-hs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor-hs-row {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 10px;
}

.editor-hs-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 6px;
}

.editor-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.editor-hs-inputs {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.editor-hs-inputs label {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: var(--text-muted);
  gap: 2px;
}

.editor-hs-inputs input,
.editor-add-form input,
.editor-add-form select {
  background: rgba(8, 10, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--text-primary);
  padding: 5px 7px;
  font-size: 12px;
  font-family: inherit;
}

.editor-hs-inputs input {
  width: 68px;
}

.editor-add-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor-add-coords {
  display: flex;
  gap: 6px;
}

.editor-add-coords input {
  width: 78px;
}

.editor-mini-btn {
  padding: 6px 9px;
  border-radius: 7px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.editor-mini-btn.is-accent,
.editor-footer-btn.is-accent {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0b0d10;
}

.editor-footer {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
}

.editor-footer-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   WELCOME SPLASH & LOADING OVERLAY
   ========================================================================== */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.welcome-overlay.is-leaving {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.welcome-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(8px) scale(1.06);
  transform: scale(1.04);
}

.welcome-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 10, 14, 0.56) 0%, rgba(5, 7, 10, 0.9) 100%);
}

.welcome-card {
  position: relative;
  z-index: 2;
  width: min(640px, 100%);
  border-radius: 26px;
  padding: 34px 36px;
  text-align: left;
  border-color: rgba(255, 255, 255, 0.16);
}

.welcome-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.welcome-logo {
  height: 40px;
  width: auto;
}

.welcome-live-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  border: 1px solid var(--border-accent);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.welcome-title {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.welcome-subtitle {
  margin: 8px 0 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent-gold);
}

.welcome-copy {
  margin: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-secondary);
}

.welcome-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.metric-chip {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-chip strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-chip span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.welcome-cta-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #f7c75d 0%, #e4a124 100%);
  color: #090b0e;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(245, 185, 66, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.welcome-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(245, 185, 66, 0.38);
}

.welcome-hints {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(7, 9, 12, 0.55);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.loading-card {
  width: min(360px, 100%);
  padding: 26px 24px;
  border-radius: 20px;
  text-align: center;
}

.loading-spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent-gold);
  animation: spin 0.85s linear infinite;
}

.loading-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.loading-card p {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.loading-bar-track {
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: 99px;
  transition: width 0.25s ease;
}

.loading-error-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast & First-Use Hint Bar */
.quick-hint-bar {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 28;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  max-width: calc(100vw - 24px);
}

.hint-more-btn {
  border: none;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.hint-close-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
}

.expo-toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 820px) {
  .top-header {
    padding: 10px 12px;
    align-items: flex-start;
  }

  .brand-cluster {
    padding: 5px 10px 5px 8px;
  }

  .brand-logo {
    height: 22px;
  }

  .expo-status-badge {
    display: none;
  }

  .location-pill {
    display: none;
  }

  .hide-sm {
    display: none;
  }

  .btn-back-expo {
    padding: 8px 13px;
    font-size: 12.5px;
  }

  .icon-btn {
    height: 35px;
    padding: 0 10px;
  }

  .icon-btn.icon-only {
    width: 35px;
  }

  .caravan-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .welcome-card {
    padding: 24px 20px;
  }

  .welcome-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .quick-hint-bar {
    display: none;
  }

  .bottom-nav-wrap {
    bottom: 10px;
    max-width: calc(100vw - 16px);
  }

  .bottom-nav-dock {
    padding: 6px 8px;
    gap: 5px;
  }

  .scene-strip {
    max-width: calc(100vw - 208px);
  }

  .dock-divider,
  #btn-zoom-in,
  #btn-zoom-out {
    display: none;
  }
}

@media (max-width: 480px) {
  .btn-label {
    display: none;
  }

  .icon-btn {
    width: 35px;
    padding: 0;
    justify-content: center;
  }

  .scene-strip {
    max-width: calc(100vw - 140px);
  }

  .info-drawer,
  .coord-editor {
    top: auto;
    right: 8px;
    left: 8px;
    bottom: 72px;
    width: auto;
    max-height: 70dvh;
  }
}

/* ==========================================================================
   ADMIN LOGIN & CARAVAN EDITOR MODAL
   ========================================================================== */
.modal-admin-login {
  width: min(430px, 100%);
}

.modal-admin-editor {
  width: min(860px, 100%);
  max-height: 90dvh;
}

.admin-login-form {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-login-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.admin-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-caravan-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.admin-tab-btn {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.admin-tab-btn span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.admin-tab-btn strong {
  font-size: 13px;
  color: var(--text-primary);
}

.admin-tab-btn.is-active {
  background: var(--accent-gold-soft);
  border-color: var(--accent-gold);
}

.admin-form-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-col-2 {
  grid-column: span 2;
}

.admin-field label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.admin-field input,
.admin-field textarea,
.admin-hl-row input {
  width: 100%;
  background: rgba(8, 10, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  user-select: text;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-hl-row input:focus {
  border-color: var(--accent-gold);
}

.admin-subheading {
  margin: 6px 0 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.admin-highlights-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.admin-hl-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-hl-del {
  flex: 0 0 auto;
  width: 34px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: var(--danger-soft);
  color: #fecaca;
  cursor: pointer;
}

.admin-error {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--danger-soft);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
  font-size: 12.5px;
}

.admin-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--border-subtle);
}

.admin-save-status {
  font-size: 13px;
  font-weight: 600;
  color: #34d399;
}

.admin-save-cta {
  width: auto;
  min-width: 200px;
}

@media (max-width: 640px) {
  .admin-section-grid {
    grid-template-columns: 1fr;
  }
  .admin-col-2 {
    grid-column: span 1;
  }
}

/* Coordinate editor inline title & subtitle inputs */
.editor-hs-title {
  gap: 6px;
}

.editor-title-input {
  flex: 1;
  min-width: 0;
  background: rgba(8, 10, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--text-primary);
  padding: 5px 8px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  user-select: text;
}

.editor-title-input:focus,
.editor-sub-input:focus {
  border-color: var(--accent-gold);
  outline: none;
}

.editor-hs-subrow {
  margin-bottom: 7px;
}

.editor-sub-input {
  width: 100%;
  background: rgba(8, 10, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: var(--text-secondary);
  padding: 4px 8px;
  font-size: 11.5px;
  font-family: inherit;
  user-select: text;
}

.editor-del-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
  font-size: 11px;
  cursor: pointer;
  flex: 0 0 auto;
}

/* Coordinate editor active scene & target preview thumbnails */
.editor-active-scene {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.editor-scene-thumb {
  width: 58px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  flex: 0 0 auto;
}

.editor-scene-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.editor-scene-meta strong {
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-scene-meta span {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editor-target-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.editor-target-thumb {
  width: 48px;
  height: 26px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  flex: 0 0 auto;
}

.editor-target-select {
  flex: 1;
  min-width: 0;
  background: rgba(8, 10, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  color: var(--text-primary);
  padding: 5px 7px;
  font-size: 11.5px;
  font-family: inherit;
}

/* Admin Mode Switch & 360° Media Manager */
.admin-mode-switch {
  display: flex;
  gap: 8px;
  padding: 12px 22px 0;
}

.admin-mode-btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.admin-mode-btn.is-active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0b0d10;
}

.admin-section-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.admin-upload-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-field select {
  width: 100%;
  background: rgba(8, 10, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
}

.admin-upload-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-scenes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-scene-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.admin-scene-thumb {
  width: 68px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  flex: 0 0 auto;
}

.admin-scene-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-scene-info strong {
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-scene-info span {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-scene-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.admin-scene-row.is-start-scene {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.08);
}

.admin-start-badge,
.editor-start-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  white-space: nowrap;
}

/* Extra-transparent frosted glass style for Caravan Technical Info Drawer */
.info-drawer.glass-panel {
  background: rgba(10, 13, 18, 0.38);
  backdrop-filter: blur(10px) saturate(135%);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  border-color: rgba(255, 255, 255, 0.16);
}

.info-drawer .spec-item,
.info-drawer .contact-box {
  background: rgba(8, 10, 14, 0.36);
  border-color: rgba(255, 255, 255, 0.12);
}

.info-drawer .drawer-title,
.info-drawer .drawer-desc,
.info-drawer .spec-item strong,
.info-drawer .highlights-list {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

/* Coordinate editor global scene switcher & default camera controls */
.editor-scene-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
}

.editor-scene-switcher select {
  flex: 1;
  min-width: 0;
  background: rgba(8, 10, 14, 0.9);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
}

.editor-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.editor-group-head h4 {
  margin: 0;
}
