/* ==========================================================================
   SMS Industries - Hero Isometric 3D Experience Styles
   ========================================================================== */

:root {
  --sms-3d-primary: #3b82f6;
  --sms-3d-dark: #0f172a;
  --sms-3d-card-bg: rgba(255, 255, 255, 0.9);
  --sms-3d-card-border: rgba(255, 255, 255, 0.7);
  --sms-3d-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.dark-style {
  --sms-3d-card-bg: rgba(30, 41, 59, 0.9);
  --sms-3d-card-border: rgba(255, 255, 255, 0.1);
  --sms-3d-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Main Container */
.hero-3d-experience-wrapper {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 2rem auto 3rem;
  border-radius: 28px;
  padding: 0.5rem;
  user-select: none;
}

/* 3D Viewport Box */
.hero-3d-viewport {
  position: relative;
  width: 100%;
  height: 720px;
  border-radius: 26px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  background: radial-gradient(circle at 50% 40%, rgba(248, 250, 252, 0.95) 0%, rgba(226, 232, 240, 0.7) 100%);
  border: 1.5px solid rgba(226, 232, 240, 0.85);
  box-shadow: 
    0 25px 55px -15px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.dark-style .hero-3d-viewport {
  background: radial-gradient(circle at 50% 40%, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(51, 65, 85, 0.6);
  box-shadow: 
    0 25px 55px -15px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.hero-3d-viewport:active,
.hero-3d-viewport.is-dragging {
  cursor: grabbing !important;
}

/* Canvas Element */
#hero3dCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

/* Floating Hotspots Overlay */
.hero-3d-hotspots-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Individual Hotspot */
.room-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 6px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s, box-shadow 0.2s;
  will-change: transform, left, top;
}

.dark-style .room-hotspot {
  background: rgba(15, 23, 42, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0,0,0,0.2);
}

.room-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 30px -4px rgba(59, 130, 246, 0.35);
  border-color: var(--sms-3d-primary);
}

.room-hotspot.active {
  transform: translate(-50%, -50%) scale(1.15);
  border-color: var(--sms-3d-primary);
  background: #ffffff;
  box-shadow: 0 12px 32px -4px rgba(59, 130, 246, 0.45);
}

.dark-style .room-hotspot.active {
  background: #1e293b;
}

/* Hotspot Icon Circle */
.hotspot-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.hotspot-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.5;
  animation: hotspotPulse 2.2s infinite cubic-bezier(0.24, 0, 0.38, 1);
  z-index: -1;
}

@keyframes hotspotPulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(2); opacity: 0; }
  100% { transform: scale(2); opacity: 0; }
}

.hotspot-label {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.dark-style .hotspot-label {
  color: #f1f5f9;
}

/* Drag & Zoom Hint Badge */
.hero-3d-hint {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: floatHint 3s ease-in-out infinite;
}

@keyframes floatHint {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* Glassmorphic Room Detail Drawer / Card */
.room-info-card {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: calc(100% - 40px);
  max-width: 380px;
  background: var(--sms-3d-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--sms-3d-card-border);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--sms-3d-shadow);
  z-index: 15;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.room-info-card.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.room-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.room-info-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.room-info-badge .badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.room-info-badge h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.dark-style .room-info-badge h5 {
  color: #f8fafc;
}

.room-close-btn {
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: background 0.2s, color 0.2s;
}

.dark-style .room-close-btn {
  background: rgba(255,255,255,0.1);
  color: #cbd5e1;
}

.room-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.room-info-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 0.75rem;
}

.dark-style .room-info-card p {
  color: #cbd5e1;
}

.room-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.room-features-list li {
  font-size: 12.5px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dark-style .room-features-list li {
  color: #94a3b8;
}

.room-features-list li i {
  color: #10b981;
  font-size: 15px;
}

/* Quick Department Selector Pills */
.hero-3d-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.dept-pill {
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  color: #475569;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.dark-style .dept-pill {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

.dept-pill:hover {
  transform: translateY(-2px);
  border-color: var(--sms-3d-primary);
  color: var(--sms-3d-primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.dept-pill.active {
  background: var(--sms-3d-primary);
  border-color: var(--sms-3d-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.dept-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Reset and Angle Action tools */
.hero-3d-action-tools {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.action-tool-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dark-style .action-tool-btn {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(255,255,255,0.1);
  color: #cbd5e1;
}

.action-tool-btn:hover {
  transform: scale(1.08);
  color: var(--sms-3d-primary);
  border-color: var(--sms-3d-primary);
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
  .hero-3d-viewport {
    height: 640px;
  }
}

@media (max-width: 991.98px) {
  .hero-3d-viewport {
    height: 520px;
  }
  .room-hotspot {
    padding: 4px 10px 4px 6px;
  }
  .room-hotspot .hotspot-label {
    font-size: 11px;
  }
}

@media (max-width: 767.98px) {
  .hero-3d-viewport {
    height: 440px;
  }
  .room-info-card {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 1.1rem;
    max-width: none;
  }
  .hero-3d-hint {
    font-size: 11px;
    padding: 4px 12px;
    top: 10px;
  }
}
