/* DJC TheaterMap -- base styles
 *
 * Find-a-showing map: search panel + venue list beside a dot-map with type-coloured
 * pins, a detail card (bottom sheet on phones), and in the finder view kind filters,
 * zoom, groups and region jumps.
 *
 * Every rule is scoped `.djc-theatermap .theatermap__*` (two classes) and every size is
 * in px. Host pages set things like `* { font-size: 16px }` and element-level font
 * families; two-class rules and px sizes keep those from reaching inside.
 *
 * Tokens live on the root. Re-theme by redeclaring them (see skins/: theatermap.djc.css for
 * the DJM navy/gold, theatermap.rtwd.css for Reach the World Day), never by overriding the
 * structure.
 *
 * Views: .theatermap--finder (default) and .theatermap--classic.
 * States: .is-loading / .is-error on the root, .is-open on the detail, .is-selected on
 * a card and a pin, .is-dragging on the map.
 */

/* ---------- TOKENS ---------- */
.djc-theatermap {
  /* a colour or a gradient: it is only ever the band's background */
  --tmw-bkg: #016e54;
  --tmw-ink: #ffffff;
  --tmw-ink-soft: rgba(255, 255, 255, 0.82);
  /* links, distances and the selected ring */
  --tmw-cta: #fde5b3;
  --tmw-cta-ink: #013f33;
  /* the action buttons: Search and Get free tickets. The edge keeps a light button visible on
     a light surface (the detail card) */
  --tmw-btn: #fde5b3;
  --tmw-btn-hover: #fff0d1;
  --tmw-btn-ink: #013f33;
  --tmw-btn-edge: #016e54;
  --tmw-focus-glow: rgba(253, 229, 179, 0.45);
  --tmw-panel: rgba(0, 0, 0, 0.16);
  --tmw-panel-hover: rgba(0, 0, 0, 0.26);
  --tmw-line: rgba(255, 255, 255, 0.22);
  --tmw-field: #ffffff;
  --tmw-field-ink: #13231e;
  --tmw-field-soft: #4a5a55;
  --tmw-map-bg: #0b5c47;
  --tmw-dot: #d1d1d1;
  --tmw-dots-opacity: 0.55;
  --tmw-card-bg: #ffffff;
  --tmw-card-ink: #13231e;
  --tmw-card-soft: #4a5a55;
  --tmw-card-accent: #016e54;
  --tmw-origin: #2f80ed;
  --tmw-loader: #fde5b3;

  /* one colour + glyph per kind of showing; the glyph carries the meaning too */
  --tmw-cat-tickets: #fde5b3;
  --tmw-cat-tickets-ink: #013f33;
  --tmw-cat-church: #f4a259;
  --tmw-cat-church-ink: #3b1d00;
  --tmw-cat-home: #7fd1e8;
  --tmw-cat-home-ink: #00323d;
  --tmw-cat-intl: #c3b1ff;
  --tmw-cat-intl-ink: #24124d;
  --tmw-cat-other: #e6e6e6;
  --tmw-cat-other-ink: #222222;
  /* the white ring round the round and dot pins */
  --tmw-pin-ring: #ffffff;

  --tmw-font-1: 'Open Sans', Arial, sans-serif;
  --tmw-font-header: 'Jost', 'Open Sans', Arial, sans-serif;
  --tmw-radius: 12px;
  --tmw-map-height: 640px;
  --tmw-map-height-phone: 380px;
}

/* ---------- ROOT + RESETS ---------- */
.djc-theatermap.theatermap-mount {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 64px 40px 72px;
  box-sizing: border-box;
  background: var(--tmw-bkg);
  color: var(--tmw-ink);
  font-family: var(--tmw-font-1);
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
  text-align: start;
}

.djc-theatermap *,
.djc-theatermap *::before,
.djc-theatermap *::after {
  box-sizing: border-box;
}

.djc-theatermap button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.djc-theatermap a {
  color: inherit;
  font: inherit;
}

.djc-theatermap .theatermap__icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.djc-theatermap .theatermap__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.djc-theatermap button:focus-visible,
.djc-theatermap a:focus-visible {
  outline: 3px solid var(--tmw-cta);
  outline-offset: 2px;
}

/* toggled parts use the hidden attribute -- their own display rules must not win */
.djc-theatermap [hidden] {
  display: none !important;
}

/* the band runs full-bleed; the content keeps a readable width */
.djc-theatermap .theatermap__head,
.djc-theatermap .theatermap__loader,
.djc-theatermap .theatermap__error,
.djc-theatermap .theatermap__body {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- HEADING ---------- */
.djc-theatermap .theatermap__head {
  margin-bottom: 26px;
}

.djc-theatermap .theatermap__title {
  margin: 0 0 8px;
  font-family: var(--tmw-font-header);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: normal;
  text-transform: none;
  color: var(--tmw-ink);
}

.djc-theatermap .theatermap__subtitle {
  margin: 0;
  font-family: var(--tmw-font-header);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--tmw-ink-soft);
}

/* ---------- LOADING + ERROR ---------- */
.djc-theatermap .theatermap__loader,
.djc-theatermap .theatermap__error {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
}

.djc-theatermap.is-loading .theatermap__loader,
.djc-theatermap.is-error .theatermap__error {
  display: flex;
}

.djc-theatermap .theatermap__spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--tmw-line);
  border-top-color: var(--tmw-loader);
  animation: theatermap-spin 0.9s linear infinite;
}

@keyframes theatermap-spin {
  to { transform: rotate(360deg); }
}

.djc-theatermap .theatermap__linkbtn {
  min-height: 32px;
  padding: 0 4px;
  font-weight: 700;
  color: var(--tmw-cta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- LAYOUT ---------- */
.djc-theatermap .theatermap__body {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.djc-theatermap .theatermap__panel {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.djc-theatermap .theatermap__body--nolist .theatermap__panel {
  display: none;
}

.djc-theatermap .theatermap__mapcol {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- SEARCH ---------- */
.djc-theatermap .theatermap__search {
  display: flex;
  gap: 8px;
  margin: 0;
}

.djc-theatermap .theatermap__field {
  position: relative;
  flex: 1 1 auto;
  display: block;
  margin: 0;
}

.djc-theatermap .theatermap__field-icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 14px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--tmw-field-soft);
  pointer-events: none;
}

/* 16px keeps iOS from zooming the page when the field takes focus */
.djc-theatermap .theatermap__input {
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 46px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--tmw-field);
  color: var(--tmw-field-ink);
  font-family: var(--tmw-font-1);
  font-size: 16px;
  line-height: normal;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.djc-theatermap .theatermap__input::placeholder {
  color: var(--tmw-field-soft);
  opacity: 1;
}

.djc-theatermap .theatermap__input::-webkit-search-cancel-button {
  display: none;
}

.djc-theatermap .theatermap__input:focus {
  outline: none;
  border-color: var(--tmw-card-accent);
  box-shadow: 0 0 0 3px var(--tmw-focus-glow);
}

.djc-theatermap .theatermap__clear {
  position: absolute;
  top: 50%;
  inset-inline-end: 4px;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transform: translateY(-50%);
  color: var(--tmw-field-soft);
  place-items: center;
}

.djc-theatermap .theatermap__field.has-value .theatermap__clear {
  display: grid;
}

.djc-theatermap .theatermap__go {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--tmw-btn);
  color: var(--tmw-btn-ink);
  font-size: 16px;
  font-weight: 700;
  transition: background-color 0.15s ease;
}

.djc-theatermap .theatermap__go:hover {
  background: var(--tmw-btn-hover);
}

.djc-theatermap .theatermap__near {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 8px 0 0;
  padding: 0 4px;
  color: var(--tmw-cta);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.djc-theatermap .theatermap__near .theatermap__icon {
  width: 18px;
  height: 18px;
}

.djc-theatermap .theatermap__msg {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--tmw-cta);
}

.djc-theatermap .theatermap__msg:empty {
  display: none;
}

/* ---------- FILTER CHIPS: one row of kind icons with counts (the words are the name + tooltip) ---------- */
.djc-theatermap .theatermap__chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 14px 0 0;
}

.djc-theatermap .theatermap__chip {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 6px;
  border: 1px solid var(--tmw-line);
  border-radius: 12px;
  background: transparent;
  color: var(--tmw-ink);
  font-size: 14px;
  font-weight: 700;
}

.djc-theatermap .theatermap__chip[aria-pressed="true"] {
  border-color: var(--tmw-ink-soft);
  background: var(--tmw-panel-hover);
}

.djc-theatermap .theatermap__chip[aria-pressed="false"] {
  opacity: 0.5;
}

.djc-theatermap .theatermap__chip[aria-pressed="false"] .theatermap__dot {
  filter: grayscale(1);
}

.djc-theatermap .theatermap__chip--tickets[aria-pressed="true"] {
  border-color: var(--tmw-cat-tickets);
}

.djc-theatermap .theatermap__chip-count {
  font-size: 14px;
  font-weight: 700;
}

/* kind dot: used by chips, badges and the legend */
.djc-theatermap .theatermap__dot {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.djc-theatermap .theatermap__dot .theatermap__icon {
  width: 16px;
  height: 16px;
}

.djc-theatermap .theatermap__dot--tickets { background: var(--tmw-cat-tickets); color: var(--tmw-cat-tickets-ink); }
.djc-theatermap .theatermap__dot--church { background: var(--tmw-cat-church); color: var(--tmw-cat-church-ink); }
.djc-theatermap .theatermap__dot--home { background: var(--tmw-cat-home); color: var(--tmw-cat-home-ink); }
.djc-theatermap .theatermap__dot--intl { background: var(--tmw-cat-intl); color: var(--tmw-cat-intl-ink); }
.djc-theatermap .theatermap__dot--other { background: var(--tmw-cat-other); color: var(--tmw-cat-other-ink); }
.djc-theatermap .theatermap__dot--group { background: #ffffff; color: var(--tmw-cta-ink); }

/* ---------- STATUS + LIST ---------- */
.djc-theatermap .theatermap__status {
  margin: 14px 0 8px;
  font-size: 15px;
  color: var(--tmw-ink-soft);
}

.djc-theatermap .theatermap__scroll {
  border-top: 1px solid var(--tmw-line);
  scrollbar-width: thin;
  scrollbar-color: var(--tmw-ink-soft) transparent;
}

.djc-theatermap .theatermap__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.djc-theatermap .theatermap__group {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--tmw-font-header);
  font-size: 18px;
  font-weight: 600;
  color: var(--tmw-cta);
}

/* flat rows on the band: the kind icon in a column on the left, its words as a quiet last line */
.djc-theatermap .theatermap__card {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--tmw-line);
  background: transparent;
  font-size: 16px;
}

.djc-theatermap .theatermap__card:hover {
  background: var(--tmw-panel-hover);
}

.djc-theatermap .theatermap__card.is-selected {
  border-radius: 10px;
  background: var(--tmw-panel-hover);
  box-shadow: inset 0 0 0 2px var(--tmw-cta);
}

.djc-theatermap .theatermap__card-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 14px 16px 12px;
  padding-inline-start: 64px;
  text-align: left;
  text-align: start;
}

.djc-theatermap .theatermap__card .theatermap__badge {
  order: 5;
  margin: 5px 0 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--tmw-ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.djc-theatermap .theatermap__card .theatermap__badge .theatermap__dot {
  position: absolute;
  top: 14px;
  inset-inline-start: 16px;
  width: 34px;
  height: 34px;
}

.djc-theatermap .theatermap__card .theatermap__badge .theatermap__dot .theatermap__icon {
  width: 18px;
  height: 18px;
}

.djc-theatermap .theatermap__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  padding: 3px 10px 3px 4px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.djc-theatermap .theatermap__badge .theatermap__dot {
  width: 20px;
  height: 20px;
}

.djc-theatermap .theatermap__badge .theatermap__dot .theatermap__icon {
  width: 12px;
  height: 12px;
}

.djc-theatermap .theatermap__badge--tickets { background: var(--tmw-cat-tickets); color: var(--tmw-cat-tickets-ink); }
.djc-theatermap .theatermap__badge--church { background: var(--tmw-cat-church); color: var(--tmw-cat-church-ink); }
.djc-theatermap .theatermap__badge--home { background: var(--tmw-cat-home); color: var(--tmw-cat-home-ink); }
.djc-theatermap .theatermap__badge--intl { background: var(--tmw-cat-intl); color: var(--tmw-cat-intl-ink); }
.djc-theatermap .theatermap__badge--other { background: var(--tmw-cat-other); color: var(--tmw-cat-other-ink); }

.djc-theatermap .theatermap__place {
  display: block;
  margin: 0;
  padding-inline-end: 72px;
  font-family: var(--tmw-font-header);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.djc-theatermap .theatermap__name {
  display: block;
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

.djc-theatermap .theatermap__addr {
  display: block;
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--tmw-ink-soft);
}

.djc-theatermap .theatermap__card-main .theatermap__dist {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tmw-cta);
  white-space: nowrap;
}

.djc-theatermap .theatermap__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
  padding-inline-start: 64px;
}

.djc-theatermap .theatermap__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--tmw-btn);
  border-radius: 22px;
  background: var(--tmw-btn);
  color: var(--tmw-btn-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.djc-theatermap .theatermap__btn:not(.theatermap__btn--ghost):hover {
  border-color: var(--tmw-btn-hover);
  background: var(--tmw-btn-hover);
}

.djc-theatermap .theatermap__card .theatermap__btn {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.djc-theatermap .theatermap__btn .theatermap__icon {
  width: 18px;
  height: 18px;
}

.djc-theatermap .theatermap__btn--ghost {
  border-color: var(--tmw-cta);
  background: transparent;
  color: var(--tmw-cta);
}

.djc-theatermap .theatermap__more {
  width: 100%;
  min-height: 48px;
  margin: 12px 0 0;
  border: 2px solid var(--tmw-cta);
  border-radius: 24px;
  color: var(--tmw-cta);
  font-size: 15px;
  font-weight: 700;
}

.djc-theatermap .theatermap__empty {
  margin: 0;
  padding: 18px;
  list-style: none;
  border-radius: var(--tmw-radius);
  background: var(--tmw-panel);
  font-size: 15px;
}

/* ---------- MAP ---------- */
.djc-theatermap .theatermap__map {
  position: relative;
  overflow: hidden;
  height: var(--tmw-map-height);
  border-radius: 14px;
  background: var(--tmw-map-bg);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.djc-theatermap .theatermap__art {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  opacity: var(--tmw-dots-opacity);
  transition: transform 0.35s ease;
}

.djc-theatermap .theatermap__art svg {
  display: block;
}

/* two dot grids: the world view, and a finer one once the map is zoomed in */
.djc-theatermap .theatermap__dots {
  fill: var(--tmw-dot);
  transition: opacity 0.25s ease;
}

.djc-theatermap .theatermap__dots--fine,
.djc-theatermap .theatermap__map.is-fine .theatermap__dots--world {
  opacity: 0;
}

.djc-theatermap .theatermap__map.is-fine .theatermap__dots--fine {
  opacity: 1;
}

.djc-theatermap .theatermap__map.is-instant .theatermap__art,
.djc-theatermap .theatermap__map.is-dragging .theatermap__art {
  transition: none;
}

.djc-theatermap .theatermap__map.is-dragging {
  cursor: grabbing;
}

.djc-theatermap .theatermap__markers {
  position: absolute;
  inset: 0;
}

/* pins: a 44px-wide hit area with the drawn pin inside it, tip on the venue */
.djc-theatermap .theatermap__pin {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 52px;
  margin: -50px 0 0 -22px;
}

.djc-theatermap .theatermap__pin-svg {
  display: block;
  width: 32px;
  height: 42px;
  margin: 6px auto 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
  transform-origin: 50% 100%;
  transition: transform 0.15s ease;
}

.djc-theatermap .theatermap__pin:hover .theatermap__pin-svg,
.djc-theatermap .theatermap__pin:focus-visible .theatermap__pin-svg {
  transform: scale(1.15);
}

.djc-theatermap .theatermap__pin.is-selected {
  z-index: 5;
}

.djc-theatermap .theatermap__pin.is-selected .theatermap__pin-svg {
  transform: scale(1.35);
}

.djc-theatermap .theatermap__pin--tickets {
  z-index: 3;
}

.djc-theatermap .theatermap__pin--tickets .theatermap__pin-svg {
  width: 38px;
  height: 50px;
  margin-top: 0;
}

.djc-theatermap .theatermap__pin-body { stroke-width: 1.5px; }
.djc-theatermap .theatermap__pin--tickets .theatermap__pin-body { fill: var(--tmw-cat-tickets); stroke: var(--tmw-cat-tickets-ink); }
.djc-theatermap .theatermap__pin--tickets .theatermap__pin-glyph { fill: var(--tmw-cat-tickets-ink); }
.djc-theatermap .theatermap__pin--church .theatermap__pin-body { fill: var(--tmw-cat-church); stroke: var(--tmw-cat-church-ink); }
.djc-theatermap .theatermap__pin--church .theatermap__pin-glyph { fill: var(--tmw-cat-church-ink); }
.djc-theatermap .theatermap__pin--home .theatermap__pin-body { fill: var(--tmw-cat-home); stroke: var(--tmw-cat-home-ink); }
.djc-theatermap .theatermap__pin--home .theatermap__pin-glyph { fill: var(--tmw-cat-home-ink); }
.djc-theatermap .theatermap__pin--intl .theatermap__pin-body { fill: var(--tmw-cat-intl); stroke: var(--tmw-cat-intl-ink); }
.djc-theatermap .theatermap__pin--intl .theatermap__pin-glyph { fill: var(--tmw-cat-intl-ink); }
.djc-theatermap .theatermap__pin--other .theatermap__pin-body { fill: var(--tmw-cat-other); stroke: var(--tmw-cat-other-ink); }
.djc-theatermap .theatermap__pin--other .theatermap__pin-glyph { fill: var(--tmw-cat-other-ink); }

/* pinStyle round and dot: centred on the venue rather than tip-down, with a white ring */
.djc-theatermap.theatermap--pin-round .theatermap__pin:not(.theatermap__pin--featured),
.djc-theatermap.theatermap--pin-dot .theatermap__pin:not(.theatermap__pin--featured) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
}

.djc-theatermap.theatermap--pin-round .theatermap__pin .theatermap__pin-svg,
.djc-theatermap.theatermap--pin-dot .theatermap__pin .theatermap__pin-svg {
  margin: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
  transform-origin: 50% 50%;
}

.djc-theatermap.theatermap--pin-round .theatermap__pin .theatermap__pin-svg { width: 30px; height: 30px; }
.djc-theatermap.theatermap--pin-round .theatermap__pin--tickets .theatermap__pin-svg { width: 36px; height: 36px; }
.djc-theatermap.theatermap--pin-dot .theatermap__pin .theatermap__pin-svg { width: 18px; height: 18px; }
.djc-theatermap.theatermap--pin-dot .theatermap__pin--tickets .theatermap__pin-svg { width: 24px; height: 24px; }

.djc-theatermap.theatermap--pin-round .theatermap__pin .theatermap__pin-body,
.djc-theatermap.theatermap--pin-dot .theatermap__pin .theatermap__pin-body {
  stroke: var(--tmw-pin-ring);
  stroke-width: 2.5px;
}

/* the selected place's name sits below the marker, clear of a centred one */
.djc-theatermap.theatermap--pin-round .theatermap__label:not(.theatermap__label--origin) { transform: translate(-50%, 28px); }
.djc-theatermap.theatermap--pin-dot .theatermap__label:not(.theatermap__label--origin) { transform: translate(-50%, 20px); }

/* featured video pins: a round thumbnail with a play mark */
.djc-theatermap .theatermap__pin--featured {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
}

.djc-theatermap .theatermap__pin-thumb {
  display: block;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.djc-theatermap .theatermap__pin-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.djc-theatermap .theatermap__pin-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

/* groups: a white bubble with the count, ringed by the mix of kinds inside */
.djc-theatermap .theatermap__cluster {
  position: absolute;
  z-index: 3;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  padding: 4px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.djc-theatermap .theatermap__cluster--big {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
}

.djc-theatermap .theatermap__cluster:hover,
.djc-theatermap .theatermap__cluster:focus-visible {
  transform: scale(1.08);
}

.djc-theatermap .theatermap__cluster-count {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  color: var(--tmw-cta-ink);
  font-size: 15px;
  font-weight: 700;
}

.djc-theatermap .theatermap__cluster-tix {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--tmw-cta-ink);
  border-radius: 50%;
  background: var(--tmw-cat-tickets);
  color: var(--tmw-cat-tickets-ink);
}

.djc-theatermap .theatermap__cluster-tix .theatermap__icon {
  width: 12px;
  height: 12px;
}

.djc-theatermap .theatermap__label {
  position: absolute;
  z-index: 6;
  padding: 4px 8px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--tmw-card-ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, 8px);
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.djc-theatermap .theatermap__origin {
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--tmw-origin);
  box-shadow: 0 0 0 6px rgba(47, 128, 237, 0.35);
  pointer-events: none;
}

.djc-theatermap .theatermap__label--origin {
  background: var(--tmw-origin);
  color: #ffffff;
  transform: translate(-50%, 14px);
}

/* zoom controls + region jumps */
.djc-theatermap .theatermap__ctl {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 7;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.djc-theatermap .theatermap__ctl button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--tmw-cta-ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.djc-theatermap .theatermap__ctl .theatermap__icon {
  width: 22px;
  height: 22px;
}

.djc-theatermap .theatermap__hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 13px;
  pointer-events: none;
}

.djc-theatermap .theatermap__regions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.djc-theatermap .theatermap__region {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--tmw-line);
  border-radius: 20px;
  background: var(--tmw-panel);
  color: var(--tmw-ink);
  font-size: 14px;
  font-weight: 600;
}

.djc-theatermap .theatermap__region[aria-pressed="true"] {
  background: #ffffff;
  color: var(--tmw-cta-ink);
}

.djc-theatermap .theatermap__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  color: var(--tmw-ink-soft);
}

.djc-theatermap .theatermap__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- DETAIL CARD ---------- */
.djc-theatermap .theatermap__detail {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 8;
  display: none;
  width: 360px;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  overflow-y: auto;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: var(--tmw-card-bg);
  color: var(--tmw-card-ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.djc-theatermap .theatermap__detail.is-right {
  left: auto;
  right: 68px;
}

.djc-theatermap .theatermap__detail.is-open {
  display: block;
}

.djc-theatermap .theatermap__detail-title {
  margin: 0;
  padding-inline-end: 40px;
  font-family: var(--tmw-font-header);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  color: var(--tmw-card-ink);
}

.djc-theatermap .theatermap__detail .theatermap__name {
  font-weight: 600;
  color: var(--tmw-card-ink);
}

.djc-theatermap .theatermap__detail .theatermap__addr {
  color: var(--tmw-card-soft);
}

.djc-theatermap .theatermap__detail .theatermap__dist {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--tmw-card-accent);
}

.djc-theatermap .theatermap__note,
.djc-theatermap .theatermap__contact {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--tmw-card-soft);
}

.djc-theatermap .theatermap__contact a {
  color: var(--tmw-card-accent);
  font-weight: 600;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.djc-theatermap .theatermap__detail .theatermap__card-actions {
  padding: 0;
  margin-top: 14px;
}

.djc-theatermap .theatermap__detail .theatermap__btn,
.djc-theatermap .theatermap__detail .theatermap__btn:not(.theatermap__btn--ghost):hover {
  border-color: var(--tmw-btn-edge);
}

.djc-theatermap .theatermap__detail .theatermap__btn--ghost {
  border-color: var(--tmw-card-accent);
  background: transparent;
  color: var(--tmw-card-accent);
}

.djc-theatermap .theatermap__detail .theatermap__btn--ghost:hover {
  background: rgba(1, 110, 84, 0.08);
}

/* the band's white focus ring would vanish on the white card */
.djc-theatermap .theatermap__detail button:focus-visible,
.djc-theatermap .theatermap__detail a:focus-visible {
  outline-color: var(--tmw-card-accent);
}

/* a white ticket badge keeps a hairline edge on the white card */
.djc-theatermap .theatermap__detail .theatermap__badge--tickets {
  box-shadow: inset 0 0 0 1px rgba(19, 35, 30, 0.2);
}

.djc-theatermap .theatermap__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: #eef2f0;
  color: var(--tmw-card-ink);
}

.djc-theatermap .theatermap__backdrop {
  display: none;
}

/* ---------- FINDER (desktop): the list scrolls inside the panel beside the map ---------- */
@media (min-width: 900px) {
  .djc-theatermap .theatermap__scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: var(--tmw-map-height);
    overflow-y: auto;
    padding-inline-end: 6px;
  }
}

/* ---------- CLASSIC: today's list-and-map layout, static map ---------- */
.djc-theatermap.theatermap--classic .theatermap__map {
  height: auto;
  aspect-ratio: 1290 / 855.19; /* the dot frame, WORLD_W / WORLD_H in the js */
  touch-action: auto;
}

@media (min-width: 900px) {
  .djc-theatermap.theatermap--classic .theatermap__panel {
    flex-basis: 360px;
  }

  .djc-theatermap.theatermap--classic .theatermap__scroll {
    max-height: 560px;
  }
}

/* ---------- PHONES + SMALL TABLETS ---------- */
@media (max-width: 899px) {
  .djc-theatermap.theatermap-mount {
    padding: 40px 16px 48px;
  }

  .djc-theatermap .theatermap__title {
    font-size: 34px;
  }

  .djc-theatermap .theatermap__subtitle {
    font-size: 17px;
  }

  /* search first, then filters, map, count and the list in the page's own scroll */
  .djc-theatermap .theatermap__body {
    flex-direction: column;
    gap: 0;
  }

  .djc-theatermap .theatermap__panel {
    display: contents;
  }

  .djc-theatermap .theatermap__searchwrap { order: 1; }
  .djc-theatermap .theatermap__chips { order: 2; }
  .djc-theatermap .theatermap__mapcol { order: 3; margin-top: 14px; }
  .djc-theatermap .theatermap__status { order: 4; }
  .djc-theatermap .theatermap__scroll { order: 5; }

  .djc-theatermap .theatermap__chips,
  .djc-theatermap .theatermap__regions {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  /* compact enough that all five fit a 360px phone; past that the row scrolls sideways */
  .djc-theatermap .theatermap__chips {
    gap: 5px;
  }

  .djc-theatermap .theatermap__chip {
    flex: 1 0 auto;
    gap: 4px;
    padding: 0 4px;
  }

  .djc-theatermap .theatermap__chip .theatermap__dot {
    width: 24px;
    height: 24px;
  }

  .djc-theatermap .theatermap__chip .theatermap__dot .theatermap__icon {
    width: 14px;
    height: 14px;
  }

  .djc-theatermap .theatermap__chip-count {
    font-size: 13px;
  }

  .djc-theatermap .theatermap__region {
    flex: 0 0 auto;
  }

  .djc-theatermap.theatermap--finder .theatermap__map {
    height: var(--tmw-map-height-phone);
  }

  .djc-theatermap .theatermap__hint {
    display: none;
  }

  /* the detail becomes a bottom sheet */
  .djc-theatermap .theatermap__detail,
  .djc-theatermap .theatermap__detail.is-right {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100001;
    width: auto;
    max-width: none;
    max-height: 75vh;
    padding: 24px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }

  .djc-theatermap .theatermap__detail::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 44px;
    height: 4px;
    margin-left: -22px;
    border-radius: 2px;
    background: #c9d2ce;
  }

  .djc-theatermap .theatermap__backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.45);
  }
}

html.djc-theatermap-lock body {
  position: fixed;
  top: var(--djc-theatermap-lock-y, 0);
  left: 0;
  right: 0;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .djc-theatermap .theatermap__art,
  .djc-theatermap .theatermap__dots,
  .djc-theatermap .theatermap__pin-svg {
    transition: none;
  }

  .djc-theatermap .theatermap__spinner {
    animation-duration: 3s;
  }
}
