/**
 * Tribe Travel — Front-end Stylesheet
 * Tribester brand: premium, adventurous, Jewish travel
 *
 * @package TribeTravel
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */
:root {
  --tt-primary:        #8475e1;
  --tt-primary-hover:  #7566d4;
  --tt-primary-light:  #a094f7;
  --tt-primary-bg:     #f0eeff;
  --tt-text-heading:   #1a1a1a;
  --tt-text-body:      #333333;
  --tt-text-secondary: #666666;
  --tt-text-light:     #999999;
  --tt-bg:             #f7f8fb;
  --tt-white:          #ffffff;
  --tt-border:         #e8e9f0;
  --tt-success:        #13612e;
  --tt-success-bg:     #e9f7ef;
  --tt-warning:        #b45309;
  --tt-warning-bg:     #fef3c7;
  --tt-danger:         #b82105;
  --tt-danger-bg:      #fef2f2;
  --tt-info:           #1d4ed8;
  --tt-info-bg:        #eff6ff;
  --tt-radius:         12px;
  --tt-radius-sm:      8px;
  --tt-radius-lg:      16px;
  --tt-shadow:         0 2px 12px rgba(0, 0, 0, 0.08);
  --tt-shadow-md:      0 4px 20px rgba(0, 0, 0, 0.10);
  --tt-shadow-hover:   0 8px 30px rgba(0, 0, 0, 0.14);
  --tt-transition:     0.22s ease;
  --tt-font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   Base / Reset (scoped)
   ========================================================================== */
.tribe-travel-single *,
.tribe-travel-archive *,
.tribe-travel-grid *,
.tribe-travel-featured-section *,
.tribe-travel-hero--shortcode * {
  box-sizing: border-box;
}

.tribe-travel-container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Single trip detail page is narrower than the listing
   for comfortable line lengths in the long-form content. */
.single-tribe_trip .tribe-travel-container {
  max-width: 1280px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.tribe-travel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--tt-radius-sm);
  font-family: var(--tt-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color var(--tt-transition), border-color var(--tt-transition), transform var(--tt-transition), box-shadow var(--tt-transition);
}

.tribe-travel-btn--primary {
  background-color: var(--tt-primary);
  color: var(--tt-white);
  border-color: var(--tt-primary);
}

.tribe-travel-btn--primary:hover,
.tribe-travel-btn--primary:focus-visible {
  background-color: var(--tt-primary-hover);
  border-color: var(--tt-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--tt-shadow-md);
  color: var(--tt-white);
  text-decoration: none;
}

.tribe-travel-btn--outline {
  background-color: transparent;
  color: var(--tt-primary);
  border-color: var(--tt-primary);
}

.tribe-travel-btn--outline:hover,
.tribe-travel-btn--outline:focus-visible {
  background-color: var(--tt-primary);
  color: var(--tt-white);
  text-decoration: none;
}

.tribe-travel-btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
}

.tribe-travel-btn--lg {
  padding: 16px 32px;
  font-size: 17px;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.tt-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tt-badge--available {
  background-color: var(--tt-success-bg);
  color: var(--tt-success);
}

.tt-badge--few_spots {
  background-color: var(--tt-warning-bg);
  color: var(--tt-warning);
}

.tt-badge--sold_out {
  background-color: #f1f1f4;
  color: #888;
}

.tt-badge--coming_soon {
  background-color: var(--tt-info-bg);
  color: var(--tt-info);
}

/* Tags */
.tt-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--tt-primary-bg);
  color: var(--tt-primary);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* ==========================================================================
   HERO — Shortcode version
   ========================================================================== */
.tribe-travel-hero--shortcode {
  background: linear-gradient(135deg, var(--tt-primary) 0%, #5e4fc8 100%);
  padding: 72px 24px;
  text-align: center;
  border-radius: var(--tt-radius);
  margin-block: 32px;
}

.tribe-travel-hero__inner {
  max-width: 680px;
  margin-inline: auto;
}

.tribe-travel-hero__heading {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--tt-white);
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tribe-travel-hero__subheading {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
}

.tribe-travel-hero__cta {
  font-size: 16px;
  padding: 14px 32px;
  background: var(--tt-white);
  color: var(--tt-primary);
  border-color: var(--tt-white);
}

.tribe-travel-hero__cta:hover {
  background: rgba(255,255,255,0.92);
  color: var(--tt-primary-hover);
  border-color: rgba(255,255,255,0.92);
}

/* ==========================================================================
   ARCHIVE HERO
   ========================================================================== */
.tt-archive-hero {
  background: linear-gradient(135deg, #2d1b6e 0%, var(--tt-primary) 60%, #a66fdb 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tt-archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.tt-archive-hero__inner {
  position: relative;
  z-index: 1;
}

.tt-archive-hero__heading {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--tt-white);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tt-archive-hero__subheading {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
  max-width: 600px;
  margin-inline: auto;
}

.tt-archive-hero__stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.tt-stat {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 20px;
  border-radius: 32px;
  color: var(--tt-white);
  font-size: 14px;
  font-weight: 500;
}

.tt-stat strong {
  font-weight: 800;
  margin-right: 4px;
}

/* ==========================================================================
   ARCHIVE SECTION HEADERS
   ========================================================================== */
.tt-archive-main {
  padding-block: 56px;
}

.tt-archive-section-header {
  margin-bottom: 40px;
}

.tt-archive-section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--tt-text-heading);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.tt-archive-section-sub {
  font-size: 16px;
  color: var(--tt-text-secondary);
  margin: 0;
}

.tt-archive-section--non-jewish {
  background: var(--tt-bg);
  padding-block: 56px;
  border-top: 1px solid var(--tt-border);
}

/* ==========================================================================
   TRIP CARD GRID
   ========================================================================== */
.tribe-travel-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .tribe-travel-grid--cols-2,
  .tribe-travel-grid--cols-3,
  .tribe-travel-grid--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tribe-travel-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
  .tribe-travel-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
  .tribe-travel-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   TRIP CARD
   ========================================================================== */
.tribe-trip-card {
  background: var(--tt-white);
  border-radius: var(--tt-radius);
  box-shadow: var(--tt-shadow);
  overflow: hidden;
  transition: transform var(--tt-transition), box-shadow var(--tt-transition);
  display: flex;
  flex-direction: column;
}

.tribe-trip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tt-shadow-hover);
}

/* Image wrap */
.tribe-trip-card__image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--tt-radius) var(--tt-radius) 0 0;
  background: #e8e9f0;
  text-decoration: none;
}

.tribe-trip-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.tribe-trip-card:hover .tribe-trip-card__image-wrap img {
  transform: scale(1.04);
}

.tribe-trip-card__no-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--tt-primary-bg) 0%, #d8d4ff 100%);
}

/* Badge on image */
.tribe-trip-card__image-wrap .tt-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
}

/* Body */
.tribe-trip-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.tribe-trip-card__destination {
  font-size: 12px;
  font-weight: 600;
  color: var(--tt-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tribe-trip-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--tt-text-heading);
  margin: 0;
  line-height: 1.35;
}

.tribe-trip-card__title a {
  color: inherit;
  text-decoration: none;
}

.tribe-trip-card__title a:hover {
  color: var(--tt-primary);
}

.tribe-trip-card__dates {
  font-size: 13px;
  color: var(--tt-text-secondary);
  margin: 0;
}

.tribe-trip-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--tt-text-heading);
  margin: 4px 0 0;
}

.tribe-trip-card__types {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tribe-trip-card__organizer {
  font-size: 12px;
  color: var(--tt-text-light);
  margin: 4px 0 0;
  margin-top: auto;
  padding-top: 10px;
}

/* No results */
.tribe-travel-no-results,
.tt-no-results {
  text-align: center;
  padding: 48px;
  color: var(--tt-text-secondary);
  font-size: 16px;
}

/* Pagination */
.page-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  justify-content: center;
  flex-wrap: wrap;
}

.page-numbers li a,
.page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--tt-radius-sm);
  border: 1px solid var(--tt-border);
  font-size: 14px;
  font-weight: 500;
  color: var(--tt-text-body);
  text-decoration: none;
  transition: all var(--tt-transition);
}

.page-numbers li a:hover,
.page-numbers li .current {
  background: var(--tt-primary);
  border-color: var(--tt-primary);
  color: var(--tt-white);
}

/* ==========================================================================
   CAROUSEL
   ========================================================================== */
.tribe-travel-featured-section {
  position: relative;
  overflow: hidden;
}

.tribe-travel-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.tribe-travel-carousel::-webkit-scrollbar { display: none; }

.tribe-travel-carousel .tribe-trip-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

.tt-carousel-prev,
.tt-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--tt-white);
  border: none;
  box-shadow: var(--tt-shadow-md);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-text-heading);
  transition: all var(--tt-transition);
}

.tt-carousel-prev { left: 4px; }
.tt-carousel-next { right: 4px; }

.tt-carousel-prev:hover,
.tt-carousel-next:hover {
  background: var(--tt-primary);
  color: var(--tt-white);
}

/* ==========================================================================
   SINGLE TRIP — Gallery Hero (1 large + 4 thumbs grid)
   ========================================================================== */
.tt-gallery-hero {
  background: var(--tt-bg, #fff);
  padding-top: 24px;
  padding-bottom: 0;
}

.tt-gallery-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  /* 2:1 outer → main cell renders at 1:1 (Airbnb-style square hero) */
  aspect-ratio: 2 / 1;
  border-radius: 16px;
  overflow: hidden;
}

.tt-gallery-hero__cell {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--tt-bg-subtle, #f3f4f6);
}

.tt-gallery-hero__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.tt-gallery-hero__cell:hover img {
  transform: scale(1.04);
  opacity: 0.94;
}

.tt-gallery-hero__cell--main {
  grid-row: 1 / span 2;
  grid-column: 1;
}

.tt-gallery-hero__cell--hidden {
  display: none;
}

/* Variants for trips with fewer than 5 images */
.tt-gallery-hero--single .tt-gallery-hero__grid {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  aspect-ratio: 16 / 9;
}
.tt-gallery-hero--single .tt-gallery-hero__cell--main {
  grid-row: 1;
  grid-column: 1;
}
.tt-gallery-hero--two .tt-gallery-hero__grid {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr;
  aspect-ratio: 2 / 1;
}
.tt-gallery-hero--two .tt-gallery-hero__cell--main {
  grid-row: 1;
}
.tt-gallery-hero--three .tt-gallery-hero__grid {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 2 / 1;
}
.tt-gallery-hero--four .tt-gallery-hero__grid {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 2 / 1;
}
.tt-gallery-hero--four .tt-gallery-hero__cell:nth-child(4) {
  grid-column: 2 / span 2;
}

/* Show-all photos button */
.tt-gallery-hero__show-all {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: var(--tt-text-heading, #111827);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tt-gallery-hero__show-all:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.tt-gallery-hero__show-all svg {
  flex-shrink: 0;
}

/* ==========================================================================
   SINGLE TRIP — Title block (badges, title, meta) on light background
   ========================================================================== */
.tt-single-titleblock {
  padding: 32px 0 8px;
}

.tt-single-titleblock__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tt-tb-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--tt-primary-bg, #f0eeff);
  color: var(--tt-primary, #8475e1);
  border: 1px solid transparent;
}

.tt-tb-badge--dest {
  background: var(--tt-primary, #8475e1);
  color: #fff;
}

.tt-single-titleblock__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--tt-text-heading, #111827);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 900px;
}

.tt-single-titleblock__meta {
  font-size: 16px;
  color: var(--tt-text-secondary, #666);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Tabs for Itinerary / What's Included */
.tt-tabs__nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--tt-border, #e5e7eb);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tt-tabs__tab,
.tt-tabs__tab:link,
.tt-tabs__tab:visited {
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #6b7280 !important;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
  font-family: inherit;
  text-decoration: none;
  box-shadow: none;
}
.tt-tabs__tab:hover,
.tt-tabs__tab:focus {
  color: #111827 !important;
  background: transparent !important;
}
.tt-tabs__tab.is-active,
.tt-tabs__tab.is-active:hover,
.tt-tabs__tab.is-active:focus {
  color: #6d28d9 !important;
  border-bottom-color: #6d28d9;
  background: transparent !important;
}
.tt-tabs__tab:focus-visible {
  outline: 2px solid #6d28d9;
  outline-offset: 2px;
  border-radius: 4px;
}
.tt-tabs__panel {
  display: none;
}
.tt-tabs__panel.is-active {
  display: block;
}

/* ==========================================================================
   SINGLE TRIP — Two-column layout
   ========================================================================== */
.tt-single-layout {
  display: grid;
  grid-template-columns: 1fr;
  /* Row gap (mobile stacking) = Kadence medium (2rem). Column gap overridden below at 1024+. */
  gap: 2rem;
  padding-block: 48px;
  align-items: start;
}

@media (min-width: 1024px) {
  .tt-single-layout {
    /* 65 / 35 column split with 4rem column gutter, matching event template. */
    grid-template-columns: 65fr 35fr;
    column-gap: 4rem;
  }
}

/* Left column sections */
.tt-section {
  margin-bottom: 48px;
}

.tt-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--tt-text-heading);
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tt-border);
  letter-spacing: -0.01em;
}

/* Prose content */
.tt-prose {
  font-size: 16px;
  line-height: 1.75;
  color: var(--tt-text-body);
}

.tt-prose p { margin: 0 0 16px; }
.tt-prose ul, .tt-prose ol { margin: 0 0 16px; padding-left: 24px; }
.tt-prose li { margin-bottom: 6px; }
.tt-prose h2, .tt-prose h3, .tt-prose h4 {
  color: var(--tt-text-heading);
  font-weight: 700;
  margin: 24px 0 12px;
}

/* Inclusions */
.tt-inclusions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .tt-inclusions-grid { grid-template-columns: 1fr 1fr; }
}

.tt-inclusions-col {
  background: var(--tt-white);
  border-radius: var(--tt-radius);
  padding: 24px;
  box-shadow: var(--tt-shadow);
}

.tt-inclusions-col h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tt-inclusions-col--yes h3::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--tt-success-bg);
  color: var(--tt-success);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.tt-inclusions-col--no h3::before {
  content: '×';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--tt-danger-bg);
  color: var(--tt-danger);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.tt-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}

.tt-gallery__item {
  display: block;
  border-radius: var(--tt-radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.tt-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  display: block;
}

.tt-gallery__item:hover img {
  transform: scale(1.06);
  opacity: 0.92;
}

/* ==========================================================================
   ITINERARY ACCORDION
   ========================================================================== */
.tt-accordion {
  border: 1px solid var(--tt-border);
  border-radius: var(--tt-radius);
  overflow: hidden;
}

.tt-accordion__item {
  border-bottom: 1px solid var(--tt-border);
}

.tt-accordion__item:last-child {
  border-bottom: none;
}

.tt-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--tt-font);
  transition: background-color var(--tt-transition);
}

.tt-accordion__trigger:hover,
.tt-accordion__trigger[aria-expanded="true"] {
  background: var(--tt-primary-bg);
}

.tt-accordion__day-label {
  flex-shrink: 0;
  min-width: 56px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tt-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tt-accordion__day-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--tt-text-heading);
}

.tt-accordion__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.tt-accordion__icon::before,
.tt-accordion__icon::after {
  content: '';
  position: absolute;
  background: var(--tt-text-secondary);
  border-radius: 2px;
}

/* Horizontal bar */
.tt-accordion__icon::before {
  width: 12px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Vertical bar */
.tt-accordion__icon::after {
  width: 2px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.tt-accordion__trigger[aria-expanded="true"] .tt-accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.tt-accordion__body {
  padding: 0 20px 20px 92px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--tt-text-body);
  animation: tt-slide-down 0.2s ease;
}

@keyframes tt-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.tt-single-sidebar {
  position: relative;
}

.tt-sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1024px) {
  .tt-sidebar-sticky {
    position: sticky;
    top: 100px;
  }
}

/* Shared card shell for sidebar widgets */
.tt-price-card,
.tt-highlights-card,
.tt-dates-card {
  background: var(--tt-white);
  border-radius: var(--tt-radius);
  box-shadow: var(--tt-shadow-md);
  overflow: hidden;
}

/* Price Card */
.tt-price-card__header {
  background: var(--tt-primary);
  padding: 24px;
  text-align: center;
}

.tt-price-card__from {
  font-size: 28px;
  font-weight: 800;
  color: var(--tt-white);
  margin: 0;
  letter-spacing: -0.02em;
}

.tt-price-card__per {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.80);
  margin: 4px 0 0;
}

.tt-price-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tt-price-card__avail {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tt-spots {
  font-size: 12px;
  color: var(--tt-text-secondary);
}

.tt-price-card__cta {
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
}

/* Organizer card — horizontal layout, matches other sidebar cards */
.tt-organizer-card {
  margin-top: 16px;
  padding: 20px;
  background: var(--tt-white);
  border-radius: var(--tt-radius);
  box-shadow: var(--tt-shadow-md);
  overflow: hidden;
}
.tt-organizer-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.tt-organizer-card__logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.tt-organizer-card__logo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #8475e1, #a094f7);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}
.tt-organizer-card__header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tt-organizer-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--tt-text-body);
  margin: 0;
  line-height: 1.3;
}
.tt-organizer-card__label {
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--tt-text-muted, #6b7280);
  font-weight: 600;
}
.tt-organizer-card__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--tt-text-body);
  margin: 0 0 14px;
}

.tt-price-card__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tt-price-card__meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--tt-text-body);
}

.tt-meta-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--tt-primary);
}

.tt-meta-icon svg {
  width: 18px;
  height: 18px;
}

/* Highlights card */
.tt-highlights-card,
.tt-dates-card {
  padding: 20px;
}

.tt-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tt-text-heading);
  margin: 0 0 16px;
}

.tt-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tt-highlight-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.tt-highlight-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--tt-primary-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tt-primary);
}

.tt-highlight-icon svg {
  width: 18px;
  height: 18px;
}

.tt-highlight-content strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--tt-text-heading);
  margin-bottom: 2px;
}

.tt-highlight-content p {
  font-size: 13px;
  color: var(--tt-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Dates list */
.tt-dates-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tt-dates-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tt-border);
  flex-wrap: wrap;
}

.tt-dates-list__item:last-child {
  border-bottom: none;
}

.tt-dates-list__date {
  flex: 1;
  font-size: 13px;
  color: var(--tt-text-body);
  font-weight: 500;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.tt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: tt-fade-in 0.2s ease;
}

@keyframes tt-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.tt-lightbox__inner {
  max-width: min(1000px, 100%);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--tt-radius-sm);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: tt-zoom-in 0.25s ease;
}

@keyframes tt-zoom-in {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.tt-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--tt-white);
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--tt-transition), transform var(--tt-transition);
  z-index: 1;
}

.tt-lightbox__close:hover { opacity: 1; transform: scale(1.1); }

.tt-lightbox__prev,
.tt-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--tt-white);
  font-size: 40px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tt-transition);
  z-index: 1;
}

.tt-lightbox__prev { left: 16px; }
.tt-lightbox__next { right: 16px; }
.tt-lightbox__prev:hover,
.tt-lightbox__next:hover { background: rgba(255,255,255,0.25); }

/* ==========================================================================
   ORGANIZER CARD
   ========================================================================== */
.tt-organizer-card {
  background: var(--tt-white);
  border-radius: var(--tt-radius-md);
  box-shadow: var(--tt-shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.tt-organizer-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.tt-organizer-card__logo {
  width: 52px;
  height: 52px;
  border-radius: var(--tt-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--tt-border);
}

.tt-organizer-card__info {
  min-width: 0;
}

.tt-organizer-card__name {
  font-family: var(--tt-font);
  font-size: 16px;
  font-weight: 700;
  color: var(--tt-heading);
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.tt-organizer-card__label {
  font-size: 12px;
  color: var(--tt-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.tt-organizer-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tt-body);
  margin: 0 0 16px 0;
}

.tt-organizer-card__link {
  font-size: 13px;
  gap: 6px;
}

.tt-organizer-card__link svg {
  transition: transform var(--tt-transition);
}

.tt-organizer-card__link:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   FILTER BAR
   ========================================================================== */
.tt-filter-bar {
  padding-block: 24px;
}

.tt-filter-notice {
  background: var(--tt-info-bg);
  border: 1px solid #bfdbfe;
  color: var(--tt-info);
  padding: 12px 16px;
  border-radius: var(--tt-radius-sm);
  font-size: 14px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .tt-gallery-hero { padding-top: 16px; }
  .tt-gallery-hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }
  /* Hide thumbs on mobile; main photo + show-all button only */
  .tt-gallery-hero__cell:not(.tt-gallery-hero__cell--main):not(.tt-gallery-hero__cell--hidden) {
    display: none;
  }
  .tt-gallery-hero__cell--main { grid-row: 1; grid-column: 1; }
  .tt-gallery-hero__show-all {
    right: 12px;
    bottom: 12px;
    padding: 8px 14px;
    font-size: 13px;
  }
  .tt-single-titleblock { padding: 20px 0 4px; }
  .tt-single-titleblock__title { font-size: 26px; }
  .tt-accordion__body { padding-left: 20px; }
  .tt-lightbox__prev { left: 8px; }
  .tt-lightbox__next { right: 8px; }
}

@media (max-width: 480px) {
  .tribe-travel-container { padding-inline: 16px; }
  .tt-price-card__from { font-size: 22px; }
  .tribe-trip-card__body { padding: 14px; }
  .tt-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* Auto-injected trip grid on TEC organizer pages */
.tt-organizer-trips {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--tt-border, #e5e7eb);
}
.tt-organizer-trips__heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--tt-text-heading, #111827);
  margin: 0 0 24px;
}

/* ==========================================================================
   LISTING PAGE CHROME (rendered by [tribe_travel_listing] shortcode)
   ========================================================================== */
.tt-listing {
  padding-top: 32px;
  padding-bottom: 64px;
}

/* When the hero is present, drop the wrapper's top padding so the
   hero sits flush against the site header. !important is needed to
   override FlyingPress critical-CSS that bakes the 32px value inline. */
.tt-listing:has(.tt-listing__hero),
.tt-listing.tt-listing--has-hero {
  padding-top: 0 !important;
}

/* Header */
.tt-listing__header {
  margin-bottom: 24px;
}
.tt-listing__eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  background: var(--tt-primary-bg, #f0eeff);
  color: var(--tt-primary, #8475e1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tt-listing .tt-listing__title,
.tt-listing h1.tt-listing__title,
h1.tt-listing__title {
  font-size: clamp(26px, 2.8vw, 32px) !important;
  font-weight: 700 !important;
  color: var(--tt-text-heading, #111827) !important;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
  letter-spacing: -0.01em !important;
  font-family: inherit !important;
}
.tt-listing .tt-listing__subtitle,
.tt-listing p.tt-listing__subtitle {
  font-size: 15px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  color: var(--tt-text-secondary, #666) !important;
  margin: 0 !important;
  max-width: 70ch !important;
}

/* Scope tabs */
.tt-listing__tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0 24px;
  border-bottom: 1px solid var(--tt-border, #e5e7eb);
  flex-wrap: wrap;
}
.tt-listing__tab {
  display: inline-flex;
  align-items: center;
  padding: 12px 4px;
  margin-right: 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--tt-text-secondary, #666);
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s ease, border-color 0.12s ease;
}
.tt-listing__tab:hover {
  color: var(--tt-primary, #8475e1);
  border-bottom-color: rgba(132, 117, 225, 0.3);
}
.tt-listing__tab.is-active {
  color: var(--tt-primary, #8475e1);
  font-weight: 600;
  border-bottom-color: var(--tt-primary, #8475e1);
}

/* Two-column body: filter sidebar + main results */
.tt-listing__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .tt-listing__body {
    grid-template-columns: 280px 1fr;
    gap: 32px;
  }
}

/* Sidebar — clean white card */
.tt-listing__sidebar {
  background: #fff;
  border: 1px solid var(--tt-border, #e5e7eb);
  border-radius: 12px;
  padding: 20px;
  align-self: start;
}
.tt-listing__sidebar-header {
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--tt-border, #e5e7eb);
}
.tt-listing .tt-listing__sidebar-header,
.tt-listing__sidebar > .tt-listing__sidebar-header,
.tt-listing__sidebar-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  margin: 0 0 16px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid var(--tt-border, #e5e7eb) !important;
  width: 100% !important;
}
.tt-listing__sidebar-header > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.tt-listing__sidebar .tt-listing__sidebar-title,
.tt-listing__sidebar-title {
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: var(--tt-text-heading, #111827) !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit !important;
}
/* Sidebar-header Clear all link — small purple text link */
.tt-listing__sidebar-clear,
.tt-listing__sidebar-clear .wpgb-facet,
.tt-listing__sidebar-clear .wpgb-facet * {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}
.tt-listing__sidebar-clear a,
.tt-listing__sidebar-clear button {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--tt-primary, #8475e1) !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-shadow: none !important;
}
.tt-listing__sidebar-clear a:hover,
.tt-listing__sidebar-clear button:hover {
  text-decoration: underline !important;
  color: var(--tt-primary, #8475e1) !important;
}

/* Facet group — tight spacing between groups */
.tt-listing__sidebar .tt-listing__facet {
  margin: 0 0 12px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid var(--tt-border, #e5e7eb);
}
.tt-listing__sidebar .tt-listing__facet:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none;
}

/* ----------------------------------------------------------------------
   GLOBAL FACET BORDERS (v1.10.45+)
   Add a divider between WPGB facets on any page — gives city/event pages
   the same visual separation as the trip listing without per-page markup.
   Borders only — labels, fonts, etc. are configured in WPGB UI.

   Excluded:
   - hidden placeholder facets ([hidden])
   - reset / clear-all facet (.wpgb-reset)
   - facets inside our own .tt-listing chrome (already styled)
   - facets inside .tt-no-chrome opt-out wrapper
   - facets without a label (inline pill rows, etc.)
   ---------------------------------------------------------------------- */
.wpgb-facet:not([hidden]):not(.wpgb-reset):not(.tt-listing__facet):has(.wpgb-facet-title) {
  margin: 0 0 16px !important;
  padding: 0 0 16px !important;
  border-bottom: 1px solid var(--tt-border, #e5e7eb);
}
.wpgb-facet:not([hidden]):not(.wpgb-reset):not(.tt-listing__facet):has(.wpgb-facet-title):last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}
/* Opt-out: wrap any Kadence column or block with .tt-no-chrome to suppress.
   Strips the divider, zeroes the facet's own spacing, AND collapses Kadence's
   default column inner padding (.kt-inside-inner-col) so an inline pill row
   sits tight against surrounding content. Outer column margin remains so the
   row still respects the page's vertical rhythm — tune in Kadence if needed. */
.tt-no-chrome.wpgb-facet,
.tt-no-chrome .wpgb-facet {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: none !important;
}
.tt-no-chrome > .kt-inside-inner-col,
.tt-no-chrome .kt-inside-inner-col {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ----------------------------------------------------------------------
   GLOBAL FACETS HEADER (v1.10.46+)
   Reusable "All Filters / Clear" header for any filter column on any page.

   Usage — add this markup as the first item inside any Kadence column or
   sidebar that contains [wpgb_facet] shortcodes:

     <div class="tt-facets-header">
       <span class="tt-facets-header__title">All Filters</span>
       [wpgb_facet id="5" grid="YOUR_GRID_ID"]
     </div>

   Mirrors the trip listing's sidebar-header treatment (15px bold left,
   purple Clear link right, divider underneath).
   ---------------------------------------------------------------------- */
.tt-facets-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  margin: 0 0 16px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid var(--tt-border, #e5e7eb) !important;
  width: 100% !important;
}
.tt-facets-header > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.tt-facets-header__title {
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: var(--tt-text-heading, #111827) !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
/* Reset facet inside the header — strip default WPGB chrome,
   render as a small purple text link aligned right. */
.tt-facets-header .wpgb-facet,
.tt-facets-header .wpgb-facet * {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}
.tt-facets-header .wpgb-reset,
.tt-facets-header .wpgb-facet button,
.tt-facets-header .wpgb-facet a {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--tt-primary, #8475e1) !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}
.tt-facets-header .wpgb-reset[disabled],
.tt-facets-header .wpgb-facet button[disabled] {
  opacity: 0.45 !important;
  cursor: default !important;
}
.tt-facets-header .wpgb-reset:hover:not([disabled]),
.tt-facets-header .wpgb-facet button:hover:not([disabled]) {
  text-decoration: underline !important;
}
/* Hide any reset icon WPGB injects — keep this a plain text link */
.tt-facets-header .wpgb-reset svg,
.tt-facets-header .wpgb-facet button svg {
  display: none !important;
}
/* High-specificity 12px label — beats theme's 17px h2/h3/etc. */
.tt-listing__sidebar .tt-listing__facet > .tt-listing__facet-label,
.tt-listing .tt-listing__facet-label {
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: var(--tt-text-heading, #111827) !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  font-family: inherit !important;
}
/* Main column */
.tt-listing__main {
  min-width: 0;
}

/* Explainer banner — light purple, sits above active selections */
.tt-listing__explainer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 18px;
  background: var(--tt-primary-bg, #f0eeff);
  border: 1px solid rgba(132, 117, 225, 0.22);
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--tt-text-heading, #111827);
}
.tt-listing__explainer-icon {
  color: var(--tt-primary, #8475e1);
  flex-shrink: 0;
  margin-top: 1px;
}
.tt-listing__explainer p {
  margin: 0;
}

/* Toolbar: results count left, sort right.
   Heights/margins match sidebar-header so the next row (active selections)
   aligns vertically with the sidebar's first facet group. */
.tt-listing__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 12px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--tt-border, #e5e7eb);
  min-height: 32px;
}

/* Filters trigger lives inside the toolbar in markup but is desktop-hidden
   (sidebar is inline). On mobile it appears as the leftmost toolbar item. */
.tt-listing__toolbar > .tt-listing__filters-trigger {
  display: none;
}

/* Sort always sits at the right end of the toolbar */
.tt-listing__toolbar .tt-listing__sort {
  margin-left: auto;
}
.tt-listing__toolbar .tt-listing__count {
  font-size: 14px;
  color: var(--tt-text-heading, #111827);
  font-weight: 500;
  margin: 0;
}
.tt-listing__sort .wpgb-facet select {
  padding: 6px 28px 6px 12px !important;
  border: 1px solid var(--tt-border, #e5e7eb) !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  background-color: #fff !important;
}

/* Active selections row: ACTIVE: label + pills + Clear all, all inline */
.tt-listing .tt-listing__active,
.tt-listing__main > .tt-listing__active,
.tt-listing__active {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 0 !important;
  background: transparent !important;
  margin: 0 0 16px !important;
  min-height: 0 !important;
  width: 100% !important;
}
.tt-listing__active > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.tt-listing__active-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tt-text-secondary, #666);
  text-transform: uppercase;
  flex-shrink: 0;
}
.tt-listing__active-pills {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
/* Hide ACTIVE: label when there are no pills (pills container is empty) */
.tt-listing__active:has(.tt-listing__active-pills .wpgb-facet:empty) .tt-listing__active-label,
.tt-listing__active:has(.tt-listing__active-pills:empty) .tt-listing__active-label {
  display: none;
}
/* Hide WPGB's own "Your Selection" facet title inside the active pills slot */
.tt-listing__active-pills .wpgb-facet-title,
.tt-listing__active-pills .wpgb-facet > h2,
.tt-listing__active-pills .wpgb-facet > h3,
.tt-listing__active-pills .wpgb-facet > h4,
.tt-listing__active-pills .wpgb-facet > strong,
.tt-listing__active-pills .wpgb-facet > label,
.tt-listing__active-pills .wpgb-facet > .wpgb-facet-label,
.tt-listing__active-pills .wpgb-facet > p:first-child {
  display: none !important;
}
/* Style WPGB active selection pills: light purple bg, dark purple text
   Match the trip-card tag style. The pill IS the <a> element (or <li>).
   Children inherit color but keep their own native sizing. */
.tt-listing__active-pills .wpgb-facet {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}
.tt-listing__active-pills .wpgb-facet ul,
.tt-listing__active-pills .wpgb-facet ol {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
}
.tt-listing__active-pills .wpgb-facet li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  list-style: none !important;
}
/* The pill itself */
.tt-listing__active-pills .wpgb-facet a,
.tt-listing__active-pills .wpgb-facet button,
.tt-listing__active-pills .wpgb-facet-item > a,
.tt-listing__active-pills .wpgb-facet-item > button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px 12px !important;
  background: var(--tt-primary-bg, #f0eeff) !important;
  background-color: var(--tt-primary-bg, #f0eeff) !important;
  color: var(--tt-primary, #8475e1) !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.tt-listing__active-pills .wpgb-facet a:hover,
.tt-listing__active-pills .wpgb-facet button:hover {
  background: rgba(132, 117, 225, 0.18) !important;
  background-color: rgba(132, 117, 225, 0.18) !important;
  color: var(--tt-primary, #8475e1) !important;
}
/* Inner spans (label + close icon) inherit color, no own bg */
.tt-listing__active-pills .wpgb-facet a > span,
.tt-listing__active-pills .wpgb-facet button > span,
.tt-listing__active-pills .wpgb-facet a > svg,
.tt-listing__active-pills .wpgb-facet button > svg {
  background: transparent !important;
  color: inherit !important;
  border: none !important;
}

/* Clear all — neutral text link, NOT a red button */
.tt-listing__active-clear {
  margin-left: auto;
  flex-shrink: 0;
}
.tt-listing__active-clear .wpgb-facet,
.tt-listing__active-clear .wpgb-facet * {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--tt-text-secondary, #666) !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  cursor: pointer !important;
}
.tt-listing__active-clear .wpgb-facet *:hover {
  color: var(--tt-primary, #8475e1) !important;
}

/* Hide the standalone (sidebar) WPGB Reset button if any other instance
   of facet 5 still leaks in via legacy embeds. (Safe no-op otherwise.) */
.tt-listing__sidebar .wpgb-facet[data-facet-id="5"],
.tt-listing__sidebar [data-facet-id="5"] {
  display: none !important;
}

/* Results count */
.tt-listing__count {
  font-size: 14px;
  color: var(--tt-text-secondary, #666);
  margin-bottom: 16px;
}

/* Pills (used for season filter, age modifier, etc.) */
.tt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tt-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: #fff;
  color: var(--tt-text-heading, #111827);
  border: 1px solid var(--tt-border, #e5e7eb);
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.tt-pill:hover {
  border-color: var(--tt-primary, #8475e1);
  color: var(--tt-primary, #8475e1);
  background: #fff;
}
.tt-pill.is-active,
.tt-pill[aria-pressed="true"] {
  background: var(--tt-primary, #8475e1);
  color: #fff;
  border-color: var(--tt-primary, #8475e1);
}

/* Mobile listing tweaks (superseded by v1.9.18 block at end of file) */

/* === Page H1 + subhead on listing pages — match mockup proportions ===
   Targets common theme selectors. Scoped to body.tt-listing-page so it
   only affects pages running [tribe_travel_listing]. */
body.tt-listing-page h1.entry-title,
body.tt-listing-page .entry-title,
body.tt-listing-page .page-title,
body.tt-listing-page header.entry-header h1,
body.tt-listing-page .wp-block-post-title,
body.tt-listing-page .post-title {
  font-size: clamp(28px, 3.2vw, 36px) !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 8px !important;
}
/* Subheading — most themes render it as .entry-subtitle, .page-subtitle,
   .lead, or the first paragraph after the H1. */
body.tt-listing-page .entry-subtitle,
body.tt-listing-page .page-subtitle,
body.tt-listing-page .subtitle,
body.tt-listing-page .lead,
body.tt-listing-page header.entry-header p,
body.tt-listing-page .entry-header > p:first-of-type {
  font-size: 15px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  color: var(--tt-text-secondary, #666) !important;
  margin: 0 0 16px !important;
}

/* === Constrain hero on listing pages to a slim strip ===
   Keeps the demographic cue (people in image) without dominating the page.
   Targets common theme hero/featured-image selectors. */
body.tt-listing-page .hero,
body.tt-listing-page .page-hero,
body.tt-listing-page .entry-hero,
body.tt-listing-page .post-thumbnail,
body.tt-listing-page .wp-block-cover,
body.tt-listing-page .featured-image,
body.tt-listing-page .has-post-thumbnail .post-thumbnail,
body.tt-listing-page header.entry-header .wp-block-cover,
body.tt-listing-page .entry-header .wp-post-image {
  max-height: 240px !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
}
body.tt-listing-page .hero img,
body.tt-listing-page .page-hero img,
body.tt-listing-page .entry-hero img,
body.tt-listing-page .post-thumbnail img,
body.tt-listing-page .wp-block-cover img,
body.tt-listing-page .featured-image img,
body.tt-listing-page .wp-post-image {
  max-height: 240px !important;
  width: 100% !important;
  object-fit: cover !important;
  object-position: center 35% !important;
}
/* If theme uses inline padding-top to size cover blocks, neutralize it */
body.tt-listing-page .wp-block-cover {
  padding: 0 !important;
}
@media (max-width: 768px) {
  body.tt-listing-page .hero,
  body.tt-listing-page .page-hero,
  body.tt-listing-page .entry-hero,
  body.tt-listing-page .post-thumbnail,
  body.tt-listing-page .wp-block-cover,
  body.tt-listing-page .featured-image,
  body.tt-listing-page .hero img,
  body.tt-listing-page .page-hero img,
  body.tt-listing-page .entry-hero img,
  body.tt-listing-page .post-thumbnail img,
  body.tt-listing-page .wp-block-cover img,
  body.tt-listing-page .featured-image img,
  body.tt-listing-page .wp-post-image {
    max-height: 180px !important;
  }
}

/* ==========================================================================
   v1.9.9 — Unified active state + active-row layout
   ========================================================================== */

/* Active row: chips on left, sort+clear toolbar on right */
.tt-listing__active {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  background: transparent !important;
  min-height: 32px !important;
}
.tt-listing__active-chips {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}
.tt-listing__active-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}
/* Inside the new toolbar, kill the legacy margin-left:auto on Clear All
   (it's now handled by parent flex layout). */
.tt-listing__active-toolbar .tt-listing__active-clear {
  margin: 0 !important;
}

/* Active season chip — match card-tag pill style: light purple bg, primary text */
.tt-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 12px;
  background: var(--tt-primary-bg, #f0eeff);
  color: var(--tt-primary, #8475e1);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.tt-active-chip__label {
  color: inherit;
}
.tt-active-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.12s ease, background-color 0.12s ease;
}
.tt-active-chip__remove:hover {
  opacity: 1;
  background: rgba(132, 117, 225, 0.18);
}

/* ----- Season pills: SELECTED state — purple bg, white text -----
   Highest specificity to win against transient WPGB or theme styling. */
.tt-listing .tt-season-pills .tt-pill.is-active,
.tt-listing .tt-season-pills .tt-pill[aria-pressed="true"],
.tt-pills .tt-pill.is-active,
.tt-pills .tt-pill[aria-pressed="true"] {
  background: var(--tt-primary, #8475e1) !important;
  background-color: var(--tt-primary, #8475e1) !important;
  color: #fff !important;
  border-color: var(--tt-primary, #8475e1) !important;
}

/* ----- Age facet (106): selected button — purple bg {
  background: var(--tt-primary, #8475e1) !important;
  background-color: var(--tt-primary, #8475e1) !important;
  color: #fff !important;
  border: 1px solid var(--tt-primary, #8475e1) !important;
  font-weight: 600 !important;
}
/* Sort dropdown sits inline with chips/clear in the active row */
.tt-listing__active-toolbar .tt-listing__sort {
  margin: 0 !important;
}
.tt-listing__active-toolbar .tt-listing__sort .wpgb-facet {
  margin: 0 !important;
}

/* ==========================================================================
   v1.9.10 — Active row polish + chip parity with WPGB facet 143
   ========================================================================== */

/* Reset the v1.7.x rule that hides ACTIVE: when WPGB 143 is empty —
   our season chip lives in the same container, so we need a smarter check:
   only hide when there are NO season chips AND WPGB 143 is empty. */
.tt-listing__active:has(.tt-listing__active-pills .wpgb-facet:empty) .tt-listing__active-label,
.tt-listing__active:has(.tt-listing__active-pills:empty) .tt-listing__active-label {
  display: inline-block !important;
}
.tt-listing__active:not(:has(.tt-active-chip)):has(.tt-listing__active-pills .wpgb-facet:empty) .tt-listing__active-label,
.tt-listing__active:not(:has(.tt-active-chip)):has(.tt-listing__active-pills:empty) .tt-listing__active-label {
  display: none !important;
}

/* WPGB facet 143 chip — match our season chip metrics so destination/age/etc.
   chips are visually identical to season chips. Override the looser 1972-1990
   rule with tighter padding + height. */
.tt-listing__active-pills .wpgb-facet a,
.tt-listing__active-pills .wpgb-facet button,
.tt-listing__active-pills .wpgb-facet li > a,
.tt-listing__active-pills .wpgb-facet li > button,
.tt-listing__active-pills .wpgb-facet-item > a,
.tt-listing__active-pills .wpgb-facet-item > button {
  padding: 4px 12px 4px 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  min-height: 26px !important;
  border-radius: 999px !important;
  background: var(--tt-primary-bg, #f0eeff) !important;
  background-color: var(--tt-primary-bg, #f0eeff) !important;
  color: var(--tt-primary, #8475e1) !important;
  border: 1px solid transparent !important;
}

/* Make WPGB chip's X glyph match our chip remove style (subtle, opacity 0.7) */
.tt-listing__active-pills .wpgb-facet a > span:first-child,
.tt-listing__active-pills .wpgb-facet button > span:first-child,
.tt-listing__active-pills .wpgb-facet a > svg,
.tt-listing__active-pills .wpgb-facet button > svg,
.tt-listing__active-pills .wpgb-facet a::before,
.tt-listing__active-pills .wpgb-facet button::before {
  opacity: 0.7;
}

/* Sort dropdown styling — neutral, fits inline with Clear all */
.tt-listing__active-toolbar .tt-listing__sort .wpgb-facet select,
.tt-listing__active-toolbar .tt-listing__sort select {
  padding: 5px 28px 5px 10px !important;
  border: 1px solid var(--tt-border, #e5e7eb) !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  font-size: 13px !important;
  color: var(--tt-text-heading, #111827) !important;
  height: auto !important;
  line-height: 1.4 !important;
}
/* Hide the WPGB sort facet title inside the toolbar */
.tt-listing__active-toolbar .tt-listing__sort .wpgb-facet-title,
.tt-listing__active-toolbar .tt-listing__sort h2,
.tt-listing__active-toolbar .tt-listing__sort h3,
.tt-listing__active-toolbar .tt-listing__sort label.wpgb-facet-label {
  display: none !important;
}

/* ==========================================================================
   v1.9.11 — Chip size parity + count below active row
   ========================================================================== */

/* Toolbar (count) when placed BELOW the active row: drop the bottom border
   that was meant for above-grid placement, give a clean "X trips ..." line. */
.tt-listing__main > .tt-listing__active + .tt-listing__toolbar {
  border-bottom: none !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
  min-height: 0 !important;
}
.tt-listing__main > .tt-listing__active + .tt-listing__toolbar .tt-listing__count {
  font-size: 13px !important;
  color: var(--tt-text-secondary, #666) !important;
}

/* Season chip — shrink to match WPGB 143 chip metrics exactly */
.tt-active-chip {
  padding: 3px 10px 3px 12px;
  font-size: 12.5px;
  line-height: 1.4;
  min-height: 24px;
  box-sizing: border-box;
}
.tt-active-chip__remove {
  width: 14px;
  height: 14px;
  font-size: 14px;
  margin-left: 2px;
}

/* Match WPGB 143 chip metrics to the same target (override 1972-1990) */
.tt-listing__active-pills .wpgb-facet a,
.tt-listing__active-pills .wpgb-facet button,
.tt-listing__active-pills .wpgb-facet li > a,
.tt-listing__active-pills .wpgb-facet li > button,
.tt-listing__active-pills .wpgb-facet-item > a,
.tt-listing__active-pills .wpgb-facet-item > button {
  padding: 3px 12px 3px 10px !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  min-height: 24px !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   v1.9.12 — Move sort into toolbar (count left / sort right inline);
              Clear all stays inline-right in active row;
              Lock chip size so multi-chip doesn't grow
   ========================================================================== */

/* ----- Active row (Row 1): chips fill, Clear all auto-right ----- */
.tt-listing__active .tt-listing__active-chips {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.tt-listing__active > .tt-listing__active-clear {
  margin-left: auto !important;
  flex: 0 0 auto !important;
}

/* ----- Toolbar row (Row 2): count left + sort right, single line ----- */
.tt-listing__main > .tt-listing__active + .tt-listing__toolbar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  border-bottom: none !important;
  padding: 0 !important;
  margin: 0 0 16px !important;
  min-height: 0 !important;
  width: 100% !important;
}
.tt-listing__main > .tt-listing__active + .tt-listing__toolbar .tt-listing__count {
  flex: 1 1 auto !important;
  font-size: 14px !important;
  color: var(--tt-text-heading, #111827) !important;
  font-weight: 500 !important;
  margin: 0 !important;
}
.tt-listing__main > .tt-listing__active + .tt-listing__toolbar .tt-listing__sort {
  flex: 0 0 auto !important;
  margin: 0 !important;
}
/* Force-show count facet (don't let WPGB hide it before first hydration) */
.tt-listing__count .wpgb-facet,
.tt-listing__count .wpgb-facet * {
  visibility: visible !important;
}
.tt-listing__count .wpgb-facet-title,
.tt-listing__count .wpgb-facet h2,
.tt-listing__count .wpgb-facet h3,
.tt-listing__count .wpgb-facet label.wpgb-facet-label {
  display: none !important;
}

/* Sort dropdown styling inside toolbar */
.tt-listing__toolbar .tt-listing__sort .wpgb-facet,
.tt-listing__toolbar .tt-listing__sort .wpgb-facet * {
  margin: 0 !important;
}
.tt-listing__toolbar .tt-listing__sort .wpgb-facet select,
.tt-listing__toolbar .tt-listing__sort select {
  padding: 6px 28px 6px 12px !important;
  border: 1px solid var(--tt-border, #e5e7eb) !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  font-size: 13px !important;
  color: var(--tt-text-heading, #111827) !important;
  height: auto !important;
  line-height: 1.4 !important;
}
.tt-listing__toolbar .tt-listing__sort .wpgb-facet-title,
.tt-listing__toolbar .tt-listing__sort h2,
.tt-listing__toolbar .tt-listing__sort h3,
.tt-listing__toolbar .tt-listing__sort label.wpgb-facet-label {
  display: none !important;
}

/* ----- Lock chip size (prevent growth when multiple chips appear) ----- */
.tt-listing__active-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
}
.tt-active-chip,
.tt-listing__active-pills .wpgb-facet a,
.tt-listing__active-pills .wpgb-facet button,
.tt-listing__active-pills .wpgb-facet li > a,
.tt-listing__active-pills .wpgb-facet li > button,
.tt-listing__active-pills .wpgb-facet-item > a,
.tt-listing__active-pills .wpgb-facet-item > button {
  padding: 3px 10px 3px 12px !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  min-height: 24px !important;
  max-height: 24px !important;
  height: 24px !important;
  box-sizing: border-box !important;
  border-radius: 999px !important;
}

/* WPGB 143 list defaults can introduce vertical padding/margins on <li> —
   strip them so multi-chip rows don't get spaced apart. */
.tt-listing__active-pills .wpgb-facet ul,
.tt-listing__active-pills .wpgb-facet ol {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.tt-listing__active-pills .wpgb-facet li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* ============================================================================
   v1.9.16 — Final cascade override for WPGB active-selection chips + Clear All
   ----------------------------------------------------------------------------
   Background: WPGB ships its own .wpgb-facet.wpgb-style-4 [role="button"]
   .wpgb-button rules at specificity 0,4,0 that beat our prior 0,2,0 selectors.
   Earlier v1.7.x-v1.9.15 rules also conflict. This block uses class chains
   long enough (0,4,0 or 0,5,0) to win on both /jewish-travel/ (grid 179) AND
   city pages /nyc/ etc. (grid 18), with !important as a safety net.
   ============================================================================ */

/* ----- Active-row container: chips left, Clear all INLINE next to them ----- */
.tt-listing .tt-listing__main .tt-listing__active,
.tt-listing__active {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 16px !important;
}
.tt-listing .tt-listing__main .tt-listing__active > .tt-listing__active-chips,
.tt-listing__active > .tt-listing__active-chips {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  flex: 0 1 auto !important;
  margin: 0 !important;
}
.tt-listing .tt-listing__main .tt-listing__active > .tt-listing__active-clear,
.tt-listing__active > .tt-listing__active-clear {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

/* ----- The pill (.wpgb-button[aria-pressed="true"] inside selection facet) -----
   Two selector branches: high specificity for both contexts. */
.tt-listing__active-pills .wpgb-facet.wpgb-style-4 .wpgb-button,
.tt-listing__active-pills .wpgb-facet .wpgb-selection-facet .wpgb-button,
.wpgb-facet.wpgb-style-4 .wpgb-selection-facet .wpgb-button[role="button"],
.wpgb-facet .wpgb-selection-facet .wpgb-button[role="button"][aria-pressed="true"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px 6px 16px !important;
  margin: 0 !important;
  background: var(--tt-primary-bg, #f0eeff) !important;
  background-color: var(--tt-primary-bg, #f0eeff) !important;
  color: var(--tt-primary, #8475e1) !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  min-height: 28px !important;
  height: auto !important;
  max-height: none !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  flex-grow: 0 !important;
}
.tt-listing__active-pills .wpgb-facet.wpgb-style-4 .wpgb-button:hover,
.tt-listing__active-pills .wpgb-facet .wpgb-selection-facet .wpgb-button:hover,
.wpgb-facet.wpgb-style-4 .wpgb-selection-facet .wpgb-button[role="button"]:hover,
.wpgb-facet .wpgb-selection-facet .wpgb-button[role="button"][aria-pressed="true"]:hover {
  background: rgba(132, 117, 225, 0.18) !important;
  background-color: rgba(132, 117, 225, 0.18) !important;
  color: var(--tt-primary, #8475e1) !important;
  border-color: transparent !important;
  outline: none !important;
}

/* Hide WPGB's "Your Selection" h4 and sr-only legend */
.tt-listing__active-pills .wpgb-facet.wpgb-style-4 > .wpgb-facet-title,
.tt-listing__active-pills .wpgb-facet.wpgb-style-4 legend.wpgb-facet-title,
.wpgb-facet.wpgb-style-4 .wpgb-selection-facet ~ .wpgb-facet-title,
.wpgb-facet:has(> fieldset > .wpgb-selection-facet) > .wpgb-facet-title,
.wpgb-facet:has(> fieldset > .wpgb-selection-facet) legend.wpgb-facet-title {
  display: none !important;
}

/* Strip fieldset/ul list defaults inside the selection facet */
.tt-listing__active-pills .wpgb-facet fieldset,
.wpgb-facet.wpgb-style-4 .wpgb-selection-facet,
.wpgb-facet.wpgb-style-4 fieldset {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* v1.10.49 — Active-selection facet (wpgb-style-4 with selection facet inside)
   gets a small horizontal padding so chips align visually with the rest of
   the sidebar column content, plus a bottom margin so it doesn't crowd the
   next facet. The trip listing's own .tt-listing__active-pills wrapper
   overrides these below to keep its existing tight layout. */
.wpgb-facet.wpgb-style-4:has(.wpgb-selection-facet) {
  padding-left: 4px !important;
  padding-right: 4px !important;
  margin-bottom: 16px !important;
}
/* Reset back to flush inside our own active-pills row on the trip listing */
.tt-listing__active-pills .wpgb-facet.wpgb-style-4:has(.wpgb-selection-facet) {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 0 !important;
}
.tt-listing__active-pills .wpgb-facet ul.wpgb-inline-list,
.wpgb-facet.wpgb-style-4 .wpgb-selection-facet ul.wpgb-inline-list {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.tt-listing__active-pills .wpgb-facet ul.wpgb-inline-list > li,
.wpgb-facet.wpgb-style-4 .wpgb-selection-facet ul.wpgb-inline-list > li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
  border: 0 !important;
}

/* Inner label + close-control inherit color */
.wpgb-facet .wpgb-selection-facet .wpgb-button .wpgb-button-label,
.wpgb-facet .wpgb-selection-facet .wpgb-button .wpgb-button-control {
  background: transparent !important;
  background-color: transparent !important;
  color: inherit !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font: inherit !important;
}
/* Close × glyph */
.wpgb-facet .wpgb-selection-facet .wpgb-button .wpgb-button-control {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  opacity: 0.7 !important;
}
.wpgb-facet .wpgb-selection-facet .wpgb-button .wpgb-button-control::before {
  content: "×";
  font-weight: 600;
}
.wpgb-facet .wpgb-selection-facet .wpgb-button:hover .wpgb-button-control {
  opacity: 1 !important;
}

/* ----- Clear all (Reset button) — text-link style, NOT a chip ----- */
.tt-listing__active-clear .wpgb-facet .wpgb-button.wpgb-reset,
.tt-listing__active-clear .wpgb-button.wpgb-reset,
.wpgb-facet.wpgb-style-4 .wpgb-button.wpgb-reset,
.wpgb-button.wpgb-reset {
  display: inline-block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--tt-text-secondary, #666) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  cursor: pointer !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  flex-grow: 0 !important;
}
.tt-listing__active-clear .wpgb-facet .wpgb-button.wpgb-reset:hover,
.wpgb-facet.wpgb-style-4 .wpgb-button.wpgb-reset:hover,
.wpgb-button.wpgb-reset:hover {
  color: var(--tt-primary, #8475e1) !important;
  background: transparent !important;
  background-color: transparent !important;
}
/* Disabled state of Clear all (no active filters yet) */
.wpgb-button.wpgb-reset[disabled],
.wpgb-button.wpgb-reset:disabled {
  opacity: 0.4 !important;
  cursor: default !important;
  pointer-events: none !important;
}

/* ----- Sidebar Season pill: keep light-purple chip style when selected -----
   Earlier rules at lines 2249-2259 set dark-purple solid bg + white text on
   .tt-pill.is-active. Override so selected season matches the active-row
   chip aesthetic (light-purple bg, primary text, subtle purple border). */
.tt-listing .tt-season-pills .tt-pill.is-active,
.tt-listing .tt-season-pills .tt-pill[aria-pressed="true"],
.tt-pills.tt-season-pills .tt-pill.is-active,
.tt-pills.tt-season-pills .tt-pill[aria-pressed="true"] {
  background: var(--tt-primary-bg, #f0eeff) !important;
  background-color: var(--tt-primary-bg, #f0eeff) !important;
  color: var(--tt-primary, #8475e1) !important;
  border-color: var(--tt-primary, #8475e1) !important;
}

/* ============================================================================
   v1.9.17 — Fix X glyph overlay + conditional Clear All
   ----------------------------------------------------------------------------
   - WPGB ships TWO white 2px bars rotated ±42° via pseudo-elements to draw
     an X on dark pills. On our light-purple pill, they're white-on-light
     (invisible) AND collide with our own ::before "×" glyph, creating a
     garbled mark. We neutralize WPGB's bars and use a clean × character.
   - Hide .tt-listing__active-clear when WPGB Reset is disabled (no filters).
   ============================================================================ */

/* Disable WPGB's white-bar X-shape pseudo elements on our active chips */
.wpgb-facet .wpgb-selection-facet .wpgb-button-control::before,
.wpgb-facet .wpgb-selection-facet .wpgb-button-control::after,
.tt-listing__active-pills .wpgb-button-control::before,
.tt-listing__active-pills .wpgb-button-control::after {
  background: transparent !important;
  background-color: transparent !important;
  width: auto !important;
  height: auto !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}

/* Now draw OUR own × character via ::before only */
.wpgb-facet .wpgb-selection-facet .wpgb-button .wpgb-button-control {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  opacity: 0.65 !important;
  position: relative !important;
}
.wpgb-facet .wpgb-selection-facet .wpgb-button .wpgb-button-control::before {
  content: "×" !important;
  color: inherit !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  line-height: 1 !important;
}
/* and explicitly nuke the ::after again on a higher-specificity selector */
.wpgb-facet .wpgb-selection-facet .wpgb-button .wpgb-button-control::after {
  content: none !important;
  display: none !important;
}
.wpgb-facet .wpgb-selection-facet .wpgb-button:hover .wpgb-button-control {
  opacity: 1 !important;
}

/* ----- Hide Clear All when no filters are active (Reset is :disabled) ----- */
.tt-listing__active-clear:has(.wpgb-button.wpgb-reset:disabled),
.tt-listing__active-clear:has(.wpgb-button.wpgb-reset[disabled]) {
  display: none !important;
}
/* When chips container has no chips AND no WPGB selections, also hide ACTIVE: row.
   We use :has on the active-pills having no .wpgb-button[aria-pressed=true] AND
   no .tt-active-chip. */
.tt-listing__active:not(:has(.tt-listing__active-pills .wpgb-button[aria-pressed="true"])):not(:has(.tt-listing__active-pills .tt-active-chip)) {
  display: none !important;
}

/* ============================================================================
   v1.9.18 — Mobile sidebar visibility + kill stuck "half-depressed" purple state
   ----------------------------------------------------------------------------
   1. Mobile (<=1023px): sidebar was rendered AFTER main grid in source, and
      previous rule set `order: 2` on sidebar / `order: 1` on main, putting it
      below all 30+ trip cards (effectively invisible). Flip ordering so the
      Filters card sits ABOVE the results on mobile.
   2. Some pills (notably WPGB facet buttons) get stuck displaying the dark
      `:active` / `:focus` background after a tap, producing a "half-depressed
      purple-on-purple" look. Force the light-purple chip style on those
      transient states so the visual stays consistent with the selected state.
   ============================================================================ */

/* ----- 1. Mobile sidebar above grid ----- */
@media (max-width: 1023px) {
  .tt-listing__body {
    /* explicit single-column, items in flow; let `order` reorder them */
    grid-template-columns: 1fr !important;
  }
  .tt-listing__sidebar {
    order: 0 !important;
    margin-bottom: 8px !important;
  }
  .tt-listing__main {
    order: 1 !important;
  }
  /* Trim sidebar padding a touch on small screens */
  .tt-listing__sidebar {
    padding: 16px !important;
  }
}

/* ----- 2. Kill stuck dark-purple :active / :focus flash on pills ----- */
/* tt-pill (season pills) — match selected light-purple chip style on
   :active / :focus / :focus-visible so a held tap doesn't show dark bg */
.tt-pill:active,
.tt-pill:focus,
.tt-pill:focus-visible,
.tt-listing .tt-season-pills .tt-pill:active,
.tt-listing .tt-season-pills .tt-pill:focus,
.tt-listing .tt-season-pills .tt-pill:focus-visible,
.tt-pills.tt-season-pills .tt-pill:active,
.tt-pills.tt-season-pills .tt-pill:focus,
.tt-pills.tt-season-pills .tt-pill:focus-visible {
  background: var(--tt-primary-bg, #f0eeff) !important;
  background-color: var(--tt-primary-bg, #f0eeff) !important;
  color: var(--tt-primary, #8475e1) !important;
  border-color: var(--tt-primary, #8475e1) !important;
  outline: 2px solid rgba(132, 117, 225, 0.35) !important;
  outline-offset: 1px !important;
}


/* ============================================================================
   v1.10.1 — Season facet icons
   Tiny alignment for the inline SVG injected before each season label.
   ============================================================================ */
.tt-season-icon {
  display: inline-block !important;
  vertical-align: -2px !important;
  margin-right: 6px !important;
  flex-shrink: 0 !important;
}
/* When icon sits in a flex/inline-flex button, align its baseline cleanly */
.wpgb-button .tt-season-icon {
  vertical-align: middle !important;
}


/* ============================================================
   Mobile filter drawer (v1.10.16)
   - Trigger bar + slide-in drawer below 900px
   - Above 900px: drawer wrapper is invisible, sidebar renders inline
   ============================================================ */

/* Defaults: hide mobile-only chrome on desktop */
.tt-listing__mobile-bar { display: none; }
.tt-listing__drawer-backdrop { display: none; }
.tt-listing__drawer-close { display: none; }
.tt-listing__drawer-footer { display: none; }

@media (max-width: 1023px) {
  /* --- Mobile: hide results count in toolbar (grid is right below),
     show the Filters trigger inline with Sort. --- */
  .tt-listing__toolbar > .tt-listing__filters-trigger {
    display: inline-flex;
  }
  .tt-listing__toolbar .tt-listing__count {
    display: none;
  }

  /* Stronger hero overlay on mobile so title pops against busy backgrounds */
  .tt-listing__hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(20, 14, 60, 0.45) 0%,
      rgba(20, 14, 60, 0.58) 100%
    );
  }
  /* Larger hero title on mobile to match site hero scale */
  .tt-listing .tt-listing__hero .tt-listing__hero-title {
    font-size: clamp(34px, 8vw, 44px) !important;
  }
  .tt-listing .tt-listing__hero .tt-listing__hero-subtitle {
    font-size: clamp(15px, 3.6vw, 18px) !important;
  }

  /* --- Legacy mobile-bar block (now empty after move to toolbar) --- */
  .tt-listing__mobile-bar {
    display: none;
  }
  .tt-listing__filters-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    color: var(--tt-text, #1f1d2b);
    border: 1.5px solid var(--tt-primary, #8475e1);
    border-radius: 999px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .tt-listing__filters-trigger:hover,
  .tt-listing__filters-trigger:focus-visible,
  .tt-listing__filters-trigger:active {
    background: var(--tt-primary-bg, #f0eeff);
    color: var(--tt-text, #1f1d2b);
    border-color: var(--tt-primary, #8475e1);
  }
  .tt-listing__filters-trigger svg { flex-shrink: 0; }
  .tt-listing__filters-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--tt-primary, #8475e1);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
  }
  .tt-listing__filters-count[hidden] { display: none; }

  /* --- Drawer behavior --- */
  .tt-listing__body {
    display: block; /* override desktop grid */
  }
  .tt-listing__sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(85vw, 360px);
    max-width: 100vw;
    height: 100dvh;
    z-index: 10000;
    background: #fff;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 56px 20px 96px !important; /* close button + footer (~68px) + breathing room — !important beats line 2608 */
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
  }
  .tt-listing.is-drawer-open .tt-listing__sidebar {
    transform: translateX(0);
  }

  /* Backdrop */
  .tt-listing__drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .tt-listing__drawer-backdrop[hidden] { display: none; }
  .tt-listing.is-drawer-open .tt-listing__drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Close X (top-right inside drawer) */
  .tt-listing__drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    color: var(--tt-text, #1f1d2b);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
  }
  .tt-listing__drawer-close:hover,
  .tt-listing__drawer-close:focus-visible {
    background: var(--tt-primary-bg, #f0eeff);
  }

  /* Footer pinned to viewport bottom, slides in with drawer */
  .tt-listing__drawer-footer {
    display: flex;
    gap: 12px;
    position: fixed;
    left: 0;
    bottom: 0;
    width: min(85vw, 360px);
    max-width: 100vw;
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #e3e0f5;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    box-sizing: border-box;
  }
  .tt-listing.is-drawer-open .tt-listing__drawer-footer {
    transform: translateX(0);
  }
  .tt-listing__drawer-clear,
  .tt-listing__drawer-apply {
    flex: 1;
    padding: 12px 16px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .tt-listing__drawer-clear {
    background: #fff;
    color: var(--tt-text-secondary, #666);
    border: 1.5px solid #e3e0f5;
  }
  .tt-listing__drawer-clear:hover {
    background: #f7f6fb;
    color: var(--tt-text, #1f1d2b);
  }
  .tt-listing__drawer-apply {
    background: var(--tt-primary, #8475e1);
    color: #fff;
    border: 1.5px solid var(--tt-primary, #8475e1);
  }
  .tt-listing__drawer-apply:hover {
    background: #6d5fce;
    border-color: #6d5fce;
  }

  /* Body scroll-lock when drawer is open */
  body.tt-drawer-open {
    overflow: hidden;
    touch-action: none;
  }
}

/* ==========================================================================
   LISTING — PROMINENT TABS (when sitting directly under the H1). Slightly
   larger and tighter under the header so users read them as primary
   navigation rather than a buried filter.
   ========================================================================== */
.tt-listing__tabs--prominent {
  margin: 12px 0 24px;
}

.tt-listing__tabs--prominent .tt-listing__tab {
  font-size: 17px;
  padding: 12px 4px;
  margin-right: 28px;
}

.tt-listing__tabs--prominent .tt-listing__tab.is-active {
  font-weight: 700;
  border-bottom-width: 2.5px;
}

@media (max-width: 640px) {
  .tt-listing__tabs--prominent {
    margin: 8px 0 18px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .tt-listing__tabs--prominent::-webkit-scrollbar { display: none; }
  .tt-listing__tabs--prominent .tt-listing__tab {
    font-size: 15px;
    margin-right: 18px;
    white-space: nowrap;
  }
}

/* ==========================================================================
   LISTING — FULL-BLEED HERO
   The .tt-listing wrapper sits inside the WP page container, but the hero
   needs to break out edge-to-edge. We use the 100vw + negative-half-vw trick
   so the hero spans the viewport regardless of the parent container width.
   The `100vw` here intentionally ignores scrollbar width — same behavior as
   most full-bleed implementations and looks fine across browsers.
   ========================================================================== */
.tt-listing__hero {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0 !important; /* parent .tt-listing zeroes its padding-top via :has() */
  margin-bottom: 32px;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  isolation: isolate;       /* keep overlay z-index local */
}

.tt-listing__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 14, 60, 0.30) 0%,
    rgba(20, 14, 60, 0.42) 100%
  );
  z-index: 1;
}

.tt-listing__hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 56px 24px;
  text-align: center;
  color: #fff;
}

.tt-listing .tt-listing__hero .tt-listing__hero-title {
  font-family: inherit;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 14px !important;
  color: #ffffff !important;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45) !important;
  background: transparent !important;
  -webkit-text-fill-color: #ffffff !important;
}

.tt-listing .tt-listing__hero .tt-listing__hero-subtitle {
  font-family: inherit;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.5;
  font-weight: 500 !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4) !important;
  background: transparent !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
}

@media (max-width: 640px) {
  .tt-listing__hero {
    min-height: 300px;
    margin-top: 0;
    margin-bottom: 20px;
  }
  .tt-listing__hero-inner {
    padding: 36px 18px;
  }
}
