/* Tour list / group filters — same visual language as Iran excursion toolbar */

.page-tours-group .page-hero,
.page-tours-destinations.page-visa .page-hero {
  padding: 18px 0 10px;
  background: linear-gradient(180deg, rgba(224, 242, 254, 0.35) 0%, transparent 72%);
}

.page-tours-group .page-hero-title,
.page-tours-destinations .page-hero-title {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  margin-bottom: 0;
  font-weight: 700;
}

.page-tours-destinations .page-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.page-tours-destinations .page-hero-count {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(30, 86, 160, 0.16);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.page-tours-list .section.tours,
.page-tours-group .section.tours,
.page-tours-destinations .section.tours.visa-content {
  padding-top: 0.75rem;
}

.page-tours-list .tours,
.page-tours-group .tours,
.page-tours-destinations .tours.visa-content {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 180px);
}

.page-tours-destinations.page-visa .visa-content {
  padding-top: 0.75rem;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 180px);
}

.page-tours-group .tour-filter-toolbar,
.page-tours-all-scope .tour-filter-toolbar {
  margin-bottom: 1.25rem;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(30, 86, 160, 0.06);
}

.page-tours-group .tour-filter-toolbar {
  padding: 12px 14px;
}

.page-tours-all-scope .tour-filter-toolbar {
  width: min(100%, 952px);
  margin-inline: auto;
  padding: 16px 18px;
}

.page-tours-group .tour-filter-toolbar-label,
.page-tours-all-scope .tour-filter-toolbar-label {
  font-size: 0.68rem;
}

.page-tours-all-scope .tour-filter-toolbar-label {
  text-align: center;
}

.page-tours-group .tour-filter-toolbar .filter-btn {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.82rem;
  border-radius: 12px;
}

.tour-filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 1.75rem;
  padding: 16px 18px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 55%, rgba(241, 247, 255, 0.94) 100%);
  border: 1px solid rgba(30, 86, 160, 0.12);
  box-shadow:
    0 8px 32px rgba(30, 86, 160, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.tour-filter-toolbar-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.tour-filter-toolbar-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #64748b;
  padding-inline: 2px;
}

.tour-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 0;
}

.tour-filter-tabs--scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.page-tours-all-scope .tour-filter-toolbar-group {
  width: 100%;
}

.tour-filter-toolbar .filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid rgba(30, 86, 160, 0.14);
  border-radius: 14px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tour-filter-toolbar .filter-btn:hover {
  background: linear-gradient(135deg, rgba(30, 86, 160, 0.08), rgba(14, 165, 233, 0.1));
  border-color: rgba(30, 86, 160, 0.35);
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(30, 86, 160, 0.12);
  transform: translateY(-1px);
}

.tour-filter-toolbar .filter-btn.active {
  background: linear-gradient(135deg, #1e56a0 0%, #0ea5e9 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(30, 86, 160, 0.28);
}

.page-tours-list .tour-filter-toolbar {
  margin-bottom: 1.75rem;
}

@media (max-width: 640px) {
  .tour-filter-toolbar {
    padding: 12px 12px 14px;
    border-radius: 16px;
    gap: 12px;
  }

  .tour-filter-tabs:not(.tour-filter-tabs--scope) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .tour-filter-tabs--scope {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .tour-filter-toolbar .filter-btn {
    min-height: 40px;
    padding: 6px 4px;
    font-size: 0.72rem;
    border-radius: 12px;
    white-space: nowrap;
  }
}
