/* ===== Bookings Page Styles ===== */

/* Hero Banner */
.bookings-hero {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2d12b9 0%, #8a3cbf 50%, #ff5fa1 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  min-height: 80px;
  /* desktop default */
}

.bookings-hero__overlay {
  grid-area: 1 / 1;
  z-index: 1;
  text-align: center;
  padding: 0 10px;
}

.bookings-hero__title {
  color: #ff0000;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  -webkit-text-stroke: 2px #000;
  margin: 0;
  font-family: "Open Sans", sans-serif;
  line-height: 1.1;
}

/* Make the hero shorter on narrower screens */
@media (max-width: 768px) {
  .bookings-hero {
    min-height: 90px;
  }

  .bookings-hero__title {
    font-size: 1.8rem;
    -webkit-text-stroke: 1px #000;
  }
}

@media (max-width: 480px) {
  .bookings-hero {
    min-height: 80px;
  }

  .bookings-hero__title {
    font-size: 1.5rem;
  }
}

.events-section {
  grid-column: 1 / -1;
  background: #000;
  padding-block: 0;
  font-family: "Open Sans", sans-serif;
}

.events-section .section-title:first-child {
  margin-block: 15px 10px;
}

.section-title.past-title {
  margin-top: 60px;
}

/* Events Container */
.events-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, 280px);
  place-content: center;
  gap: 30px;
  padding-block: 10px;
}

/* Event Cards */
.event-card {
  font-size: 10px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.event-card__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
}

.event-card__image img,
.event-card__image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* Blurred background for cards */
.event-card__image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.6);
  z-index: 0;
  transform: scale(1.1);
}

.event-card__image img {
  object-fit: contain;
}

.event-card__content {
  padding: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1em;
  flex-grow: 1;
}

.event-card__title {
  font-size: 1.75em;
  color: #000;
  margin: 0;
  font-weight: 700;
}

.event-card__date {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

.event-card__btn {
  width: 100%;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.event-card__btn--closed {
  background: #999;
  color: #fff;
  cursor: not-allowed;
}

.event-card__btn--open {
  background: #ffdd00;
  color: #000;
}

.event-card__btn--open:hover {
  background: #e6c700;
}

.event-card__btn--view {
  background: #111;
  color: #ffbf00;
  transition: all 0.3s ease;
}

.event-card__btn--view:hover {
  background: #ffbf00;
  color: #000;
}

/* Mobile Arrows */
.mobile-arrows {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.mobile-arrows button {
  padding: 8px 14px;
  border: none;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-arrows button:hover {
  background: #333;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
  .events-section {
    padding-block: 0;
    overflow: hidden;
  }

  .events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 182px));
    gap: 12px;
    padding: 16px 12px;
    width: 100%;
    justify-content: center;
    margin: 0 auto;
  }

  .event-card-mobile {
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  .event-card-mobile__image {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    background: #1a1a1a;
    position: relative;
  }

  .event-card-mobile__image img,
  .event-card-mobile__image video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
  }

  .event-card-mobile__image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.6);
    z-index: 0;
    transform: scale(1.1);
  }

  .event-card-mobile__info {
    min-height: 25%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    gap: 10px;
  }

  .event-card-mobile__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow: hidden;
  }

  .event-card-mobile__title {
    font-size: 0.85rem;
    color: #fff;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .event-card-mobile__date {
    font-size: 0.7rem;
    color: #888;
    margin: 0;
    font-weight: 400;
  }

  .event-card-mobile__btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 6px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .event-card-mobile__btn--open {
    background: #ffdd00;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 221, 0, 0.3);
  }

  .event-card-mobile__btn--closed {
    background: #333;
    color: #888;
    cursor: not-allowed;
  }

  .event-card-mobile__btn--view {
    background: #111;
    color: #ffbf00;
    box-shadow: 0 2px 8px rgba(255, 191, 0, 0.2);
  }

  .event-card-mobile__btn--view:hover {
    background: #ffbf00;
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 191, 0, 0.3);
  }

  .bookings-hero img {
    height: 100px;
  }

  .bookings-hero__title {
    font-size: 1.8rem;
    -webkit-text-stroke: 1px #000;
  }

  .mobile-arrows {
    display: none !important;
  }

  .section-title.past-title {
    margin-top: 0px;
  }

  #upcomingEventsContainer:not(.is-multiple) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
    justify-content: center;
    justify-items: center;
    padding-bottom: 0;
    margin-inline: auto;
  }

  #upcomingEventsContainer:not(.is-multiple) .event-card-mobile {
    height: auto;
  }

  #upcomingEventsContainer:not(.is-multiple) .event-card-mobile__image {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 480px) {
  .bookings-hero__title {
    font-size: 1.5rem;
  }
}

@media (max-width: 448px) {
  section {
    padding-inline: 0 !important;
  }
}
