/* Razuria V2 — trips list (/tour: all trips, groups, search, empty state). Mobile first; desktop from 1024px. */

.v2-trips { max-width: var(--maxw); margin: 0 auto; padding-bottom: 24px; }

/* Heading + count */
.v2-trips__head { padding: 20px var(--pad) 0; display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.v2-trips__head h1 { font-size: 30px; min-width: 0; }
.v2-trips__count { font-size: 13px; color: var(--muted); flex: none; }

/* Search box */
.v2-trips__tools { padding-top: 14px; }
.v2-search {
  margin: 0 var(--pad); height: 46px; border: 1px solid var(--line-3); border-radius: var(--radius); background: #fff;
  display: flex; align-items: center; gap: 2px; padding-inline: 2px 4px;
}
.v2-search.is-strong { border: 1.5px solid var(--navy); }
.v2-search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.v2-search__go, .v2-search__clear {
  width: 44px; height: 44px; flex: none; border: 0; background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center; border-radius: var(--radius);
}
.v2-search.is-strong .v2-search__go { color: var(--navy); }
.v2-search__clear { color: var(--ink); }
.v2-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0;
  font: 400 16px/1.2 var(--f-body); color: var(--ink);
}
.v2-search.is-strong input { font-weight: 500; }
.v2-search input::placeholder { color: var(--muted); opacity: 1; }
.v2-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.v2 .v2-search input:focus-visible { outline: 0; }

/* Group chips (scroll sideways on phones) */
.v2-chips {
  margin-top: 12px; padding: 0 var(--pad); display: flex; gap: 22px; border-bottom: 1px solid var(--line);
  overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.v2-chips::-webkit-scrollbar { display: none; }
.v2-chips a {
  height: 44px; display: flex; align-items: center; flex: none; font-size: 15px; color: var(--muted);
  text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.v2-chips a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--navy); }
.v2-chips a:hover { color: var(--ink); }

/* Sort */
.v2-trips__bar { padding: 6px var(--pad) 2px; display: flex; justify-content: flex-end; }
.v2-sort { position: relative; }
.v2-sort summary {
  height: 44px; display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.v2-sort summary::-webkit-details-marker { display: none; }
.v2-sort[open] summary svg { transform: rotate(180deg); }
.v2-sort ul {
  position: absolute; inset-inline-end: 0; top: 100%; z-index: 20; min-width: 220px; margin: 0; padding: 6px 0;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 32px rgba(6,24,36,.14);
}
.v2-sort a { min-height: 44px; padding: 0 16px; display: flex; align-items: center; font-size: 15px; text-decoration: none; }
.v2-sort a[aria-current="true"] { font-weight: 600; }
.v2-sort a[aria-current="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-inline-start: auto; }
.v2-sort a:hover { background: var(--sand); }

/* Groups and rows */
.v2-trips__group + .v2-trips__group { margin-top: 10px; }
.v2-trips h2.v2-eyebrow { font-family: var(--f-body); font-weight: 600; font-size: 12px; line-height: 1.5; }
.v2-trips:lang(ar) h2.v2-eyebrow, :lang(ar) .v2-trips h2.v2-eyebrow { font-size: 14px; font-weight: 600; }
.v2-trips .v2-row { min-height: 84px; }
.v2-trips .v2-row img, .v2-trips .v2-row .ph { width: 88px; height: 66px; }
.v2-trips .v2-row__price .price { white-space: nowrap; }
.v2-trips .v2-row__price .price, .v2-trips .v2-row__price s { direction: ltr; unicode-bidi: isolate; }

/* Pagination */
.v2-pager { margin: 20px var(--pad) 0; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.v2-pager ol { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.v2-pager__num, .v2-pager__step, .v2-pager__gap {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--radius); font-size: 15px; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums;
}
.v2-pager a { border: 1px solid var(--line-3); }
.v2-pager__step { padding: 0 14px; }
.v2-pager__num[aria-current="page"] { background: var(--navy); color: #fff; font-weight: 600; }
.v2-pager__gap { min-width: 24px; color: var(--muted); }
.v2-pager a:hover { border-color: var(--navy); color: var(--ink); }

/* Help band (desktop; phones have the bottom bar) */
.v2-trips__help { display: none; }

/* No results */
.v2-noresults { padding: 44px 24px 12px; display: flex; flex-direction: column; align-items: flex-start; max-width: 640px; }
.v2-noresults h1 { font-size: 28px; line-height: 1.2; overflow-wrap: anywhere; }
.v2-noresults .v2-lead { margin-top: 12px; }
.v2-noresults .v2-btn { margin-top: 20px; height: 50px; }
.v2-noresults h2.v2-noresults__label { margin-top: 40px; }
.v2-noresults__links { margin: 12px 0 0; padding: 0; list-style: none; width: 100%; }
.v2-noresults__links a {
  min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line-2); font-size: 16px; text-decoration: none;
}
.v2-noresults__links .v2-icon { color: var(--muted-2); }
.v2-noresults__all { margin-top: 22px; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; text-underline-offset: 3px; }

@media (min-width: 1024px) {
  .v2-trips { padding: 12px 0 64px; }
  .v2-trips__head { padding-top: 36px; }
  .v2-trips__head h1 { font-size: 44px; }
  .v2-trips__count { font-size: 15px; }
  .v2-trips__tools { display: flex; align-items: flex-end; gap: 32px; margin: 0 var(--pad); padding: 22px 0 0; border-bottom: 1px solid var(--line); }
  .v2-trips__tools .v2-search { margin: 0 0 10px; width: 360px; flex: none; order: 2; margin-inline-start: auto; }
  .v2-trips__tools .v2-chips { margin: 0; padding: 0; border-bottom: 0; gap: 28px; overflow: visible; }
  .v2-trips__tools .v2-chips a { height: 52px; font-size: 16px; }
  .v2-trips__bar { padding-top: 10px; }

  .v2-trips .v2-label-line { padding-top: 22px; padding-bottom: 8px; }
  .v2-trips .v2-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; padding: 0 calc(var(--pad) - 12px); }
  .v2-trips .v2-row { padding: 12px; min-height: 98px; border-bottom: 1px solid var(--line-2); }
  .v2-trips .v2-row + .v2-row { border-top: 0; }
  .v2-trips .v2-row img, .v2-trips .v2-row .ph { width: 104px; height: 78px; }
  .v2-trips .v2-row__title { font-size: 17px; }

  .v2-pager { margin-top: 36px; }

  .v2-trips__help {
    margin: 48px var(--pad) 0; padding: 32px 40px; border-radius: 6px; background: var(--navy); color: #fff;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
  }
  .v2-trips__help h2 { font-size: 28px; }
  .v2-trips__help p { margin-top: 8px; color: var(--on-navy); max-width: 620px; }
  .v2-trips__help .v2-btn { flex: none; }

  .v2-trips__tools:has(+ .v2-noresults) { border-bottom: 0; }
  .v2-trips__tools:has(+ .v2-noresults) .v2-search { order: 0; width: 640px; margin: 24px 0 0; }
  .v2-noresults { padding: 48px var(--pad) 24px; }
  .v2-noresults h1 { font-size: 40px; }
}
