/* ============================================================
   TICKETS PAGE — Filter UI
   Award-winning, compact, collapsible
   ============================================================ */

/* ---- Suchfeld (Prominent) ---- */
.tickets-search-wrap {
  margin-bottom: 1.5rem;
}

.tickets-search-bar {
  display: flex;
  align-items: center;
  max-width: 640px;
  height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(178, 120, 255, 0.25);
  border-radius: 12px;
  padding: 0 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tickets-search-bar:focus-within {
  border-color: rgba(178, 120, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(178, 120, 255, 0.15);
}

.tickets-search-icon {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.tickets-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.tickets-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.tickets-location-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.tickets-location-btn:hover {
  color: var(--accent-purple, #B278FF);
  background: rgba(178, 120, 255, 0.12);
}

.tickets-location-btn.has-location {
  color: var(--accent-purple, #B278FF);
}

/* ---- Toggle "Weitere Filter" ---- */
.tickets-toggle-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s;
}

.tickets-toggle-filters:hover {
  color: var(--accent-purple, #B278FF);
}

.tickets-toggle-icon {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
}

.tickets-toggle-filters[aria-expanded="true"] .tickets-toggle-icon {
  transform: rotate(180deg);
}

/* ---- Eingeklappte Filter-Panel ---- */
.tickets-filters-panel {
  margin-top: 1rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(178, 120, 255, 0.12);
  border-radius: 12px;
  animation: ticketsPanelSlide 0.25s ease;
}

@keyframes ticketsPanelSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tickets-filters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tickets-filter-block--span2 {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .tickets-filters-grid {
    grid-template-columns: 1fr;
  }
  .tickets-filter-block--span2 {
    grid-column: span 1;
  }
}

.tickets-filter-block {
  min-width: 0;
}

.tickets-filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* ---- Radius Slider ---- */
.tickets-radius-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tickets-radius-slider {
  flex: 1;
  min-width: 80px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  outline: none;
}

.tickets-radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent-purple, #B278FF);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}

.tickets-radius-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent-purple, #B278FF);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.tickets-radius-value {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  min-width: 3.5rem;
}

.tickets-radius-hint {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.25rem;
}

/* ---- Chips (Zeit, Alter) ---- */
.tickets-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tickets-chip {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s;
}

.tickets-chip:hover {
  background: rgba(178, 120, 255, 0.15);
  border-color: rgba(178, 120, 255, 0.3);
  color: #fff;
}

.tickets-chip.active {
  background: rgba(178, 120, 255, 0.25);
  border-color: var(--accent-purple, #B278FF);
  color: #fff;
}

/* ---- Genre Autocomplete ---- */
.tickets-genre-wrap {
  position: relative;
}

.tickets-genre-wrap .tickets-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.tickets-genre-wrap .tickets-input:focus {
  border-color: rgba(178, 120, 255, 0.4);
}

.tickets-genre-wrap .tickets-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.tickets-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(178, 120, 255, 0.2);
  border-radius: 8px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.tickets-suggestions.open {
  display: block;
}

.tickets-suggestion-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.15s;
}

.tickets-suggestion-item:hover {
  background: rgba(178, 120, 255, 0.15);
}

.tickets-select-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.tickets-select-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  background: rgba(178, 120, 255, 0.2);
  border: 1px solid rgba(178, 120, 255, 0.35);
  border-radius: 6px;
  color: #fff;
}

.tickets-select-chip button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  font-size: 0.9em;
  line-height: 1;
}

.tickets-select-chip button:hover {
  color: #fff;
}

/* ---- Eventtyp Accordion ---- */
.tickets-accordion {
  max-height: 200px;
  overflow-y: auto;
}

.tickets-accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tickets-accordion-item:last-child {
  border-bottom: none;
}

.tickets-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.tickets-accordion-header:hover {
  color: var(--accent-purple, #B278FF);
}

.tickets-accordion-header i {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s;
}

.tickets-accordion-item.open .tickets-accordion-header i {
  transform: rotate(180deg);
}

.tickets-accordion-body {
  display: none;
  padding: 0.25rem 0 0.5rem 0.75rem;
}

.tickets-accordion-item.open .tickets-accordion-body {
  display: block;
}

.tickets-accordion-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: color 0.15s;
}

.tickets-accordion-option:hover {
  color: var(--accent-purple, #B278FF);
}

.tickets-accordion-option input {
  accent-color: var(--accent-purple, #B278FF);
}

/* ---- Footer ---- */
.tickets-filters-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tickets-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.tickets-checkbox input {
  accent-color: var(--accent-purple, #B278FF);
}

/* ---- Event-Card Preis ---- */
.t-event-card__price {
  font-size: 0.8rem;
  color: var(--accent-purple, #B278FF);
  margin-top: 0.35rem;
}
