/* ============================================
   CSI 3D Building Explorer
   Large text for readability
   ============================================ */

/* Section container */
.building-explorer-section {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 650px;
  max-height: 900px;
  background: #050a14;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* Canvas container */
.be-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Vignette overlay */
.be-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5,10,20,0.4) 0%,
    transparent 25%,
    transparent 65%,
    rgba(5,10,20,0.6) 100%
  );
}

/* ---- Hero text (centered, fades on interaction) ---- */
.be-hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  z-index: 10;
  text-align: center;
  pointer-events: none;
  width: 90%;
  max-width: 860px;
  opacity: 1;
  transition: opacity 0.6s ease;
  /* Dark backdrop so text is always readable */
  background: rgba(2, 8, 18, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 52px 60px 56px;
}
.be-hero-text.be-hidden { opacity: 0; }

.be-hero-label {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #00d4ff;
  margin-bottom: 20px;
}
.be-hero-title {
  font-size: 68px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.be-hero-sub {
  font-size: 26px;
  line-height: 1.6;
  color: #d0dfe8;
  font-weight: 400;
}
.be-hero-cta {
  display: inline-block;
  margin-top: 28px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #00d4ff;
  padding: 16px 38px;
  border: 2px solid rgba(0,212,255,0.5);
  border-radius: 8px;
  animation: bePulseGlow 2.5s ease-in-out infinite;
}
@keyframes bePulseGlow {
  0%, 100% { border-color: rgba(0,212,255,0.25); box-shadow: 0 0 12px rgba(0,212,255,0); }
  50%      { border-color: rgba(0,212,255,0.55); box-shadow: 0 0 20px rgba(0,212,255,0.15); }
}

/* ---- Zone picker bar (bottom center) ---- */
.be-zone-picker {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 4px;
  background: rgba(2, 8, 18, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 8px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 6px 30px rgba(0,0,0,0.7);
}
.be-zone-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #b0d0ea;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 16px 26px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
  position: relative;
}
.be-zone-btn:hover {
  background: rgba(0,212,255,0.12);
  color: #d0e8f8;
  border-color: rgba(0,212,255,0.25);
}
.be-zone-btn.be-active {
  background: rgba(0,212,255,0.18);
  color: #e8f4ff;
  font-weight: 700;
  border-color: rgba(0,212,255,0.35);
}
.be-zone-indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 2px;
  display: none;
}
.be-zone-btn.be-active .be-zone-indicator {
  display: block;
}

/* Subtle entrance animation for the zone picker */
@keyframes bePickerSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.be-zone-picker {
  animation: bePickerSlideUp 0.8s ease 1.5s both;
}

/* ---- Info panel (right side) ---- */
.be-info-panel {
  position: absolute;
  right: 28px;
  top: 50%;
  z-index: 100;
  width: 360px;
  background: rgba(2, 8, 18, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 30px 28px 34px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(-50%) translateX(14px);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.be-info-panel.be-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}
.be-info-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #6a8aa8;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.be-info-close:hover { color: #a0c0dd; }
.be-info-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 8px;
}
.be-info-stat {
  font-size: 17px;
  color: rgba(0,212,255,0.75);
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}
.be-info-desc {
  font-size: 18px;
  line-height: 1.7;
  color: #b0c8dd;
  font-weight: 400;
  margin: 0;
}

/* ---- Orbit hint ---- */
.be-orbit-hint {
  position: absolute;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #c0d8ea;
  opacity: 0.9;
  transition: opacity 1s ease;
  pointer-events: none;
  white-space: nowrap;
  background: rgba(2, 8, 18, 0.8);
  padding: 10px 24px;
  border-radius: 8px;
}
.be-orbit-hint.be-hidden { opacity: 0; }

/* ---- Responsive ---- */

/* Tablet */
@media (max-width: 1024px) {
  .building-explorer-section {
    height: 75vh;
    min-height: 550px;
    max-height: 750px;
  }
  .be-hero-text { max-width: 700px; padding: 44px 48px 48px; }
  .be-hero-label { font-size: 20px; }
  .be-hero-title { font-size: 52px; }
  .be-hero-sub { font-size: 22px; }
  .be-hero-cta { font-size: 18px; padding: 14px 30px; }

  .be-info-panel {
    width: 320px;
    padding: 26px 22px 28px;
  }
  .be-info-title { font-size: 28px; }
  .be-info-desc { font-size: 17px; }
  .be-info-stat { font-size: 16px; }

  .be-zone-btn { font-size: 16px; padding: 14px 20px; }
}

/* Mobile */
@media (max-width: 768px) {
  .building-explorer-section {
    height: auto;
    min-height: 520px;
    max-height: none;
    padding-bottom: 80px; /* room for zone picker */
  }
  .be-hero-text {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 28px 24px 30px;
    border-radius: 0;
    box-sizing: border-box;
    z-index: 10;
  }
  .be-hero-label { font-size: 14px; letter-spacing: 3px; margin-bottom: 12px; }
  .be-hero-title { font-size: clamp(24px, 6vw, 36px); margin-bottom: 12px; }
  .be-hero-sub { font-size: 16px; line-height: 1.5; }
  .be-hero-cta { font-size: 15px; padding: 11px 22px; margin-top: 18px; }

  .be-canvas-wrap {
    position: relative;
    width: 100%;
    height: 280px;
  }

  .be-info-panel {
    position: absolute;
    right: 10px;
    top: auto;
    bottom: 80px;
    width: 260px;
    padding: 20px 16px 22px;
    transform: translateX(14px);
  }
  .be-info-panel.be-visible {
    transform: translateX(0);
  }
  .be-info-title { font-size: 22px; }
  .be-info-desc { font-size: 14px; }
  .be-info-stat { font-size: 13px; }
  .be-info-close { font-size: 24px; }

  .be-zone-picker {
    position: absolute;
    bottom: 14px;
    left: 8px;
    right: 8px;
    transform: none;
    gap: 4px;
    padding: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .be-zone-picker::-webkit-scrollbar { display: none; }
  .be-zone-picker {
    animation: none;
    opacity: 1;
  }
  .be-zone-btn {
    font-size: 13px;
    padding: 10px 14px;
    flex-shrink: 0;
  }

  .be-orbit-hint {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    text-align: center;
    font-size: 13px;
    margin: 0 auto;
    padding: 8px 16px;
    background: transparent;
    display: block;
    width: fit-content;
  }

  .be-vignette { display: none; }
}

/* Small phones */
@media (max-width: 480px) {
  .building-explorer-section {
    min-height: 460px;
    padding-bottom: 70px;
  }
  .be-hero-text { padding: 22px 16px 24px; }
  .be-hero-label { font-size: 12px; letter-spacing: 2px; margin-bottom: 8px; }
  .be-hero-title { font-size: clamp(20px, 5.5vw, 28px); margin-bottom: 10px; }
  .be-hero-sub { font-size: 14px; line-height: 1.45; }
  .be-hero-cta { font-size: 13px; padding: 9px 18px; margin-top: 14px; }

  .be-canvas-wrap { height: 240px; }

  .be-info-panel {
    right: 6px;
    left: 6px;
    width: auto;
    bottom: 70px;
    padding: 16px 14px 18px;
  }
  .be-info-title { font-size: 20px; }
  .be-info-stat { font-size: 12px; }
  .be-info-desc { font-size: 13px; line-height: 1.55; }

  .be-zone-picker {
    bottom: 10px;
    left: 6px;
    right: 6px;
    gap: 3px;
    padding: 4px;
  }
  .be-zone-btn {
    font-size: 11px;
    padding: 9px 10px;
    letter-spacing: 0;
  }
  .be-orbit-hint { font-size: 12px; padding: 6px 12px; }
}

@media (max-width: 360px) {
  .be-hero-title { font-size: clamp(18px, 5vw, 24px); }
  .be-zone-btn {
    font-size: 10px;
    padding: 8px 8px;
  }
}
