.tix-event-search {
  --tix-accent: #f05537;
  --tix-accent-dark: #d94625;
  --tix-accent-soft: rgba(240, 85, 55, 0.12);
  --tix-text: #14162b;
  --tix-muted: #6b6f8d;
  --tix-border: #eadfdc;
  --tix-surface: #ffffff;
  --tix-bg: #f8f7f5;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 56px;
  color: var(--tix-text);
}

.tix-mobile-search {
  position: relative;
  display: none;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.tix-mobile-search__toggle,
.tix-mobile-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tix-accent), var(--tix-accent-dark)) !important;
  color: #fff !important;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(240, 85, 55, 0.2);
  padding: 0;
  opacity: 1 !important;
}

.tix-mobile-search__icon {
  font-size: 18px;
  line-height: 1;
  color: currentColor !important;
  display: inline-block;
  opacity: 1 !important;
}

.tix-mobile-search__form {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid rgba(240, 85, 55, 0.24);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(20, 22, 43, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1005;
}

.tix-mobile-search.tix-mobile-search--open .tix-mobile-search__form {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tix-mobile-search__input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(240, 85, 55, 0.2);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: var(--tix-text);
  font-size: 16px;
}

.tix-mobile-search__input:focus {
  outline: none;
  border-color: var(--tix-accent);
}

.tix-mobile-search__toggle:hover,
.tix-mobile-search__toggle:focus-visible,
.tix-mobile-search__submit:hover,
.tix-mobile-search__submit:focus-visible {
  background: linear-gradient(135deg, var(--tix-accent-dark), var(--tix-accent)) !important;
  color: #fff !important;
  opacity: 1 !important;
  outline: none;
}

.tix-event-search__mobile-backdrop,
.tix-event-search__mobile-toggle,
.tix-event-search__close {
  display: none;
}

body.tix-event-search--drawer-open {
  overflow: hidden;
}

.tix-event-search__apply,
.tix-event-search__empty a,
.tix-event-card__cta {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tix-accent), var(--tix-accent-dark));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.tix-event-search__layout {
  display: grid;
  width: 100%;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.tix-event-search__layout > .tix-event-search__results {
  width: 100%;
  min-width: 0;
}

.tix-event-search__results {
  min-width: 0;
  width: 100% !important;
  justify-self: stretch;
  align-self: stretch;
  overflow: visible;
  box-sizing: border-box;
}

.tix-event-search__sidebar {
  position: sticky;
  top: 24px;
  background: var(--tix-surface);
  border: 1px solid var(--tix-border);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 18px 50px rgba(20, 22, 43, 0.06);
}

.tix-event-search__sidebar-head,
.tix-event-search__results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.tix-event-search__sidebar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tix-event-search__sidebar-head h3,
.tix-event-search__results-head h2,
.tix-event-search__filter-group h4,
.tix-event-search__empty h3 {
  margin: 0;
}

.tix-event-search__sidebar-head a,
.tix-event-search__clear {
  color: var(--tix-accent);
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.tix-event-search__sidebar-head a:hover,
.tix-event-search__sidebar-head a:focus-visible,
.tix-event-search__clear:hover,
.tix-event-search__clear:focus-visible {
  color: var(--tix-accent-dark);
  background: transparent;
  text-decoration: none;
  opacity: 1;
  outline: none;
}

.tix-event-search__filter-group {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid #f0e8e6;
}

.tix-event-search__filter-group:first-of-type {
  padding-top: 18px;
  margin-top: 18px;
}

.tix-event-search__filter-group h4 {
  margin-bottom: 14px;
  font-size: 20px;
}

.tix-event-search__choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--tix-text);
  font-size: 16px;
  cursor: pointer;
}

.tix-event-search__choice input {
  width: 16px;
  height: 16px;
  accent-color: var(--tix-accent);
}

.tix-event-search__range {
  position: relative;
  padding-top: 4px;
}

.tix-event-search__range-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: #efd9d2;
  margin: 16px 0 20px;
  pointer-events: none;
}

.tix-event-search__range-track span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tix-accent), var(--tix-accent-dark));
  transition: left 0.1s ease-out, right 0.1s ease-out;
}

.tix-event-search__range-slider {
  position: absolute;
  left: 0;
  top: 1px;
  width: 100%;
  height: 22px;
  margin: 0;
  pointer-events: auto;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  z-index: 2;
}

.tix-event-search__range-slider::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
}

.tix-event-search__range-slider::-moz-range-track {
  height: 6px;
  background: transparent;
}

.tix-event-search__range-slider::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--tix-accent);
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 22, 43, 0.16);
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.tix-event-search__range-slider::-webkit-slider-thumb:active {
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(20, 22, 43, 0.24);
}

.tix-event-search__range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--tix-accent);
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(20, 22, 43, 0.16);
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.tix-event-search__range-slider::-moz-range-thumb:active {
  transform: scale(1.1);
  box-shadow: 0 12px 24px rgba(20, 22, 43, 0.24);
}

.tix-event-search__price-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.tix-event-search__price-inputs label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--tix-border);
  border-radius: 14px;
  padding: 0 14px;
  height: 48px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(20, 22, 43, 0.04);
}

.tix-event-search__price-inputs label > span,
.tix-event-search__price-dash {
  color: var(--tix-muted);
  font-size: 14px;
  line-height: 1;
}

.tix-event-search__price-input {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--tix-text) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  min-width: 0;
  text-align: center;
  opacity: 1;
  -webkit-text-fill-color: var(--tix-text);
}

.tix-event-search__price-input:focus {
  outline: none;
}

.tix-event-search__price-input::-webkit-outer-spin-button,
.tix-event-search__price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tix-event-search__price-input[type="number"] {
  -moz-appearance: textfield;
}

.tix-event-search__apply,
.tix-event-search__empty a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  box-shadow: 0 14px 32px rgba(240, 85, 55, 0.24);
}

.tix-event-search__apply {
  width: 100%;
  font-size: 16px;
}

.tix-event-search__results-head {
  margin-bottom: 24px;
}

.tix-event-search__results-head h2 {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.tix-event-search__query {
  color: var(--tix-accent);
}

.tix-event-search__results-head p {
  margin: 10px 0 0;
  color: var(--tix-muted);
  font-size: 20px;
}

.tix-event-search__mobile-toggle {
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(240, 85, 55, 0.12);
  color: var(--tix-accent);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.tix-event-search__mobile-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.tix-event-search__mobile-toggle:hover,
.tix-event-search__mobile-toggle:focus-visible {
  background: rgba(240, 85, 55, 0.18);
  color: var(--tix-accent-dark);
  opacity: 1;
  outline: none;
}

.tix-event-search__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.tix-event-search__grid--empty {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.tix-event-card {
  background: var(--tix-surface);
  border: 1px solid #efe8e4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(20, 22, 43, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tix-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(20, 22, 43, 0.1);
}

.tix-event-card__media {
  position: relative;
  display: block;
  aspect-ratio: 222 / 378;
  overflow: hidden;
  background: #f3ebe8;
}

.tix-event-card__media img,
.tix-event-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tix-event-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-weight: 800;
  text-align: center;
  color: var(--tix-text);
}

.tix-event-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 22, 43, 0.48);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tix-event-card:hover .tix-event-card__overlay {
  opacity: 1;
}

.tix-event-card__cta {
  padding: 14px 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px rgba(240, 85, 55, 0.28);
}

.tix-event-card__body {
  margin-top: -22px;
  padding: 14px 12px 14px;
  background: var(--tix-surface);
  border-top: 1px solid #eeeef5;
  border-radius: 0 0 18px 18px;
  position: relative;
  z-index: 1;
}

.tix-event-card__body h3 {
  margin: 0 0 12px;
  min-height: 54px;
  font-size: 18px;
  line-height: 1.35;
  text-transform: uppercase;
}

.tix-event-card__body h3 a {
  color: var(--tix-text);
  text-decoration: none;
}

.tix-event-card__date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--tix-accent);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
}

.tix-event-card__date svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.tix-event-search__empty {
  background: var(--tix-surface);
  border: 1px solid var(--tix-border);
  border-radius: 26px;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 42px 34px;
  text-align: left;
  box-shadow: 0 18px 50px rgba(20, 22, 43, 0.05);
  display: block !important;
  box-sizing: border-box;
  justify-self: stretch;
}

.tix-event-search__empty-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 44px;
  color: var(--tix-accent);
  background: var(--tix-accent-soft);
  font-weight: 800;
}

.tix-event-search__empty h3 {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--tix-text);
  text-align: center;
  margin-bottom: 10px;
}

.tix-event-search__empty p,
.tix-event-search__empty ul {
  color: var(--tix-muted);
}

.tix-event-search__empty p {
  font-size: 18px;
  text-align: center;
  margin: 0 0 26px;
}

.tix-event-search__empty strong,
.tix-event-search__empty li::marker {
  color: var(--tix-accent);
}

.tix-event-search__empty-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.tix-event-search__empty ul {
  margin: 0;
  padding-left: 22px;
}

.tix-event-search__empty li {
  margin-bottom: 8px;
}

.tix-event-search__empty li:last-child {
  margin-bottom: 0;
}

.tix-event-search__empty a {
  white-space: nowrap;
  min-width: 188px;
}

@media (max-width: 980px) {
  .tix-event-search {
    padding-top: 0;
  }

  .tix-event-search__layout {
    grid-template-columns: 1fr;
  }

  .tix-event-search__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(360px, 88vw);
    height: 100vh;
    max-height: 100vh;
    border-radius: 0 24px 24px 0;
    padding: 22px 18px 28px;
    overflow-y: auto;
    transform: translateX(-108%);
    transition: transform 0.28s ease;
    z-index: 1002;
  }

  .tix-event-search__layout.tix-event-search__layout--filters-open .tix-event-search__sidebar {
    transform: translateX(0);
  }

  .tix-event-search__mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 22, 43, 0.38);
    backdrop-filter: blur(4px);
    z-index: 1001;
  }

  .tix-event-search__layout.tix-event-search__layout--filters-open .tix-event-search__mobile-backdrop {
    display: block;
  }

  .tix-event-search__mobile-toggle,
  .tix-event-search__close {
    display: inline-flex;
  }

  .tix-event-search__close {
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0;
    min-width: 58px;
    height: 36px;
    background: rgba(240, 85, 55, 0.12);
    color: var(--tix-accent);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  .tix-event-search__results-head {
    align-items: center;
    margin-bottom: 16px;
  }

  .tix-event-search__results-head h2 {
    font-size: 22px;
  }

  .tix-event-search__results-head p {
    font-size: 16px;
  }

  .tix-event-search__clear {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .tix-mobile-search {
    display: inline-flex;
  }

  .tix-event-search {
    padding-top: 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  .tix-event-search__results {
    margin-top: 0;
  }

  .tix-event-search__results-head {
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-top: 0;
    margin-bottom: 12px;
  }

  .tix-event-search__results-head > div {
    min-width: 0;
  }

  .tix-event-search__mobile-toggle {
    padding: 11px 14px;
    font-size: 15px;
    flex-shrink: 0;
  }

  .tix-event-search__price-inputs {
    grid-template-columns: 1fr;
  }

  .tix-event-search__price-dash {
    display: none;
  }

  .tix-event-search__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    justify-content: center;
  }

  .tix-event-search__grid--single {
    grid-template-columns: minmax(0, 220px);
    justify-content: center;
  }

  .tix-event-card {
    width: 100%;
    max-width: none;
  }

  .tix-event-card__overlay {
    align-items: flex-end;
    justify-content: center;
    padding: 0 10px 12px;
  }

  .tix-event-card__cta {
    width: 100%;
    max-width: 160px;
    padding: 12px 14px;
    text-align: center;
    margin: 0 auto;
  }

  .tix-event-card__body {
    padding: 12px 10px 12px;
  }

  .tix-event-card__body h3 {
    min-height: 44px;
    font-size: 16px;
  }

  .tix-event-search__empty {
    padding: 30px 20px;
  }

  .tix-event-search__empty h3 {
    font-size: 32px;
  }

  .tix-event-search__empty p {
    font-size: 16px;
  }

  .tix-event-search__empty a {
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .tix-event-search__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .tix-event-search__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
