/* ------------------------------------------------------------------
   Design tokens lifted from the Shopify theme (Horizon, "ticket theme")
   config/settings_data.json  ->  color_schemes + type settings
------------------------------------------------------------------- */
:root {
  /* scheme-1 (page) */
  --background: #ffffff;
  --foreground-heading: #000000;
  --foreground: #140a05;
  --primary: #512815;
  --primary-hover: #140a05;
  --border: #f6f1ef;

  --btn-bg: #512815;
  --btn-text: #f6f1ef;
  --btn-bg-hover: #a05513;

  --btn2-text: #140a05;
  --btn2-border: #140a05;

  /* scheme-2 (header / footer) */
  --dark-bg: #121212;
  --dark-fg: #f6f1ef;
  --dark-primary: #e3d5ce;

  /* scheme-4 (sand accent) */
  --sand: #f5cca8;
  --sand-deep: #7a462e;

  --input-border: #512815;
  --input-radius: 8px;
  --btn-radius: 37px;

  --font-body: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Merriweather Sans", var(--font-body);
  --font-poster: "Anton", var(--font-heading);

  --page-width: 1400px;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--foreground-heading);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: pretty;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.page { max-width: var(--page-width); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------------- announcement + header ---------------- */

.announcement {
  background: var(--sand-deep);
  color: #f8f2ec;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--dark-bg);
  color: var(--dark-fg);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.header__group { display: flex; align-items: center; gap: 8px; }
.header__group--end { justify-content: flex-end; }

.iconbtn {
  background: none;
  border: 0;
  color: inherit;
  padding: 8px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  line-height: 0;
  position: relative;
}
.iconbtn:hover { background: rgba(255, 255, 255, 0.1); }
.iconbtn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.4; }

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--sand);
  color: #190c00;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}
.cart-count[hidden] { display: none; }

.wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; opacity: 0.88; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* The hamburger and its panel exist only where .nav is hidden — see the
   max-width: 999px block below, which turns both on. */
.iconbtn--menu { display: none; }
.mobilenav { display: none; }
.mobilenav[hidden] { display: none; }
.mobilenav a {
  display: block;
  padding: 11px 0;
  font-size: 16px;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.mobilenav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------- product layout ---------------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  padding-block: 36px 64px;
  align-items: start;
}

.gallery { display: grid; gap: 0; position: sticky; top: 92px; }

/* concert poster: the artist's name set as many times as it takes to
   fill the sheet, with the one night we sell picked out in orange */
.poster {
  position: relative;
  background: #000;
  line-height: 0;
  overflow: hidden;
}
.poster__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(70% 90% at -10% 35%, rgba(255, 106, 0, 0.4) 0%, transparent 62%),
    radial-gradient(75% 95% at 110% 55%, rgba(122, 70, 46, 0.45) 0%, transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10, 5, 2, 0.84) 0%, rgba(10, 5, 2, 0.3) 34%, rgba(10, 5, 2, 0.5) 66%, rgba(10, 5, 2, 0.92) 100%);
  pointer-events: none;
}
.poster svg { position: relative; z-index: 3; width: 100%; height: auto; display: block; }

.poster__rows text { font-family: var(--font-poster); font-size: 139px; fill: #fff; }
.poster__rows .is-day { fill: #ff6a00; }

.poster__meta text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 1.6px;
  fill: #fff;
}

/* licensed artist photo, dropped in as assets/artist.png */
.poster__artist {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  height: 74%;
  width: auto;
  max-width: 92%;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
}
.poster.has-artist .poster__rows text:nth-child(n + 7) { opacity: 0.28; }

.poster__caption { margin: 12px 0 0; font-size: 13px; color: #6b5a50; }

/* ---------------- details column ---------------- */

.details { display: grid; gap: 28px; }
.details__header { display: grid; gap: 12px; }
.product__title { font-size: clamp(28px, 3.1vw, 40px); }

.price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.price__sub { font-family: var(--font-body); font-size: 15px; color: #6b5a50; font-weight: 400; }
.price__from { font-family: var(--font-body); font-size: 15px; color: #6b5a50; font-weight: 400; }
.price__was { font-family: var(--font-body); font-size: 17px; color: #9a8a81; font-weight: 400; }

.badge-off {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--sand);
  color: #190c00;
  border-radius: 2px;
  padding: 3px 9px;
}

.divider { height: 1px; background: #e9e0db; border: 0; margin: 0; }

/* event card */
.eventcard {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #f7f7f7;
  padding: 20px;
  max-width: 460px;
}
.eventcard__date { text-align: center; flex: 0 0 auto; }
.eventcard__day { font-size: 40px; font-weight: 700; color: #000; line-height: 1; }
.eventcard__month { font-size: 14px; color: #555; }
.eventcard__year { font-size: 16px; font-weight: 700; color: #000; }
.eventcard__kicker { font-size: 12px; text-transform: uppercase; color: #555; letter-spacing: 0.04em; }
.eventcard__artist { margin: 5px 0; font-size: 14px; color: #333; }
.eventcard__venue { font-size: 14px; font-weight: 700; text-transform: uppercase; color: #000; }
.eventcard__addr { font-size: 12px; color: #555; line-height: 1.4; }

/* wallet box */
.ticket-box {
  background: #f4fbf7;
  border: 1.5px solid #34c37a;
  border-radius: 12px;
  padding: 20px 22px 18px;
  max-width: 520px;
}
.wallet-title {
  color: #2fa96b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 13px;
  margin-bottom: 12px;
}
.wallet-text { color: #1f2937; font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.wallet-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.wallet-links img { height: 34px; width: auto; }

/* ticket options with steppers */
.field__label { font-size: 14px; color: #6b5a50; }

.options { display: grid; gap: 2px; }
.options__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.options__limit { font-size: 13px; color: #6b5a50; }

.option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 18px;
  padding: 14px 16px;
  border: 1px solid #e9e0db;
  border-radius: 12px;
  background: #fff;
}
.option + .option { margin-top: 8px; }
.option.is-active { border-color: var(--primary); background: #fdfaf8; }

.option__info { display: grid; gap: 2px; min-width: 0; }
.option__name { font-weight: 600; }
.option__note { font-size: 13px; color: #6b5a50; }

/* the one ticket that is the concert itself */
.option--headline { border-color: var(--primary); border-width: 1.5px; background: #fffaf6; }
.option--headline .option__name { font-family: var(--font-heading); font-size: 17px; }
.option--headline .option__price { font-size: 18px; }

.option__tag {
  justify-self: start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f6f1ef;
  background: var(--primary);
  border-radius: 2px;
  padding: 3px 8px;
  margin-bottom: 4px;
}

.options__group { margin: 22px 0 8px; font-size: 13px; color: #8a776c; }

.option__prices { display: grid; justify-items: end; gap: 1px; }
.option__price { font-family: var(--font-heading); font-size: 16px; white-space: nowrap; }
.option__was { font-size: 13px; color: #9a8a81; white-space: nowrap; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--btn2-border);
  border-radius: var(--btn-radius);
  padding: 2px;
}
.qty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  color: var(--foreground);
}
.qty button:hover { background: #f6f1ef; }
.qty button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty button:disabled:hover { background: none; }
.qty__value { min-width: 30px; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }

.limit-note { margin: 0; font-size: 13px; line-height: 1.45; color: #b4301a; }
.limit-note a { color: inherit; }
.limit-note[hidden] { display: none; }

.buyrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.buyrow__total { display: grid; gap: 1px; margin-right: auto; }
.buyrow__total-label { font-size: 13px; color: #6b5a50; }
.buyrow__total-value { font-family: var(--font-heading); font-size: 20px; }

.button {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--btn-radius);
  padding: 15px 30px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}
.button--primary { background: var(--btn-bg); color: var(--btn-text); flex: 1 1 220px; }
.button--primary:hover { background: var(--btn-bg-hover); }
.button--primary:disabled { background: #d8cec9; color: #6b5a50; cursor: not-allowed; }
.button--secondary { background: transparent; color: var(--btn2-text); border: 1px solid var(--btn2-border); }
.button--secondary:hover { background: #f6f1ef; }
.button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.payment-methods { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.payment-methods img { height: 28px; width: auto; }

.rte { font-size: 16px; }
.rte p { margin: 0 0 12px; }
.rte strong { font-weight: 700; }

/* ---------------- listen ---------------- */

.listen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  padding: 36px;
  margin-bottom: 56px;
  background: #faf6f3;
  border: 1px solid #ece2db;
  border-radius: 8px;
}
.listen h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.listen p { margin: 0; font-weight: 300; color: #6b5a50; max-width: 46ch; }
.listen__player { border: 0; border-radius: 12px; display: block; }

@media (max-width: 860px) {
  .listen { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
}

/* ---------------- map viewer ---------------- */

.mapblock {
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  margin-block: 8px 64px;
}
.mapblock h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 8px; }
.mapblock__desc { color: #666; font-size: 16px; margin: 0 0 16px; }

.maptabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.maptab {
  font: inherit;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #d6cdc8;
  background: #fff;
  cursor: pointer;
}
.maptab[aria-selected="true"] { background: var(--primary); color: #f6f1ef; border-color: var(--primary); }

.mapviewer {
  position: relative;
  height: 600px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.mapviewer.is-panning { cursor: grabbing; }
.mapviewer img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  width: 100%;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}
.mapviewer img[hidden] { display: none; }

.mapcontrols { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; z-index: 2; }
.mapcontrols button {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #000;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.mapcontrols button:hover { background: #f0f0f0; }

.maphint { font-size: 13px; color: #777; margin: 10px 0 0; }

/* ---------------- accordion ---------------- */

.accordion-wrapper { max-width: 820px; margin: 0 auto 64px; }
.accordion-item { margin-bottom: 20px; }
.accordion-title {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  font: inherit;
  width: 100%;
  text-align: left;
  border: 0;
}
.accordion-title:hover { background: #f7fafc; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); }
.accordion-title span { color: #333; font-size: 18px; }
.accordion-icon { color: #718096; transition: transform 0.3s ease; }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }
.accordion-content {
  display: none;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-top: 10px;
  color: #4a5568;
  font-size: 16px;
}
.accordion-item.active .accordion-content { display: block; }
.accordion-content h3 { font-size: 18px; margin: 0 0 8px; }
.accordion-content ul { padding-left: 20px; margin: 0 0 12px; }
.accordion-content > * + h3 { margin-top: 20px; }
.note {
  margin-top: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}

/* ---------------- footer ---------------- */

.footer { background: var(--dark-bg); color: var(--dark-fg); padding-block: 56px 28px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px; }
.footer h3 {
  color: var(--dark-fg);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.footer a { text-decoration: none; opacity: 0.85; }
.footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.signup { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.signup input {
  flex: 1 1 160px;
  font: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: var(--input-radius);
  border: 1px solid rgba(246, 241, 239, 0.4);
  background: #1d1d1d;
  color: var(--dark-fg);
}
.signup button {
  font: inherit;
  padding: 12px 22px;
  border-radius: var(--btn-radius);
  border: 0;
  background: var(--dark-primary);
  color: #140a05;
  font-weight: 600;
  cursor: pointer;
}
.signup button:hover { background: #dcb5a3; }

.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 241, 239, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  opacity: 0.75;
}
.disclaimer { margin: 14px 0 0; font-size: 13px; opacity: 0.7; max-width: 70ch; }

/* ---------------- cart drawer ---------------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: #fff;
  z-index: 51;
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 18px;
  color: var(--foreground);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__title { font-size: 20px; }
/* starting height only — theme.js resizes the frame to fit Stripe's content */
.drawer__checkout iframe { height: 560px; }
.drawer__items { flex: 1; overflow-y: auto; display: grid; gap: 14px; align-content: start; }
.drawer__empty { color: #6b5a50; font-size: 15px; }
.lineitem {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #efe8e4;
  font-size: 15px;
}
.lineitem__name { grid-row: 1; grid-column: 1; font-weight: 600; }
.lineitem__meta { grid-row: 2; grid-column: 1 / -1; color: #6b5a50; font-size: 13px; }
.lineitem__price { grid-row: 1; grid-column: 2; font-weight: 600; }
.lineitem__qty { grid-row: 3; grid-column: 1; justify-self: start; margin-top: 8px; }

/* the ticket-row stepper, sized down for the drawer */
.qty--sm button { width: 28px; height: 28px; font-size: 15px; }
.qty--sm .qty__value { min-width: 26px; font-size: 14px; }

.lineitem__remove {
  grid-row: 3;
  grid-column: 2;
  align-self: center;
  justify-self: end;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13px;
  color: #6b5a50;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.drawer__total { display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; }
.drawer__note { font-size: 12px; color: #6b5a50; margin: 0; }
.drawer__note[hidden] { display: none; }
/* a failed payment has to read as a problem, not as fine print */
.drawer__note--error { color: #b4301a; font-size: 13px; line-height: 1.45; }

/* ---------------- responsive ---------------- */

@media (max-width: 999px) {
  .product { grid-template-columns: 1fr; gap: 32px; padding-block: 24px 48px; }
  .gallery { position: static; }
  .nav { display: none; }
  .iconbtn--menu { display: inline-flex; }
  /* matches .page's inline padding so the links line up with the wordmark */
  .mobilenav { display: block; padding: 0 20px 14px; }
  .mapviewer { height: 320px; }
}

@media (max-width: 560px) {
  :root { --gutter: 14px; }
  .header__inner { gap: 4px; min-height: 60px; }
  .wordmark { font-size: 15px; letter-spacing: 0.12em; }
  .iconbtn { padding: 6px; }
  .announcement { font-size: 11px; }
  .mapblock { padding: 16px; }
  .eventcard { gap: 14px; padding: 16px; }
  .button--primary { flex: 1 1 100%; }
  .payment-methods img { height: 20px; }
}

.drawer__summary { display: grid; gap: 14px; }
.drawer__checkout { min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.drawer__checkout[hidden] { display: none; }
.drawer__checkout iframe { display: block; width: 100%; min-height: 400px; border: 0; background: #fff; }
.drawer__back { align-self: flex-start; border: 0; padding: 4px 0; background: transparent; color: #6b5a50; text-decoration: underline; cursor: pointer; font: inherit; }