/* Shared look for the SHOW demo. Tokens match the marketing site (site/styles.css). */
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --card: #141417;
  --card-2: #1c1c21;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: #2a2a2f;
  --accent: #e0475c;
  --accent-hover: #e85f72;
  --on-accent: #0d0d0f;
  --good: #5dd39e;
  --radius: 24px;
  --radius-sm: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.logo::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.logo small { order: 2; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }

.eyebrow { color: var(--muted); font-size: 0.875rem; }

/* Demo strip */
.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  padding: 7px 16px;
  background: #1a0f12;
  border-bottom: 1px solid #3a1a21;
  color: #f2b8c1;
  font-size: 0.8125rem;
}
.demo-bar a, .demo-bar button {
  border: 0;
  background: none;
  padding: 4px 2px;
  color: var(--text);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:disabled { cursor: default; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--card-2); }
.btn-ghost[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.btn-on { background: var(--good); }
.btn-on:hover { background: #7ee0b3; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-danger { background: transparent; color: #ff8a9a; box-shadow: inset 0 0 0 1px #4a2229; }
.btn-danger:hover { background: #2a1418; }

.card { padding: 20px; border-radius: var(--radius); background: var(--card); }

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--card-2);
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); font-weight: 600; }
.pill {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(224, 71, 92, 0.16);
  color: #ff98a6;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Artwork tiles (no images in the demo, just colour + initials) */
.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}
.tile-sm { width: 44px; height: 44px; border-radius: 12px; font-size: 0.875rem; }
.tile-lg { width: 96px; height: 96px; border-radius: 22px; font-size: 1.75rem; }
.tile-hero { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--radius); font-size: 4rem; letter-spacing: -0.02em; }
.t0 { background: linear-gradient(140deg, #e0475c, #4a1220); }
.t1 { background: linear-gradient(140deg, #6d5dfc, #1c1650); }
.t2 { background: linear-gradient(140deg, #f29f3d, #5a2a0a); }
.t3 { background: linear-gradient(140deg, #2bb3a3, #0b3a36); }
.t4 { background: linear-gradient(140deg, #d65db1, #3e1036); }
.t5 { background: linear-gradient(140deg, #4c8df6, #0f2552); }
.t6 { background: linear-gradient(140deg, #9bc53d, #26360c); }
.t7 { background: linear-gradient(140deg, #8a8a96, #222228); }

/* Gig card */
.gig {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border-radius: 20px;
  background: var(--card);
}
.gig-link { display: flex; flex: 1; gap: 14px; min-width: 0; text-decoration: none; }
.gig-info { min-width: 0; }
.gig-when { color: var(--accent); font-size: 0.8125rem; font-weight: 600; }
.gig-title { margin-top: 1px; font-size: 1.0625rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.gig-sub, .gig-meta { color: var(--muted); font-size: 0.875rem; line-height: 1.35; }
.gig-sub { margin-top: 2px; }
.gig-meta { margin-top: 3px; }
.save {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #4a4a52;
  cursor: pointer;
}
.save:hover { color: var(--muted); }
.save[aria-pressed="true"] { color: var(--accent); }

/* Gig detail */
.detail { display: grid; gap: 0; }
.detail .eyebrow { margin-top: 18px; color: var(--accent); font-weight: 600; }
.detail-title { margin-top: 4px; font-size: 1.875rem; font-weight: 650; line-height: 1.08; letter-spacing: -0.03em; }
.detail-sub { margin-top: 6px; color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 18px; border-radius: 18px; overflow: hidden; background: var(--line); }
.facts div { padding: 12px 14px; background: var(--card); }
.facts dt { color: var(--muted); font-size: 0.75rem; }
.facts dd { font-weight: 600; }
.facts a { text-underline-offset: 3px; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.detail-actions .btn-tickets { grid-column: 1 / -1; }
.detail-actions .btn-ghost:last-child { grid-column: 1 / -1; }
.detail-side { margin-top: 18px; }
.detail-side .facts { margin-top: 0; }
.st-soldout { color: #ff98a6; }
.st-low { color: #f2b35c; }
.st-free { color: var(--good); }
.side-map { margin-top: 14px; display: grid; gap: 8px; }
@media (min-width: 900px) {
  body.desk .detail {
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas: "head side" "body side";
    column-gap: 40px;
    align-items: start;
  }
  body.desk .detail-head { grid-area: head; }
  body.desk .detail-body { grid-area: body; }
  body.desk .detail-side { grid-area: side; position: sticky; top: 96px; margin-top: 0; padding: 18px; border-radius: var(--radius); background: var(--card); }
  body.desk .detail-side .facts div { background: var(--card-2); }
  body.desk .detail-title { font-size: 2.75rem; }
  body.desk .tile-hero { aspect-ratio: 21 / 9; font-size: 5.5rem; }
}
.detail-about { margin-top: 18px; color: var(--muted); }
.detail-h { margin-top: 26px; margin-bottom: 10px; font-size: 1rem; font-weight: 600; }

.rows { display: grid; gap: 8px; }
.rows li, .venue-mini { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: var(--card); }
.row-title { font-weight: 600; }
.row-title a { text-decoration: none; }
.row-title a:hover { text-decoration: underline; }
.row-sub { color: var(--muted); font-size: 0.8125rem; }

/* Forms */
.field { display: grid; gap: 6px; }
.field > span, .field legend { font-size: 0.875rem; font-weight: 600; }
.field small { color: var(--muted); font-size: 0.8125rem; font-weight: 400; }
input[type="text"], input[type="url"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--muted); }
fieldset { margin: 0; padding: 0; border: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--card-2);
  font-size: 0.875rem;
  cursor: pointer;
}
.checks label:has(input:checked) { background: var(--text); color: var(--bg); }
.checks input { accent-color: var(--accent); }
.form-error { padding: 10px 14px; border-radius: 12px; background: #2a1418; color: #ff98a6; font-size: 0.875rem; }

.empty { padding: 32px 20px; border-radius: var(--radius); background: var(--card); text-align: center; color: var(--muted); }
.empty h3 { color: var(--text); font-size: 1.0625rem; }
.empty p { margin-top: 4px; }
.empty .btn { margin-top: 16px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast a { flex: none; font-weight: 700; color: var(--accent); }

/* Pills */
.gig-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.gig-pills .pill { margin-top: 0; }
.pill-soldout { background: rgba(255, 152, 166, 0.12); color: #ff98a6; }
.pill-low { background: rgba(242, 179, 92, 0.14); color: #f2b35c; }

/* Big card (desktop grids) */
.gig-big { flex-direction: column; padding: 0; overflow: hidden; }
.gig-big .gig-link { flex-direction: column; gap: 0; width: 100%; }
.gig-big .tile-card { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; font-size: 2.5rem; }
.gig-big .gig-info { padding: 14px 16px 16px; }
.gig-big .gig-title { font-size: 1.1875rem; }
.gig-big .save { position: absolute; top: 10px; right: 10px; background: rgba(13, 13, 15, 0.55); color: #d4d4d8; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gig-big .save[aria-pressed="true"] { color: var(--accent); }
.gig-big:hover { background: var(--card-2); }

/* Town map */
.town { display: block; width: 100%; height: auto; border-radius: 20px; background: #121216; }
.t-land { fill: #141419; }
.t-park { fill: #16241b; }
.t-river { fill: none; stroke: #1b2c44; stroke-width: 34; stroke-linecap: round; }
.t-ring { fill: none; stroke: #24242b; stroke-width: 10; }
.t-road { fill: none; stroke: #25252c; stroke-width: 9; }
.t-minor { fill: none; stroke: #1d1d23; stroke-width: 5; }
.t-rail { fill: none; stroke: #2e2e36; stroke-width: 4; stroke-dasharray: 14 10; }
.t-area { fill: #55555f; font-size: 20px; font-weight: 700; letter-spacing: 0.14em; }
.you-ring { fill: rgba(93, 211, 158, 0.16); }
.you-dot { fill: var(--good); stroke: #0d0d0f; stroke-width: 3; }
.pin { cursor: pointer; }
.pin-dot { fill: var(--accent); stroke: #0d0d0f; stroke-width: 4; transition: r 0.15s ease; }
.pin-num { fill: var(--on-accent); font-size: 15px; font-weight: 800; pointer-events: none; }
.pin-label { fill: var(--text); font-size: 19px; font-weight: 600; paint-order: stroke; stroke: #0d0d0f; stroke-width: 6px; opacity: 0; transition: opacity 0.15s ease; pointer-events: none; }
.pin:hover .pin-label, .pin:focus .pin-label, .pin.is-sel .pin-label { opacity: 1; }
.pin.is-sel .pin-dot { fill: var(--text); }
.pin:focus { outline: none; }
.pin:focus-visible .pin-dot { stroke: var(--text); }
.town-sm .pin-label { opacity: 1; font-size: 30px; stroke-width: 8px; }
.town-sm .pin-dot { fill: var(--accent); }

/* Guided tour */
.tour-card {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: min(380px, calc(100vw - 32px));
  padding: 18px 18px 14px;
  border-radius: 20px;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
@media (max-width: 699px) { .tour-card { right: 16px; bottom: 16px; } }
.tour-step { color: #6b6b74; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.tour-card h2 { margin-top: 4px; font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
.tour-card p.tour-text { margin-top: 6px; color: #3f3f46; font-size: 0.9375rem; }
.tour-nav { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.tour-nav .btn { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
.tour-nav .tour-end { margin-right: auto; padding: 6px 0; border: 0; background: none; color: #6b6b74; font-size: 0.875rem; text-decoration: underline; cursor: pointer; }
.tour-nav .btn-ghost { color: var(--bg); box-shadow: inset 0 0 0 1px #d4d4d8; }
.tour-nav .btn-ghost:hover { background: #e4e4e7; }
.tour-progress { height: 3px; margin-top: 12px; border-radius: 3px; background: #e4e4e7; overflow: hidden; }
.tour-progress i { display: block; height: 100%; background: var(--accent); }
.tour-target { outline: 3px solid var(--accent) !important; outline-offset: 6px; border-radius: 16px; animation: tour-pulse 1.6s ease-in-out infinite; }
@keyframes tour-pulse { 50% { outline-color: rgba(224, 71, 92, 0.35); } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
