:root {
  --bg: #f6f1e6;
  --card: #fffdf8;
  --ink: #1b1a17;
  --muted: #6f685c;
  --red: #ed3d24;
  --red-deep: #d12f18;
  --gold: #c6a15a;
  --gold-line: #efdfb4;
  --gold-ink: #8a6a28;
  --cream: #fff8e8;
  --shadow: 0 18px 40px rgba(92, 64, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  -webkit-text-size-adjust: 100%;
  background:
    radial-gradient(980px 520px at 12% -8%, #fff9ee, transparent 58%),
    radial-gradient(820px 480px at 100% 0%, #f4e6cc, transparent 46%),
    var(--bg);
}

.topbar {
  height: 4px;
  background: var(--red);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 max(28px, env(safe-area-inset-bottom));
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  height: 78px;
  width: auto;
  display: block;
}

.intro {
  margin: 18px 0 16px;
}

.intro h1 {
  margin: 0 0 8px;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.intro p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.board {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 16px;
  align-items: start;
}

.map-panel {
  position: relative;
  aspect-ratio: 900 / 800;
  overflow: hidden;
  border: 1px solid #e5d3aa;
  border-radius: 28px;
  background:
    radial-gradient(380px 240px at 18% 72%, rgba(255, 255, 255, 0.34), transparent 70%),
    linear-gradient(165deg, #f4e8d2 0%, #e8d8b8 58%, #e3d0aa 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.map-panel svg {
  display: block;
  width: 100%;
  height: 100%;
}

.map-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(176, 138, 66, 0.38);
  border-radius: 18px;
  pointer-events: none;
}

.pin {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  color: inherit;
  text-decoration: none;
}

.pin-dot {
  width: 15px;
  height: 15px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 5px 12px rgba(237, 61, 36, 0.38);
  position: relative;
  z-index: 1;
}

.pin-ring {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(237, 61, 36, 0.5);
  border-radius: 50%;
  animation: pulse 2.6s ease-out infinite;
}

.pin[data-store="kings"] {
  transform: translate(calc(-50% - 7px), calc(-50% - 6px));
}

.pin[data-store="aveu"] {
  transform: translate(calc(-50% + 7px), calc(-50% + 6px));
}

.pin:hover .pin-dot,
.pin.is-hot .pin-dot {
  transform: scale(1.28);
}

.leaders {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.leaders path {
  fill: none;
  stroke: #9a7340;
  stroke-width: 2.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.leaders path.is-hot {
  stroke: var(--red);
  stroke-width: 2.4;
}

.map-tag {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 112px;
  min-height: 44px;
  padding: 6px 10px 7px;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.96);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(92, 64, 20, 0.12);
  touch-action: manipulation;
}

.map-tag-region {
  color: var(--gold-ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.map-tag-name {
  font-family: Outfit, Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.map-tag:hover,
.map-tag.is-hot,
.map-tag:focus-visible {
  border-color: var(--red);
  background: #fff7f4;
}

.map-tag:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.tag-lancaster { left: 3%; right: auto; top: 6%; bottom: auto; }
.tag-lackawanna { left: 24%; right: auto; top: 6%; bottom: auto; }
.tag-haverstraw { left: auto; right: 3%; top: 6%; bottom: auto; }
.tag-kings { left: 30%; right: auto; top: auto; bottom: 18%; }
.tag-aveu { left: 42%; right: auto; top: auto; bottom: 2%; }

.shops {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group {
  margin: 6px 2px 0;
  color: var(--red);
  font-family: Outfit, Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.group:first-child {
  margin-top: 2px;
}

.card {
  touch-action: manipulation;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(92, 64, 20, 0.045);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.card-copy {
  min-width: 0;
}

.card-kicker {
  display: block;
  color: var(--gold-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-name {
  display: block;
  margin-top: 2px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.card-address,
.card-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.card-meta {
  color: #4e493f;
}

.card-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--red);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.card:hover,
.card.is-hot,
.card:focus-visible {
  border-color: var(--red);
  background: #fff7f4;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(237, 61, 36, 0.14);
}

.card:hover .card-go,
.card.is-hot .card-go,
.card:focus-visible .card-go {
  background: var(--red-deep);
}

.card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.card:active {
  transform: translateY(0);
}

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

@media (max-width: 860px) {
  .shell {
    width: min(1120px, calc(100% - 20px));
    padding-top: 12px;
  }

  .brand img {
    height: 52px;
  }

  .intro {
    margin: 10px 0 12px;
  }

  .intro h1 {
    font-size: 32px;
  }

  .intro p {
    font-size: 15px;
    line-height: 1.35;
  }

  .board {
    grid-template-columns: 1fr;
  }

  .map-panel {
    width: 100%;
    height: auto;
    border-radius: 22px;
  }

  .pin {
    pointer-events: none;
  }

  .map-tag {
    min-width: 0;
    max-width: 46%;
    min-height: 44px;
    padding: 6px 8px;
  }

  .map-tag-region {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .map-tag-name {
    font-size: 14px;
  }

  .tag-lancaster { left: 2%; right: auto; top: 3%; bottom: auto; }
  .tag-lackawanna { left: 30%; right: auto; top: 20%; bottom: auto; }
  .tag-haverstraw { left: auto; right: 2%; top: 3%; bottom: auto; }
  .tag-kings { left: 2%; right: auto; top: auto; bottom: 22%; }
  .tag-aveu { left: 28%; right: auto; top: auto; bottom: 3%; }

  .card {
    grid-template-columns: 1fr;
    row-gap: 10px;
    align-items: stretch;
    padding: 14px;
  }

  .card-address,
  .card-meta {
    font-size: 15px;
  }

  .card-go {
    justify-self: stretch;
    min-height: 48px;
    margin-top: 2px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pin-ring {
    animation: none;
  }

  .card,
  .pin-label,
  .pin-dot {
    transition: none;
  }
}
