/* ==========================================================================
   SAHIL SCHOOLS - ADVANCED 3D VIRTUAL CAMPUS TOUR STYLESHEET
   Futuristic, Glassmorphic, Responsive & High-Performance HUD
   ========================================================================== */

:root {
  --ct-primary: #0b2545;
  --ct-secondary: #13315c;
  --ct-accent: #ffc107;
  --ct-accent-glow: rgba(255, 193, 7, 0.45);
  --ct-cyan: #00e5ff;
  --ct-cyan-glow: rgba(0, 229, 255, 0.4);
  --ct-card-bg: #ffffff;
  --ct-border: rgba(11, 37, 69, 0.1);
  --ct-glass: rgba(255, 255, 255, 0.85);
  --ct-glass-border: rgba(255, 255, 255, 0.6);
  --ct-hud-bg: rgba(11, 37, 69, 0.88);
  --ct-hud-text: #ffffff;
}

/* Hero Section Enhancement */
.campus-hero-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(0, 229, 255, 0.18), transparent 45%),
              linear-gradient(135deg, #07172b 0%, #0b2545 60%, #13315c 100%);
}
.campus-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.campus-badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255, 193, 7, 0.15);
  border: 1px solid rgba(255, 193, 7, 0.4);
  color: #ffc107;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.campus-badge-pulse .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffc107;
  box-shadow: 0 0 10px #ffc107;
  animation: ctPulse 1.8s infinite;
}
@keyframes ctPulse {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.campus-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 2rem;
}
.campus-stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.25s ease;
}
.campus-stat-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: rgba(255, 193, 7, 0.5);
}
.campus-stat-pill i {
  color: #ffc107;
  font-size: 15px;
}

/* ==========================================================================
   3D CAMPUS MAP SECTION (#campus-map)
   ========================================================================== */

#campus-map {
  position: relative;
  background: #eef3f8;
  scroll-margin-top: 75px;
}

/* Top Glassmorphic Controls Bar */
.campus-hud-header {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 20px;
  border: 1px solid rgba(11, 37, 69, 0.08);
  box-shadow: 0 8px 30px rgba(11, 37, 69, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.campus-hud-title-wrap h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0b2545;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.campus-hud-title-wrap p {
  font-size: 13px;
  color: #64748b;
  margin: 2px 0 0 0;
}

/* Search Box Inside HUD */
.campus-search-box {
  position: relative;
  min-width: 240px;
  flex-grow: 1;
  max-width: 320px;
}
.campus-search-box input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid #d2dbe5;
  background: #f8fafc;
  color: #0b2545;
  outline: none;
  transition: all 0.2s ease;
}
.campus-search-box input:focus {
  background: #ffffff;
  border-color: #0b2545;
  box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.1);
}
.campus-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
}

/* Action Control Buttons */
.campus-hud-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.campus-hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid #dce4ed;
  background: #ffffff;
  color: #1e3a5f;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.campus-hud-btn:hover {
  background: #f1f5f9;
  border-color: #0b2545;
  color: #0b2545;
}
.campus-hud-btn.is-active,
.campus-hud-btn[aria-pressed="true"] {
  background: #0b2545;
  border-color: #0b2545;
  color: #ffffff;
}
.campus-hud-btn.is-active i,
.campus-hud-btn[aria-pressed="true"] i {
  color: #ffc107;
}

/* Cinematic Auto Tour Button */
.campus-btn-cinematic {
  background: linear-gradient(135deg, #0b2545, #13315c);
  color: #ffffff;
  border: 1px solid rgba(255, 193, 7, 0.4);
}
.campus-btn-cinematic.is-running {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  border-color: #ef4444;
  animation: ctPulseRed 2s infinite;
}
@keyframes ctPulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

/* Perspective Pills Group */
.campus-perspective-group {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}
.campus-persp-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.campus-persp-btn.is-selected {
  background: #0b2545;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(11, 37, 69, 0.2);
}
.campus-persp-btn.is-selected i {
  color: #ffc107;
}

/* Time / Environment Selector */
.campus-time-group {
  display: inline-flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}
.campus-time-btn {
  border: none;
  background: transparent;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}
.campus-time-btn.is-selected {
  background: #ffc107;
  color: #0b2545;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

/* ==========================================================================
   CAMPUS MAIN STAGE & LAYOUT
   ========================================================================== */

.campus-stage-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 20px;
  align-items: stretch;
}

.campus-stage-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(11, 37, 69, 0.08);
  box-shadow: 0 16px 40px rgba(11, 37, 69, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.campus-stage-canvas-area {
  position: relative;
  height: 560px;
  width: 100%;
  background: radial-gradient(ellipse at 50% 30%, #e0f2fe 0%, #cbd5e1 70%, #94a3b8 100%);
  overflow: hidden;
  touch-action: none;
}
.campus-stage-canvas-area.is-night {
  background: radial-gradient(ellipse at 50% 30%, #0f172a 0%, #030712 100%);
}
.campus-stage-canvas-area.is-sunset {
  background: radial-gradient(ellipse at 50% 30%, #fed7aa 0%, #fdba74 40%, #c2410c 100%);
}

#campusMapCanvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  cursor: grab;
}
#campusMapCanvas:active {
  cursor: grabbing;
}

/* 3D Model Floating Live Tooltip / Label Overlay */
.campus-3d-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -100%);
  background: rgba(11, 37, 69, 0.92);
  border: 1px solid rgba(255, 193, 7, 0.6);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  z-index: 20;
}
.campus-3d-tooltip.is-visible {
  opacity: 1;
}
.campus-3d-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: rgba(11, 37, 69, 0.92) transparent;
  display: block;
  width: 0;
}

/* Compass HUD */
.campus-hud-compass {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #0b2545;
  z-index: 10;
  pointer-events: none;
  transition: all 0.3s ease;
}
.campus-hud-compass i {
  font-size: 18px;
  color: #dc2626;
  transform-origin: center;
  transition: transform 0.1s linear;
}
.campus-hud-compass span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Mini Radar / Minimap HUD */
.campus-hud-radar {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 110px;
  height: 85px;
  background: rgba(11, 37, 69, 0.85);
  border: 1px solid rgba(255, 193, 7, 0.4);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 10;
  overflow: hidden;
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.campus-radar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffc107;
  margin-bottom: 2px;
}
.campus-radar-canvas {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  position: relative;
}

/* Stage Overlay Help Hint */
.campus-hud-hint {
  position: absolute;
  bottom: 18px;
  left: 18px;
  padding: 8px 14px;
  background: rgba(11, 37, 69, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.campus-hud-hint i {
  color: #ffc107;
}

/* Camera Zoom Slider Overlay */
.campus-hud-zoom {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}
.campus-zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  color: #0b2545;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}
.campus-zoom-btn:hover {
  background: #0b2545;
  color: #ffffff;
  transform: scale(1.06);
}

/* Zone Filter Pills Bar (Bottom of Stage Card) */
.campus-zone-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid #edf2f7;
  overflow-x: auto;
  scrollbar-width: thin;
}
.campus-zone-pills-bar::-webkit-scrollbar {
  height: 4px;
}
.campus-zone-pills-bar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.campus-zone-pill {
  white-space: nowrap;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}
.campus-zone-pill:hover {
  background: #f1f5f9;
  border-color: #0b2545;
  color: #0b2545;
}
.campus-zone-pill.is-active {
  background: #0b2545;
  border-color: #0b2545;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(11, 37, 69, 0.25);
}
.campus-zone-pill.is-active i {
  color: #ffc107;
}

/* ==========================================================================
   ZONE DETAIL DRAWER / SIDE PANEL
   ========================================================================== */

.campus-drawer-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(11, 37, 69, 0.08);
  box-shadow: 0 16px 40px rgba(11, 37, 69, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.campus-drawer-img-wrap {
  position: relative;
  height: 180px;
  width: 100%;
  overflow: hidden;
  background: #0b2545;
}
.campus-drawer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.campus-drawer-card:hover .campus-drawer-img {
  transform: scale(1.04);
}
.campus-drawer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 37, 69, 0.88);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.4);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.campus-drawer-distance {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
}

.campus-drawer-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.campus-drawer-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #0b2545;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.campus-drawer-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0b2545;
  line-height: 1.3;
  margin-bottom: 8px;
}
.campus-drawer-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 16px;
}

/* Key Metrics Grid inside Drawer */
.campus-drawer-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 16px;
}
.campus-spec-item {
  display: flex;
  flex-direction: column;
}
.campus-spec-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.campus-spec-val {
  font-size: 12.5px;
  font-weight: 800;
  color: #0b2545;
  margin-top: 2px;
}

/* Facilities Bullet Tags */
.campus-drawer-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.campus-drawer-highlights li {
  font-size: 12px;
  color: #334155;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.campus-drawer-highlights li i {
  color: #00a86b;
  font-size: 12px;
}

/* Action Buttons inside Drawer */
.campus-drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.campus-btn-voice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0b2545;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.campus-btn-voice:hover {
  background: #e2e8f0;
}
.campus-btn-voice.is-speaking {
  background: #ffc107;
  border-color: #f59e0b;
  color: #0b2545;
  animation: ctPulse 1.5s infinite;
}

/* ==========================================================================
   CAMPUS HIGHLIGHTS & DEEP-DIVE CARDS SECTION
   ========================================================================== */

.campus-zone-card {
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: 20px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11, 37, 69, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.campus-zone-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(11, 37, 69, 0.12);
  border-color: rgba(255, 193, 7, 0.4);
}
.campus-zone-card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.campus-zone-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.campus-zone-card:hover .campus-zone-card-img-wrap img {
  transform: scale(1.08);
}
.campus-zone-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 37, 69, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  text-transform: uppercase;
}
.campus-zone-card-btn-locate {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #ffffff;
  color: #0b2545;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.campus-zone-card-btn-locate:hover {
  background: #0b2545;
  color: #ffc107;
  transform: scale(1.05);
}

/* ==========================================================================
   FULLSCREEN MODE STYLING
   ========================================================================== */

.campus-stage-wrapper.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0b2545;
  padding: 16px;
  grid-template-columns: 1fr 360px;
  margin: 0;
  border-radius: 0;
}
.campus-stage-wrapper.is-fullscreen .campus-stage-canvas-area {
  height: calc(100vh - 110px);
}
.campus-stage-wrapper.is-fullscreen .campus-drawer-card {
  height: calc(100vh - 32px);
  overflow-y: auto;
}

/* ==========================================================================
   FALLBACK ISOMETRIC SVG MAP
   ========================================================================== */

.campus-map-fallback {
  display: none;
  width: 100%;
  height: 100%;
  padding: 12px;
}
.campus-fallback-zone {
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.campus-fallback-zone:hover,
.campus-fallback-zone:focus {
  filter: brightness(1.2);
  outline: none;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .campus-stage-wrapper {
    grid-template-columns: 1fr;
  }
  .campus-stage-canvas-area {
    height: 440px;
  }
  .campus-hud-header {
    flex-direction: column;
    align-items: stretch;
  }
  .campus-search-box {
    max-width: 100%;
  }
}
@media (max-width: 575.98px) {
  .campus-stage-canvas-area {
    height: 360px;
  }
  .campus-hud-hint {
    font-size: 10.5px;
    padding: 6px 10px;
  }
  .campus-hud-radar {
    display: none;
  }
}

