/* Scoped to the photo-filter enhancement; listing-card styling stays in Elementor. */
.ts-destination-slider {
  --ts-navy: #073b70;
  --ts-orange: #ff9900;
  --ts-card-width: clamp(190px, calc((100% - 64px) / 5), 240px);
  --ts-card-height: 100px;
  --ts-active-height: 132px;
  position: relative;
  width: 100%;
  min-width: 0;
}
.ts-destination-track { width: 100%; min-width: 0; }
.ts-destination-slider .e-filter {
  display: flex !important;
  flex-flow: row nowrap !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 16px !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: calc(var(--ts-active-height) + 28px);
  margin: 0 !important;
  padding: 6px 4px 20px !important;
  overflow-x: auto !important;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ts-destination-slider .e-filter::-webkit-scrollbar { display: none; }
.ts-destination-slider .e-filter-item.ts-destination-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 0 0 var(--ts-card-width);
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  box-sizing: border-box;
  height: var(--ts-card-height) !important;
  min-height: 0 !important;
  max-width: none;
  margin: 0 !important;
  padding: 16px !important;
  border: 0 !important;
  border-radius: 12px !important;
  outline: none !important;
  box-shadow: none !important;
  background: var(--ts-navy) !important;
  color: #fff !important;
  text-align: left;
  white-space: normal;
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.2px;
  cursor: pointer;
  scroll-snap-align: start;
  overflow: visible;
  transition: height 300ms cubic-bezier(.2, .65, .25, 1), box-shadow 200ms ease;
}
.ts-destination-slider .ts-destination-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.ts-destination-slider .ts-destination-photo img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 260ms ease;
}
.ts-destination-slider .ts-destination-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(3, 26, 49, .02) 10%, rgba(3, 26, 49, .16) 45%, rgba(3, 26, 49, .82) 100%);
  pointer-events: none;
}
.ts-destination-slider .ts-destination-label {
  position: relative;
  display: block;
  color: inherit;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .2);
  pointer-events: none;
  z-index: 1;
}
.ts-destination-slider .ts-destination-tint {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(7, 59, 112, .24) 30%, rgba(7, 59, 112, .86) 100%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.ts-destination-slider .ts-destination-card-all {
  order: -1;
  background: linear-gradient(135deg, #0c548b, #073b70) !important;
}
.ts-destination-slider .ts-destination-all-icon {
  position: relative;
  z-index: 1;
  margin-bottom: auto;
  color: #ffbf54;
  pointer-events: none;
}
.ts-destination-slider .ts-destination-card[aria-pressed='true'] {
  height: var(--ts-active-height) !important;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ts-navy) !important;
}
.ts-destination-slider .ts-destination-card[aria-pressed='true'] .ts-destination-tint { opacity: 1; }
.ts-destination-slider .ts-destination-card::after {
  content: '';
  position: absolute;
  left: calc(50% - 6px);
  bottom: -10px;
  width: 12px;
  height: 12px;
  border-radius: 0 0 2px 0;
  background: var(--ts-navy);
  opacity: 0;
  transform: translateY(-3px) rotate(45deg);
  transition: opacity 180ms ease, transform 300ms ease;
  pointer-events: none;
}
.ts-destination-slider .ts-destination-card[aria-pressed='true']::after {
  opacity: 1;
  transform: translateY(0) rotate(45deg);
}
.ts-destination-slider .ts-destination-card:focus-visible,
.ts-destination-slider .ts-destination-nav:focus-visible {
  outline: 3px solid var(--ts-orange) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--ts-orange) !important;
}
.ts-destination-slider .ts-destination-nav {
  position: absolute;
  top: calc(var(--ts-card-height) / 2 - 14px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0 !important;
  border: 1px solid #e0e7ef;
  border-radius: 50%;
  background: #fff !important;
  color: var(--ts-navy) !important;
  box-shadow: 0 3px 14px rgba(7, 36, 65, .14);
  cursor: pointer;
  transition: background-color 180ms ease;
}
.ts-destination-slider .ts-destination-nav[hidden] { display: none !important; }
.ts-destination-slider .ts-destination-prev { left: -16px; }
.ts-destination-slider .ts-destination-prev svg { transform: rotate(180deg); }
.ts-destination-slider .ts-destination-next { right: -16px; }
.ts-destination-slider .ts-destination-nav:disabled { opacity: .4; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .ts-destination-slider .ts-destination-card:not([aria-pressed='true']):hover { box-shadow: 0 0 0 2px #b1c6d9 !important; }
  .ts-destination-slider .ts-destination-card:hover img { transform: scale(1.04); }
  .ts-destination-slider .ts-destination-nav:hover { background: #f1f5f9 !important; }
}
@media (max-width: 767px) {
  .ts-destination-slider { --ts-card-width: 172px; --ts-card-height: 96px; --ts-active-height: 120px; }
  .ts-destination-slider .e-filter { gap: 12px !important; }
  .ts-destination-slider .e-filter-item.ts-destination-card { padding: 13px !important; font-size: 17px; }
  .ts-destination-slider .ts-destination-nav { width: 34px; height: 34px; top: calc(var(--ts-card-height) / 2 - 11px); }
  .ts-destination-slider .ts-destination-prev { left: -8px; }
  .ts-destination-slider .ts-destination-next { right: -8px; }
  .ts-destination-slider .ts-destination-all-icon { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-destination-slider *, .ts-destination-slider *::before, .ts-destination-slider *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
