/* =============================================================
   Tour Card Widget — tour-card.css  v1.4.3
   Blue #1a3a6b  ·  Yellow #f5c518
   ============================================================= */

/* ── 1. CSS custom properties (scoped to card so Elementor
         colour controls override per-widget cleanly)          ── */
.tcw-card {
  --tcw-primary:       #1a3a6b;
  --tcw-primary-light: #2a5298;
  --tcw-primary-dark:  #0d1f3c;
  --tcw-accent:        #f5c518;
  --tcw-accent-dark:   #d4a000;
  --tcw-card-bg:       #ffffff;
  --tcw-text:          #1e2a38;
  --tcw-text-muted:    #5a6a7e;
  --tcw-border:        #e4ecf4;
  --tcw-success:       #27ae60;
  --tcw-radius:        14px;
  --tcw-radius-sm:     8px;
  --tcw-shadow:        0 4px 24px rgba(26,58,107,.10);
  --tcw-shadow-hover:  0 12px 40px rgba(26,58,107,.22);
  --tcw-transition:    .28s cubic-bezier(.4,0,.2,1);
}

/* ── 2. FILTER CAROUSEL — full-bleed wrapper ─────────────── */
.tcw-filter-carousel {
  --tcw-card-gap:       20px;
  --tcw-cards-per-view: 3;
  width:      100%;
  position:   relative;
  box-sizing: border-box;
}

/* ── 3. TAB STRIP (Thrillophilia-style: centered, white, orange active) ── */
.tcw-tabs-outer {
  position:      relative;
  width:         100%;
  margin-bottom: 28px;
  background:    #fff;
}
.tcw-tabs-wrap {
  width:      100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding:    4px 48px;
  box-sizing: border-box;
  background: #fff !important;
  cursor:     grab;
  scroll-behavior: smooth;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.tcw-tabs-wrap.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.tcw-tabs-wrap.is-dragging * { pointer-events: none; }
.tcw-tabs-wrap::-webkit-scrollbar { display: none; }

.tcw-tabs {
  display:         flex;
  flex-wrap:       nowrap;
  gap:             36px;
  justify-content: center;
  align-items:     flex-end;
  width:           100%;
  min-width:       max-content;
  border-bottom:   none !important;
  margin:          0;
  padding:         0;
  background:      transparent !important;
}

/* Base tab: NO !important on color/background/border so Elementor Style
   controls always win. Only keep !important on appearance/shadow/underline
   reset which are purely defensive against theme button styles. */
.tcw-tab {
  -webkit-appearance: none !important;
  appearance:      none !important;
  position:        relative;
  display:         inline-flex !important;
  flex-direction:  column;
  align-items:     center;
  gap:             6px;
  padding:         10px 4px 14px;
  border:          none;
  border-bottom:   3px solid transparent;
  border-radius:   0;
  background:      transparent;
  background-color:transparent;
  color:           #6a7e95;
  box-shadow:      none !important;
  font-size:       13px;
  font-weight:     500;
  white-space:     nowrap;
  cursor:          pointer;
  transition:      color .2s, border-color .2s, background-color .2s;
  flex-shrink:     0;
  text-decoration: none !important;
  min-width:       64px;
  outline:         none;
}
/* Hover: only kill theme shadow bleed; do NOT force color/bg so
   Elementor Normal styles win, and Active state stays visible. */
.tcw-tab:hover,
.tcw-tab:focus,
.tcw-tab:focus-visible {
  box-shadow:          none !important;
  outline:             none;
}
.tcw-tab.is-active {
  color:               #ff7b1c;
  border-bottom-color: #ff7b1c;
  font-weight:         700;
}
/* Let label inherit typography from Elementor's .tcw-tab typography control */
.tcw-tab-label { font-size: inherit; font-weight: inherit; color: inherit; }
.tcw-tab-icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:  30px;
  height: 30px;
  color:  inherit;
}
.tcw-tab-icon svg {
  width:  26px;
  height: 26px;
  stroke: currentColor;
  fill:   none;
}
.tcw-tab-label { line-height: 1.1; }
/* Custom image icon (user-uploaded PNG) */
.tcw-tab-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.tcw-tab-badge {
  position:       absolute;
  top:            -6px;
  left:           50%;
  transform:      translateX(-50%);
  background:     #ff7b1c;
  color:          #fff !important;
  font-size:      9px;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding:        2px 6px;
  border-radius:  4px;
  line-height:    1;
  white-space:    nowrap;
  pointer-events: none;
}

/* Tab-strip scroll chevrons (fade in only when overflow) */
.tcw-tabs-nav {
  position:        absolute;
  top:             50%;
  transform:       translateY(-50%);
  z-index:         3;
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           34px;
  height:          34px;
  border-radius:   50%;
  border:          none !important;
  background:      #fff !important;
  color:           #1a3a6b !important;
  cursor:          pointer;
  box-shadow:      0 2px 10px rgba(0,0,0,.12);
  opacity:         0;
  pointer-events:  none;
  transition:      opacity .2s, background .2s, transform .2s;
  padding:         0 !important;
}
.tcw-tabs-nav:hover,
.tcw-tabs-nav:focus,
.tcw-tabs-nav:active {
  background: #fff !important;
  color:      #ff7b1c !important;
  transform:  translateY(-50%) scale(1.06);
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  outline:    none;
}
.tcw-tabs-nav svg { width: 14px; height: 14px; }
.tcw-tabs-nav--prev { left:  6px; }
.tcw-tabs-nav--next { right: 6px; }
.tcw-tabs-outer.has-overflow .tcw-tabs-nav {
  opacity:        1;
  pointer-events: auto;
}
.tcw-tabs-outer.has-overflow .tcw-tabs { justify-content: flex-start; }
.tcw-tabs-nav.is-disabled { opacity: .25 !important; pointer-events: none; }


/* Divider under filter tabs strip */
.tcw-tabs-outer {
  border-bottom: 1px solid #e6ebf1;
  padding-bottom: 6px;
}
/* Edge blur/fade on tab strip (Thrillophilia-style) */
.tcw-tabs-outer::before,
.tcw-tabs-outer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 40%, transparent 100%);
          mask-image: linear-gradient(to right, #000 0%, #000 40%, transparent 100%);
}
.tcw-tabs-outer::before {
  left: 0;
  background: linear-gradient(to right, #fff 20%, rgba(255,255,255,0) 100%);
}
.tcw-tabs-outer::after {
  right: 0;
  background: linear-gradient(to left,  #fff 20%, rgba(255,255,255,0) 100%);
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 100%);
          mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 100%);
}
/* Keep chevrons above the fade */
.tcw-tabs-nav { z-index: 4; }

/* ── 4. SECTION HEADING ──────────────────────────────────── */
.tcw-section-heading {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  margin-bottom:   22px;
  gap:             12px;
}
.tcw-section-title {
  margin:      0;
  font-size:   26px;
  font-weight: 700;
  color:       #1a3a6b;
  line-height: 1.2;
}
.tcw-view-all {
  display:         inline-flex;
  align-items:     center;
  gap:             6px;
  color:           #d4a000;
  font-size:       14px;
  font-weight:     600;
  text-decoration: none;
  white-space:     nowrap;
  transition:      gap .2s, color .2s;
}
.tcw-view-all:hover { gap: 10px; color: #1a3a6b; }
.tcw-view-all svg   { width: 20px; height: 20px; flex-shrink: 0; }

/* ── 5. CAROUSEL OUTER SHELL ─────────────────────────────── */
.tcw-carousel {
  position: relative;
  width:    100%;
  overflow: visible;
  padding-bottom: 6px;
}
.tcw-filter-carousel { overflow: visible; }

/* Prev/next arrows — 30x30 white circle, black chevron */
.tcw-arrow {
  position:        absolute;
  top:             50%;
  transform:       translateY(-50%);
  z-index:         10;
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           30px;
  height:          30px;
  border-radius:   50%;
  border:          none;
  background:      #ffffff;
  color:           #111111;
  cursor:          pointer;
  box-shadow:      0 2px 10px rgba(0,0,0,.18);
  transition:      background .2s, color .2s, transform .2s, box-shadow .2s;
  padding:         0;
}
.tcw-arrow--prev { left:  -15px; }
.tcw-arrow--next { right: -15px; }
.tcw-arrow svg   { width: 14px; height: 14px; color: #111 !important; stroke: currentColor; }
.tcw-arrow:hover {
  background: #ffffff;
  color:      #111111;
  transform:  translateY(-50%) scale(1.08);
  box-shadow: 0 4px 14px rgba(0,0,0,.24);
}
.tcw-arrow.is-disabled { opacity: .35; pointer-events: none; }

/* Viewport: hides the scrollbar, allows horizontal scroll */
.tcw-carousel-viewport {
  width:        100%;
  overflow-x:   auto;
  overflow-y:   hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Generous side + bottom padding so first/last card box-shadow isn't clipped */
  padding: 18px 4px 56px;
  box-sizing: border-box;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.tcw-carousel-viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.tcw-carousel-viewport.is-dragging * { pointer-events: none; }
.tcw-carousel-viewport::-webkit-scrollbar { display: none; }

/* Track: flex so width is constrained to viewport (fixes right-edge clipping) */
.tcw-carousel-track {
  display:    flex;
  flex-wrap:  nowrap;
  gap:        var(--tcw-card-gap);
  /* Minimum full-width so fewer-than-per-view cards still fill */
  min-width:  100%;
  transition: opacity .25s;
}
.tcw-carousel-track[data-loading="true"] {
  opacity:        .35;
  pointer-events: none;
}

/* Each slide: fixed width from per-view variable */
.tcw-carousel-slide {
  flex:              0 0 calc(
    (100% - (var(--tcw-cards-per-view) - 1) * var(--tcw-card-gap))
    / var(--tcw-cards-per-view)
  );
  scroll-snap-align: start;
  scroll-snap-stop:  always;
  display:           flex;   /* lets card stretch to slide height */
  min-width:         240px;  /* safety floor on very small screens */
}


.tcw-no-results {
  padding:    40px 20px;
  text-align: center;
  color:      #8a99aa;
  font-size:  14px;
  width:      100%;
}

/* Scroll progress bar (optional, shown via widget toggle) */
.tcw-carousel-progress {
  margin-top:    18px;
  margin-bottom: 6px;
  height:        3px;
  border-radius: 3px;
  background:    #e4ecf4;
  overflow:      hidden;
}
.tcw-carousel-progress-bar {
  height:     100%;
  width:      0;
  background: linear-gradient(90deg, #1a3a6b, #f5c518);
  border-radius: 3px;
  transition: width .15s ease-out;
}

/* ── 6. CARD SHELL ───────────────────────────────────────── */
.tcw-card {
  display:        flex;
  flex-direction: column;
  width:          100%;
  height:         100%;
  background:     var(--tcw-card-bg);
  border-radius:  var(--tcw-radius);
  overflow:       hidden;
  border:         1px solid var(--tcw-border);
  box-shadow:     var(--tcw-shadow);
  transition:     transform var(--tcw-transition),
                  box-shadow var(--tcw-transition);
  position:       relative;
}
.tcw-card:hover {
  transform:  translateY(-4px);
  box-shadow: var(--tcw-shadow-hover);
}

/* ── 7. CARD IMAGE — 1:1 ratio via padding-top trick ──────── */
.tcw-image-wrap {
  position:    relative;
  width:       100%;
  padding-top: 100%;   /* 1:1 — change to 75% for 4:3, 56.25% for 16:9 */
  overflow:    hidden;
  flex-shrink: 0;
  background:  #c8d8e8;  /* placeholder while image loads */
}

/* Gallery track: absolutely fills the padded box */
.tcw-gallery-track {
  position:   absolute !important;
  inset:      0 !important;
  display:    flex;
  width:      100%;
  height:     100% !important;
  transition: transform 0.42s cubic-bezier(.4,0,.2,1);
}

.tcw-gallery-slide {
  flex:       0 0 100%;
  width:      100%;
  height:     100% !important;
  overflow:   hidden;
  position:   relative;
}

.tcw-image {
  width:      100% !important;
  height:     100% !important;
  object-fit: cover !important;
  display:    block;
  transition: transform .5s ease;
}
.tcw-card:hover .tcw-gallery-slide.is-active .tcw-image {
  transform: scale(1.04);
}

/* ── 8. GALLERY DOTS ─────────────────────────────────────── */
.tcw-gallery-dots {
  position:  absolute;
  bottom:    10px;
  left:      50%;
  transform: translateX(-50%);
  display:   flex;
  align-items: center;
  gap:       5px;
  z-index:   4;
}

/* Full reset so no browser/theme button style bleeds through */
.tcw-gallery-dot,
button.tcw-gallery-dot {
  -webkit-appearance: none;
  appearance:    none;
  box-sizing:    border-box;
  display:       block;
  flex-shrink:   0;
  width:         7px !important;
  height:        7px !important;
  min-width:     7px;
  min-height:    7px;
  max-width:     7px;
  max-height:    7px;
  border-radius: 50% !important;
  background:    rgba(255,255,255,.5);
  border:        none;
  outline:       none;
  margin:        0;
  padding:       0;
  cursor:        pointer;
  font-size:     0;
  line-height:   0;
  box-shadow:    0 1px 3px rgba(0,0,0,.25);
  transition:    background .2s, transform .2s;
}
.tcw-gallery-dot.is-active,
button.tcw-gallery-dot.is-active {
  background: #fff;
  transform:  scale(1.2);
}
.tcw-gallery-dot:hover,
button.tcw-gallery-dot:hover {
  background: rgba(255,255,255,.85);
}

/* ── 9. IMAGE NAV ARROWS (30x30 white circle, black chevron) ── */
.tcw-img-arrow,
.tcw-img-arrow:hover,
.tcw-img-arrow:focus,
.tcw-img-arrow:active {
  -webkit-appearance: none !important;
  appearance:      none !important;
  position:        absolute;
  top:             50%;
  transform:       translateY(-50%);
  z-index:         5;
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           30px !important;
  height:          30px !important;
  border-radius:   50% !important;
  border:          none !important;
  background:      #ffffff !important;
  background-color:#ffffff !important;
  color:           #111111 !important;
  cursor:          pointer;
  box-shadow:      0 2px 8px rgba(0,0,0,.22) !important;
  outline:         none !important;
  text-decoration: none !important;
  padding:         0 !important;
  transition:      opacity .2s, background .2s, transform .2s;
}
.tcw-img-arrow {
  opacity:         0;
  pointer-events:  none;
}
.tcw-img-arrow--prev { left:  10px; }
.tcw-img-arrow--next { right: 10px; }
.tcw-img-arrow svg   { width: 14px !important; height: 14px !important; color: #111 !important; stroke: #111 !important; fill: none !important; }
.tcw-img-arrow:hover { transform: translateY(-50%) scale(1.08); }

/* Reveal on image area hover (desktop) */
.tcw-image-wrap:hover .tcw-img-arrow {
  opacity:        1;
  pointer-events: auto;
}

/* ── 10. BADGES ──────────────────────────────────────────── */
.tcw-badges {
  position:       absolute;
  top:            10px;
  left:           10px;
  display:        flex;
  flex-direction: column;
  gap:            5px;
  z-index:        3;
}
.tcw-badge {
  display:        inline-flex;
  align-items:    center;
  padding:        3px 9px;
  border-radius:  20px;
  font-size:      10.5px;
  font-weight:    700;
  letter-spacing: .5px;
  text-transform: uppercase;
  line-height:    1;
  white-space:    nowrap;
}
.tcw-badge--featured { background: var(--tcw-accent);   color: var(--tcw-primary-dark); }
.tcw-badge--discount { background: var(--tcw-primary);  color: #fff; }

/* ── 11. DESTINATION CHIP (top-right of image) ───────────── */
.tcw-destination-overlay {
  position: absolute;
  top:      10px;
  right:    10px;
  z-index:  3;
}
.tcw-destination {
  display:        inline-flex;
  align-items:    center;
  gap:            4px;
  color:          #fff;
  font-size:      11px;
  font-weight:    600;
  background:     rgba(13,31,60,.55);
  backdrop-filter: blur(3px);
  padding:        3px 9px;
  border-radius:  20px;
}

/* ── 12. CARD BODY ───────────────────────────────────────── */
.tcw-body {
  flex:           1;
  display:        flex;
  flex-direction: column;
  gap:            8px;
  padding:        14px 16px 12px;
}

/* Tour type / activity chips */
.tcw-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tcw-tag {
  display:        inline-flex;
  align-items:    center;
  padding:        2px 8px;
  border-radius:  20px;
  font-size:      10.5px;
  font-weight:    600;
  letter-spacing: .3px;
  text-transform: capitalize;
}
.tcw-tag--type     { background: rgba(26,58,107,.09); color: #1a3a6b; border: 1px solid rgba(26,58,107,.15); }
.tcw-tag--activity { background: rgba(245,197,24,.13); color: #d4a000; border: 1px solid rgba(245,197,24,.28); }

/* Title — clamp to 2 lines */
.tcw-title {
  margin:            0;
  font-size:         16px;
  font-weight:       700;
  line-height:       1.35;
  color:             var(--tcw-text);
  display:           -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:           hidden;
}
.tcw-title a             { color: inherit; text-decoration: none; }
.tcw-title a:hover       { color: var(--tcw-primary); }

/* Meta row */
.tcw-meta {
  display:       flex;
  flex-wrap:     wrap;
  gap:           6px 12px;
  border-top:    1px solid var(--tcw-border);
  border-bottom: 1px solid var(--tcw-border);
  padding:       8px 0;
}
.tcw-meta-item {
  display:     inline-flex;
  align-items: center;
  gap:         3px;
  font-size:   11.5px;
  font-weight: 500;
  color:       var(--tcw-text-muted);
  white-space: nowrap;
}
.tcw-difficulty--easy     { color: #27ae60; }
.tcw-difficulty--moderate { color: #e67e22; }
.tcw-difficulty--hard     { color: #e74c3c; }
.tcw-difficulty--extreme  { color: #6c0000; }

/* SVG icons inside body */
.tcw-icon    { width: 13px; height: 13px; flex-shrink: 0; fill: currentColor; }
.tcw-icon--sm { width: 11px; height: 11px; }

/* Highlights list */
.tcw-highlights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tcw-highlight-item {
  display:     flex;
  align-items: flex-start;
  gap:         5px;
  font-size:   12.5px;
  color:       var(--tcw-text);
  line-height: 1.4;
}
.tcw-check-icon { width: 14px; height: 14px; fill: var(--tcw-success); flex-shrink: 0; margin-top: 2px; }

/* Inclusions chips */
.tcw-inclusions { display: flex; flex-wrap: wrap; gap: 5px; }
.tcw-inclusion-chip {
  display:       inline-flex;
  align-items:   center;
  gap:           3px;
  padding:       3px 9px;
  background:    rgba(39,174,96,.08);
  border:        1px solid rgba(39,174,96,.22);
  border-radius: 20px;
  font-size:     11px;
  color:         #1a7a40;
  font-weight:   500;
}

/* ── 13. CARD FOOTER ─────────────────────────────────────── */
.tcw-footer {
  display:          flex;
  align-items:      center;
  justify-content:  space-between;
  gap:              10px;
  padding:          12px 16px;
  background:       linear-gradient(135deg, var(--tcw-primary-dark) 0%, var(--tcw-primary) 100%);
  flex-wrap:        wrap;
  margin-top:       auto;   /* push footer to card bottom */
}
.tcw-price-block { display: flex; flex-direction: column; gap: 1px; }
.tcw-price-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.55); font-weight: 500; }
.tcw-price-row   { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tcw-price-sale  { font-size: 20px; font-weight: 800; color: var(--tcw-accent); line-height: 1.1; letter-spacing: -.4px; }
.tcw-price-regular { font-size: 12px; color: rgba(255,255,255,.45); text-decoration: line-through; }
.tcw-price-per   { font-size: 10px; color: rgba(255,255,255,.50); }

.tcw-cta { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.tcw-btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  padding:         8px 14px;
  border-radius:   var(--tcw-radius-sm);
  font-size:       12.5px;
  font-weight:     700;
  letter-spacing:  .3px;
  text-decoration: none;
  cursor:          pointer;
  border:          2px solid transparent;
  line-height:     1;
  white-space:     nowrap;
  transition:      all var(--tcw-transition);
}
.tcw-btn--primary { background: var(--tcw-accent); color: var(--tcw-primary-dark); border-color: var(--tcw-accent); }
.tcw-btn--primary:hover { background: var(--tcw-accent-dark); border-color: var(--tcw-accent-dark); color: var(--tcw-primary-dark); }
.tcw-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.tcw-btn--outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.75); color: #fff; }

/* Elementor editor placeholder */
.tcw-placeholder {
  background:    #f0f4f8;
  border:        2px dashed #c0cfe0;
  border-radius: var(--tcw-radius);
  padding:       24px;
  text-align:    center;
  color:         var(--tcw-text-muted);
  font-size:     14px;
}

/* ── 14. EQUAL-HEIGHT: Elementor Pro Loop Grid ───────────── */
/* Force every wrapper in the loop item chain to be flex-column
   so .tcw-card { height:100% } actually reaches full height.   */
.e-loop-item,
.elementor-loop-item,
.e-loop-item > .elementor,
.elementor-loop-item > .elementor {
  height: 100%; display: flex; flex-direction: column;
}
.e-loop-item .e-con,
.elementor-loop-item .e-con,
.e-loop-item .elementor-section,
.elementor-loop-item .elementor-section,
.e-loop-item .elementor-container,
.elementor-loop-item .elementor-container {
  height: 100%; flex: 1; display: flex; flex-direction: column;
}
.e-loop-item .elementor-widget-tcrdw_tour_card,
.elementor-loop-item .elementor-widget-tcrdw_tour_card,
.e-loop-item .elementor-widget-tcrdw_tour_card .elementor-widget-container,
.elementor-loop-item .elementor-widget-tcrdw_tour_card .elementor-widget-container {
  height: 100%; flex: 1; display: flex; flex-direction: column;
}
.e-loop-item .tcw-card,
.elementor-loop-item .tcw-card { flex: 1; }

/* JetEngine listing grid */
.jet-listing-grid__item,
.jet-listing-grid__item > .elementor,
.jet-listing-grid__item .e-con,
.jet-listing-grid__item .elementor-section,
.jet-listing-grid__item .elementor-widget-container,
.jet-listing-grid__item .elementor-widget-tcrdw_tour_card {
  height: 100%; display: flex; flex-direction: column;
}
.jet-listing-grid__item .tcw-card { flex: 1; }

/* Grid containers: stretch items so all reach same row height */
.e-loop-container,
.elementor-loop-container,
.elementor-posts-container { align-items: stretch !important; }

/* Inside our own filter carousel: body grows, footer stays bottom */
.tcw-carousel-slide .tcw-body { flex: 1; }

/* ── 15. RESPONSIVE ──────────────────────────────────────── */

/* ≤1280px — still 3 clean cards, tighter gap */
@media (max-width: 1280px) {
  .tcw-filter-carousel { --tcw-cards-per-view: 3; --tcw-card-gap: 16px; }
  .tcw-tab { padding: 10px 12px 14px; }
}

/* ≤1024px — 2 cards */
@media (max-width: 1024px) {
  .tcw-card { --tcw-radius: 12px; }
  .tcw-filter-carousel { --tcw-cards-per-view: 2; --tcw-card-gap: 14px; }
  .tcw-section-title { font-size: 22px; }
  .tcw-title { font-size: 15px; }
  .tcw-price-sale { font-size: 18px; }
}

/* ≤768px — tablet */
@media (max-width: 768px) {
  .tcw-filter-carousel { --tcw-cards-per-view: 1.15; --tcw-card-gap: 14px; }

  .tcw-section-title { font-size: 20px; }
  .tcw-view-all      { font-size: 13px; }

  .tcw-tab        { padding: 8px 10px 12px; font-size: 12px; }
  .tcw-tab-label  { font-size: 11.5px; }
  .tcw-tab-icon   { width: 24px; height: 24px; }
  .tcw-tab-icon svg { width: 20px; height: 20px; }

  .tcw-arrow--prev { left:  4px; }
  .tcw-arrow--next { right: 4px; }

  .tcw-footer {
    flex-direction: column;
    align-items:    stretch;
    gap:            10px;
    padding:        12px 14px;
  }
  .tcw-cta { width: 100%; }
  .tcw-btn { flex: 1; padding: 9px 10px; font-size: 12px; }
  .tcw-price-sale { font-size: 18px; }

  .tcw-img-arrow { opacity: 1; pointer-events: auto; }
}

/* ≤520px — phone: 1 full card (no peeking) */
@media (max-width: 520px) {
  .tcw-filter-carousel { --tcw-cards-per-view: 1.05; --tcw-card-gap: 12px; }
  .tcw-tab { padding: 7px 10px 10px; }
  .tcw-section-title { font-size: 18px; }
  .tcw-title { font-size: 14px; line-height: 1.3; }
  .tcw-body  { padding: 12px 14px 12px; gap: 7px; }
  .tcw-meta  { padding: 7px 0; }
  .tcw-meta-item { font-size: 11px; }
  .tcw-price-sale { font-size: 17px; }
  .tcw-badges { top: 8px; left: 8px; gap: 4px; }
  .tcw-badge { font-size: 9.5px; padding: 2px 6px; }
  .tcw-destination-overlay { top: 8px; right: 8px; }
  .tcw-destination { font-size: 10.5px; padding: 3px 8px; }
  .tcw-tag { font-size: 10px; padding: 2px 7px; }
  .tcw-inclusion-chip { font-size: 10.5px; }
}

/* ≤380px — small phone */
@media (max-width: 380px) {
  .tcw-filter-carousel { --tcw-cards-per-view: 1; --tcw-card-gap: 10px; }
  .tcw-carousel-slide { min-width: 0; }
}

/* Print */
@media print {
  .tcw-card         { box-shadow: none; border: 1px solid #ccc; }
  .tcw-card:hover   { transform: none; }
  .tcw-footer       { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── 14. THEME HOVER NEUTRALIZATION ─────────────────────────
   Some themes/Elementor button styles inject a red (or brand)
   background on ANY <a>/<button> hover, which flashes the whole
   image area red before the icon-level override kicks in. Kill
   background/box-shadow bleed on the image wrapper, gallery
   slides, dots, and the card link overlay across all states. */
.tcw-image-wrap,
.tcw-image-wrap:hover,
.tcw-image-wrap:focus,
.tcw-image-wrap:active,
.tcw-image-wrap a,
.tcw-image-wrap a:hover,
.tcw-image-wrap a:focus,
.tcw-image-wrap a:active,
.tcw-gallery,
.tcw-gallery:hover,
.tcw-gallery-track,
.tcw-gallery-track:hover,
.tcw-gallery-slide,
.tcw-gallery-slide:hover,
.tcw-gallery-slide a,
.tcw-gallery-slide a:hover,
.tcw-card a.tcw-image-link,
.tcw-card a.tcw-image-link:hover,
.tcw-card a.tcw-image-link:focus,
.tcw-card a.tcw-image-link:active {
  background:       transparent !important;
  background-color: transparent !important;
  box-shadow:       none !important;
  border-color:     transparent !important;
  color:            inherit !important;
  text-decoration:  none !important;
}

/* Dots must stay their own colour on hover, not theme-red */
.tcw-gallery-dot,
.tcw-gallery-dot:hover,
.tcw-gallery-dot:focus,
.tcw-gallery-dot:active,
button.tcw-gallery-dot,
button.tcw-gallery-dot:hover,
button.tcw-gallery-dot:focus,
button.tcw-gallery-dot:active {
  border: none !important;
  box-shadow: none !important;
  color: transparent !important;
}

/* ============================================================
   14. TAB BADGE ("Trending", "New", etc. — custom-tabs feature)
   ============================================================ */
.tcw-tab { position: relative; }
.tcw-tab-badge {
	position: absolute;
	top: -10px;
	right: 50%;
	transform: translateX(50%);
	background: #ff7b1c;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	padding: 3px 7px;
	border-radius: 10px;
	white-space: nowrap;
	letter-spacing: 0.2px;
	box-shadow: 0 2px 6px rgba(255, 123, 28, 0.35);
	pointer-events: none;
	z-index: 2;
}

/* ============================================================
   15. LOAD MORE (Dynamic Loading)
   ============================================================ */
.tcw-load-more-wrap {
	display: flex;
	justify-content: center;
	margin: 18px 0 4px;
}
.tcw-load-more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--tcw-primary, #1a3a6b);
	color: #fff;
	border: none;
	padding: 12px 26px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.3px;
	border-radius: 999px;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease, background 0.2s ease;
	box-shadow: 0 4px 14px rgba(26, 58, 107, 0.22);
}
.tcw-load-more:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(26, 58, 107, 0.3);
}
.tcw-load-more:disabled { cursor: not-allowed; opacity: 0.7; }
.tcw-load-more .tcw-load-more-spinner {
	width: 16px; height: 16px;
	display: none;
	animation: tcw-spin 0.9s linear infinite;
}
.tcw-load-more.is-loading .tcw-load-more-spinner { display: inline-block; }
.tcw-load-more.is-done {
	background: #e6ebf1;
	color: #6a7e95;
	box-shadow: none;
}
.tcw-load-more.is-hidden { display: none; }
@keyframes tcw-spin { to { transform: rotate(360deg); } }
