/* Event guide styles. Mobile first; no build step. */

:root {
  --accent: #fd5a24;
  --accent-hover: #e44a17;
  --accent-text: #b83a0d;   /* darker orange for small text: passes contrast on white */
  --accent-tint: #ffeedb;
  --ink: #001519;
  --ink-700: #153039;
  --grey-50: #f6f8f9;
  --grey-100: #eceff1;
  --grey-200: #dde3e6;
  --grey-300: #c4ced2;
  --grey-400: #94a3aa;
  --grey-600: #4c5d64;
  --grey-700: #33434a;
  --grey-800: #1e2c31;
  --danger: #a52f2f;
  --danger-tint: #f8dede;
  --danger-line: #efb9b9;
  --booth: #c8202a;          /* matches the booth numbers on the printed map */
  --border: var(--grey-200);
  --shadow-xs: 0 1px 2px rgba(0, 21, 25, .06);
  --shadow-sm: 0 1px 3px rgba(0, 21, 25, .08), 0 1px 2px rgba(0, 21, 25, .04);
  --shadow-md: 0 4px 12px rgba(0, 21, 25, .08), 0 2px 4px rgba(0, 21, 25, .04);
  --focus: 0 0 0 3px rgba(253, 90, 36, .55);
  --font: "Gotham", "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;
  --nav-h: 66px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--grey-800);
  background: var(--grey-50);
  -webkit-tap-highlight-color: transparent;
}

a { color: var(--accent-text); }
button, input { font: inherit; }
button { color: inherit; }
:focus { outline: none; }
:focus-visible { box-shadow: var(--focus); border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--grey-50);
}

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(14px + env(safe-area-inset-top)) 20px 12px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.topbar h1 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

main { padding: 12px 16px calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); }

.stack { display: flex; flex-direction: column; gap: 12px; }
.lead { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--grey-700); }
.section-title {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.notice { padding: 16px; border-radius: 12px; background: var(--accent-tint); }

/* ---------- Bottom tab bar ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--ink);
  border-top: 1px solid var(--ink-700);
  padding: 4px 4px calc(8px + env(safe-area-inset-bottom));
}
.tabbar-inner {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tab {
  position: relative;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-400);
  text-decoration: none;
  text-align: center;
  line-height: 1.1;
}
.tab[aria-current="page"] { color: var(--accent); }
.tab[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 32px;
  height: 3px;
  margin-left: -16px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
}

/* ---------- Chips ---------- */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 2px 16px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  background: #fff;
  color: var(--grey-800);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Cards and rows ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px 10px 16px;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.row:first-child { border-top: 0; }
.row:active { background: var(--grey-50); }
@media (hover: hover) { .row:hover { background: var(--grey-50); } }
.row-top { align-items: flex-start; min-height: 72px; padding-top: 14px; padding-bottom: 14px; }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-title { font-size: 16px; line-height: 1.3; font-weight: 500; color: var(--ink); }
.row-sub { font-size: 14px; line-height: 1.4; color: var(--grey-600); }
.row-desc { font-size: 14px; line-height: 1.4; color: var(--grey-700); }
.row .chev { color: var(--grey-400); }

.tile {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--accent-text);
}

.booth-num {
  flex: none;
  width: 36px;
  height: 36px;
  border: 2px solid var(--booth);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--booth);
  font-size: 14px;
  font-weight: 700;
}
.booth-num.lg { width: 40px; height: 40px; font-size: 16px; }

.where {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-text);
}


.btn {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.btn:active { background: var(--grey-100); }

/* ---------- Map ---------- */
.map-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.map-vp {
  aspect-ratio: 1888 / 2463;
  max-height: 70vh;
  max-height: 70dvh;
  width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}
.map-canvas { position: relative; width: 100%; }
.map-canvas img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.hot {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.hot.pt { aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.mark { position: absolute; pointer-events: none; }
.mark.box {
  border: 3px solid var(--accent);
  border-radius: 6px;
  background: rgba(253, 90, 36, .18);
  box-shadow: 0 0 0 2px #fff;
}
.mark.pt {
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 3px solid var(--accent);
  border-radius: 50%;
  animation: pinpulse 1.6s ease-out infinite;
}
@keyframes pinpulse {
  0% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgba(253, 90, 36, .7); }
  100% { box-shadow: 0 0 0 2px #fff, 0 0 0 16px rgba(253, 90, 36, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mark.pt { animation: none; box-shadow: 0 0 0 2px #fff; }
}

.zoom-ctl {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.zoom-ctl button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.zoom-ctl button + button { border-top: 1px solid var(--border); }
.zoom-ctl button:disabled { opacity: .4; cursor: default; }

.hint { margin: 0; padding: 0 4px; font-size: 14px; line-height: 1.45; color: var(--grey-600); }
.info-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 4px 14px 16px; }
.info-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.info-sub { margin: 0; font-size: 13px; font-weight: 500; color: var(--grey-600); }
.info-title { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.info-desc { margin: 2px 0 0; font-size: 14px; line-height: 1.45; color: var(--grey-700); }
.icon-btn {
  flex: none;
  width: 44px;
  height: 44px;
  margin-top: -8px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--grey-600);
  cursor: pointer;
}

/* ---------- Partners ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 16px; /* 16px stops iOS from zooming in on focus */
}
.field input:focus-visible { border-color: var(--accent); }
.count { margin: 0; font-size: 13px; font-weight: 500; color: var(--grey-600); }
.empty { margin: 0; padding: 16px; border-radius: 12px; background: var(--grey-100); font-size: 15px; color: var(--grey-700); }
