/* All Trips page — search/filter bar, results toolbar, active-filter chips.
   Tour cards, empty state and CTA come from modern-destination-detail.css
   (.dd-page), pagination from modern-pagination.css. */

/* ---------- Filter bar ---------- */

.at-page .at-filtersWrap {
  padding: 48px 0 0;
}

.at-page .at-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--dd-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(5, 7, 60, 0.08);
}

.at-page .at-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dd-muted);
}

.at-page .at-filters select,
.at-page .at-filters input[type="search"],
.at-page .at-toolbar select {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--dd-border);
  border-radius: 10px;
  background-color: var(--dd-surface);
  font-size: 15px;
  color: var(--dd-dark);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.at-page .at-filters select,
.at-page .at-toolbar select {
  padding-right: 38px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234A4D63' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.at-page .at-filters select:focus,
.at-page .at-filters input[type="search"]:focus,
.at-page .at-toolbar select:focus {
  background-color: #fff;
  border-color: var(--dd-accent);
  box-shadow: 0 0 0 4px rgba(235, 102, 43, 0.12);
}

.at-page .at-inputIcon {
  position: relative;
}

.at-page .at-inputIcon i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--dd-muted);
  pointer-events: none;
}

.at-page .at-inputIcon input[type="search"] {
  padding-left: 40px;
}

.at-page .at-submit {
  height: 48px;
  padding: 0 24px;
  white-space: nowrap;
}

/* ---------- Toolbar ---------- */

.at-page .at-results {
  padding-top: 40px;
}

.at-page .at-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-bottom: 18px;
}

.at-page .at-toolbar__count {
  font-size: 16px;
  color: var(--dd-muted);
}

.at-page .at-toolbar__count strong {
  font-size: 22px;
  color: var(--dd-dark);
}

.at-page .at-toolbar__of {
  margin-left: 4px;
  font-size: 14px;
}

.at-page .at-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.at-page .at-toolbar__sort .at-label {
  margin: 0;
  white-space: nowrap;
}

.at-page .at-toolbar__sort select {
  width: 220px;
  height: 44px;
}

/* ---------- Active filter chips ---------- */

.at-page .at-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.at-page .at-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--dd-dark);
  border-radius: 999px;
  background: var(--dd-dark);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.at-page .at-chip i {
  font-size: 12px;
  opacity: 0.8;
}

.at-page .at-chip:hover {
  background: var(--dd-accent);
  border-color: var(--dd-accent);
  color: #fff;
}

.at-page .at-chip.-clear {
  border-color: var(--dd-border);
  background: #fff;
  color: var(--dd-dark);
}

.at-page .at-chip.-clear:hover {
  border-color: var(--dd-accent);
  background: #fff;
  color: var(--dd-accent);
}

.at-page .at-emptyActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.at-page .dd-ctaWrap {
  padding-top: 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .at-page .at-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .at-page .at-field.-search {
    grid-column: 1 / -1;
  }

  .at-page .at-submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .at-page .at-filtersWrap {
    padding-top: 28px;
  }

  .at-page .at-filters {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .at-page .at-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .at-page .at-toolbar__sort select {
    width: 100%;
  }

  .at-page .at-results {
    padding-top: 28px;
  }
}
