/* ==========================================================================
   turbo_360 Engine — High-Performance WebGL 360° Panorama Viewer HUD Styles
   Replicating the iconic Kuula & Colosseum Obsidian Glassmorphism UI
   ========================================================================== */

.turbo360-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
  background: #05070b;
  user-select: none;
  -webkit-user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  touch-action: none;
}

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

.turbo360-canvas:active,
.turbo360-container.is-dragging .turbo360-canvas {
  cursor: grabbing;
}

/* Loading Overlay */
.turbo360-loader {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #0f1522 0%, #06080d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 50;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.turbo360-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.turbo360-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #ffffff;
  border-right-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: turbo360-spin 0.9s linear infinite;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
}

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

.turbo360-loader-text {
  color: #e2e8f0;
  font-size: 13.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═════════════════════════════════════════════════════════════════════════
   COLOSSEUM GLASSMORPHISM FLOATING HUD (Bottom Center)
   ═════════════════════════════════════════════════════════════════════════ */
.turbo360-hud {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(10, 14, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.08),
              0 0 20px rgba(255, 255, 255, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100% - 32px);
  overflow-x: auto;
  scrollbar-width: none;
}

.turbo360-hud::-webkit-scrollbar {
  display: none;
}

.turbo360-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 68px;
  height: 48px;
  background: rgba(18, 24, 36, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #a0aec0;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.turbo360-btn:hover {
  background: rgba(40, 40, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  color: #edf2f7;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.5);
}

.turbo360-btn.is-active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.turbo360-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 6px;
  right: 6px;
  height: 2px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  border-radius: 2px;
}

.turbo360-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.turbo360-btn:hover svg {
  transform: scale(1.1);
}

.turbo360-btn.is-active svg {
  stroke: #ffffff;
}

/* Auto-rotate animated spin indicator */
.turbo360-btn.is-spinning svg {
  animation: turbo360-spin 4s linear infinite;
}

/* Tooltip */
.turbo360-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(10, 14, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f7fafc;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  z-index: 40;
}

.turbo360-btn:hover .turbo360-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═════════════════════════════════════════════════════════════════════════
   TOP HUD: COMPASS, TELEMETRY & BRAND BADGE
   ═════════════════════════════════════════════════════════════════════════ */
.turbo360-top-bar {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 25;
}

.turbo360-brand-badge {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  color: #f7fafc;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.turbo360-brand-badge .badge-tag {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.turbo360-telemetry {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px;
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(14px);
  color: #a0aec0;
  font-size: 11px;
  font-family: monospace;
}

.turbo360-compass {
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.1s linear;
}

/* ═════════════════════════════════════════════════════════════════════════
   HELP & SHORTCUTS MODAL
   ═════════════════════════════════════════════════════════════════════════ */
.turbo360-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.turbo360-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.turbo360-help-card {
  width: 90%;
  max-width: 440px;
  background: rgba(12, 17, 26, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 255, 255, 0.05);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #e2e8f0;
}

.turbo360-modal-backdrop.is-open .turbo360-help-card {
  transform: scale(1) translateY(0);
}

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

.turbo360-help-header h3 {
  margin: 0;
  font-size: 15px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.turbo360-close-btn {
  background: transparent;
  border: none;
  color: #718096;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.2s;
}

.turbo360-close-btn:hover {
  color: #f7fafc;
}

.turbo360-shortcuts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.turbo360-shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.turbo360-key-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  min-width: 75px;
  text-align: center;
  font-family: monospace;
}

/* ═════════════════════════════════════════════════════════════════════════
   GLOBAL FULLSCREEN MODAL VIEWER (Invoked anywhere on the site)
   ═════════════════════════════════════════════════════════════════════════ */
.turbo360-fullscreen-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #04060a;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.turbo360-fullscreen-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.turbo360-modal-nav {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  pointer-events: none;
}

.turbo360-modal-info {
  pointer-events: auto;
  background: rgba(12, 17, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 18px;
  backdrop-filter: blur(16px);
  color: #ffffff;
}

.turbo360-modal-info .m-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.turbo360-modal-info .m-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.turbo360-modal-close-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(12, 17, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.turbo360-modal-close-btn:hover {
  background: #e53e3e;
  border-color: #e53e3e;
  transform: scale(1.08);
}

/* ═════════════════════════════════════════════════════════════════════════
   PREMIUM 360° VIEWFINDER BADGE — Rotating gradient ring + reticle icon
   ═════════════════════════════════════════════════════════════════════════ */
.badge-360-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  z-index: 6;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s,
              box-shadow 0.25s;
}

/* Animated monochrome orbital ring */
.badge-360-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #FFFFFF, transparent 35%,
    rgba(255, 255, 255, 0.6) 55%, transparent 75%,
    #FFFFFF
  );
  opacity: 0.35;
  animation: vf-orbit 4s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  pointer-events: none;
}

@keyframes vf-orbit {
  to { transform: rotate(360deg); }
}

.badge-360-btn:hover {
  transform: scale(1.15);
  border-color: #FFFFFF;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.35);
}

.badge-360-btn:hover::before {
  opacity: 0.7;
}

.badge-360-btn:active {
  transform: scale(0.95);
}

/* Viewfinder SVG icon */
.badge-360-btn svg {
  width: 18px;
  height: 18px;
  color: #FFFFFF;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
  transition: transform 0.25s;
}

.badge-360-btn:hover svg {
  transform: rotate(15deg);
}

/* ── Hero section CTA for 360 Tour page link — High Contrast Monochrome ── */
.hero-360-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 30px;
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  border-radius: 999px;
  color: #000000;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
  transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Clean shine sweep on hover */
.hero-360-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(0, 0, 0, 0.08) 50%, transparent 60%);
  transition: left 0.6s ease;
  pointer-events: none;
}

.hero-360-cta:hover::after {
  left: 125%;
}

.hero-360-cta:hover {
  background: #E5E5E5;
  border-color: #E5E5E5;
  color: #000000;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

.hero-360-cta svg {
  width: 20px;
  height: 20px;
  color: #000000;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.hero-360-cta:hover svg {
  transform: rotate(15deg);
}

/* ═════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS
   ═════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .turbo360-hud {
    bottom: 14px;
    padding: 4px 6px;
    gap: 4px;
  }
  .turbo360-btn {
    width: 54px;
    height: 42px;
    font-size: 8.5px;
  }
  .turbo360-btn svg {
    width: 15px;
    height: 15px;
  }
  .turbo360-top-bar {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .turbo360-telemetry {
    display: none;
  }
}
