@charset "utf-8";

/* ==========================================
   File: /css/TixBroadway-Carousel.css
   Purpose: TixBroadway carousel styles

   Includes:
   - tbU carousel wrapper
   - Header/title/subtitle
   - Dots/pagination
   - Horizontal scroll viewport
   - Card layout
   - Image/media handling
   - Card body/title/description/button
   - Responsive card sizing
   - Search widget wrapper CSS

   Notes:
   - All carousel-specific CSS belongs here.
   - General site layout belongs in TixBroadway.css.
   - Compatibility is included for both:
       .tbU-cardTitle
       .tbU-card-title
   - Compatibility is included for both:
       .tbU-media img
       img.tbU-img placed directly inside .tbU-card
========================================== */


/* ==========================================
   TIXBROADWAY CAROUSEL BASE
========================================== */
.tbU {
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
  padding: 12px;
  font-family: system-ui, Arial, Helvetica, sans-serif;
  color: #000;
}

.tbU * {
  box-sizing: border-box;
}


/* ==========================================
   CAROUSEL HEADER
========================================== */
.tbU-header {
  display: block;
  text-align: center;
  margin: 0 0 10px 0;
}

.tbU-title {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
}

.tbU-subtitle {
  margin: 0;
  font-size: 12px;
  color: #333;
}


/* ==========================================
   CAROUSEL CONTROLS / DOTS
========================================== */
.tbU-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
  width: 100%;
}

.tbU-arrow {
  display: none !important;
}

.tbU-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  flex-wrap: wrap;
}

.tbU-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tbU-dot[aria-selected="true"] {
  background: #fda83c;
  border-color: #fda83c;
}


/* ==========================================
   VIEWPORT / TRACK
========================================== */
.tbU-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 4px;
  border-radius: 8px;
  outline: none;
}

.tbU-track {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
}


/* ==========================================
   CARDS
========================================== */
.tbU-card {
  flex: 0 0 260px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: visible;
  box-shadow: 0 8px 5px #999;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
}


/* ==========================================
   CARD MEDIA / IMAGES
========================================== */
.tbU-media {
  height: 190px;
  background: #ccc;
  overflow: hidden;
  position: relative;
  border-radius: 10px 10px 0 0;
  flex: 0 0 auto;
}

.tbU-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border: 0;
  display: block !important;
}

/* Compatibility for current carousel HTML using direct image placement */
.tbU-card > img.tbU-img {
  width: 100% !important;
  height: 190px !important;
  object-fit: cover !important;
  display: block !important;
  border: 0;
  border-radius: 10px 10px 0 0;
  flex: 0 0 auto;
}


/* ==========================================
   CARD BODY
========================================== */
.tbU-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
}

.tbU-cardTitle,
.tbU-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  line-height: 1.15;
}

.tbU-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
  color: #333;
  display: block;
  overflow: visible;
  min-height: 0;
  max-height: none;
}


/* ==========================================
   CARD BUTTONS
========================================== */
.tbU-btn {
  margin-top: auto;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 50px;
  background: #0099ff;
  color: #fff !important;
  box-shadow: 0 6px 4px rgba(0,0,0,.25);
  border: 1px solid rgba(0,0,0,.10);
  white-space: normal;
}

.tbU-btn:hover {
  background: #fda83c;
  color: #000 !important;
}

.tbU-btn:focus {
  outline: 2px solid #0099ff;
  outline-offset: 2px;
}


/* ==========================================
   SCROLL SNAP
========================================== */
@supports (scroll-snap-type: x mandatory) {
  .tbU-viewport {
    scroll-snap-type: x mandatory;
  }

  .tbU-card {
    scroll-snap-align: start;
  }
}


/* ==========================================
   RESPONSIVE CAROUSEL SIZING
========================================== */
@media (min-width: 768px) {
  .tbU-card {
    flex-basis: 300px;
  }

  .tbU-media {
    height: 215px;
  }

  .tbU-card > img.tbU-img {
    height: 215px !important;
  }
}

@media (max-width: 420px) {
  .tbU {
    padding: 10px;
  }

  .tbU-card {
    flex-basis: 240px;
  }

  .tbU-media {
    height: 170px;
  }

  .tbU-card > img.tbU-img {
    height: 170px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tbU-viewport {
    scroll-behavior: auto;
  }
}


/* =========================================
   SEARCH WIDGET WRAPPER CSS
========================================== */
.tb-search-wrap {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 16px;

  border-radius: 24px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.10),
      rgba(255,255,255,.04)
    );

  border: 1px solid rgba(255,255,255,.18);

  box-shadow:
    0 10px 28px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.12);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tb-search-wrap .tp-search-glass {
  border-radius: 18px;
}

@media (max-width: 736px) {
  .tb-search-wrap {
    width: min(100%, calc(100vw - 20px));
    padding: 12px;
    border-radius: 20px;
  }
}

