.tas-dest-listing {
  --tas-content-gutter: 20px;
  padding: 28px 0 40px;
  background: var(--background-color);
}

.tas-dest-listing__inner {
  width: min(100% - calc(var(--tas-content-gutter) * 2), var(--layout-max-width));
  margin: 0 auto;
}

.tas-dest-listing__filters-wrap {
  position: relative;
  margin-bottom: 28px;
}

.tas-dest-listing__filters-wrap::before,
.tas-dest-listing__filters-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 4px;
  z-index: 1;
  width: 32px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tas-dest-listing__filters-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--background-color) 0%, transparent 100%);
}

.tas-dest-listing__filters-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--background-color) 0%, transparent 100%);
}

.tas-dest-listing__filters-wrap.is-scrollable::after {
  opacity: 1;
}

.tas-dest-listing__filters-wrap.is-scrollable:not(.is-at-start)::before {
  opacity: 1;
}

.tas-dest-listing__filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.tas-dest-listing__filters::-webkit-scrollbar {
  display: none;
}

.tas-dest-listing__pill {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-body);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.tas-dest-listing__pill:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.tas-dest-listing__pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-on-primary);
}

.tas-dest-listing__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tas-dest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--primary-deep);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.tas-dest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.tas-dest-card.is-hidden {
  display: none;
}

.tas-dest-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tas-dest-card__media img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.tas-dest-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.15) 40%,
    rgba(1, 40, 32, 0.88) 100%
  );
  pointer-events: none;
}

.tas-dest-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--text-on-primary);
  background: rgba(var(--primary-rgb), 0.82);
  backdrop-filter: blur(4px);
}

.tas-dest-card__body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 20px 18px 22px;
}

.tas-dest-card__title {
  margin: 0 0 8px;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

.tas-dest-card__desc {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-on-primary-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tas-dest-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white) !important;
  text-decoration: none !important;
  transition: gap 0.2s ease;
}

a.tas-dest-card__link:hover {
  gap: 10px;
}

.tas-dest-card__arrow {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 1199px) {
  .tas-dest-listing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tas-dest-listing {
    padding: 20px 0 32px;
  }

  .tas-dest-listing__filters {
    justify-content: flex-start;
  }

  .tas-dest-listing__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tas-dest-card {
    min-height: 260px;
  }
}
