:root {
  --map-bg: #10191c;
  --map-panel: #171717;
  --map-panel-soft: rgba(20, 28, 30, 0.8);
  --map-line: rgba(125, 200, 255, 0.35);
  --map-accent: #7dc8ff;
  --map-text: #f0f0f0;
  --map-muted: #b4c1c4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.map-hero {
  padding: 140px 20px 90px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background:
    radial-gradient(
      circle at top left,
      rgba(125, 200, 255, 0.2),
      transparent 45%
    ),
    radial-gradient(
      circle at top right,
      rgba(255, 193, 100, 0.18),
      transparent 50%
    ),
    linear-gradient(135deg, #0b1f23, #0a1416 65%, #0b1a1d);
}

.hero-eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #9bd7e2;
  margin-bottom: 18px;
}

.map-hero h1 {
  font-size: 3rem;
  color: var(--map-text);
  margin-bottom: 16px;
}

.hero-lead {
  max-width: 680px;
  font-size: 1.2rem;
  color: var(--map-muted);
}

.map-tree {
  padding: 80px 20px 100px;
}

.map-panel {
  background: var(--map-panel-soft);
  border: 1px solid rgba(125, 200, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

.map-header {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.map-header h2 {
  font-size: 2.2rem;
  color: var(--map-text);
}

.map-header p {
  color: var(--map-muted);
  font-size: 1.05rem;
}

.tree {
  list-style: none;
  margin: 0;
  padding: 0 0 0 20px;
  position: relative;
}

.tree::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  width: 2px;
  height: 100%;
  background: linear-gradient(var(--map-line), transparent 90%);
}

.tree li {
  position: relative;
  padding: 0 0 22px 28px;
}

.tree li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 8px;
  width: 16px;
  height: 2px;
  background: var(--map-line);
}

.tree li:last-child {
  padding-bottom: 0;
}

.tree li:last-child::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  width: 2px;
  height: calc(100% - 18px);
  background: var(--map-panel-soft);
}

.tree ul {
  list-style: none;
  margin: 14px 0 0 0;
  padding-left: 22px;
  border-left: 2px solid rgba(125, 200, 255, 0.15);
}

.tree-node {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.tree-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(125, 200, 255, 0.4);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--map-accent);
  transition: transform 0.3s ease;
}

.tree-link {
  color: var(--map-text);
  font-weight: 600;
  font-size: 1.05rem;
}

.tree-link:hover {
  color: var(--map-accent);
}

.tree li.collapsed > ul {
  display: none;
}

.tree li.collapsed > .tree-node .toggle-dot {
  transform: scale(0.6);
  opacity: 0.6;
}

@media (max-width: 900px) {
  .map-panel {
    padding: 28px;
  }

  .tree-node {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .map-hero {
    padding: 120px 20px 70px;
  }

  .map-hero h1 {
    font-size: 2.4rem;
  }

  .tree {
    padding-left: 14px;
  }

  .tree li {
    padding-left: 22px;
  }

  .tree-node {
    flex-wrap: wrap;
    border-radius: 16px;
  }
}
