:root {
  --neon-green: #24ff70;
  --dark: #242438;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BODY */
body {
  min-height: 100svh;
  font-family: "Inter", sans-serif;
  color: #fff;

  background:
    radial-gradient(circle at 20% 10%, rgba(36,255,112,0.10), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(36,255,112,0.06), transparent 35%),
    var(--dark);

  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 20px;
  overflow-x: hidden;
}

/* GRID TEXTURE */
body::before {
  content: "";
  position: fixed;
  inset: 0;

  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);

  background-size: 42px 42px;
  opacity: 0.2;
  pointer-events: none;
}

/* DEPTH */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.35), transparent 60%);
  pointer-events: none;
}

/* HEADER */
.header {
  text-align: center;
  margin-bottom: 20px;
}

.logo-text {
  color: var(--neon-green);
  font-weight: 900;
  letter-spacing: 4px;
  font-size: 14px;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(36,255,112,0.4);
}

.header h1 {
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 900;
}

.header h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
  opacity: 0.6;
}

/* SEARCH */
.search-box {
  width: min(92vw, 420px);
  margin-bottom: 16px;
}

#city-search {
  width: 100%;
  padding: 14px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #fff;
  text-align: center;
  outline: none;
  transition: 0.25s;
}

#city-search:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 16px rgba(36,255,112,0.25);
}

/* MAP */
.map-card {
  width: min(94vw, 900px);
}

.map-card svg {
  width: 100%;
  height: auto;
  max-height: 50vh;
  display: block;
}

/* CITIES */
path.city-path {
  fill: #ffffff;
  stroke: var(--dark);
  stroke-width: 0.5;
  cursor: pointer;
  transition: fill 0.2s ease, filter 0.2s ease;
}

path.city-path:hover,
path.city-path.selected {
  fill: var(--neon-green) !important;
  filter: drop-shadow(0 0 10px var(--neon-green));
}

/* TOOLTIP */
.tooltip {
  position: fixed;
  display: none;
  z-index: 9999;
  pointer-events: none;

  padding: 10px 14px;
  border-radius: 12px;

  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(36,255,112,0.3);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.4),
    0 0 14px rgba(36,255,112,0.2);
}

.tooltip b {
  display: block;
  color: var(--neon-green);
  margin-bottom: 3px;
}

.tooltip span {
  color: rgba(255,255,255,0.8);
}

/* FEATURES */
.feature-strip {
  width: min(94vw, 820px);
  margin-top: 18px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  padding: 14px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  position: relative;
}

/* GREEN DIVIDER */
.feature-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;

  background: linear-gradient(
    to bottom,
    transparent,
    var(--neon-green),
    transparent
  );

  box-shadow: 0 0 10px var(--neon-green);
}

/* ICON */
.feature-icon {
  width: 36px;
  height: 36px;
  color: var(--neon-green);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 8px rgba(36,255,112,0.6));
}

/* TEXT */
.feature-item strong {
  font-size: 16px;
  font-weight: 900;
}

.feature-item span {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* MOBILE */
@media (max-width: 768px) {
  body {
    padding: 26px 14px 24px;
    justify-content: flex-start;
  }

  .header {
    margin-bottom: 22px;
  }

  .search-box {
    margin-bottom: 24px;
  }

  .map-card {
    margin-top: 6px;
    margin-bottom: 22px;
  }

  .map-card svg {
    width: 100%;
    min-width: 0;
    max-height: none;
  }

  .feature-strip {
    width: 100%;
    margin-top: 28px;
    padding: 8px 18px 4px;
    grid-template-columns: 1fr;
  }

  .feature-item {
    padding: 18px 0;
    gap: 18px;
  }

  .feature-icon {
    width: 36px;
    height: 36px;
  }

  .feature-item strong {
    font-size: 18px;
  }

  .feature-item span {
    font-size: 13px;
    line-height: 1.35;
  }

  .feature-item:not(:last-child)::after {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    width: auto;
    background: linear-gradient(
      to right,
      transparent,
      var(--neon-green),
      transparent
    );
  }

  .tooltip {
    left: 50% !important;
    bottom: 14px;
    top: auto !important;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    text-align: center;
  }
}