/* =========================================================
   File: tixpick-featured-flexgrid.css
   TIXpick.com Featured TicketNetwork Flex Grid
========================================================= */

:root {
  --tp-grid-navy: #243346;
  --tp-grid-orange: #f58220;
  --tp-grid-blue: #0099ff;
  --tp-grid-white: #ffffff;
  --tp-grid-light: #f4f6f8;
  --tp-grid-border: #d8dee5;
  --tp-grid-text: #1e2933;
  --tp-grid-muted: #5f6b76;
  --tp-grid-radius: 12px;
  --tp-grid-shadow: 0 6px 18px rgba(36, 51, 70, 0.12);
}

/* =========================================================
   OUTER SECTION
========================================================= */

.tp-featured-grid-section {
  width: 100%;
  padding: 36px 16px;
  background: var(--tp-grid-light);
  box-sizing: border-box;
}

.tp-featured-grid-wrap {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.tp-featured-grid-header {
  margin: 0 0 24px;
  text-align: center;
}

.tp-featured-grid-title {
  margin: 0;
  color: var(--tp-grid-navy);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.tp-featured-grid-subtitle {
  max-width: 760px;
  margin: 10px auto 0;
  color: var(--tp-grid-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* =========================================================
   FOUR-COLUMN FLEX GRID
   16 cards = 4 columns x 4 rows on desktop
========================================================= */

.tp-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* =========================================================
   GRID CELL
========================================================= */

.tp-feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--tp-grid-border);
  border-radius: var(--tp-grid-radius);
  background: var(--tp-grid-white);
  box-shadow: var(--tp-grid-shadow);
}

.tp-feature-card-header {
  padding: 14px 16px;
  border-bottom: 4px solid var(--tp-grid-orange);
  background: var(--tp-grid-navy);
}

.tp-feature-card-title {
  margin: 0;
  color: var(--tp-grid-white);
  font-size: 1.05rem;
  line-height: 1.3;
  text-align: center;
}

.tp-ticketnetwork-slot {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  padding: 14px;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--tp-grid-white);
}

/* Keeps common TicketNetwork output contained inside each card. */
.tp-ticketnetwork-slot iframe,
.tp-ticketnetwork-slot img,
.tp-ticketnetwork-slot table,
.tp-ticketnetwork-slot video,
.tp-ticketnetwork-slot object,
.tp-ticketnetwork-slot embed {
  max-width: 100% !important;
}

.tp-ticketnetwork-slot iframe {
  display: block;
  width: 100% !important;
  border: 0;
}

.tp-ticketnetwork-slot img {
  height: auto;
}

.tp-ticketnetwork-slot table {
  width: 100% !important;
  table-layout: fixed;
}

.tp-ticketnetwork-slot a {
  overflow-wrap: anywhere;
}

.tp-ticketnetwork-placeholder {
  display: grid;
  flex: 1 1 auto;
  place-items: center;
  min-height: 230px;
  margin: 0;
  padding: 18px;
  border: 2px dashed var(--tp-grid-border);
  border-radius: 8px;
  color: var(--tp-grid-muted);
  font-size: 0.94rem;
  line-height: 1.45;
  text-align: center;
  box-sizing: border-box;
}

/* Optional styling for links or buttons generated inside the widget. */
.tp-ticketnetwork-slot a:hover,
.tp-ticketnetwork-slot a:focus-visible {
  color: var(--tp-grid-blue);
}

/* =========================================================
   TABLET / IPHONE LANDSCAPE
   Two cells across
========================================================= */

@media (max-width: 960px) {
  .tp-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 950px) and (orientation: landscape) {
  .tp-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   IPHONE PORTRAIT
   One cell across
========================================================= */

@media (max-width: 600px) {
  .tp-featured-grid-section {
    padding: 26px 12px;
  }

  .tp-featured-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .tp-feature-card {
    min-height: 280px;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  .tp-featured-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .tp-feature-card,
  .tp-ticketnetwork-slot a {
    scroll-behavior: auto;
    transition: none;
  }
}

/* =========================================================
   FEATURED CARD IMAGE
========================================================= */

.tp-feature-image-wrap {
  width: 100%;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 8px;
  background: #eef1f4;
}

.tp-feature-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

/* =========================================================
   VIEW TICKETS BUTTON
========================================================= */

.tp-view-tickets-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 150px;
  margin: auto auto 0;
  padding: 12px 22px;
  border: 2px solid #0077cc;
  border-radius: 7px;
  background-color: #0099ff;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.tp-view-tickets-btn:hover {
  border-color: #005fa3;
  background-color: #0077cc;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.tp-view-tickets-btn:focus-visible {
  outline: 3px solid rgba(0, 153, 255, 0.35);
  outline-offset: 3px;
}

.tp-view-tickets-btn:active {
  transform: translateY(0);
}