/* === Обёртка всей страницы === */
.search-tickets-page {
  padding: 60px 0;
  background-color: #ffffff; /* белый фон */
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  color: #111;
}

.search-tickets-page .event-card-grid{
  /* Перекрываем старое правило с flex */
  display: grid !important;
  grid-template-columns: repeat(12, 1fr);
  gap: 60px 24px;            /* row-gap x column-gap: больше воздуха по Y */
  align-items: stretch;
  justify-content: initial;  /* на случай прежнего justify-content:center */
  padding: 0;
}

/* 3 колонки на десктопе, 2 на таблетах, 1 на мобилках */
@media (min-width: 1200px){
  .search-tickets-page .event-card-grid > .event-card{ grid-column: span 4; }
}
@media (max-width: 1199.98px){
  .search-tickets-page .event-card-grid > .event-card{ grid-column: span 6; }
}
@media (max-width: 640px){
  .search-tickets-page .event-card-grid > .event-card{ grid-column: span 12; }
}

/* Карточка — как в едином стиле (никаких flex:0 0 300px тут!) */
.search-tickets-page .event-card{
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid #eee;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--card-pad-v) var(--card-pad-h);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.search-tickets-page .event-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  background: #fff4e6;
}

/* Медиа */
.search-tickets-page .event-card .thumb,
.search-tickets-page .event-card__img,
.search-tickets-page .event-card_img,          /* на всякий, если где-то с подчёркиванием */
.search-tickets-page .event-card .thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;          /* если хочешь киношнее — поставь 16 / 9 */
  overflow: hidden;
  border-radius: 12px;
  background: #f4f4f4;
}

/* Само изображение растягиваем на контейнер и обрезаем по краям */
.search-tickets-page .event-card__img img,
.search-tickets-page .event-card_img img,
.search-tickets-page .event-card .thumb img{
  width: 100%;
  height: 100% !important;      /* перекрываем возможный height:auto */
  display: block;
  object-fit: cover !important; /* заполняем «коробку» полностью */
  object-position: center;
}

/* Заголовок */
.search-tickets-page .event-card .title,
.search-tickets-page .event-card__title,
.search-tickets-page .event-title{
  font-weight: 700; margin: 12px 0 0; color: var(--text);
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: calc(1rem * 1.3 * 3);
  text-decoration: none;
}

/* Мета */
.search-tickets-page .event-card .meta,
.search-tickets-page .event-card__meta{ display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.search-tickets-page .event-card .meta .date,
.search-tickets-page .event-card .meta .venue,
.search-tickets-page .event-card__row,
.search-tickets-page .event-card .event-date,
.search-tickets-page .event-card .event-location,
.search-tickets-page .event-card .event-price{
  align-items:center; justify-content:center; gap:8px;
  color:#555; font-size:.95rem;
}

/* Иконки — бренд */
.search-tickets-page .event-card .fa,
.search-tickets-page .event-card [class^="fa-"],
.search-tickets-page .event-card [class*=" fa-"]{
  color: var(--brand); font-size:1.1rem; line-height:1;
}

/* CTA всегда у низа, как везде */
.search-tickets-page .event-card .bottom,
.search-tickets-page .event-card__cta{ margin-top:auto; }
.search-tickets-page .event-card .btn-buy,
.search-tickets-page .event-card__btn{
  display:block; margin-top:12px;
  background: var(--brand); color:#fff; font-weight:700;
  padding:12px 16px; border-radius:8px; text-align:center; text-decoration:none;
}
.search-tickets-page .event-card .btn-buy:hover,
.search-tickets-page .event-card__btn:hover{ background: var(--brand-hover); }

/* === Заголовок страницы === */
.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111;
  text-align: center;
}

/* === Контейнер-результат === */
.search-tickets-page .result-count {
  text-align: center;
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}


.search-input-bar {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: flex;
  justify-content: center;
}

.search-input-bar input {
  width: 100%;
  max-width: 600px;
  padding: 12px 16px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input-bar input:focus {
  border-color: #ff6600;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 960px;          /* Три карточки + отступы */
  margin: 30px auto 0;       /* Центрируем */
  padding: 0 16px;
  gap: 24px;
  justify-items: center;     /* Центрует сами карточки */
}

.search-filters {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.filter-col {
  flex: 1;
  min-width: 180px;
}

.filter-col label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

.filter-col input,
.filter-col select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Кнопка "Apply Filters" */
.search-filters .apply-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.search-filters .apply-btn {
  padding: 12px 24px;
  background-color: #ff6600;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-filters .apply-btn:hover {
  background-color: #e65c00;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.reset-btn {
  padding: 12px 24px;
  background-color: #e0e0e0;
  color: #333;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.reset-btn:hover {
  background-color: #cccccc;
}


.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #999;
  font-size: 18px;
  font-weight: 500;
}

