/* Triplan Website / Containers / Product Carousel
 * Shortcodes: [triplan_group_trips_carousel], [triplan_activities_carousel], [triplan_shop_carousel]
 */

.tp-product-carousel {
  --tp-product-pad-x: var(--tp-section-padding-x-desktop, 90px);
  --tp-product-pad-y: var(--tp-section-spacing-y, 40px);
  --tp-product-max-width: none;
  --tp-product-gap: 20px;
  --tp-product-card-width: calc(23.2558% - 15.349px);
  --tp-product-card-radius: 18px;
  --tp-product-card-shadow: 0 2px 18px rgba(15, 32, 39, 0.12);
  --tp-product-card-shadow-hover: 0 14px 34px rgba(15, 32, 39, 0.20);
  --tp-product-text: var(--tp-900, #1A2B49);
  --tp-product-muted: #777;
  --tp-product-bg: #fff;

  position: relative;
  padding: var(--tp-product-pad-y) 0 0;
  background: var(--tp-product-bg);
  color: var(--tp-product-text);
  font-family: var(--tp-body-font, "Poppins", sans-serif);
}

.tp-product-carousel *,
.tp-product-carousel *::before,
.tp-product-carousel *::after {
  box-sizing: border-box;
}

.tp-product-carousel__inner {
  width: 100%;
  max-width: var(--tp-product-max-width);
  margin: 0 auto;
  padding: 0 var(--tp-product-pad-x);
}

.tp-product-carousel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.tp-product-carousel__title {
  margin: 0;
  color: var(--tp-product-text);
  font-family: var(--tp-heading-font, "Poppins", sans-serif);
  font-size: var(--tp-section-title-size, 2.25rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.tp-product-carousel__nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tp-product-carousel__nav-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(26, 43, 73, 0.15) !important;
  border-radius: 50%;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--tp-product-text) !important;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.tp-product-carousel__nav-btn:hover,
.tp-product-carousel__nav-btn:focus-visible {
  background: var(--tp-product-text) !important;
  border-color: var(--tp-product-text) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.tp-product-carousel__nav-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.tp-product-carousel__viewport {
  margin: 0;
  padding: 0 0 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tp-product-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.tp-product-carousel__track {
  list-style: none;
  display: flex;
  gap: var(--tp-product-gap);
  margin: 0;
  padding: 0;
}

.tp-product-carousel__slide {
  flex: 0 0 var(--tp-product-card-width);
  scroll-snap-align: start;
}

.tp-product-card {
  position: relative;
  width: 100%;
  min-height: 454px;
  border-radius: var(--tp-product-card-radius);
  background: #fff;
  box-shadow: var(--tp-product-card-shadow);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.tp-product-card *,
.tp-product-card *::before,
.tp-product-card *::after {
  box-sizing: border-box;
}

.tp-product-card:hover,
.tp-product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--tp-product-card-shadow-hover);
}

.tp-product-card__link {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  color: inherit !important;
  text-decoration: none !important;
}

.tp-product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, #29525D, var(--tp-primary));
}

.tp-product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none !important;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 560ms ease;
}

.tp-product-card:hover .tp-product-card__media img,
.tp-product-card:focus-within .tp-product-card__media img {
  transform: scale(1.035);
}

.tp-product-card__favorite {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(26, 43, 73, 0.12);
  border-radius: 50%;
  background: #fff;
  color: var(--tp-product-text) !important;
  font-size: 22px;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 6px 14px rgba(15, 32, 39, 0.13);
  transition: color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tp-product-card__favorite:hover,
.tp-product-card__favorite:focus-visible {
  background: var(--tp-cyan-tint, #DDF6F8);
  color: var(--tp-primary-dark, #087C89) !important;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 9px 20px rgba(15, 32, 39, 0.18);
}

.tp-product-card__badge {
  position: absolute;
  left: 12px;
  bottom: 14px;
  z-index: 2;
  min-height: 30px;
  max-width: calc(100% - 68px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 4px;
  background: #fff;
  color: var(--tp-product-text);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(15, 32, 39, 0.16);
}

.tp-product-card__badge i {
  font-size: 12px;
  flex: 0 0 auto;
}

.tp-product-card__badge span {
  min-width: 0;
}

.tp-product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 15px;
  background: #fff;
}

.tp-product-card__meta,
.tp-product-card__duration {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--tp-product-muted);
  font-weight: 700;
}

.tp-product-card__meta {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.2;
}

.tp-product-card__meta i {
  width: 14px;
  color: #858585;
  font-size: 14px;
  text-align: center;
}

.tp-product-card__title {
  margin: 0 0 6px;
  color: var(--tp-product-text);
  font-family: var(--tp-heading-font, "Poppins", sans-serif);
  font-size: 17px;
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tp-product-card__duration {
  margin-bottom: 16px;
  color: var(--tp-product-text);
  font-size: 13px;
  line-height: 1.2;
}

.tp-product-card__duration i {
  font-size: 13px;
}

.tp-product-card__price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  color: var(--tp-product-text);
  text-align: right;
  font-family: var(--tp-heading-font, "Poppins", sans-serif);
  white-space: nowrap;
}

.tp-product-card__price span {
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

.tp-product-card__price strong {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.tp-product-card--activity {
  min-height: 432px;
}

.tp-product-card--activity .tp-product-card__media {
  aspect-ratio: 1 / 1;
}

.tp-product-card--activity .tp-product-card__body {
  padding-top: 14px;
}

.tp-product-card--activity .tp-product-card__meta {
  margin-bottom: 6px;
}

.tp-product-card--activity .tp-product-card__title {
  font-size: 17px;
  margin-bottom: 6px;
}

.tp-product-card--shop {
  min-height: 0;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 0;
  box-shadow: none;
}

.tp-product-card--shop .tp-product-card__media {
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
}

.tp-product-card--shop .tp-product-card__media img {
  object-fit: contain;
  padding: 12px;
}

.tp-shop-card__link {
  min-height: 0;
}

.tp-shop-card__body {
  display: block;
  padding: 24px 0 0;
}

.tp-shop-card__price-row {
  display: flex;
  align-items: center;
}

.tp-shop-card__sale-price {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 3px 7px;
  background: #ef2633;
  color: #fff;
  font-family: var(--tp-heading-font, "Poppins", sans-serif);
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.tp-shop-card__regular-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  min-height: 20px;
  color: #111;
}

.tp-shop-card__regular-price {
  font-size: 17px;
  line-height: 1;
  text-decoration: line-through;
}

.tp-shop-card__discount {
  color: #ef2633;
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
}

.tp-shop-card__brand,
.tp-shop-card__title {
  color: #000;
  font-family: var(--tp-heading-font, "Poppins", sans-serif);
  font-size: 22px;
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: 0;
}

.tp-shop-card__brand {
  margin-top: 16px;
}

.tp-shop-card__title {
  margin-top: 2px;
}

.tp-shop-card__rating {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: #000;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
}

.tp-shop-card__stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #f3a22a;
  font-size: 16px;
  line-height: 1;
}

.tp-product-card--shop .tp-product-card__favorite {
  top: 28px;
  right: 28px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #3da2b3 !important;
  box-shadow: none;
  font-size: 33px;
}

.tp-product-card--shop:hover,
.tp-product-card--shop:focus-within {
  transform: none;
  box-shadow: none;
}

@media (max-width: 767px) {
  .tp-product-carousel {
    --tp-product-pad-x: var(--tp-section-padding-x-mobile, 20px);
    --tp-product-pad-y: var(--tp-section-spacing-y, 40px);
    --tp-product-gap: 14px;
    --tp-product-card-width: calc(76.923vw - 27.692px);
  }

  .tp-product-carousel__viewport {
    margin: 0 calc(var(--tp-product-pad-x) * -1);
    padding: 0 var(--tp-product-pad-x) 18px;
    scroll-padding-left: var(--tp-product-pad-x);
  }

  .tp-product-carousel__header {
    margin-bottom: 24px;
  }

  .tp-product-carousel__title {
    max-width: 100%;
    font-size: var(--tp-section-title-size-mobile, 1.65rem);
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: normal;
  }

  .tp-product-carousel__nav {
    display: none;
  }

  .tp-product-card {
    min-height: 452px;
  }

  .tp-product-card__favorite {
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
    font-size: 21px;
  }

  .tp-product-card__body {
    padding: 14px 14px 15px;
  }

  .tp-product-card__title {
    font-size: 16px;
  }

  .tp-product-card__price strong {
    font-size: 22px;
  }

  .tp-product-card--shop {
    padding: 14px;
  }

  .tp-shop-card__body {
    padding-top: 18px;
  }

  .tp-shop-card__brand,
  .tp-shop-card__title {
    font-size: 19px;
  }

  .tp-shop-card__sale-price {
    min-height: 31px;
    font-size: 21px;
  }
}

/* WordPress/Elementor runtime guard */
.tp-product-carousel.tp-product-carousel {
  position: relative !important;
  display: block !important;
  clear: both !important;
  padding: var(--tp-product-pad-y) 0 !important;
  padding-bottom: 0 !important;
  background: var(--tp-product-bg) !important;
  color: var(--tp-product-text) !important;
  font-family: var(--tp-body-font, "Poppins", sans-serif) !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-carousel__inner,
.tp-product-carousel.tp-product-carousel .tp-product-carousel__header,
.tp-product-carousel.tp-product-carousel .tp-product-carousel__viewport,
.tp-product-carousel.tp-product-carousel .tp-product-carousel__slide,
.tp-product-carousel.tp-product-carousel .tp-product-card__body {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-carousel__title {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  float: none !important;
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-card__title {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  float: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  width: auto !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
  overflow: hidden !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-carousel__track {
  list-style: none !important;
  display: flex !important;
  gap: var(--tp-product-gap) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-card {
  position: relative !important;
  width: 100% !important;
  min-height: 454px !important;
  border-radius: var(--tp-product-card-radius) !important;
  background: #fff !important;
  overflow: hidden !important;
  box-shadow: var(--tp-product-card-shadow) !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-card--activity {
  min-height: 432px !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-card--shop {
  min-height: 0 !important;
  padding: 16px !important;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-card__link {
  display: flex !important;
  flex-direction: column !important;
  min-height: inherit !important;
  color: inherit !important;
  text-decoration: none !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-card__media {
  position: relative !important;
  overflow: hidden !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-card__media img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-card__title,
.tp-product-carousel.tp-product-carousel .tp-product-card__price {
  color: var(--tp-product-text) !important;
}

@media (max-width: 767px) {
  .tp-product-carousel.tp-product-carousel .tp-product-card {
    min-height: 452px !important;
  }

  .tp-product-carousel.tp-product-carousel .tp-product-card--activity {
    min-height: 428px !important;
  }

  .tp-product-carousel.tp-product-carousel .tp-product-card--shop {
    min-height: 398px !important;
  }
}

.tp-product-carousel.tp-product-carousel .tp-product-card__favorite {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 3 !important;
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: var(--tp-product-text) !important;
  font-size: 22px !important;
  text-decoration: none !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-card__badge,
.tp-product-carousel.tp-product-carousel .tp-product-card__meta,
.tp-product-carousel.tp-product-carousel .tp-product-card__duration,
.tp-product-carousel.tp-product-carousel .tp-product-card__price {
  display: flex !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-card__badge {
  position: absolute !important;
  left: 12px !important;
  bottom: 14px !important;
  z-index: 2 !important;
  width: auto !important;
  background: #fff !important;
  color: var(--tp-product-text) !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-card--shop:hover,
.tp-product-carousel.tp-product-carousel .tp-product-card--shop:focus-within {
  transform: none !important;
  box-shadow: none !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-card--shop .tp-product-card__link {
  display: block !important;
  min-height: 0 !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-card--shop .tp-product-card__media {
  aspect-ratio: 1 / 1 !important;
  background: #f2f2f2 !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-card--shop .tp-product-card__media img {
  object-fit: contain !important;
  padding: 12px !important;
}

.tp-product-carousel.tp-product-carousel .tp-product-card--shop .tp-product-card__favorite {
  top: 28px !important;
  right: 28px !important;
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #3da2b3 !important;
  font-size: 33px !important;
}

.tp-product-carousel.tp-product-carousel .tp-shop-card__body {
  display: block !important;
  padding: 24px 0 0 !important;
}

.tp-product-carousel.tp-product-carousel .tp-shop-card__price-row,
.tp-product-carousel.tp-product-carousel .tp-shop-card__regular-row,
.tp-product-carousel.tp-product-carousel .tp-shop-card__rating,
.tp-product-carousel.tp-product-carousel .tp-shop-card__stars {
  display: flex !important;
}

.tp-product-carousel.tp-product-carousel .tp-shop-card__sale-price {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 3px 7px !important;
  background: #ef2633 !important;
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
}

.tp-product-carousel.tp-product-carousel .tp-shop-card__regular-price {
  color: #111 !important;
  font-size: 17px !important;
  line-height: 1 !important;
  text-decoration: line-through !important;
}

.tp-product-carousel.tp-product-carousel .tp-shop-card__discount {
  color: #ef2633 !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

.tp-product-carousel.tp-product-carousel .tp-shop-card__brand,
.tp-product-carousel.tp-product-carousel .tp-shop-card__title {
  color: #000 !important;
  font-size: 22px !important;
  line-height: 1.04 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.tp-product-carousel.tp-product-carousel .tp-shop-card__rating {
  align-items: center !important;
  gap: 7px !important;
  color: #000 !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

.tp-product-carousel.tp-product-carousel .tp-shop-card__stars {
  color: #f3a22a !important;
}

@media (max-width: 767px) {
  .tp-product-carousel.tp-product-carousel .tp-product-card--shop {
    min-height: 0 !important;
    padding: 14px !important;
  }

  .tp-product-carousel.tp-product-carousel .tp-shop-card__body {
    padding-top: 18px !important;
  }

  .tp-product-carousel.tp-product-carousel .tp-shop-card__brand,
  .tp-product-carousel.tp-product-carousel .tp-shop-card__title {
    font-size: 19px !important;
  }

  .tp-product-carousel.tp-product-carousel .tp-shop-card__sale-price {
    min-height: 31px !important;
    font-size: 21px !important;
  }
}
