/* ─────────────────────────────────────────
   ELYSIAN TRAVEL GROUP, experiences.css
   Experiences listing page.
   Requires: base.css
───────────────────────────────────────── */

/* ── HERO: shared .split-hero, crop only ── */
.exp-hero-img img { object-position: 38% center; }

/* ── FEATURED ─────────────────────────
   Title and paragraph in one row, then three portrait photos with the
   name, a line and the place under each. Nothing on the photos. */
.exp-featured {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--space-section) var(--space-inline);
}
.exp-featured-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 56px;
}
.exp-featured-title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
}
.exp-featured-text {
  max-width: 380px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}
.exp-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.exp-feature-img {
  aspect-ratio: 5 / 6;
  max-height: calc(100vh - 260px);
  width: 100%;
  overflow: hidden;
  background: var(--sand);
  margin-bottom: 24px;
}
.exp-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.exp-feature:hover .exp-feature-img img { transform: scale(1.03); }
.exp-feature-name {
  font-family: var(--serif);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
}
.exp-feature-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.exp-feature-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gold-light);
}

/* ── CATEGORY FILTER ─────────────────── */
/* Sticks under the nav (--nav-h, set by nav.js) for as long as its
   wrapper, .exp-browse, is on screen; centred. */
.exp-filter {
  position: sticky;
  top: var(--nav-h, 72px);
  z-index: 100;
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-inline);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.exp-filter::-webkit-scrollbar { display: none; }
.exp-browse .carousel { margin-top: 64px; }

/* The picked type's one line, between the filter and the carousel.
   Empty for All and for types without a line, and then takes no room. */
.exp-type-line {
  max-width: 560px;
  margin: 56px auto -24px;
  padding: 0 var(--space-inline);
  text-align: center;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  transition: opacity 0.35s ease;
}
.exp-type-line:empty { display: none; }
.exp-type-line.is-switching { opacity: 0; }

/* Changing type: the track fades out, the slides swap, it fades back in. */
#expTrack { transition: opacity 0.35s ease; }
#expTrack.is-switching { opacity: 0; }
.filter-btn {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 22px 28px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 1024px) {
  .exp-featured { padding: var(--space-section-tablet) var(--space-inline-tablet); }
  .exp-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .exp-filter { padding: 0 var(--space-inline-tablet); }
}

@media (max-width: 768px) {
  .exp-featured { padding: var(--space-section-mobile) var(--space-inline-mobile); }
  .exp-featured-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 36px; }
  .exp-featured-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .exp-feature-img { max-height: none; aspect-ratio: 4 / 3; }
  /* The row is wider than a phone, so it scrolls sideways from the left edge;
     the cut-off last tab shows there is more. */
  .exp-filter { justify-content: flex-start; padding: 0 var(--space-inline-mobile); }
  .filter-btn { padding: 18px 14px; }
  .filter-btn:first-child { padding-left: 0; }
  .exp-type-line { margin-top: 40px; padding: 0 var(--space-inline-mobile); font-size: 18px; }
  .exp-browse .carousel { margin-top: 48px; }
}

/* Square source (the desert tent): keep the tent in frame, not the empty sky */
#expTrack .exp-photo-low { object-position: center 85%; }
