:root {
  --ink: #15202b;
  --muted: #5b6572;
  --paper: #fffdf7;
  --lime: #b8f05a;
  --mint: #42d6a4;
  --cyan: #36b7ff;
  --pink: #ff5ea8;
  --orange: #ffb13d;
  --violet: #7557ff;
  --shadow: 0 18px 45px rgba(28, 35, 44, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(66, 214, 164, 0.32), transparent 28rem),
    radial-gradient(circle at 91% 13%, rgba(255, 94, 168, 0.22), transparent 24rem),
    linear-gradient(135deg, #f8fbff 0%, #fff8e7 48%, #effff7 100%);
}

button,
input {
  font: inherit;
}

.app {
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 38px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  gap: 22px;
  align-items: end;
  margin-bottom: 18px;
}

.hero-simple {
  grid-template-columns: 1fr;
}

.kicker {
  margin: 0 0 8px;
  color: #047a63;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 5.2rem);
  line-height: 0.96;
}

.intro {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.panel,
.map-shell {
  border: 2px solid rgba(21, 32, 43, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.map-shell {
  overflow: hidden;
}

.map {
  position: relative;
  aspect-ratio: 1024 / 1536;
  min-height: 900px;
  overflow: hidden;
  background: #fffaf0;
}

.satellite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.02) contrast(1.02);
}

.path {
  position: absolute;
  display: none;
  border-radius: 999px;
  background: rgba(238, 232, 211, 0.88);
  border: 2px dashed rgba(21, 32, 43, 0.18);
}

.main-path {
  left: 43%;
  top: -7%;
  width: 20%;
  height: 116%;
  transform: rotate(3deg);
}

.left-path {
  left: 9%;
  top: 36%;
  width: 42%;
  height: 11%;
  transform: rotate(-18deg);
}

.right-path {
  right: 9%;
  top: 33%;
  width: 38%;
  height: 10%;
  transform: rotate(22deg);
}

.zone,
.map-label {
  position: absolute;
  display: none;
  z-index: 2;
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 900;
  color: #fff;
  background: rgba(21, 32, 43, 0.76);
}

.zone-top {
  left: 42%;
  top: 3%;
  background: #078a69;
}

.zone-left {
  left: 8%;
  top: 29%;
  background: #2e6bd9;
}

.zone-right {
  right: 7%;
  top: 31%;
  background: #b83eee;
}

.north {
  left: 5%;
  top: 6%;
}

.south {
  left: 36%;
  bottom: 4%;
}

.marker {
  position: absolute;
  z-index: 4;
  width: clamp(24px, 3.2vw, 34px);
  height: clamp(24px, 3.2vw, 34px);
  border: clamp(2px, 0.28vw, 3px) solid #fff;
  border-radius: 50%;
  color: #111;
  background: var(--lime);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  font-size: clamp(0.72rem, 1.35vw, 1rem);
  font-weight: 950;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.marker:nth-child(5n + 1) { background: var(--lime); }
.marker:nth-child(5n + 2) { background: var(--cyan); }
.marker:nth-child(5n + 3) { background: var(--pink); }
.marker:nth-child(5n + 4) { background: var(--orange); }
.marker:nth-child(5n + 5) { background: #ffffff; }

.marker:hover,
.marker:focus,
.marker.selected {
  transform: translate(-50%, -50%) scale(1.22);
  outline: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.marker.dimmed {
  opacity: 0.22;
}

.marker.hidden {
  display: none;
}

.marker.highlight {
  outline: 4px solid rgba(255, 255, 255, 0.86);
}

.map-selected {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 5;
  display: flex;
  width: min(520px, calc(100% - 24px));
  gap: 12px;
  align-items: center;
  transform: translateX(-50%);
  border: 2px solid rgba(21, 32, 43, 0.13);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.map-selected-number {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--violet);
  font-weight: 950;
}

.map-selected strong {
  display: block;
  font-size: 1rem;
}

.map-selected p {
  display: -webkit-box;
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.panel {
  position: sticky;
  top: 16px;
  padding: 18px;
}

.panel-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pill {
  display: inline-grid;
  min-width: 58px;
  min-height: 48px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--violet);
  font-weight: 950;
}

.panel h2,
.directory h2 {
  margin: 0;
  font-size: 1.45rem;
}

.panel p {
  color: var(--muted);
}

.org-list {
  display: grid;
  gap: 10px;
}

.org-item {
  border-left: 5px solid var(--mint);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f5fbff;
  font-weight: 800;
}

.empty-note {
  margin-top: 18px;
  border-radius: 8px;
  padding: 12px;
  color: #5f4520;
  background: #fff0c9;
  line-height: 1.45;
}

.directory {
  margin-top: 20px;
}

.directory-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.directory-title p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.card {
  min-height: 104px;
  border: 2px solid rgba(21, 32, 43, 0.09);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}

.card strong {
  display: block;
  color: var(--violet);
  font-size: 1.35rem;
}

.card span {
  display: block;
  margin-top: 8px;
  font-weight: 750;
}

.card.hidden {
  display: none;
}

@media (max-width: 900px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .panel {
    position: static;
  }

  .map {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .app {
    width: min(100% - 18px, 1220px);
    padding-top: 14px;
  }

  .map {
    min-height: auto;
  }

  .marker {
    width: 22px;
    height: 22px;
    border-width: 1.5px;
    font-size: 0.68rem;
    box-shadow: 0 5px 11px rgba(0, 0, 0, 0.22);
  }

  .marker:hover,
  .marker:focus,
  .marker.selected {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.28);
  }

  .map-selected {
    bottom: 6px;
    width: calc(100% - 12px);
    gap: 8px;
    padding: 7px 8px;
  }

  .map-selected-number {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 0.92rem;
  }

  .map-selected strong {
    font-size: 0.86rem;
  }

  .map-selected p {
    font-size: 0.75rem;
  }

  .directory-title {
    display: block;
  }
}
