@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --bg-primary: #040710;
  --bg-secondary: rgba(10, 16, 32, 0.85);
  --color-blue: #1d428a;       /* Royal Blue from Logo */
  --color-orange: #f05a28;     /* Vibrant Orange from Logo */
  --color-text-main: #ffffff;
  --color-text-muted: #8fa0c0;
  --border-glass: rgba(255, 255, 255, 0.08);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-blue: 0 0 20px rgba(29, 66, 138, 0.35);
  --shadow-orange: 0 0 20px rgba(240, 90, 40, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
  font-family: var(--font-body);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

/* Image Sharpening Rules */
img, .map-container, .detail-visual {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Base screen setup for cinematic transitions */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  /* Premium rack-focus effect */
  filter: blur(10px);
  transform: scale(1.03);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
              visibility 0.8s, 
              filter 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 10;
}

/* Detail screen cross-fade timing */
#detail-screen {
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
              visibility 0.5s, 
              filter 0.5s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.screen.active {
  opacity: 1;
  visibility: visible;
  filter: blur(0px);
  transform: scale(1);
  /* Make opacity instant so it doesn't create a dark cross-fade gap */
  transition: opacity 0s,
              visibility 0s,
              filter 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 20; /* Bring active screen to front naturally */
}

/* Detail: opacity МИТТЄВО (id-специфічність #detail-screen інакше перебиває .screen.active
   і робить проявлення з чорного 0.5с — це й був "чорний хвіст"). Розмиття/масштаб лишаємо. */
#detail-screen.active {
  transition: opacity 0s,
              visibility 0s,
              filter 0.5s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Top Controls (Mute + Language) */
.top-controls {
  position: absolute;
  top: 30px;
  right: 40px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: right 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reposition Top Controls in Detail View to avoid overlap */
body.screen-detail .top-controls {
  right: calc(30% + 40px);
}

.lang-selector {
  display: flex;
  gap: 10px;
}

.control-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--color-text-muted);
  width: 38px;
  height: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}
.control-btn:hover {
  background: var(--color-orange);
  color: #ffffff;
  border-color: var(--color-orange);
}

.lang-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--color-text-muted);
  padding: 8px 16px;
  border-radius: 0px; /* Square corporate look */
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(240, 90, 40, 0.08);
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.lang-btn.active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}

/* Screen 1: Intro Screen (Clean Poster with no text overlays) */
#intro-screen {
  background-image: linear-gradient(rgba(4, 7, 16, 0.25), rgba(4, 7, 16, 0.55)), url('../assets/images/intro-poster.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Bottom centered prompt (No border, no background, pulsing text) */
.press-prompt {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  cursor: pointer;
  animation: pulseOpacity 2.5s infinite ease-in-out;
  transition: color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.press-prompt:hover {
  color: var(--color-orange);
  transform: translateX(-50%) translateY(-2px);
}

@keyframes pulseOpacity {
  0% { opacity: 0.3; }
  50% { opacity: 0.95; }
  100% { opacity: 0.3; }
}

/* Screen 2: Video Player Overlay */
#video-overlay {
  z-index: 50 !important; /* Keep it above map-screen even when it loses .active */
  background: transparent; /* Allow map to be seen underneath */
  transition: none;
  filter: none;
  transform: none;
}

#video-overlay.active {
  transition: none;
}

#video-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.15s linear;
}

.skip-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 0px; /* Square */
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.skip-btn:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #ffffff;
  box-shadow: var(--shadow-orange);
}

/* Screen 3: Interactive Map Screen (Forced aspect ratio scaling to align hotzones) */
#map-screen {
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.map-header {
  position: absolute;
  top: 30px;
  left: 40px;
  z-index: 30;
}

/* Main Map Typography */
.map-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.map-subtitle {
  font-size: 16px;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
  background: rgba(0,0,0,0.4);
  padding: 6px 14px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Full-screen map — cover entire viewport, no black bars */
.map-container-wrapper {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  background-color: var(--bg-primary);
  /* Hide scrollbar visually but keep functionality */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.map-container-wrapper::-webkit-scrollbar {
  display: none;
}

/* Map container now naturally fills 100% of the wrapper; SVG handles the responsive scaling automatically */
.map-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: calc(100vh * (1920 / 1080));
  flex-shrink: 0;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none" stroke="white" stroke-width="1.5"><circle cx="16" cy="16" r="4"/><line x1="16" y1="4" x2="16" y2="10"/><line x1="16" y1="22" x2="16" y2="28"/><line x1="4" y1="16" x2="10" y2="16"/><line x1="22" y1="16" x2="28" y2="16"/></svg>') 16 16, crosshair;
}

/* Hotzones Overlay (SVG) */
.hotzone {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

/* Pulsing Dots Styles */
.hotzone-inner-dot {
  fill: #ffffff;
}

.hotzone-pulse-ring {
  fill: #ffffff;
  stroke: transparent;
  transform-origin: center;
  transform-box: fill-box;
  animation: mapPulse 1.8s infinite ease-out;
}

@keyframes mapPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Signal Beams: subtle lines from tracker dots to server building */
.signal-beam-group {
  pointer-events: none;
}

.signal-beam-line {
  fill: none;
  stroke: rgba(100, 180, 255, 0.07);
  stroke-width: 1.2;
  stroke-dasharray: 6 4;
  opacity: 0;
  transition: opacity 0.6s ease-in;
}

.signal-beam-line.active {
  opacity: 1;
}

.signal-beam-line.fading {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.signal-pulse-dot {
  fill: url(#signalPulseGradient);
  opacity: 0;
  filter: url(#signalGlow);
}

.signal-pulse-dot.active {
  opacity: 1;
}

.signal-server-ring {
  fill: none;
  stroke: rgba(100, 180, 255, 0.15);
  stroke-width: 1;
  transform-origin: center;
  transform-box: fill-box;
  animation: serverPulse 3s infinite ease-out;
}

@keyframes serverPulse {
  0% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* Interactive SVG Hotzones (Hover state applies to polygon) */
.hotzone:hover {
  /* No visual change for the polygon itself, focus remains on the dots */
}

/* Map Footer Action Button */
.map-footer {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.contacts-trigger-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--color-blue);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 0px; /* Square corporate look */
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contacts-trigger-btn:hover {
  background: var(--color-blue);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
  transform: translateY(-2px);
}

/* Tooltip (Square business styling) */
.map-tooltip {
  position: absolute;
  background: rgba(6, 9, 19, 0.95);
  border: 1px solid var(--color-blue); /* Corporate business border */
  padding: 12px 20px;
  border-radius: 0px; /* Perfectly square */
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transform: translate(-50%, -120%) scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  min-width: 220px;
}

.map-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -120%) scale(1);
}

.tooltip-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.tooltip-status {
  font-size: 12px;
  color: var(--color-orange); /* Highlight color */
  display: flex;
  align-items: center;
  gap: 6px;
}

.tooltip-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--color-orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-orange);
}

/* Screen 4: Category Detail view (Split Screen 80/20) */
#detail-screen {
  background-color: var(--bg-primary);
  display: block; /* changed from flex */
  position: relative;
}

.detail-visual {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.detail-visual::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(4, 7, 16, 0) 65%, rgba(4, 7, 16, 0.7) 100%);
  pointer-events: none;
}

.detail-sidebar {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
  width: 35%;
  min-width: 350px;
  height: 100%;
  background: rgba(255, 255, 255, 0.85); /* lighter opacity for glassy effect */
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(25px);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.detail-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.detail-contacts-link {
  color: #444444;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.detail-contacts-link:hover {
  color: #ef5350;
}

/* Close Button (Red, Square, rotates 180 deg on hover) */
.close-detail-btn {
  background: #ef5350;
  border: 1px solid #ef5350;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 0px; /* Square */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(239, 83, 80, 0.2);
}

.close-detail-btn:hover {
  background: #d32f2f;
  border-color: #d32f2f;
  transform: rotate(180deg);
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.detail-info-scroll {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
}

/* Custom Scrollbar */
.detail-info-scroll::-webkit-scrollbar {
  width: 4px;
}
.detail-info-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
.detail-info-scroll::-webkit-scrollbar-thumb {
  background: rgba(240, 90, 40, 0.3);
}
.detail-info-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--color-orange);
}

.detail-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 15px;
  color: #111111;
}

.detail-description {
  font-size: 14px;
  color: #444444;
  line-height: 1.6;
  margin-bottom: 30px;
}

.detail-section {
  margin-bottom: 25px;
}

.detail-section-header {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-orange); /* Orange bullets */
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-list {
  list-style: none;
}

.detail-list-item {
  font-size: 13.5px;
  line-height: 1.6;
  color: #222222;
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.detail-list-item::before {
  content: '⚡';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 11px;
  color: var(--color-orange);
  opacity: 0.85;
}

/* Contacts Modal Dialog — Light corporate style */
#contacts-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 20, 45, 0.6);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

#contacts-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #f4f6f9;
  border: none;
  border-radius: 0;
  width: 95%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}

#contacts-modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-content::-webkit-scrollbar { width: 4px; }
.modal-content::-webkit-scrollbar-thumb { background: var(--color-blue); }

/* Top Header Bar — white/light to match logo background */
.modal-header-bar {
  background: #ffffff;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 1px solid #dde3ee;
}

.modal-header-logo-container {
  display: flex;
  align-items: center;
}

.modal-logo {
  height: 44px;
  width: auto;
  filter: none; /* logo has its own colors — no inversion needed */
}

.close-modal-btn {
  background: rgba(26, 37, 64, 0.07);
  border: 1px solid #dde3ee;
  color: #1a2540;
  width: 36px;
  height: 36px;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.close-modal-btn:hover {
  background: #ef5350;
  border-color: #ef5350;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Two-column body */
.modal-body-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
}

.modal-contact-col {
  padding: 26px 28px;
  background: #f4f6f9;
  border-right: 1px solid #dde3ee;
}

.modal-form-col {
  padding: 26px 28px;
  background: #ffffff;
}

.modal-section-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-blue);
  opacity: 0.2;
}

/* Contact rows — clean, no borders */
.contact-row {
  margin-bottom: 14px;
}

.contact-row-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8895b0;
  margin-bottom: 3px;
}

.contact-row-value {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: #1a2540;
  line-height: 1.5;
}

.contact-row-value a {
  color: #1a2540;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-row-value a:hover {
  color: var(--color-orange);
}

/* Map iframe */
.map-iframe-container {
  margin-top: 14px;
  width: 100%;
  height: 150px;
  border: 1px solid #dde3ee;
  overflow: hidden;
}

.map-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Telegram Request Form */
.tg-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tg-form-description {
  font-size: 12px;
  color: #576070;
  line-height: 1.55;
  margin-bottom: 4px;
}

.tg-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tg-field label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8895b0;
}

.tg-field input {
  background: #f4f6f9;
  border: 1px solid #dde3ee;
  border-bottom: 2px solid #dde3ee;
  border-radius: 0;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #1a2540;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  user-select: text;
}

.tg-field input:focus {
  border-color: var(--color-blue);
  border-bottom-color: var(--color-blue);
  background: #ffffff;
}

.tg-field input::placeholder {
  color: #b0bace;
}

.tg-submit-btn {
  background: var(--color-blue);
  border: none;
  color: #ffffff;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.tg-submit-btn:hover {
  background: var(--color-orange);
  box-shadow: 0 4px 15px rgba(240, 90, 40, 0.35);
  transform: translateY(-1px);
}

.tg-success-msg {
  display: none;
  background: #e8f5e9;
  border-left: 3px solid #43a047;
  padding: 12px 14px;
  font-size: 13px;
  color: #2e7d32;
  font-weight: 500;
}

.tg-success-msg.visible { display: block; }

.tg-error-msg {
  display: none;
  background: #ffebee;
  border-left: 3px solid #e53935;
  padding: 12px 14px;
  font-size: 13px;
  color: #c62828;
}

.tg-error-msg.visible { display: block; }

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .detail-visual { width: 100%; height: 100%; }
  .detail-visual::after { background: linear-gradient(180deg, rgba(4,7,16,0) 50%, rgba(4,7,16,0.7) 100%); }
  .detail-sidebar { 
    width: 100%; 
    height: 50%; 
    top: auto; 
    bottom: 0; 
    border-left: none; 
    border-top: 1px solid rgba(255,255,255,0.2); 
    border-top-left-radius: 20px; 
    border-top-right-radius: 20px; 
    padding: 24px; 
  }
  .detail-sidebar.collapsed {
    transform: translateY(100%);
  }
  .detail-top-bar { position: relative; margin-bottom: 20px; }
  body.screen-detail .top-controls { right: 20px; top: 20px; }
  .modal-body-container { grid-template-columns: 1fr; }
  .modal-contact-col { border-right: none; border-bottom: 1px solid #dde3ee; }
}

/* Mobile Utilities */
.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .mobile-only {
    display: flex !important;
  }
  
  /* Mobile map header repositioning */
  .map-header {
    top: 60px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90%;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 2px;
    backdrop-filter: blur(10px);
  }
  
  .mobile-swipe-hint {
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0px;
    color: #ffffff;
    font-size: 14px;
    animation: pulseSwipe 2s infinite;
  }
  
  @keyframes pulseSwipe {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-10px); }
  }
  
  .mobile-skip-toggle {
    position: static;
    transform: none;
    background: var(--bg-secondary);
    border: 1px solid var(--color-blue);
    padding: 14px 32px;
    border-radius: 0px;
    backdrop-filter: blur(12px);
    z-index: 100;
    color: white;
    font-size: 15px;
    font-family: var(--font-display);
    font-weight: 600;
    display: flex;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    width: 100%;
  }
  
  .mobile-skip-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 100%;
    justify-content: center;
  }
}

/* =====================================================
   EQUIPMENT SIDE PANEL
   ===================================================== */
.equipment-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  backdrop-filter: blur(2px);
}
.equipment-overlay.active {
  opacity: 1;
  visibility: visible;
}

.equipment-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 30%;
  min-width: 300px;
  max-width: 480px;
  height: 100%;
  background: var(--bg-primary);
  border-right: 1px solid rgba(255,255,255,0.08);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 10px 0 50px rgba(0,0,0,0.6);
}
.equipment-panel.open {
  transform: translateX(0);
}

.equipment-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.equipment-panel-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}
.close-equipment-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.close-equipment-btn:hover { color: #ffffff; }

.equipment-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

/* Sections */
.equip-section {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.equip-section-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  gap: 12px;
}
.equip-section-toggle:hover {
  background: rgba(255,255,255,0.04);
}
.equip-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.equip-section-brand {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
}
.equip-section-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}
.equip-chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,0.4);
  transition: transform 0.3s ease;
}
.equip-chevron.rotated {
  transform: rotate(180deg);
}
.equip-chevron-arrow {
  color: var(--color-orange);
}
.equip-nav-btn .equip-section-brand {
  color: rgba(255,255,255,0.85);
}
.equip-nav-btn:hover .equip-section-brand {
  color: var(--color-orange);
}

/* Accordion content */
.equip-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.equip-section-content.open {
  max-height: 8000px;
}

/* Device cards */
.equip-device-card {
  margin: 0 20px 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 2px solid var(--color-blue);
  transition: border-color 0.2s, background 0.2s;
}
.equip-device-card:first-child {
  margin-top: 8px;
}
.equip-device-card:hover {
  background: rgba(255,255,255,0.07);
  border-left-color: var(--color-orange);
}
.equip-device-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.equip-device-image {
  width: 100%;
  height: 280px;
  flex-shrink: 0;
  border-radius: 4px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.equip-device-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: scale-down;
}
.equip-device-info {
  width: 100%;
}

.equip-device-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.equip-device-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
}
.equip-device-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange);
  background: rgba(240,90,40,0.12);
  padding: 2px 7px;
  white-space: nowrap;
}
.equip-device-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin: 0 0 10px 0;
}
.equip-device-specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.equip-device-specs li {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  padding-left: 12px;
  position: relative;
}
.equip-device-specs li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-blue);
}

/* Software section — non-clickable header */
.equip-section-header-static {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: default;
}

/* Nav sections with extra top spacing */
.equip-section--nav-spaced {
  margin-top: 12px;
}
.equip-section--nav-spaced + .equip-section--nav-spaced {
  margin-top: 0;
}

/* Equipment control button style */
.equipment-control-btn {
  border: 1px solid var(--color-blue) !important;
  background-color: var(--color-blue) !important;
  color: #ffffff !important;
  transform: scale(1.1);
  margin-right: 5px;
}
.equipment-control-btn svg polygon,
.equipment-control-btn svg polyline,
.equipment-control-btn svg path {
  fill: none !important;
  stroke: #ffffff !important;
}
.equipment-control-btn:hover {
  background-color: #2b70f0 !important;
  border-color: #2b70f0 !important;
}

/* Scroll arrows for mobile map navigation */

.equip-panel-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin: 4px 0 0 0;
  font-weight: 400;
}

/* Detail sidebar collapsed (when user clicks on visual) */
.detail-sidebar.collapsed {
  transform: translateX(100%);
}

/* Mobile: full-width equipment panel and map adjustments */
@media (max-width: 768px) {
  .equipment-panel {
    width: 85%;
    max-width: none;
  }

  /* Show scroll arrows on mobile */
  .map-scroll-arrows {
    display: block;
  }

  /* Hide pulsing dots on mobile */
  .hotzone-dot-group {
    display: none !important;
  }

  /* Hide signal beams on mobile */
  .signal-beam-group {
    display: none !important;
  }

  /* Show static labels on mobile */
  .mobile-zone-label {
    display: block !important;
  }

  /* No tap highlight on hotzone areas */
  .hotzone {
    -webkit-tap-highlight-color: transparent !important;
  }
}

