/* ============================================
   TICKETS OPTIONS (matches provided design)
   ============================================ */

.tickets-hero {
  padding: 0rem 2rem 1rem 1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 100px;
}

.tickets-hero h1 {
  margin: 0 0 0.75rem;
  font-size: 2.2rem;
  font-weight: 800;
  color: #000;
}

.tickets-hero p {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #444;
}

/* Grid */
.tickets-grid {
  padding: 1.5rem 1rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* 3-up on desktop/tablet */
@media (min-width: 800px) {
  .tickets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

/* =========================
   CARD (equal height + aligned top sections)
   ========================= */

.ticket-card {
  display: grid;
  grid-template-rows: var(--ticket-top-h, 260px) 1fr; /* top fixed, bottom fills */
  border: 1px solid #000;
  border-radius: 30px;
  overflow: hidden;
  min-width: 0;
}

/* TOP: use grid so button is ALWAYS same Y-position */
.ticket-top {
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-rows: auto 1fr auto; /* content, spacer, button row */
  gap: 0.75rem;
  align-items: start;
  min-height: 0;
}

/* Bottom fills remaining space */
.ticket-bottom {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  overflow: auto; /* long descriptions scroll inside bottom */
}

/* Alternating colors (currently all white) */
.ticket-card:nth-child(odd) .ticket-top,
.ticket-card:nth-child(odd) .ticket-bottom,
.ticket-card:nth-child(even) .ticket-top,
.ticket-card:nth-child(even) .ticket-bottom {
  background: #ffffff;
}

/* Price row */
.ticket-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0; /* IMPORTANT: prevents inconsistent vertical push */
}

.ticket-price {
  margin: 0 auto;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Center title + subheading */
.ticket-title {
  margin: 0.75rem 0 0.25rem; /* tightened for consistent alignment */
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.25;
}

.ticket-subheading {
  margin: 0 0 0.25rem; /* tightened for consistent alignment */
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.35;
  opacity: 0.95;
}

/* Icon */
.ticket-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  padding-bottom: 20px;
  object-fit: contain;
  opacity: 0.95;
}

/* ===== Button (your template uses .site-btn-white) ===== */
.ticket-top .site-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 82%;
  margin: 0 auto; /* no extra vertical margins */
  padding: 0.5rem 1.1rem;

  background: #fff;
  color: #000;
  text-decoration: none;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1;

  border: 2px solid #000;
  border-radius: 999px;

  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);

  align-self: end; /* pins to bottom of top section */
  white-space: nowrap;
}

.ticket-top .site-btn-white:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

/* Bottom text */
.ticket-bottom-text {
  margin: 0;
  text-align: center;
  font-family: var(--header-font);
  font-size: 1rem;
  line-height: 1.6;
}

/* Empty state */
.tickets-empty {
  text-align: center;
  color: #444;
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem 1rem;
}

/* =========================================================
   MOBILE COMPACT MODE (reduce scrolling)
   ========================================================= */

@media (max-width: 420px) {
  .tickets-hero {
    margin-top: 72px;
    padding: 0 1rem 0.75rem;
  }

  .tickets-hero h1 {
    font-size: 1.65rem;
    margin-bottom: 0.5rem;
  }

  .tickets-hero p {
    font-size: 1.05rem;
    line-height: 1.45;
  }

  .tickets-grid {
    padding: 1rem 0.75rem 2rem;
    gap: 1rem;
  }

  .ticket-card {
    grid-template-rows: auto auto; /* let content size naturally on small */
    border-radius: 22px;
  }

  .ticket-top {
    padding: 0.75rem 1rem;
  }

  .ticket-bottom {
    padding: 1rem 1rem 1.15rem;
  }

  .ticket-price {
    font-size: 2.2rem;
  }

  .ticket-title {
    margin: 0.6rem 0 0.35rem;
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .ticket-subheading {
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .ticket-icon {
    width: 64px;
    height: 64px;
    padding-bottom: 12px;
  }

  .ticket-top .site-btn-white {
    width: 86%;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
  }

  .ticket-bottom-text {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Slightly larger phones */
@media (min-width: 421px) and (max-width: 600px) {
  .tickets-grid {
    gap: 1.25rem;
  }

  .ticket-card {
    grid-template-rows: auto auto;
  }

  .ticket-price {
    font-size: 2.5rem;
  }

  .ticket-icon {
    width: 72px;
    height: 72px;
    padding-bottom: 14px;
  }

  .ticket-top .site-btn-white {
    width: 84%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* =========================================================
   MEDIUM SCREENS: 3 fit + equal height + smaller top text
   ========================================================= */

@media (min-width: 800px) and (max-width: 1050px) {
  .tickets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 1.25rem 0.75rem 2.5rem;
    align-items: stretch;
  }

  .ticket-card {
    height: 540px;          /* overall equal height */
    --ticket-top-h: 235px;  /* top equal height -> button alignment */
  }

  .ticket-price {
    font-size: 2.2rem;
  }

  .ticket-title {
    font-size: 1.1rem;
    line-height: 1.15;
  }

  .ticket-subheading {
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .ticket-top .site-btn-white {
    width: 86%;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
  }

  .ticket-icon {
    width: 70px;
    height: 70px;
    padding-bottom: 12px;
  }

  .ticket-bottom-text {
    font-size: 0.95rem;
    line-height: 1.45;
  }
}

@media (min-width: 1051px) {
  .ticket-card{
    height: 620px;                  /* overall equal height */
    grid-template-rows: 46% 54%;    /* consistent split across the row */
  }

  .ticket-top{
    min-height: 0;
  }

  .ticket-bottom{
    min-height: 0;
    overflow: auto;                 /* long text scrolls in bottom */
  }

  /* Keep button aligned in the top section */
  .ticket-top{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .ticket-top .site-btn-white{
    margin-top: auto;
  }
}