/* LYNQ or Treat 2026 event map. Mobile first, same palette as styles.css. */
:root {
  --pumpkin: #F07B22;
  --navy: #16294A;
  --deep-navy: #0F1D38;
  --night: #0b1428;
  --cream: #FCF3D8;
  --lime: #A6E22E;
  --lynq-blue: #1C6FC9;
  --purple: #8E44D6;
  --line: rgba(252, 243, 216, 0.16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Nunito", sans-serif;
  background: var(--night);
  color: var(--cream);
  font-size: 17px;
  line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom);
}
h1, h2, h3, .tab, .chip, .btn-vote { font-family: "Fredoka", sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.mock-banner {
  background: var(--lime); color: #0D0D10; text-align: center;
  font-weight: 800; font-size: 0.85rem; padding: 0.4rem 1rem;
}

.map-header { padding: 1rem 16px 0.75rem; background: linear-gradient(180deg, var(--deep-navy), var(--night)); }
.map-header .back { color: var(--pumpkin); font-weight: 800; text-decoration: none; font-size: 0.95rem; }
.map-header h1 { font-size: 2rem; margin-top: 0.35rem; }
.map-header .meta { font-weight: 700; opacity: 0.85; }

.tabs {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--deep-navy); border-bottom: 1px solid var(--line);
}
.tab {
  background: none; border: 0; padding: 0.9rem 0.25rem; font-size: 1.05rem; font-weight: 600;
  border-bottom: 3px solid transparent; opacity: 0.75;
}
.tab.is-active { opacity: 1; border-bottom-color: var(--pumpkin); color: #fff; }

.view { display: none; padding: 1rem 16px 2rem; }
.view.is-active { display: block; }

.chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; scrollbar-width: none; }
.chip {
  flex: 0 0 auto; border: 2px solid var(--line); background: transparent;
  border-radius: 999px; padding: 0.4rem 0.95rem; font-weight: 600; font-size: 0.95rem;
}
.chip.is-on { background: var(--pumpkin); border-color: var(--pumpkin); color: #0D0D10; }

.map-tools { display: flex; align-items: center; justify-content: space-between; margin: 0.75rem 0 0.5rem; }
.hint { font-size: 0.85rem; opacity: 0.8; margin-top: 0.4rem; }
.full-btn {
  border: 0; border-radius: 12px; background: var(--pumpkin); color: #0D0D10;
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1rem; padding: 0 1rem; height: 44px;
}
.rot-ico { display: inline-block; font-size: 1.15rem; margin-right: 0.2rem; }
.zoom { display: flex; gap: 0.4rem; }
.zoom button {
  width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: var(--navy); font-size: 1.5rem; font-weight: 800;
}

.map-scroll {
  overflow: auto; border-radius: 16px; border: 2px solid var(--line);
  height: 58vh; max-height: 520px; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y pinch-zoom;
  background: #1b2433;
}
.map-canvas { position: relative; width: 100%; }
.map-canvas img { display: block; width: 100%; height: auto; }
.map-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* SVG marks */
.zone { stroke-width: 4; cursor: pointer; }
.zone.food { fill: rgba(166, 226, 46, 0.35); stroke: var(--lime); }
.zone.fun  { fill: rgba(142, 68, 214, 0.38); stroke: #C58CFF; }
.zone.info { fill: rgba(28, 111, 201, 0.55); stroke: #7FB8FF; }
.zone.open { fill: rgba(255, 255, 255, 0.14); stroke: #fff; stroke-dasharray: 12 8; }
.zone-label {
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 30px; fill: #fff;
  paint-order: stroke; stroke: rgba(0, 0, 0, 0.75); stroke-width: 6px; pointer-events: none;
}
.spot { cursor: pointer; }
.spot circle { fill: var(--pumpkin); stroke: #fff; stroke-width: 3; }
.spot.is-empty circle { fill: rgba(240, 123, 34, 0.45); stroke-dasharray: 5 4; }
.spot.is-mine circle { fill: var(--lime); }
.spot.is-hit circle { stroke: var(--lime); stroke-width: 7; }
.spot text {
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 17px; fill: #0D0D10;
  text-anchor: middle; dominant-baseline: central; pointer-events: none;
}
.is-dim { opacity: 0.12; pointer-events: none; }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.75rem; font-size: 0.9rem; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 0.35rem; vertical-align: -2px; }
.dot.d-trunk { background: var(--pumpkin); }
.dot.d-food { background: var(--lime); }
.dot.d-fun { background: var(--purple); }
.dot.d-info { background: var(--lynq-blue); }

/* Trunk list */
.search input {
  width: 100%; font-size: 17px; padding: 0.8rem 1rem; border-radius: 12px;
  border: 2px solid var(--line); background: var(--deep-navy); color: var(--cream);
}
.trunk-list { list-style: none; margin-top: 0.9rem; display: grid; gap: 0.6rem; }
.trunk {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 0.75rem; align-items: center;
  background: var(--deep-navy); border: 1px solid var(--line); border-radius: 14px; padding: 0.75rem;
}
.trunk .num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--pumpkin); color: #0D0D10;
  display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.15rem;
}
.trunk h3 { font-size: 1.05rem; line-height: 1.25; }
.trunk p { font-size: 0.9rem; opacity: 0.85; }
.trunk .go {
  border: 0; background: var(--navy); border-radius: 10px; padding: 0.6rem 0.8rem;
  font-weight: 800; font-size: 0.9rem; min-height: 44px;
}
.trunk.is-mine { border-color: var(--lime); }
.empty { opacity: 0.75; text-align: center; padding: 1.5rem 0; }

/* Vote view */
.vote-hero .eyebrow { color: var(--pumpkin); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }
.vote-hero h2 { font-size: 1.75rem; margin: 0.25rem 0 0.5rem; }
.my-vote { margin-top: 0.75rem; background: rgba(166, 226, 46, 0.15); border: 1px solid var(--lime); border-radius: 12px; padding: 0.6rem 0.8rem; font-weight: 700; }
.counter { display: flex; align-items: baseline; gap: 0.5rem; margin: 1.25rem 0 0.75rem; }
.counter .count { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 3rem; color: var(--pumpkin); line-height: 1; }
.counter .label { font-weight: 700; }
.leaders { list-style: none; display: grid; gap: 0.55rem; }
.leader { background: var(--deep-navy); border-radius: 12px; padding: 0.6rem 0.8rem; border: 1px solid var(--line); }
.leader .row { display: flex; justify-content: space-between; gap: 0.5rem; font-weight: 700; }
.bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); margin-top: 0.4rem; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--pumpkin); border-radius: 99px; transition: width 0.4s ease; }
.fine { font-size: 0.85rem; opacity: 0.75; margin-top: 1rem; }

/* Bottom sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 40; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--cream); color: #0D0D10; border-radius: 20px 20px 0 0;
  padding: 1.25rem 16px calc(1.25rem + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}
.sheet-close {
  position: absolute; top: 0.5rem; right: 0.75rem; width: 44px; height: 44px;
  border: 0; background: none; font-size: 2rem; line-height: 1;
}
.sheet-tag { font-weight: 800; color: var(--pumpkin); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }
.sheet h3 { font-size: 1.5rem; margin: 0.2rem 2.5rem 0.4rem 0; }
.btn-vote {
  display: block; width: 100%; margin-top: 1rem; border: 0; border-radius: 14px;
  background: var(--pumpkin); color: #0D0D10; font-size: 1.2rem; font-weight: 700; padding: 0.95rem;
}
.btn-vote:disabled { background: #c9c2ad; color: #444; }
.sheet-note { font-size: 0.9rem; margin-top: 0.6rem; color: #333; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%);
  background: var(--lime); color: #0D0D10; font-weight: 800; padding: 0.7rem 1.1rem;
  border-radius: 999px; z-index: 60; transition: transform 0.25s ease; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

@media (min-width: 760px) {
  .view { max-width: 720px; margin: 0 auto; }
  .sheet { max-width: 520px; margin: 0 auto; }
}

/* Zone and spot marks, sized for the 3167 x 2041 base */
.zone { stroke-width: 7; }
.zone-label { font-size: 46px; stroke-width: 9px; }
.zone.prime { fill: rgba(240, 123, 34, 0.18); stroke: var(--pumpkin); stroke-dasharray: 18 10; }
.zone.tbd { fill: rgba(255, 255, 255, 0.10); stroke: #ddd; stroke-dasharray: 10 10; }
.spot circle.hit { fill: transparent; stroke: none; }
.spot circle.pin { fill: var(--pumpkin); stroke: #fff; stroke-width: 5; }
.spot.is-empty circle.pin { fill: rgba(240, 123, 34, 0.5); stroke-dasharray: 8 6; }
.spot.is-mine circle.pin { fill: var(--lime); }
.spot.is-hit circle.pin { stroke: var(--lime); stroke-width: 11; }
.spot text { font-size: 30px; }
.spot circle { fill: none; stroke: none; }
.entry-arrow { stroke: #FF3B3B; stroke-width: 12; fill: none; stroke-dasharray: 26 16; }

/* Full map */
.full { position: fixed; inset: 0; z-index: 70; background: #05080f; overflow: hidden; }
.full-stage { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; }
.full.is-tilted .full-stage {
  width: 100vh; height: 100vw; transform-origin: 0 0;
  transform: translateX(100vw) rotate(90deg);
}
.full-scroll { position: absolute; inset: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.full-canvas { position: relative; width: 100%; }
.full-canvas img { display: block; width: 100%; height: auto; }
.full-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.full-close {
  position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(15, 29, 56, 0.9); color: #fff; font-size: 2rem; line-height: 1;
}
.full-tip {
  position: absolute; left: 12px; top: 14px; background: rgba(15, 29, 56, 0.9); color: var(--cream);
  font-weight: 800; padding: 0.45rem 0.8rem; border-radius: 999px; font-size: 0.9rem;
}
.full:not(.is-tilted) .full-tip { display: none; }
.mini {
  position: absolute; left: 12px; bottom: 12px; width: min(360px, calc(100% - 24px));
  background: var(--cream); color: #0D0D10; border-radius: 16px; padding: 0.9rem 1rem 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.mini h3 { font-size: 1.25rem; margin: 0.1rem 2rem 0.2rem 0; }
.mini p { font-size: 0.95rem; }
.mini .btn-vote { margin-top: 0.6rem; padding: 0.7rem; font-size: 1.05rem; }
.mini-x { position: absolute; top: 4px; right: 6px; width: 40px; height: 40px; border: 0; background: none; font-size: 1.7rem; }

/* Trunk blocks */
.zone.block { fill: rgba(240, 123, 34, 0.16); stroke: var(--pumpkin); stroke-width: 7; stroke-dasharray: 20 10; }
.badge circle { fill: var(--navy); stroke: var(--pumpkin); stroke-width: 6; }
.badge text { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 44px; fill: #fff; text-anchor: middle; dominant-baseline: central; }
.zone.sponsor { fill: rgba(142, 68, 214, 0.38); stroke: #C58CFF; }
.block-list { list-style: none; display: grid; gap: 0.45rem; margin-top: 0.7rem; }
.bl-item {
  width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: 0.6rem; align-items: center;
  background: #fff; border: 2px solid #eadfbf; border-radius: 12px; padding: 0.45rem 0.6rem; text-align: left; min-height: 48px; color: #0D0D10;
}
.bl-item .num { width: 36px; height: 36px; border-radius: 50%; background: var(--pumpkin); display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-weight: 700; }
.bl-item .bl-name { font-weight: 800; }
.bl-item .bl-go { font-weight: 800; color: var(--lynq-blue); font-size: 0.9rem; }
.bl-item.is-mine { border-color: var(--lime); }
.sponsor-card { margin-top: 0.8rem; background: #fff; border-radius: 14px; padding: 0.8rem; text-align: center; }
.sp-logo { max-width: 220px; width: 70%; margin: 0 auto 0.4rem; }
.mini { max-height: calc(100% - 24px); overflow: auto; }
.row-split { stroke: #fff; stroke-width: 6; stroke-dasharray: 14 10; opacity: 0.9; pointer-events: none; }
.zone.lynq { fill: rgba(28, 111, 201, 0.85); stroke: #fff; stroke-width: 6; }

/* Food trucks and vendor row */
.zone.food { fill: rgba(166, 226, 46, 0.32); stroke: var(--lime); }
.zone.shop { fill: rgba(255, 196, 0, 0.32); stroke: #FFC400; }
.dot.d-shop { background: #FFC400; }
.v-list { list-style: none; display: grid; gap: 0.45rem; margin-top: 0.7rem; }
.v-item { display: grid; grid-template-columns: 48px 1fr; gap: 0.7rem; align-items: center; background: #fff; border: 2px solid #eadfbf; border-radius: 12px; padding: 0.45rem 0.6rem; }
.v-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.v-ini { width: 48px; height: 48px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.3rem; }
.v-item strong { display: block; }
.v-item span { font-size: 0.9rem; color: #333; }
.v-empty { margin-top: 0.6rem; font-weight: 700; }
.v-item .v-ini { color: #fff; font-size: 1.3rem; }

/* Sneak peek (preview mode) */
.claim, .soon { background: linear-gradient(135deg, #1b2f57, #0F1D38); border: 2px solid var(--pumpkin); border-radius: 16px; padding: 1rem; margin: 0.9rem 0 0.4rem; }
.claim-eyebrow { color: var(--pumpkin); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; }
.claim-head { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 1.35rem; line-height: 1.2; margin: 0.2rem 0 0.35rem; color: #fff; }
.claim-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.1rem; border-radius: 12px; background: var(--pumpkin); color: #0D0D10; font-family: "Fredoka", sans-serif; font-weight: 700; text-decoration: none; flex: 1 1 auto; }
.cta.alt { background: transparent; color: var(--cream); border: 2px solid var(--cream); }
.cta.block { display: flex; width: 100%; margin-top: 0.8rem; }
.claim-contact { font-size: 0.85rem; margin-top: 0.7rem; opacity: 0.9; }
.claim-contact a { color: var(--pumpkin); font-weight: 800; }
.toast { visibility: hidden; }
.toast.show { visibility: visible; }
