/* ----------------------------------------------------------------
 Event Archive (archive-event.php)
-----------------------------------------------------------------*/

/* ---- Filter Bar ---- */
.event-filters {
  margin: 0 0 40px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.event-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.event-filters__row + .event-filters__row {
  margin-top: 4px;
}

.event-filters__label {
  display: inline-block;
  min-width: 70px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #888;
  text-transform: uppercase;
}

.event-filters__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

/* Select shown only on mobile (see media query below) */
.event-filters__select {
  display: none;
  flex: 1;
  min-width: 0;
  padding: 8px 32px 8px 12px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23666' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 7px;
  cursor: pointer;
}

.event-filters__select:focus {
  outline: none;
  border-color: #1abc9c;
}

.event-filter-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid #ccc;
  color: #444;
  padding: 6px 14px;
  font-size: 13px;
  line-height: 1.2;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.event-filter-btn:hover {
  border-color: #333;
  color: #111;
}

.event-filter-btn.is-active {
  background: #4ab640;
  border-color: #1abc9c;
  color: #fff;
}

/* ---- Event Grid ---- */
/* Use plain CSS Grid (no theme .portfolio classes) so that the Canvas
   portfolio JS (Isotope/Shuffle) doesn't grab these cards and absolutely
   position them after init. */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 30px;
  margin: 0;
}

/* ---- Event Card ---- */
.event-card {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.event-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #f5f5f5;
  overflow: hidden;
}

.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease-in-out;
}

.event-card__image:hover img {
  opacity: 0.85;
}

.event-card__body {
  padding: 14px 2px 0;
}

.event-card__title {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  margin: 0 0 8px;
}

.event-card__title a {
  color: inherit;
  text-decoration: none;
}

.event-card__title a:hover {
  text-decoration: underline;
}

.event-card__date,
.event-card__studio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #777;
  line-height: 1.4;
  margin: 0 0 4px;
}

.event-card__date i {
  font-size: 13px;
  color: #999;
}

.event-card__studio-icon {
  display: inline-block;
  width: auto;
  height: 16px;
  max-width: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.event-card__studio i.event-card__studio-icon {
  font-size: 13px;
  color: #999;
  height: auto;
  width: auto;
}

.event-empty {
  text-align: center;
  color: #888;
  padding: 40px 0;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .event-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .event-filters__label {
    width: 100%;
    min-width: 0;
    margin-bottom: 4px;
  }
  .event-filters__buttons {
    display: none;
  }
  .event-filters__select {
    display: block;
  }
}
