/* Build 774: calm, explicit status treatment for transient Ticketmaster events. */

/* The live-event mood is an admin-only pilot. Later OM layout rules give mood
   buttons grid geometry, so restate the semantic hidden state here with the
   same feature-level specificity. A signed-out or regular account must not
   receive an invisible, measurable Ticketmaster control in the mood row. */
html body main.app-shell section.map-stage.map-focus.our-map-mode .our-map-mood-choices button[data-our-map-intent="live"][hidden] {
  display: none !important;
}

/* Ticketmaster is a discovery source, not a food category. Its deep violet
   gives official event pins a distinct, premium identity while preserving the
   exact canonical OM pin geometry and a 5.3:1 white-symbol contrast ratio. */
html body main.app-shell section.map-stage.map-focus .our-map-place-pin.provider-ticketmaster .our-map-pin-label {
  border-color: rgba(118, 86, 201, 0.48) !important;
  color: #513384 !important;
  background: rgba(246, 241, 255, 0.98) !important;
}

html body .our-map-result-card.provider-ticketmaster .our-map-result-source.is-provider,
html body .our-map-popup.provider-ticketmaster .our-map-trust-chip.is-provider {
  border-color: rgba(118, 86, 201, 0.2) !important;
  color: #513384 !important;
  background: #f3edff !important;
}

html body .our-map-result-event-status {
  display: inline-flex;
  width: fit-content;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(151, 95, 22, 0.2);
  border-radius: 999px;
  color: #80500f;
  background: #fff5dc;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

html body .our-map-result-event-status.is-cancelled,
html body .our-map-trust-chip.is-event-status.is-cancelled {
  border-color: rgba(157, 55, 52, 0.25) !important;
  color: #8f3734 !important;
  background: #fff0ed !important;
}

html body .our-map-result-event-status.is-postponed,
html body .our-map-trust-chip.is-event-status.is-postponed {
  border-color: rgba(151, 95, 22, 0.22) !important;
  color: #80500f !important;
  background: #fff5dc !important;
}

html body .our-map-result-event-status.is-rescheduled,
html body .our-map-trust-chip.is-event-status.is-rescheduled {
  border-color: rgba(103, 68, 154, 0.22) !important;
  color: #664397 !important;
  background: #f4efff !important;
}

html body .our-map-trust-chip.is-event-status {
  border-color: rgba(151, 95, 22, 0.2) !important;
  color: #80500f !important;
  background: #fff5dc !important;
}

html body .our-map-event-status-message {
  margin: 6px 0 2px;
  padding: 9px 10px;
  border: 1px solid rgba(151, 95, 22, 0.18);
  border-radius: 12px;
  color: #694b20;
  background: rgba(255, 247, 226, 0.92);
  font-size: 0.57rem;
  font-weight: 650;
  line-height: 1.4;
}

html body .our-map-event-status-message strong {
  color: inherit;
  font-weight: 900;
}

html body .our-map-popup:has(.our-map-trust-chip.is-cancelled) .our-map-event-status-message {
  border-color: rgba(157, 55, 52, 0.2);
  color: #803b38;
  background: rgba(255, 240, 237, 0.94);
}

html body .our-map-popup:has(.our-map-trust-chip.is-rescheduled) .our-map-event-status-message {
  border-color: rgba(103, 68, 154, 0.2);
  color: #5f428b;
  background: rgba(246, 241, 255, 0.94);
}

html body .our-map-result-actions button:disabled,
html body .our-map-popup .popup-route:disabled {
  border-color: rgba(103, 122, 122, 0.18) !important;
  color: #718183 !important;
  background: #edf1f1 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

@media (forced-colors: active) {
  html body main.app-shell section.map-stage.map-focus .our-map-place-pin.provider-ticketmaster .our-map-pin-label,
  html body .our-map-result-card.provider-ticketmaster .our-map-result-source.is-provider,
  html body .our-map-popup.provider-ticketmaster .our-map-trust-chip.is-provider {
    border-color: CanvasText !important;
    color: ButtonText !important;
    background: ButtonFace !important;
  }
}
