/* ============================================================
   TOUR LIST PAGE
   ============================================================ */

.tour-list-header {
  padding: 140px 0 50px;
  background: var(--color-off-white);
  border-bottom: 1px solid var(--color-border);
}

.tour-filters-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
  position: relative;
  /* position: sticky;
  top: 60px; */
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-xs);
}

.tour-filters-inner {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 140px;
}

.filter-group .jd-input {
  padding: 10px 14px;
  font-size: var(--text-sm);
}

.tour-results-count {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

#results-count {
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--text-md);
}

/* ── Tour Card ─────────────────────────────────────────── */
.tour-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: all var(--transition-slow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-accent-light);
}

.tour-card-img-wrap {
  position: relative;
  overflow: visible;
  height: 230px;
  flex-shrink: 0;
  display: block;
}

.tour-card-img-wrap a,
.tour-card-img-wrap .tour-card-img-placeholder {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.tour-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-xslow);
}

.tour-card:hover .tour-card-img {
  transform: scale(1.05);
}

.tour-card-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-primary-xlight),
    var(--color-light)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 3.5rem;
}

/* Badges on image */
.tour-card-featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.tour-card-type-badge {
  /* position/coords supplied by inline style in JS (top:14px;left:14px) */
  position: absolute;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: capitalize;
  /* Frosted white pill — same pattern as hotel location badge */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--color-text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  /* Remove coloured backgrounds from type variants */
}

/* Type-specific colour is now gone — all badges use frosted white */
.tour-card-type-badge--safari,
.tour-card-type-badge--beach,
.tour-card-type-badge--cultural,
.tour-card-type-badge--climbing,
.tour-card-type-badge--combined {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
}

/* Card Body */
.tour-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tour-card-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.2;
}

/* Meta row */
.tour-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tour-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: var(--text-xs);
  color: var(--color-text-light);
  font-weight: 500;
}

.tour-meta-pill i {
  color: var(--color-accent);
  font-size: 11px;
}

/* Highlights */
.tour-card-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  flex: 1;
}

.tour-card-highlight-item {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.tour-card-highlight-item::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-top: 6px;
  flex-shrink: 0;
}

/* Card Footer */
.tour-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.tour-card-price-amount {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
}

.tour-card-price-label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: 2px;
}

/* ── Skeleton ─────────────────────────────────────────── */
.tour-skeleton {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.skeleton-img {
  height: 230px;
  background: linear-gradient(
    90deg,
    var(--color-light) 25%,
    var(--color-border) 50%,
    var(--color-light) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}

.skeleton-body {
  padding: 20px;
}

.skeleton-line {
  height: 13px;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    var(--color-light) 25%,
    var(--color-border) 50%,
    var(--color-light) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  margin-bottom: 10px;
}

.skeleton-line.w-80 {
  width: 80%;
}
.skeleton-line.w-60 {
  width: 60%;
}
.skeleton-line.w-40 {
  width: 40%;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ── Empty State ──────────────────────────────────────── */
.tour-empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-muted);
}

.tour-empty-state i {
  font-size: 4rem;
  color: var(--color-border-dark);
  display: block;
  margin-bottom: 20px;
}

.tour-empty-state h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.tour-empty-state p {
  font-size: var(--text-sm);
  max-width: 300px;
  margin: 0 auto;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 767px) {
  .tour-list-header {
    padding: 110px 0 40px;
  }

  .tour-filters-inner {
    gap: 12px;
  }

  .filter-group {
    min-width: calc(50% - 6px);
  }

  #btn-clear-filters {
    width: 100%;
    justify-content: center;
  }

  .tour-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tour-card-footer .btn-accent-jd {
    width: 100%;
    justify-content: center;
  }
}
