/* ==========================================================================
   tours.php — destinations list (scoped under .page-tours, tokens only)
   ========================================================================== */

.page-tours .tours-listing { padding-top: calc(var(--section-y) * .7); }

/* ---------- Toolbar: region pills + search in one white panel ---------- */
.page-tours .tours-toolbar {
  gap: .75rem;
  margin-bottom: 1rem;
  padding: .6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.page-tours .tours-pills { gap: .35rem; }
.page-tours .tours-pills .pill {
  min-height: 44px;
  padding-inline: 1.05em;
  border-color: transparent;
  background: transparent;
}
.page-tours .tours-pills .pill:hover { background: var(--teal-50); border-color: transparent; }
.page-tours .tours-pills .pill.is-active,
.page-tours .tours-pills .pill[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.page-tours .tours-search { flex: 1 1 auto; max-width: 100%; }
.page-tours .tours-search .input { min-height: 48px; border-color: transparent; background-color: var(--sand-100); }
.page-tours .tours-search .input:hover { border-color: var(--teal-200); }
.page-tours .tours-search .input:focus { border-color: var(--teal-500); background-color: var(--white); }

@media (min-width: 900px) {
  .page-tours .tours-toolbar { padding: .5rem .5rem .5rem .6rem; border-radius: var(--r-pill); }
  .page-tours .tours-search { flex: 0 1 340px; }
}

.page-tours .tours-count {
  display: flex; align-items: center; gap: .45em;
  margin: 0 0 1.5rem;
  padding-inline: .5rem;
}
.page-tours .tours-count .icon { color: var(--teal-600); }
.page-tours .tours-count strong { color: var(--ink); font-family: var(--font-display); }

/* ---------- Tour cards (with summary + "التفاصيل" button) ---------- */
.page-tours .tour-card__summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin: -.15rem 0 .85rem;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.8;
}
.page-tours .tour-card__cta { gap: .4em; padding-inline: 1.15em; }
.page-tours .tour-card:hover .tour-card__cta { background: var(--teal-800); box-shadow: var(--shadow-teal); }
.page-tours .tour-card:hover .tour-card__cta .icon-arrow-left { transform: translateX(-4px); }
.page-tours .tour-card.is-filter-in { animation: tours-card-in .5s var(--ease-out) both; }
@keyframes tours-card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 639.98px) {
  .page-tours .tour-card__media img { aspect-ratio: 4 / 3.5; }
}

/* ---------- Empty state ---------- */
.page-tours .tours-empty { display: grid; justify-items: center; gap: .5rem; padding-block: 3.5rem; }
.page-tours .tours-empty .icon { margin: 0 0 .25rem; }
.page-tours .tours-empty .btn .icon { width: 1.2em; height: 1.2em; margin: 0; color: currentColor; }
.page-tours .tours-empty__title { margin: 0; font-size: var(--fs-xl); }
.page-tours .tours-empty p { max-width: 52ch; margin: 0 0 .75rem; }

/* ---------- Custom trip CTA ---------- */
.page-tours .custom-trip__grid { align-items: center; }
.page-tours .custom-trip__head { margin-bottom: 2rem; }
.page-tours .custom-trip__steps { margin-bottom: 2.25rem; }
.page-tours .custom-trip__steps .step__title { font-size: var(--fs-lg); }
.page-tours .custom-trip__actions { gap: .75rem; }
@media (max-width: 479.98px) { .page-tours .custom-trip__actions .btn { flex: 1 1 100%; } }

.page-tours .custom-trip__media {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.6rem, .3rem + 1.2vw, 1.25rem);
  align-items: start;
  padding-block: 2.5rem 5.5rem;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
}
.page-tours .custom-trip__window { position: relative; margin: 0; }
.page-tours .custom-trip__window img {
  width: 100%;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  border-radius: var(--r-pill);
  box-shadow: 0 0 0 6px var(--white), var(--shadow-lg);
  transition: transform .9s var(--ease-out);
}
.page-tours .custom-trip__window:hover img { transform: translateY(-6px); }
.page-tours .custom-trip__window--1 { margin-top: 2.25rem; }
.page-tours .custom-trip__window--2 { margin-top: -.5rem; }
.page-tours .custom-trip__window--3 { margin-top: 3.75rem; }
.page-tours .custom-trip__tag {
  position: absolute;
  inset-inline: 0;
  bottom: 1.1rem;
  width: max-content;
  max-width: calc(100% - 1rem);
  margin-inline: auto;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
  padding-block: .35em;
}
.page-tours .custom-trip__dots {
  position: absolute; z-index: -1;
  top: 0; inset-inline-end: -1.5rem;
  width: 150px; height: 150px;
  background-image: radial-gradient(var(--gold-400) 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: .5;
}
.page-tours .custom-trip__path {
  top: -2.5rem;
  inset-inline-start: 18%;
  width: 78%;
  opacity: .9;
  z-index: -1;
}
.page-tours .custom-trip__stat {
  position: absolute;
  z-index: 2;
  bottom: 1.75rem;
  inset-inline-start: 50%;
  transform: translateX(50%);
  display: flex; align-items: center; gap: .75rem;
  width: max-content;
  padding: .7rem 1.2rem .7rem 1.4rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92);
}
.page-tours .custom-trip__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}
.page-tours .custom-trip__stat span:not(.icon-circle) { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .page-tours .custom-trip__stat { animation: tours-float 6s var(--ease-in-out) infinite; }
}
@keyframes tours-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (max-width: 899.98px) {
  .page-tours .custom-trip__media { order: -1; padding-block: 1.5rem 5rem; }
}
@media (max-width: 639.98px) {
  .page-tours .custom-trip__tag { bottom: .8rem; padding-inline: .7em; font-size: var(--fs-2xs); white-space: nowrap; }
}

/* ---------- Program offers strip ---------- */
.page-tours .offer-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80%, 320px);
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: .5rem var(--gutter) 1.5rem;
  margin-block: -.5rem -1.5rem;
}
.page-tours .offer-strip::-webkit-scrollbar { display: none; }
.page-tours .offer-strip > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 760px) {
  .page-tours .offer-strip {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
    overflow: visible;
    margin: 0;
    padding: 0;
  }
}
.page-tours .offer-strip__card { height: 100%; }
.page-tours .offer-strip__badge { align-self: flex-start; max-width: 100%; white-space: normal; line-height: 1.6; }
.page-tours .offer-strip__link { color: inherit; text-decoration: none; }
.page-tours .offer-strip__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.page-tours .offer-strip__link:focus-visible { outline: none; }
.page-tours .offer-strip__card:has(.offer-strip__link:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.page-tours .offer-strip__meta { gap: .25rem .9rem; }
.page-tours .offer-strip__meta .chip { font-size: var(--fs-xs); }
.page-tours .offer-strip__card .offer-card__foot { border-top: 1px dashed var(--line-strong); margin-top: auto; padding-top: .8rem; }
.page-tours .offer-strip__go {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--teal-50); color: var(--teal-700);
  transition: background-color var(--dur-2), color var(--dur-2), transform var(--dur-2) var(--ease-out);
}
.page-tours .offer-strip__card:hover .offer-strip__go { background: var(--teal-700); color: var(--white); transform: rotate(-45deg); }
