/* =========================================================
   Christmas Town Transporter — shared by every venue
   (load after the venue's own stylesheet)
========================================================= */
.transporter-stage { position: relative; }

/* Floating launcher, for venues whose artwork has no transporter
   to draw a hotspot over. Sits in the bottom-left of the picture. */
.transporter-launch {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(20, 36, 32, 0.82);
  color: var(--gold-light);
  border: 1px solid rgba(228, 199, 122, 0.55);
  border-radius: 999px;
  padding: 0.5rem 1.05rem 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 0 0 rgba(228, 199, 122, 0);
  transition: background-color 0.2s ease, box-shadow 0.25s ease;
}
.transporter-launch svg { width: 18px; height: 18px; }
.transporter-launch:hover,
.transporter-launch.is-active {
  background: rgba(20, 36, 32, 0.95);
  box-shadow: 0 0 0 2px rgba(228, 199, 122, 0.45), 0 0 20px 4px rgba(228, 199, 122, 0.3);
}
.transporter-launch:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- The numbered chart ---- */
.transporter-panel {
  position: absolute;
  z-index: 25;
  width: 300px;
  background: var(--spruce);
  color: var(--cream);
  border: 1px solid rgba(228, 199, 122, 0.45);
  border-radius: 16px;
  padding: 1rem 1rem 0.9rem;
  box-shadow: 0 26px 50px -20px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(228, 199, 122, 0.08);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-align: left;
}
.transporter-panel[hidden] { display: none; }
.transporter-panel.is-open { opacity: 1; transform: none; }

.transporter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.transporter-panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--gold-light);
}
.transporter-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(246, 239, 227, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.transporter-close svg { width: 16px; height: 16px; }
.transporter-close:hover { background: rgba(246, 239, 227, 0.1); color: var(--cream); }

.transporter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.transporter-list a,
.transporter-here {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.transporter-list a:hover,
.transporter-list a:focus-visible { background: rgba(228, 199, 122, 0.14); color: var(--cream); }
.transporter-list a:focus-visible { outline: 2px solid var(--gold); outline-offset: 0; }
.transporter-list a.is-chosen { background: rgba(228, 199, 122, 0.22); }

.transporter-here { color: rgba(246, 239, 227, 0.5); cursor: default; }
.transporter-dest small {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--gold-light);
  opacity: 0.8;
}

.transporter-num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-light);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.transporter-here .transporter-num { border-style: dashed; opacity: 0.6; }
.transporter-list a:hover .transporter-num,
.transporter-list a.is-chosen .transporter-num { background: var(--gold-light); color: var(--spruce); }

.transporter-hint {
  margin: 0.7rem 0 0;
  max-width: none;
  font-size: 0.78rem;
  color: rgba(246, 239, 227, 0.6);
  text-align: center;
}

/* ---- Beam-out: a column of warm light rising from the
   Transporter, then the room washes out before the next
   page loads. --beam-x is set by transporter.js. ---- */
.transporter-beam {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 14% 70% at var(--beam-x, 13%) 50%, rgba(255, 249, 232, 0.95) 0%, rgba(228, 199, 122, 0.55) 45%, rgba(228, 199, 122, 0) 100%),
    rgba(246, 239, 227, 0);
}
.transporter-stage.is-transporting .transporter-beam { animation: beam-out 0.75s ease-in forwards; }
.transporter-stage.is-transporting .venue-img { filter: brightness(1.6) saturate(0.5); transition: filter 0.7s ease; }
@keyframes beam-out {
  0%   { opacity: 0; }
  45%  { opacity: 1; background-color: rgba(246, 239, 227, 0); }
  100% { opacity: 1; background-color: rgba(246, 239, 227, 0.96); }
}

/* ---- Phones: the chart becomes a bottom sheet ---- */
@media (max-width: 767.98px) {
  .transporter-launch { left: 0.5rem; bottom: 0.5rem; padding: 0.35rem 0.8rem 0.35rem 0.6rem; font-size: 0.75rem; }
  .transporter-launch svg { width: 15px; height: 15px; }

  .transporter-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    border-radius: 18px 18px 0 0;
    padding: 1.1rem 1.2rem calc(1rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(20px);
  }
  .transporter-list a,
  .transporter-here { padding: 0.65rem 0.6rem; }
}
