.archive-hero  {
	text-align: center;
}
.country-filters {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--bg);
	border-bottom: 1px solid rgba(0,0,0,.05);
}

.tour-results .archive-grid.card-grid.card-grid--tours {
	padding: 2rem;
}

.tour-archive .archive-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}
.archive-results {
	padding: 2rem;
}

/* Filters */
.archive-filters {
  position: sticky;
  top: 120px; /* adjust for header height */
  align-self: start;
}

/* Cards grid */
.archive-results .tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Mobile */
@media (max-width: 768px) {
  .tour-archive .archive-layout {
    grid-template-columns: 1fr;
  }

  .archive-filters {
    position: relative;
    top: auto;
    order: -1;
  }
}

@media (min-width: 1024px) {
	.tta-tour-filters {
		position: sticky;
		top: 2rem;
	}
}

.tta-tour-filters {
	max-height: calc(100vh - var(--header-height));
	overflow-y: auto;
}

/* ============================
   GENERAL ARCHIVE LAYOUT
   ============================ */
.archive-hero {
	text-align: center;
	padding: 3rem 1rem;
	background: var(--bg-light);
}

.tour-archive .archive-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 2rem;
}

.archive-results {
	padding: 1rem;
}

.tour-results .archive-grid.card-grid.card-grid--tours {
	padding: 0;
}

/* ============================
   FILTER SIDEBAR
   ============================ */
.tta-tour-filters {
	background: var(--bg);
	padding: 1.5rem;
	border: 1px solid rgba(0,0,0,.05);
	border-radius: 0.5rem;
	max-height: calc(100vh - var(--header-height) - 2rem);
	overflow-y: auto;
	position: sticky;
	top: 2rem;
}

.tta-tour-filters .filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.tta-tour-filters .filter-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0;
}

.tta-tour-filters .filter-reset {
	background: none;
	border: none;
	color: var(--accent-color);
	cursor: pointer;
	font-size: 0.9rem;
	text-decoration: underline;
	padding: 0;
}

.filter-group {
	margin-bottom: 1.5rem;
}

.filter-group h3.filter-label {
	font-size: 1rem;
	font-weight: 500;
	margin-bottom: 0.75rem;
}

.filter-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.filter-checkboxes label.checkbox {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-size: 0.95rem;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	transition: background 0.2s;
}

.filter-checkboxes label.checkbox:hover {
	background: rgba(0,0,0,0.03);
}

.filter-checkboxes input[type="checkbox"] {
	margin-right: 0.5rem;
}

/* ============================
   SLIDERS
   ============================ */
.range-values {
	display: flex;
	justify-content: space-between;
	font-size: 0.85rem;
	margin-bottom: 0.5rem;
	color: var(--text-secondary);
}

.range-slider {
	margin-bottom: 1rem;
}

/* ============================
   ACTIVE FILTERS
   ============================ */
.tta-active-filters {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0.5rem 0;
	background: var(--bg-light);
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tta-active-filters .active-filters-label {
	font-weight: 500;
	margin-right: 0.5rem;
}

.tta-active-filters .filter-pill {
	background: var(--accent-color);
	color: #fff;
	border: none;
	border-radius: 2rem;
	padding: 0.25rem 0.75rem;
	font-size: 0.85rem;
	cursor: pointer;
	transition: opacity 0.2s;
}

.tta-active-filters .filter-pill:hover {
	opacity: 0.8;
}

.tta-active-filters .clear-all-filters {
	background: none;
	border: none;
	color: var(--accent-color);
	font-size: 0.85rem;
	cursor: pointer;
	text-decoration: underline;
}

/* ============================
   CARDS GRID
   ============================ */
.archive-results .tour-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 1.5rem;
}

/* ============================
   MOBILE RESPONSIVE
   ============================ */
@media (max-width: 768px) {
	.tour-archive .archive-layout {
		grid-template-columns: 1fr;
	}

	.tta-tour-filters {
		position: relative;
		top: auto;
		max-height: none;
		padding: 1rem;
		margin-bottom: 1rem;
	}
}

/* =========================
   FILTER SIDEBAR BASE
   ========================= */

.tta-tour-filters {
	background: var(--bg);
	border: 1px solid rgba(0,0,0,.06);
	border-radius: .75rem;
	padding: 1rem;
	max-height: calc(100vh - var(--header-height, 120px));
	overflow-y: auto;
}

/* =========================
   FILTER GROUP
   ========================= */

.filter-group + .filter-group {
	margin-top: 1rem;
}

.filter-toggle {
	all: unset;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	font-weight: 600;
	cursor: pointer;
	padding: .5rem 0;
}

.filter-toggle .chevron {
	width: .6rem;
	height: .6rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease;
}

.filter-group.is-open .chevron {
	transform: rotate(-135deg);
}

.filter-body {
	margin-top: .5rem;
	display: none;
}

.filter-group.is-open .filter-body {
	display: block;
}

/* =========================
   FILTER TREE
   ========================= */

.filter-tree,
.filter-children,
.filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.filter-node + .filter-node {
	margin-top: .75rem;
}

.filter-label {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .9rem;
	cursor: pointer;
}

.filter-label input {
	accent-color: var(--brand-gold);
}

/* =========================
   STEPPED CHILDREN
   ========================= */

.filter-children {
	margin-top: .25rem;
	margin-left: 1.25rem;
	padding-left: .75rem;
	border-left: 1px dashed rgba(0,0,0,.15);
}

.filter-children li + li {
	margin-top: .25rem;
}

/* =========================
   ACTIVE FILTERS
   ========================= */

.filter-active {
	margin-bottom: 1rem;
	padding-bottom: .75rem;
	border-bottom: 1px solid rgba(0,0,0,.08);
}

.active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: .5rem 0;
}

ul.active-filters {
	list-style: none;
}

.active-filters li {
	background: rgba(0,0,0,.06);
	padding: .2rem .4rem;
	border-radius: 999px;
	font-size: .8rem;
}

.clear-filters {
	all: unset;
	color: var(--brand-gold);
	font-size: .8rem;
	cursor: pointer;
}

.remove-filter {
	background-color: unset;
	padding: 5px;
	font-size: 1.2rem;
	border-radius: 50%;
	color: red;
}

button.remove-filter:hover {
	background-color: unset;
	color: #fff;
}

/* =========================
   FILTER GROUP TOGGLES
========================= */

.filter-group .filter-content {
	display: none;
	padding: 0.75rem 0 1rem;
}

.filter-group.is-open .filter-content {
	display: block;
}

/* =========================
   RANGE SLIDERS
========================= */

.range-slider {
	margin: 1rem 0 0.5rem;
}

.noUi-target {
	height: 6px;
	border-radius: 3px;
}

.noUi-connect {
	background: var(--accent, #2c7be5);
}

.noUi-handle {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	top: -6px;
	cursor: pointer;
}
