/**
 * AgData API GF – event listings and loader
 */
:root {
  --agdata-yellow: #FFC107;
  --agdata-green: #6FBD42;
  --agdata-red: #ff5d5d;
  --agdata-lblue: #80CDD6;
  --agdata-lblue20: #80CDD633;
  --agdata-mblue: #017ea7;
  --agdata-mblue90: #008cb3;
  --agdata-mblue50: #008cb380;
  --agdata-mblue35: #008cb358;
  --agdata-mblue10: #017ea71A;
  --agdata-dblue: #013249;
  --agdata-lgrey: #F2F2F2;
  --agdata-transition: all 0.4s ease-in-out;
}

.events-loader {
  min-height: 80px;
  background: url('../img/loader.svg') center center no-repeat;
  background-size: 60px 60px;
}

.event-listings {
  min-height: 100%;
  flex-wrap: wrap;
  flex-direction: row;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.event-listings.show {
  display: grid;
}

@media screen and (max-width: 768px) {
  .event-listings {
    grid-template-columns: repeat(1, 1fr);
  }
}

.event-listings .event {
  border: 2px var(--agdata-lgrey) solid;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transition: var(--agdata-transition);
}

.event-listings .event.show {
  opacity: 1;
}

.event-listings .event.show .no-events {
  display: none;
}

.event-listings .event .event-image {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: var(--agdata-dblue);
  aspect-ratio: 16 / 9;
  background-position: center;
  background-size: cover;
  position: relative;
}

.event-listings .event .event-image .tickets-notice {
  background: var(--agdata-mblue);
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1em;
  text-align: center;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  padding: 20px 60px;
  width: 240px;
  transform: translate(80px, 10px) rotate(45deg);
}

.event-listings .event .event-image .tickets-notice.tickets-limited {
  background: var(--agdata-yellow);
}

.event-listings .event .event-image .tickets-notice.tickets-exhausted {
  background: var(--agdata-red);
}

.event-listings .event .event-content {
  padding: 40px;
}

.event-listings .event .event-content .title {
  font-weight: bold;
  margin: 0 0 10px;
}

.event-listings .event .event-content .title a {
  color: var(--agdata-mblue);
}

.event-listings .event .event-content .desc {
  font-weight: normal;
  color: var(--body-color, inherit);
  line-height: 1.4em;
  padding-bottom: 10px;
}

.event-listings .event .event-content .info {
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.event-listings .event .event-content .info .info-row {
  display: flex;
}

.event-listings .event .event-content .info .info-row .info-label {
  display: flex;
  width: 100px;
  flex-shrink: 0;
  font-weight: 600;
}

.event-listings .event .event-content .event-btn {
  padding: 15px 30px;
  margin-top: 10px;
  display: inline-block;
  background: var(--agdata-mblue);
  border-radius: 10px;
  color: white;
  text-transform: uppercase;
  transition: var(--agdata-transition);
}

.event-listings .event .event-content .event-btn:hover {
  background: var(--agdata-lblue);
}

.event-listings .event .event-content .event-btn .link-text {
  font-weight: bold;
}

.event-listings .event .event-content .event-btn i {
  margin-left: 10px;
}

.event-listings .event .event-content .event-btn.event--sold-out {
  background: var(--agdata-lblue);
}

.event-listings .event .event-content .event-btn.event--sold-out:hover {
  background: var(--agdata-mblue);
}

.event-image {
  position: relative;
}

.event-type {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
}

/* Only position the pill absolutely when inside the event card image */
.event-listings .event .event-image .event-type {
  position: absolute;
  top: 8px;
  left: 8px;
}
