/* OLT Take Your Seat — v1.0.0 */
.tys,
.tys-panel {
  --tys-navy: #2c3340;
  --tys-navy-2: #3a4252;
  --tys-gold: #c8962e;
  --tys-gold-soft: #e6c46f;
  --tys-gold-ink: #8a6417;
  --tys-cream: #f7f3e3;
  --tys-paper: #fffdf6;
  --tys-red: #9e1f25;
  --tys-ink: #262b36;
  --tys-muted: #5d6472;
  --tys-line: #3b414e;
  --tys-radius: 14px;
  font-family: inherit;
  color: var(--tys-ink);
  box-sizing: border-box;
}
.tys *, .tys *::before, .tys *::after,
.tys-panel *, .tys-panel *::before, .tys-panel *::after { box-sizing: border-box; }

.tys { display: block; width: 100%; max-width: 1100px; margin: 0 auto; }
.tys-sr, .tys-skip:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.tys-skip:focus { position: absolute; z-index: 5; top: 8px; left: 8px; background: var(--tys-navy); color: #fff; padding: 8px 12px; border-radius: 8px; }

.tys-banner {
  background: #fff4d6; border: 1px dashed var(--tys-gold); color: var(--tys-gold-ink);
  border-radius: 10px; padding: 8px 14px; margin-bottom: 14px; font-size: 14px; text-align: center;
}

/* ---------- Progress thermometer ---------- */
.tys-progress {
  background: var(--tys-navy); color: #fff; border-radius: var(--tys-radius);
  padding: 20px 24px 30px; margin-bottom: 14px;
  display: grid; grid-template-columns: minmax(180px, auto) 1fr; gap: 10px 28px; align-items: center;
}
.tys-stat-main { line-height: 1.1; }
.tys-count { font-size: 44px; font-weight: 700; color: var(--tys-gold-soft); margin-right: 6px; font-variant-numeric: tabular-nums; }
.tys-statline { font-size: 17px; }
.tys-goalline { display: block; font-size: 14px; opacity: .85; margin-top: 4px; }
.tys-thermo { display: flex; align-items: center; position: relative; }
.tys-thermo-bulb {
  width: 38px; height: 38px; border-radius: 50%; background: var(--tys-red);
  border: 3px solid var(--tys-gold); flex: none; position: relative; z-index: 1;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18);
}
.tys-thermo-tube {
  position: relative; flex: 1; height: 20px; margin-left: -6px;
  background: rgba(255,255,255,.12); border: 3px solid var(--tys-gold); border-left: 0;
  border-radius: 0 12px 12px 0;
}
.tys-thermo-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, #b8262d, #d33a3f);
  border-radius: 0 10px 10px 0; transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
.tys-goal-met .tys-thermo-fill { background: linear-gradient(90deg, var(--tys-gold), var(--tys-gold-soft)); }
.tys-thermo-ticks { position: absolute; inset: 0; pointer-events: none; }
.tys-tick {
  position: absolute; top: 100%; transform: translateX(-50%); margin-top: 6px;
  font-size: 12px; opacity: .75; font-variant-numeric: tabular-nums;
}
.tys-tick::before {
  content: ""; position: absolute; left: 50%; top: -12px; height: 8px; width: 1px; background: rgba(255,255,255,.55);
}
.tys-tick:last-child { transform: translateX(-80%); }

/* ---------- Legend ---------- */
.tys-legend {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; font-size: 14px;
}
.tys-legend li { display: flex; align-items: center; gap: 8px; margin: 0; }
.tys-swatch { width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid var(--tys-line); display: inline-block; }
.tys-swatch-sponsored { background: var(--tys-gold); }
.tys-swatch-available { background: var(--tys-paper); }
.tys-swatch-pending { background: repeating-linear-gradient(45deg, #f3e2b4 0 4px, var(--tys-paper) 4px 8px); border-color: var(--tys-gold-ink); }
.tys-swatch-accessible { background: transparent; border-style: dashed; }

/* ---------- Map ---------- */
.tys-mapwrap {
  position: relative; background: var(--tys-cream); border-radius: var(--tys-radius);
  border: 1px solid #e5dcc0; overflow: hidden;
}
.tys-svg {
  display: block; width: 100%; height: auto; aspect-ratio: 1730 / 1515;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  cursor: default;
}
.tys-mapwrap.is-zoomed .tys-svg { touch-action: none; cursor: grab; }
.tys-mapwrap.is-zoomed .tys-svg:active { cursor: grabbing; }

.tys-wall { fill: none; stroke: var(--tys-line); stroke-width: 2.5; stroke-linejoin: round; }
.tys-stage rect { fill: var(--tys-navy); stroke: var(--tys-gold); stroke-width: 4; }
.tys-stage text { fill: var(--tys-gold-soft); font-size: 38px; font-weight: 700; letter-spacing: 1px; }
.tys-section-label { fill: var(--tys-ink); font-size: 27px; letter-spacing: .5px; }
.tys-row-label { fill: var(--tys-ink); font-size: 32px; }

.tys-seat { cursor: pointer; outline: none; }
.tys-seat rect { fill: var(--tys-paper); stroke: var(--tys-line); stroke-width: 1.6; transition: fill .2s; }
.tys-seat text { fill: var(--tys-ink); font-size: 22px; pointer-events: none; font-variant-numeric: tabular-nums; }
.tys-seat.is-loading rect, .tys-seat.is-unknown rect { fill: #efe9d4; }
.tys-seat.is-loading text, .tys-seat.is-unknown text { fill: #9a9585; }
.tys-seat.is-sponsored rect { fill: var(--tys-gold); stroke: var(--tys-gold-ink); }
.tys-seat.is-sponsored text { fill: #1f2430; font-weight: 700; }
.tys-seat.is-pending rect { fill: var(--tys-hatch, #f3e2b4); stroke: var(--tys-gold-ink); }
.tys-hatch-bg { fill: var(--tys-paper); }
.tys-hatch-line { stroke: #e2c06a; stroke-width: 5; }
.tys-seat.is-accessible rect { fill: transparent; stroke-dasharray: 5 4; }
.tys-seat.is-unavailable rect { fill: #ddd8c8; }
.tys-seat.is-unavailable text { fill: #8b877a; }
@media (hover: hover) {
  .tys-seat:hover rect { stroke: var(--tys-red); stroke-width: 3.5; }
  .tys-seat.is-available:hover rect { fill: #fbecc2; }
}
.tys-seat:focus-visible rect, .tys-seat.is-selected rect { stroke: var(--tys-red); stroke-width: 5; }

.tys-controls { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.tys-ctl {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid #d8cda9;
  background: #fff; color: var(--tys-navy); font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.tys-ctl-reset { font-size: 14px; font-weight: 600; }
.tys-ctl:disabled { opacity: .4; cursor: default; }
.tys-ctl:focus-visible { outline: 3px solid var(--tys-gold); outline-offset: 2px; }
.tys-ctl[hidden] { display: none; }

.tys-hint {
  display: none; position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  background: rgba(44,51,64,.88); color: #fff; font-size: 13px; padding: 6px 12px; border-radius: 16px;
  pointer-events: none; white-space: nowrap;
}
.tys-notice {
  position: absolute; left: 12px; right: 12px; bottom: 12px; background: #fff; border-left: 4px solid var(--tys-red);
  padding: 10px 12px; border-radius: 8px; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.tys-notice[hidden] { display: none; }

/* ---------- Sponsor list ---------- */
.tys-list { margin-top: 28px; }
.tys-list-title { margin: 0 0 12px; font-size: 26px; color: var(--tys-navy); }
.tys-search input {
  width: 100%; max-width: 420px; font: inherit; font-size: 16px; padding: 10px 14px;
  border: 1px solid #cfc6a8; border-radius: 10px; background: #fff; color: var(--tys-ink);
}
.tys-search input:focus { outline: 3px solid var(--tys-gold-soft); border-color: var(--tys-gold); }
.tys-list-items {
  list-style: none; padding: 0; margin: 14px 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px;
}
.tys-list-items li { margin: 0; }
.tys-list-item {
  width: 100%; display: flex; gap: 12px; align-items: center; text-align: left;
  background: var(--tys-paper); border: 1px solid #e5dcc0; border-radius: 10px; padding: 10px 12px;
  font: inherit; color: inherit; cursor: pointer;
}
.tys-list-item:hover { border-color: var(--tys-gold); }
.tys-list-item:focus-visible { outline: 3px solid var(--tys-gold); }
.tys-list-seat {
  flex: none; min-width: 46px; text-align: center; font-weight: 700; font-size: 14px;
  background: var(--tys-gold); color: #1f2430; border-radius: 6px; padding: 6px 4px;
}
.tys-list-body { display: flex; flex-direction: column; min-width: 0; }
.tys-list-name { font-weight: 600; overflow-wrap: anywhere; }
.tys-list-sec { font-size: 13px; color: var(--tys-muted); }
.tys-list-empty { color: var(--tys-muted); margin-top: 12px; }

/* ---------- Panel (modal on desktop, bottom sheet on phones) ---------- */
.tys-backdrop {
  position: fixed; inset: 0; background: rgba(20,24,32,.45); z-index: 99998;
  opacity: 0; transition: opacity .18s;
}
.tys-backdrop.is-open { opacity: 1; }
.tys-backdrop[hidden], .tys-panel[hidden] { display: none; }
.tys-panel {
  position: fixed; z-index: 99999; left: 50%; top: 50%;
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto;
  transform: translate(-50%, -46%); opacity: 0; transition: transform .18s, opacity .18s;
  background: #fff; border-radius: 16px; padding: 26px 26px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28); border-top: 6px solid var(--tys-gold);
  font-size: 16px; line-height: 1.5;
}
.tys-panel.is-open { transform: translate(-50%, -50%); opacity: 1; }
.tys-panel[data-status="available"] { border-top-color: var(--tys-navy); }
.tys-close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: #f3efe2; color: var(--tys-navy); font-size: 26px; line-height: 1; cursor: pointer;
}
.tys-close:focus-visible { outline: 3px solid var(--tys-gold); }
.tys-eyebrow { text-transform: uppercase; letter-spacing: 1.2px; font-size: 12px; font-weight: 700; color: var(--tys-gold-ink); }
.tys-panel-title { margin: 2px 0 14px; font-size: 28px; color: var(--tys-navy); line-height: 1.15; }
.tys-panel p { margin: 0 0 10px; }
.tys-logo { display: block; max-width: 200px; max-height: 90px; object-fit: contain; margin: 0 0 14px; }
.tys-label { font-size: 13px; color: var(--tys-muted); margin-bottom: 0 !important; }
.tys-name { font-size: 22px; font-weight: 700; color: var(--tys-ink); line-height: 1.25; }
.tys-name a { color: inherit; text-decoration-color: var(--tys-gold); text-underline-offset: 3px; }
.tys-message {
  margin: 12px 0 16px; padding: 12px 16px; background: var(--tys-cream); border-left: 4px solid var(--tys-gold);
  border-radius: 0 8px 8px 0; font-style: italic; white-space: pre-line;
}
.tys-lead { font-weight: 600; font-size: 18px; }
.tys-price { font-size: 18px; color: var(--tys-navy); }
.tys-perks { margin: 4px 0 14px; padding-left: 20px; }
.tys-note { font-size: 15px; background: var(--tys-cream); border-radius: 8px; padding: 10px 12px; margin: 0 0 16px !important; }
.tys-perks li { margin: 2px 0; }
.tys-btn {
  display: inline-block; background: var(--tys-gold); color: #1f2430 !important; text-decoration: none !important;
  font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 30px; border: 0; cursor: pointer;
}
.tys-btn:hover { background: var(--tys-gold-soft); }
.tys-btn:focus-visible { outline: 3px solid var(--tys-navy); outline-offset: 2px; }
.tys-btn-ghost { background: transparent; border: 1.5px solid #d8cda9; font-weight: 600; font-size: 14px; padding: 8px 16px; }
.tys-btn-ghost:hover { background: var(--tys-cream); }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .tys-progress { grid-template-columns: 1fr; padding: 16px 16px 28px; }
  .tys-count { font-size: 36px; }
  .tys-legend { font-size: 13px; gap: 6px 14px; }
  .tys-hint { display: block; }
  .tys-controls { top: auto; bottom: 46px; right: 8px; flex-direction: column-reverse; align-items: flex-end; }
  .tys-ctl { min-width: 38px; height: 38px; font-size: 20px; }
  .tys-ctl-reset { font-size: 12px; padding: 0 10px; }
  .tys-list-title { font-size: 22px; }
  .tys-panel {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 80vh;
    border-radius: 18px 18px 0 0; transform: translateY(100%); padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
  }
  .tys-panel.is-open { transform: translateY(0); }
  .tys-panel .tys-btn:not(.tys-btn-ghost) { display: block; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tys-thermo-fill, .tys-panel, .tys-backdrop, .tys-seat rect { transition: none; }
}

/* ---------- Theme-proofing ----------
 * Elementor/theme global button styles (blue fill, square corners) were
 * overriding the map's buttons. These rules pin every button the map uses.
 * Change --tys-button to restyle the action buttons.
 */
.tys, .tys-panel { --tys-button: #0681c5; --tys-button-hover: #05699f; --tys-button-text: #ffffff; }

.tys button, .tys-panel button, .tys-panel a.tys-btn {
  text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important;
  font-family: inherit !important; text-decoration: none !important; min-height: 0;
}

/* Action buttons: Sponsor this seat, Copy link */
.tys-panel .tys-btn, .tys-panel .tys-btn:hover, .tys-panel .tys-btn:focus, .tys-panel .tys-btn:active, .tys-panel .tys-btn:visited {
  background: var(--tys-button) !important; color: var(--tys-button-text) !important;
  border: 0 !important; border-radius: 30px !important; font-weight: 700 !important;
  font-size: 16px !important; line-height: 1.2 !important; padding: 12px 24px !important;
}
.tys-panel .tys-btn:hover { background: var(--tys-button-hover) !important; }
.tys-panel .tys-btn-ghost, .tys-panel .tys-btn-ghost:hover, .tys-panel .tys-btn-ghost:focus, .tys-panel .tys-btn-ghost:active {
  font-size: 14px !important; padding: 9px 18px !important; font-weight: 600 !important;
}

/* Sponsor list cards stay light, with readable text */
.tys .tys-list-item, .tys .tys-list-item:hover, .tys .tys-list-item:focus, .tys .tys-list-item:active {
  background: var(--tys-paper) !important; color: var(--tys-ink) !important;
  border: 1px solid #e5dcc0 !important; border-radius: 10px !important;
  padding: 10px 12px !important; font-size: 16px !important; line-height: 1.35 !important;
  white-space: normal !important; height: auto !important; text-align: left !important;
}
.tys .tys-list-item:hover { border-color: var(--tys-gold) !important; background: #fffaf0 !important; }
.tys .tys-list-name { color: var(--tys-ink) !important; }
.tys .tys-list-sec { color: var(--tys-muted) !important; }
.tys .tys-list-seat { background: var(--tys-gold) !important; color: #1f2430 !important; }

/* Close (×) button */
.tys-panel .tys-close, .tys-panel .tys-close:hover, .tys-panel .tys-close:focus, .tys-panel .tys-close:active {
  background: #f3efe2 !important; color: var(--tys-navy) !important; border: 0 !important;
  border-radius: 50% !important; padding: 0 !important; width: 40px !important; height: 40px !important;
  font-size: 26px !important; line-height: 40px !important; text-align: center !important;
}
.tys-panel .tys-close:hover { background: #e9e2cc !important; }

/* Zoom buttons */
.tys .tys-ctl, .tys .tys-ctl:hover, .tys .tys-ctl:focus, .tys .tys-ctl:active {
  background: #ffffff !important; color: var(--tys-navy) !important; border: 1px solid #d8cda9 !important;
  border-radius: 20px !important; padding: 0 12px !important; height: 40px !important;
  font-size: 22px !important; line-height: 1 !important; box-shadow: 0 1px 3px rgba(0,0,0,.12) !important;
}
.tys .tys-ctl-reset, .tys .tys-ctl-reset:hover, .tys .tys-ctl-reset:focus { font-size: 14px !important; font-weight: 600 !important; }
@media (max-width: 640px) {
  .tys .tys-ctl, .tys .tys-ctl:hover, .tys .tys-ctl:focus { height: 38px !important; font-size: 20px !important; }
  .tys .tys-ctl-reset, .tys .tys-ctl-reset:hover, .tys .tys-ctl-reset:focus { font-size: 12px !important; padding: 0 10px !important; }
  .tys-panel .tys-btn:not(.tys-btn-ghost) { display: block !important; text-align: center !important; }
}

/* ---------- Sponsor list accordion ---------- */
.tys .tys-list-title { margin: 0 !important; font-size: inherit !important; }
.tys button.tys-acc, .tys button.tys-acc:hover, .tys button.tys-acc:focus, .tys button.tys-acc:active {
  width: 100% !important; display: flex !important; align-items: center !important; gap: 10px !important;
  background: var(--tys-navy) !important; color: #ffffff !important; border: 0 !important;
  border-radius: var(--tys-radius) !important; padding: 18px 22px !important; margin: 0 !important;
  font-size: 22px !important; font-weight: 700 !important; line-height: 1.2 !important; text-align: left !important;
  cursor: pointer; white-space: normal !important; height: auto !important;
}
.tys button.tys-acc:hover { background: var(--tys-navy-2) !important; }
.tys button.tys-acc:focus-visible { outline: 3px solid var(--tys-gold) !important; outline-offset: 3px; }
.tys-list-open button.tys-acc { border-radius: var(--tys-radius) var(--tys-radius) 0 0 !important; }
.tys .tys-acc-count { color: var(--tys-gold-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.tys .tys-acc-icon { margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--tys-gold); position: relative; }
.tys .tys-acc-icon::before, .tys .tys-acc-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--tys-gold-soft);
  transform: translate(-50%, -50%); transition: transform .2s;
}
.tys .tys-acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.tys-list-open .tys-acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.tys .tys-acc-panel { border: 1px solid #e5dcc0; border-top: 0; border-radius: 0 0 var(--tys-radius) var(--tys-radius); padding: 18px; background: #fff; }
.tys .tys-acc-panel .tys-list-items { margin-top: 14px; }
@media (max-width: 640px) {
  .tys button.tys-acc, .tys button.tys-acc:hover, .tys button.tys-acc:focus { font-size: 18px !important; padding: 15px 16px !important; }
  .tys .tys-acc-panel { padding: 14px 12px; }
}
@media (prefers-reduced-motion: reduce) { .tys .tys-acc-icon::before, .tys .tys-acc-icon::after { transition: none; } }
