@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Syne:wght@500;700;800&display=swap');

/* Custom CSS Variables & Root Theme */
:root {
  --color-charcoal-dark: #0B0B0C;
  --color-charcoal-main: #111113;
  --color-charcoal-card: #18181B;
  --color-gold-accent: #C5A880;
  --color-gold-hover: #D8B991;
  --color-gold-glow: rgba(197, 168, 128, 0.25);
  --color-whatsapp: #25D366;
  --color-warm-white: #F7F5F0;
  --color-muted-gray: #8E8D8A;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Syne', sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Global Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-charcoal-dark);
  color: var(--color-warm-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif { font-family: var(--font-serif); }
.font-display { font-family: var(--font-display); }
.font-sans { font-family: var(--font-sans); }

/* WebGL Canvas */
#webgl-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  outline: none;
}

/* Glassmorphism Panels */
.glass-panel {
  background: rgba(17, 17, 19, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 168, 128, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-panel-gold {
  background: rgba(24, 24, 27, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(197, 168, 128, 0.35);
  box-shadow: 0 10px 30px rgba(197, 168, 128, 0.15), inset 0 1px 1px rgba(197, 168, 128, 0.2);
}

/* 2D ARCHITECTURAL FLOOR PLAN HUD (Top-Right) */
#floorplan-hud {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 30;
  width: 220px;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.floorplan-map-container {
  position: relative;
  width: 100%;
  height: 180px;
  background: rgba(11, 11, 12, 0.85);
  border-radius: 12px;
  padding: 12px;
}

.floorplan-svg {
  width: 100%;
  height: 100%;
}

/* Floorplan Interactive Nodes */
.fp-room-node {
  cursor: pointer;
  transition: all 0.25s ease;
}
.fp-room-node:hover circle {
  fill: var(--color-gold-accent);
  r: 7;
}
.fp-room-node.active circle {
  fill: var(--color-gold-accent);
  stroke: #ffffff;
  stroke-width: 2;
  r: 7.5;
}

/* Real-Time Camera Radar Cone */
#camera-radar-cone {
  transform-origin: center center;
  transition: transform 0.05s linear;
  pointer-events: none;
}

/* TOP-LEFT BRAND WATERMARK */
#brand-watermark {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 30;
}

/* BOTTOM-RIGHT QUICK ACTION TOOLBAR DOCK */
#quick-toolbar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 30;
}

/* WhatsApp Lead-Gen Button */
.btn-whatsapp-glow {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}
.btn-whatsapp-glow:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* Custom Interactive 3D Hotspots */
.hotspot-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 20;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.hotspot-marker:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.hotspot-inner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(17, 17, 19, 0.85);
  border: 2px solid var(--color-gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-accent);
  box-shadow: 0 0 20px var(--color-gold-glow);
  position: relative;
}

.hotspot-pulse {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gold-accent);
  animation: pulse-ring 2.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: none;
}

/* Floor Waypoint Ring Markers */
.waypoint-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 18;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
}
.waypoint-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.15);
  border: 2px solid var(--color-gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-warm-white);
  box-shadow: 0 0 15px rgba(197, 168, 128, 0.4);
  animation: waypoint-bounce 2s infinite ease-in-out;
}

@keyframes waypoint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.7); opacity: 0.9; }
  50% { transform: scale(1.4); opacity: 0.2; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Hotspot Tooltip Popup */
.hotspot-tooltip {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Door Pulse Button (Phase 1) */
.door-open-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.door-open-ring::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 9999px;
  border: 1px solid rgba(197, 168, 128, 0.4);
  animation: door-pulse 3s infinite ease-in-out;
}

@keyframes door-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.12); opacity: 0.8; box-shadow: 0 0 30px rgba(197, 168, 128, 0.4); }
}

/* Custom Scrollbar for Modals */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(17, 17, 19, 0.5);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(197, 168, 128, 0.3);
  border-radius: 3px;
}

/* Audio Visualizer Waves */
.audio-bar {
  width: 3px;
  height: 12px;
  background-color: var(--color-gold-accent);
  border-radius: 2px;
  animation: bar-bounce 1.2s infinite ease-in-out alternate;
}
.audio-bar:nth-child(1) { animation-delay: 0.1s; }
.audio-bar:nth-child(2) { animation-delay: 0.3s; }
.audio-bar:nth-child(3) { animation-delay: 0.5s; }
.audio-bar:nth-child(4) { animation-delay: 0.2s; }

.audio-muted .audio-bar {
  animation: none !important;
  height: 4px !important;
  opacity: 0.4;
}

@keyframes bar-bounce {
  0% { height: 4px; }
  100% { height: 16px; }
}

/* Floorplan Dock Active Line */
.dock-item {
  position: relative;
  transition: all 0.3s ease;
}
.dock-item.active {
  color: var(--color-gold-accent);
}
.dock-item.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--color-gold-accent);
  box-shadow: 0 0 10px var(--color-gold-accent);
  border-radius: 2px;
}
