.tour-archive-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 2rem;
}

.tour-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .3s;
}

.tour-card:hover { transform: translateY(-5px); }

.tour-card-thumb {
  display: block;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.tour-card-content {
  padding: 1rem 1.5rem;
}

.tour-meta {
  font-size: .9rem;
  list-style: none;
  padding: 0;
  margin: .5rem 0 1rem;
}

.tour-meta li {
  margin-bottom: .25rem;
}

.tour-results.loading::after {
  content: "Loading tours...";
  display: block;
  padding: 2rem;
  text-align: center;
  color: #666;
}

/* === ACTIVE FILTER BADGES === */
.active-filters-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.active-filters-bar h4 {
  margin: 0;
  font-weight: 600;
  color: var(--tta-earth);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-badge {
  background: var(--tta-sand);
  border: 1px solid var(--tta-savanna);
  color: var(--tta-text);
  border-radius: 50px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.filter-badge button.remove-badge {
  background: transparent;
  border: none;
  color: var(--tta-forest);
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.filter-badge:hover {
  background: var(--tta-savanna);
  color: #fff;
}

/* === SLIDER FILTERS === */
.slider-group {
  margin-bottom: 1.5rem;
}

.slider-group label {
  font-weight: 600;
  color: var(--tta-earth);
  display: block;
  margin-bottom: 0.5rem;
}

#duration-slider,
#price-slider {
  margin: 1rem 0 0.5rem;
}

.slider-values {
  font-size: 0.9rem;
  color: var(--tta-muted);
}

.noUi-target {
  background: var(--tta-sand);
  border-radius: 5px;
  border: 1px solid var(--tta-savanna);
}

.noUi-connect {
  background: var(--tta-earth);
}

.noUi-handle {
  background: var(--tta-accent);
  border-radius: 50%;
  box-shadow: var(--tta-shadow);
}

.tour-filters-wrapper {
  position: sticky;
  top: 71px; /* header height */
  align-self: start;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 1.5rem;
  background: #faf9f7;
  border-radius: 12px;
  border: 1px solid var(--tta-savanna);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  scrollbar-width: thin;
}

.tour-filters-wrapper::-webkit-scrollbar {
  width: 6px;
}
.tour-filters-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--tta-savanna);
  border-radius: 3px;
}

/* Filter Groups */
.tour-filter-form .filter-group {
  margin-bottom: 1.25rem;
}

.tour-filter-form label {
  font-weight: 600;
  display: block;
  color: var(--tta-earth);
  margin-bottom: 0.4rem;
}

.tour-filter-form select,
.tour-filter-form input[type="checkbox"] {
  accent-color: var(--tta-earth);
}

.tour-filter-form select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--tta-savanna);
  border-radius: 6px;
  background: #fff;
}

/* Checkboxes grid for activities */
.filter-group label input[type="checkbox"] {
  margin-right: 0.4rem;
}
.filter-group input[type="checkbox"] + span,
.filter-group label {
  display: inline-block;
  margin: 0.25rem 0;
}

/* Sticky Toggle for Mobile */
.filter-toggle {
  display: none;
  background: var(--tta-earth);
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .tour-archive-container {
    grid-template-columns: 1fr;
  }

  .tour-filters-wrapper {
    position: fixed;
    top: 71px;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 20;
  }

  .tour-filters-wrapper.open {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .filter-toggle {
    display: block;
    position: sticky;
    top: 70px;
    z-index: 21;
  }
}


.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.tour-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tour-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* ======================== */
/* Sticky Toggle for Mobile */
/* ======================== */

.archive-hero {
  position: relative;
  height: 220px; /* thin banner height */
  background-size: cover;
  background-position: center;
/*   border-radius: 6px; */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-bottom: 2rem;
}

.archive-hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.35);
}

.archive-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 900px;
  padding: 0 1rem;
}

.archive-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.archive-hero p {
  font-size: 1rem;
  opacity: 0.9;
}
