/* Eventrill — Houston browse page (gradient theme)
   Fluid layout: no media queries needed, everything scales with clamp() + auto-fill grids. */

:root {
  --ev-bg: #F9F8F6;
  --ev-surface: #FFFFFF;
  --ev-border: #E7E5E0;
  --ev-border-soft: #ECEAE5;
  --ev-ink: #151515;
  --ev-ink-muted: #77786F;
  --ev-ink-subtle: #8B8B86;
  --ev-body: #5B5C56;
  --ev-accent: #2457E6;
  --ev-primary: var(--ev-accent);
  --ev-primary-hover: #1B46C2;
  --ev-cta: #F4400F;
  --ev-hero: linear-gradient(120deg, #B9C9FF 0%, #C8E4F2 50%, #BDEBDD 100%);
  --ev-pad-x: clamp(16px, 4vw, 40px);
  --ev-radius: 10px;
  --ev-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ev-bg);
  font-family: var(--ev-font);
  color: var(--ev-ink);
}

a { color: var(--ev-accent); text-decoration: none; }
a:hover { color: var(--ev-primary-hover); }

/* Site chrome (header/hero/footer) runs edge-to-edge; .ev-container centers
   each section's actual content to the old fixed shell width. */
.ev-page { display: flex; justify-content: center; min-height: 100vh; padding: 0; }

.ev-shell { display: flex; flex-direction: column; width: 100%; background: var(--ev-bg); }

/* flex-grow only takes effect where this is a direct child of .ev-shell (the
   page's main-content wrapper) - nested uses (inside header/hero/footer)
   aren't flex items there, so this is safe to apply everywhere. It pushes
   .ev-footer to the bottom of the viewport on short pages. */
.ev-container { width: min(1440px, 96vw); margin: 0 auto; flex-grow: 1; }

/* Header */
.ev-header { background: var(--ev-surface); border-bottom: 1px solid var(--ev-border-soft); }
.ev-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 80px;
  padding: 18px var(--ev-pad-x);
  box-sizing: border-box;
}
.ev-logo { height: 22px; display: block; }
.ev-header-actions { display: flex; align-items: center; gap: 20px; }
.ev-search-icon-btn { display: none; }
.ev-nav { display: flex; align-items: center; gap: 28px; }
.ev-nav-link { font-size: 14px; font-weight: 700; color: var(--ev-accent); }
.ev-nav-link-icon { display: none; }

/* Hero */
.ev-hero { background: var(--ev-hero); padding: clamp(32px, 6vw, 56px) 0 clamp(28px, 4vw, 40px); }
.ev-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.4vw, 22px);
  padding: 0 var(--ev-pad-x);
  box-sizing: border-box;
}
.ev-hero-title {
  margin: 0;
  font-size: clamp(24px, 4.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.6px;
  text-align: center;
  text-wrap: balance;
}
.ev-hero-sub {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 17px);
  color: #3A3A38;
  text-align: center;
  text-wrap: pretty;
}

/* Search */
.ev-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: min(640px, 100%);
  padding: 6px;
  background: var(--ev-surface);
  border: 1px solid #DCDAD3;
  border-radius: 11px;
}
.ev-search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 170px;
  min-width: 0;
  padding: 8px 12px;
}
.ev-search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--ev-ink);
}
.ev-search-field input::placeholder { color: var(--ev-ink-subtle); }
.ev-search-btn {
  flex: 0 1 auto;
  padding: 10px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--ev-primary);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ev-search-btn:hover { background: var(--ev-primary-hover); }

/* Category chips - one row always, scrolls horizontally past the viewport
   instead of wrapping; max-width keeps a few chips from stretching edge to
   edge on wide screens. */
.ev-chips-bar { display: flex; justify-content: center; padding: 30px var(--ev-pad-x) 0; }
.ev-chips {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  justify-content: safe center;
  gap: 10px;
  width: 100%;
  max-width: 1020px;
  padding: 4px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
}
.ev-chips::-webkit-scrollbar { display: none; }
.ev-chips.ev-chips-dragging { cursor: grabbing; user-select: none; }
.ev-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid #E4E2DD;
  background: var(--ev-surface);
  color: #3A3A38;
}
.ev-chip[aria-selected="true"] {
  border-color: var(--ev-accent);
  background: var(--ev-accent);
  color: #fff;
}

/* Sections */
.ev-section { padding: clamp(22px, 4vw, 32px) var(--ev-pad-x) clamp(28px, 5vw, 48px); }
.ev-section:first-child { padding-top: clamp(28px, 5vw, 44px); }
.ev-section-title { margin: 0 0 18px; font-size: 20px; font-weight: 700; }
.ev-section-sub { margin: -10px 0 18px; font-size: 14px; color: #77786F; }

/* Hand-picked happenings */
.ev-curated-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 20vw, 300px), 1fr)); gap: clamp(12px, 1.6vw, 16px); }
.ev-curated-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  overflow: hidden;
  background: var(--ev-surface);
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  width: 100%;
}
.ev-curated-card:hover { border-color: #D6D3CB; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ev-curated-media { display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.ev-curated-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-curated-body { padding: 13px 14px; display: flex; flex-direction: column; gap: 4px; }
.ev-curated-title { font-size: clamp(13px, 1.4vw, 15px); font-weight: 700; line-height: 1.25; }
.ev-curated-date { font-size: 12px; font-weight: 600; color: var(--ev-ink-muted); }

.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(148px, 17vw, 220px), 1fr));
  align-content: start;
  gap: clamp(12px, 1.6vw, 18px);
}

/* Card */
.ev-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  overflow: hidden;
  background: var(--ev-surface);
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-family: inherit;
}
.ev-card:hover { border-color: #D6D3CB; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ev-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.ev-card-body > span, .ev-card-body { display: block; }
.ev-card-body > .ev-card-foot { display: flex; align-items: center; justify-content: space-between; }
.ev-card-body > .ev-deal-foot { display: flex; align-items: baseline; gap: 8px; }
.ev-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-card-body { padding: 13px 14px; }
.ev-card-cat {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ev-accent);
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ev-card-title { font-size: 14.5px; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.ev-card-meta { font-size: 12px; color: var(--ev-ink-muted); margin-bottom: 8px; }
.ev-card-was { font-size: 12px; color: #B0AEA6; text-decoration: line-through; }
.ev-card-when { font-size: 12px; font-weight: 600; }
.ev-card-price { font-size: 12.5px; font-weight: 700; }
.ev-deal-price { font-size: 15px; font-weight: 700; }

.ev-footer {
  background: var(--ev-surface);
  border-top: 1px solid var(--ev-border-soft);
  font-size: 12px;
  color: var(--ev-ink-subtle);
}
.ev-footer .ev-container { padding: 22px var(--ev-pad-x); box-sizing: border-box; }


/* ===========================================================================
   Search results page (search.html)
   =========================================================================== */

.ev-header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 320px;
  min-width: 0;
  max-width: 520px;
  height: 44px;
  padding: 0 16px;
  box-sizing: border-box;
  background: var(--ev-surface);
  border: 1px solid #DCDAD3;
  border-radius: 10px;
}
.ev-header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--ev-ink);
}
.ev-header-search input::placeholder { color: var(--ev-ink-subtle); }
.ev-q::-webkit-search-cancel-button,
.ev-q::-webkit-search-decoration,
.ev-search-field input::-webkit-search-cancel-button,
.ev-search-field input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.ev-header-search-mobile { display: none; max-width: none; }

.ev-search-desktop { width: 100%; max-width: none; box-sizing: border-box; }
.ev-search-clear {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #E4E2DD;
  color: #6B6A64;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
.ev-search-clear[hidden] { display: none; }

.ev-results-head {
  background: var(--ev-hero);
  border-bottom: 1px solid var(--ev-border-soft);
}
.ev-results-head .ev-container { padding: clamp(20px, 3.4vw, 30px) var(--ev-pad-x); box-sizing: border-box; }
.ev-results-title {
  margin: 0 0 5px;
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: -0.4px;
}
.ev-results-sub { margin: 0; font-size: 13.5px; color: var(--ev-body); }

/* Grid (not flex) so the DOM order can put .ev-results-bar before .ev-filters
   before .ev-result-list - what the mobile single-column fallback needs
   (button, then its dropdown panel, then results) - while still placing
   .ev-filters as a left rail spanning both rows on desktop. Visual position
   here doesn't depend on source order the way flex row-wrap would. */
.ev-results-body {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "filters search" "filters bar" "filters list";
}

.ev-search-row { grid-area: search; padding: 28px var(--ev-pad-x) 0; }

.ev-filters-toggle { display: none; }

.ev-filters {
  grid-area: filters;
  border-right: 1px solid var(--ev-border-soft);
  padding: 28px clamp(16px, 2.4vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.ev-filter-group { display: flex; flex-direction: column; }
.ev-filter-title { margin: 0 0 12px; font-size: 13px; font-weight: 700; }
.ev-filter-group > div { display: flex; flex-direction: column; gap: 4px; }

.ev-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  color: #3A3A38;
  text-align: left;
  cursor: pointer;
}
.ev-check-box {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1.5px solid #C9C7C1;
  background: transparent;
}
.ev-check[aria-pressed="true"] .ev-check-box {
  border-color: var(--ev-accent);
  background: var(--ev-accent);
}

.ev-results-bar {
  grid-area: bar;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px var(--ev-pad-x) 0;
}
.ev-sort {
  padding: 8px 12px;
  border: 1px solid #E4E2DD;
  border-radius: 7px;
  background: var(--ev-surface);
  font-family: inherit;
  font-size: 13px;
  color: #3A3A38;
  cursor: pointer;
}

.ev-result-list {
  grid-area: list;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px var(--ev-pad-x) 28px;
  min-width: 0;
}
/* Search results reuse the homepage card grid (.ev-grid) instead of the
   row layout above - #ev-list just needs the same grid-area placement. */
#ev-list { grid-area: list; padding: 18px var(--ev-pad-x) 28px; min-width: 0; }
.ev-result {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.6vw, 18px);
  padding: 14px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: var(--ev-surface);
  cursor: pointer;
}
.ev-result:hover { border-color: #D6D3CB; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ev-result-media {
  flex: 0 0 clamp(110px, 14vw, 150px);
  aspect-ratio: 3 / 2;
  border-radius: 7px;
  overflow: hidden;
}
.ev-result-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-result-info {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.ev-result-title { margin: 0; font-size: clamp(14.5px, 1.6vw, 16px); font-weight: 700; line-height: 1.25; }
.ev-result-when { font-size: 13px; font-weight: 600; }
.ev-result-act {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}
.ev-result-price { font-size: 14px; font-weight: 700; }
.ev-tickets {
  padding: 8px 16px;
  border: 0;
  border-radius: 7px;
  background: var(--ev-primary);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.ev-tickets:hover { background: var(--ev-primary-hover); }

.ev-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 40px 0;
  font-size: 14px;
  color: var(--ev-ink-muted);
  text-align: center;
  text-wrap: pretty;
}

/* ===========================================================================
   Find My Tickets (mytickets.html)
   =========================================================================== */

.ev-mt-panel { padding: clamp(22px, 4vw, 32px) var(--ev-pad-x) clamp(28px, 5vw, 48px); }

.ev-mt-login-card {
  width: min(380px, 100%);
  margin: clamp(8px, 2vw, 24px) auto 0;
  padding: clamp(24px, 4vw, 32px);
  background: var(--ev-surface);
  border: 1px solid var(--ev-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05), 0 10px 30px rgba(22, 24, 29, .05);
}
.ev-mt-login-title { margin: 0 0 22px; font-size: 18px; font-weight: 700; text-align: center; }
.ev-mt-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.ev-mt-field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ev-ink); }
.ev-mt-field input {
  padding: 11px 14px;
  border: 1px solid var(--ev-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ev-ink);
  transition: border-color .15s, box-shadow .15s;
}
.ev-mt-field input:focus {
  outline: none;
  border-color: var(--ev-primary);
  box-shadow: 0 0 0 3px rgba(36, 87, 230, .15);
}
.ev-mt-form .ev-search-btn { width: 100%; padding: 12px 22px; margin-top: 4px; }
.ev-mt-error { margin: 0; font-size: 13px; color: var(--ev-cta); min-height: 1em; }

.ev-mt-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}

.ev-mt-ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  gap: 16px;
  margin-top: 18px;
}
.ev-mt-ticket { text-align: center; }
.ev-mt-ticket img { width: 100%; border-radius: var(--ev-radius); border: 1px solid var(--ev-border); }
.ev-mt-ticket-img { cursor: zoom-in; }

.ev-mt-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(22, 24, 29, .82);
  cursor: zoom-out;
  z-index: 1000;
}
.ev-mt-lightbox[hidden] { display: none; }
.ev-mt-lightbox img {
  max-width: min(480px, 100%);
  max-height: 90vh;
  border-radius: var(--ev-radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

.ev-mt-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 0;
  font-size: 14px;
  color: var(--ev-ink-muted);
}
.ev-mt-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--ev-border);
  border-top-color: var(--ev-accent);
  border-radius: 50%;
  animation: ev-mt-spin .7s linear infinite;
}
@keyframes ev-mt-spin { to { transform: rotate(360deg); } }

/* ===========================================================================
   Narrow screens - the header and the search-results two-column layout
   assume enough width to fit their pieces on one row; below that they need
   to actually stack instead of getting squeezed/clipped by fixed sizes.
   =========================================================================== */
@media (max-width: 640px) {
  .ev-chips { width: calc(100% - 24px); }

  .ev-header-inner { flex-wrap: wrap; min-height: 0; padding: 18px var(--ev-pad-x); }
  .ev-logo { height: 18px; }
  .ev-header-search { display: none; }
  .ev-search-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #3A3A38;
  }
  .ev-nav-link-text { display: none; }
  .ev-nav-link-icon { display: block; }
  .ev-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #3A3A38;
  }
  .ev-header-search-mobile {
    display: flex;
    flex: 0 0 auto;
    width: calc(100% - 2 * var(--ev-pad-x));
    margin: 14px var(--ev-pad-x);
    height: 48px;
    padding: 0 16px;
    border-radius: 11px;
  }
  .ev-header-search-mobile input { font-size: 15px; }
  .ev-search-row { display: none; }
  .ev-search-desktop { display: none; }

  .ev-mt-ticket-grid { grid-template-columns: 1fr; }

  .ev-grid { grid-template-columns: 1fr; }

  .ev-results-body { display: flex; flex-direction: column; width: 100%; }

  .ev-results-bar { justify-content: space-between; width: 100%; box-sizing: border-box; padding: 16px var(--ev-pad-x) 0; }

  .ev-filters-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #E4E2DD;
    border-radius: 7px;
    background: var(--ev-surface);
    font-family: inherit;
    font-size: 13px;
    font-weight: 400;
    color: #3A3A38;
    cursor: pointer;
  }
  .ev-filters-toggle[aria-expanded="true"] { border-color: var(--ev-accent); color: var(--ev-accent); }

  .ev-filters {
    display: none;
    border-right: 0;
    border-bottom: 1px solid var(--ev-border-soft);
    padding: 16px var(--ev-pad-x);
    width: 100%;
    box-sizing: border-box;
  }
  .ev-filters.ev-filters-open { display: flex; }

  .ev-result-list, #ev-list { padding: 12px var(--ev-pad-x) 20px; width: 100%; box-sizing: border-box; }

  .ev-result-act {
    flex: 1 1 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
