/* =====================================================================
   TRIWAYS — EXPERIENCES HUB (/experiences/ only). Loaded after triways-visual.css.
   Prefix: tv-eh-   Built from docs/design/experiences-hub-mockup.webp, with every word,
   link, tag and heading taken from the live page.
   Rhythm: photographic hero → ivory directory (two wide features, five cards)
           → ivory-light "how they fit" rows → ivory FAQ (shared .tv-faq)
           → photographic close → footer.
   Egypt comes from the photography alone — no ornament, no texture, flat grounds.
   Missing photographs are marked data-pending: the slot is hidden and the band
   falls back to solid charcoal with the same layout.
   ===================================================================== */

/* Experiences hub */
.tv-eh {
  --eh-cols: repeat(12, minmax(0, 1fr));
  --eh-gutter: clamp(1rem, 2vw, 2rem);
  --eh-header: 4.35rem;                             /* the fixed header bar */
  --eh-line-strong: rgba(41, 39, 37, 0.22);
  --eh-stone-dark: rgba(244, 240, 232, 0.66);       /* stone on charcoal */
}
.tv-eh .hb-section--ivory .hb-eyebrow,
.tv-eh .hb-section--white .hb-eyebrow { color: var(--tv-brass-text); }
.tv-eh .hb-heading--h2 { font-size: clamp(2.4rem, 1.7rem + 1.9vw, 3.25rem); line-height: 1.06; }

/* ---------------------------------------------------------------------
   1. HERO — a photographic band below the solid header
   ------------------------------------------------------------------- */
.tv-eh-hero { background: var(--hb-ink); padding-top: var(--eh-header); color: var(--hb-champagne); border-bottom: 1px solid var(--hb-line-on-dark); }
.tv-eh-hero__band {
  position: relative; isolation: isolate;
  min-height: clamp(480px, 39vw, 640px);
  display: flex; align-items: flex-end;
}
.tv-eh-hero__media { position: absolute; inset: 0; z-index: 0; display: block; margin: 0; }
.tv-eh-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0% 55%; }   /* the figure lands right of the words */
/* Charcoal from the left under the words (the photograph is a pale haze, so the scrim is held longer),
   a light vignette at the foot */
.tv-eh-hero__band::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--tv-scrim), 0.9) 0%, rgba(var(--tv-scrim), 0.84) 30%, rgba(var(--tv-scrim), 0.45) 50%, rgba(var(--tv-scrim), 0.08) 68%, rgba(var(--tv-scrim), 0) 100%),
    linear-gradient(0deg, rgba(var(--tv-scrim), 0.35) 0%, rgba(var(--tv-scrim), 0) 30%);
}
/* No photograph yet: solid charcoal, the band closes up to its content */
.tv-eh-hero__media[data-pending] { display: none; }
.tv-eh-hero__band:has(> .tv-eh-hero__media[data-pending]) { min-height: 0; }
.tv-eh-hero__band:has(> .tv-eh-hero__media[data-pending])::before { display: none; }

.tv-eh-hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: var(--eh-cols); column-gap: var(--eh-gutter);
  padding-top: clamp(3rem, 5vw, 4.5rem); padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}
.tv-eh-hero__lead { grid-column: 1 / span 5; align-self: end; }
.tv-eh-hero .hub-crumbs { margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.tv-eh-hero .hb-eyebrow { color: var(--hb-champagne); }
.tv-eh-hero .hb-kicker { margin-bottom: 1.25rem; }
.tv-eh-hero .hb-kicker::after { background: var(--hb-champagne); opacity: 0.6; }
.tv-eh-hero__title {
  font-family: var(--hb-serif); font-weight: 500; color: #fff;
  font-size: clamp(2.9rem, 1.5rem + 4vw, 4.75rem); line-height: 1; letter-spacing: 0.002em;
  max-width: 7em;   /* "Egypt Travel / Experiences" */
  margin: 0;
}
.tv-eh-hero__answer { grid-column: 1 / span 5; padding-top: 1.75rem; }
.tv-eh-hero__answer p { font-size: 1rem; line-height: 1.7; color: rgba(251, 250, 247, 0.92); max-width: 27rem; }
.tv-eh-jumps {
  display: flex; flex-wrap: wrap; gap: 0.7rem 1.6rem; margin-top: 1.6rem;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.5;
}
.tv-eh-jumps a {
  color: rgba(251, 250, 247, 0.85); padding-bottom: 0.3rem;
  background: linear-gradient(var(--hb-champagne), var(--hb-champagne)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--hb-ease), color 0.3s var(--hb-ease);
}
.tv-eh-jumps a:hover, .tv-eh-jumps a:focus-visible { color: var(--hb-champagne); background-size: 100% 1px; }
.tv-eh-hero a:focus-visible { outline: 2px solid var(--hb-champagne); outline-offset: 4px; }

/* ---------------------------------------------------------------------
   2. EXPLORE BY EXPERIENCE — two wide features, four cards beneath
   ------------------------------------------------------------------- */
.tv-eh-explore__head { padding-bottom: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: clamp(2.5rem, 4vw, 3.5rem); border-bottom: 1px solid var(--hb-line); }
.tv-eh-explore__head .hb-heading { margin-bottom: 0.9rem; }
.tv-eh-explore__sub { font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem); line-height: 1.65; color: var(--hb-text-dim); max-width: 32.5rem; }

.tv-eh-exp { list-style: none; margin: 0; padding: 0; display: grid; }
.tv-eh-exp--features { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; row-gap: 3.5rem; }
.tv-eh-exp--cards { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 1.75rem; row-gap: 3rem; margin-top: clamp(3.5rem, 5vw, 4.5rem); }
.tv-eh-exp__item { scroll-margin-top: calc(var(--eh-header) + 1.5rem); }

/* One card component; the feature row sets it larger */
.tv-eh-card { position: relative; height: 100%; display: flex; flex-direction: column; }
.tv-eh-card__media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: #E6DFD2; }
.tv-eh-exp--features .tv-eh-card__media { aspect-ratio: 12 / 5; }
.tv-eh-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--hb-ease); }
.tv-eh-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 1.35rem; }
.tv-eh-exp--features .tv-eh-card__body { padding-top: 1.75rem; }
.tv-eh-card__num {
  display: block; margin-bottom: 0.7rem;
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.24em; line-height: 1; color: var(--tv-brass-text);
}
.tv-eh-card__name {
  font-family: var(--hb-serif); font-weight: 500; color: var(--hb-ink);
  font-size: clamp(1.45rem, 1.3rem + 0.4vw, 1.625rem); line-height: 1.15; margin: 0 0 0.7rem;
}
.tv-eh-exp--features .tv-eh-card__name { font-size: clamp(1.75rem, 1.45rem + 0.8vw, 2rem); margin-bottom: 0.8rem; }
.tv-eh-card__name a {
  color: inherit;
  background: linear-gradient(var(--hb-gold), var(--hb-gold)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--hb-ease);
}
.tv-eh-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* the whole card is the link */
.tv-eh-card__name a:focus-visible { outline: none; background-size: 100% 1px; }
.tv-eh-card__name a:focus-visible::after { outline: 2px solid var(--hb-gold); outline-offset: 6px; }
.tv-eh-card__desc { font-size: 0.875rem; line-height: 1.7; color: var(--hb-text-dim); max-width: 27.5rem; }
.tv-eh-exp--features .tv-eh-card__desc { font-size: 0.9375rem; }

/* Tags: stone tracked caps with a thin rule between them. Each rule sits in the gap to the
   item's left; the negative margin and clip hide the rule of whichever item starts a line. */
.tv-eh-tags {
  display: flex; flex-wrap: wrap; row-gap: 0.45rem;
  margin: 1.15rem 0 0 -1.5rem; padding: 1.05rem 0 0 0; clip-path: inset(-4px -4px -4px 1.5rem);
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5;
  color: var(--hb-text-dim);
  position: relative;
}
.tv-eh-tags::before { content: ""; position: absolute; top: 0; left: 1.5rem; right: 0; height: 1px; background: var(--hb-line); }
.tv-eh-tags li { position: relative; margin-left: 1.5rem; }
.tv-eh-tags li::before { content: ""; position: absolute; left: -0.75rem; top: 0.2em; bottom: 0.2em; width: 1px; background: var(--eh-line-strong); }
.tv-eh-exp--cards .tv-eh-card__desc { margin-bottom: 1.15rem; }
/* Desktop row: the five cards share row tracks (image, numeral, title, text, tags), so titles and tag hairlines line up */
@media (min-width: 1200px) {
  .tv-eh-exp--cards { grid-template-rows: repeat(5, auto); row-gap: 0; }
  .tv-eh-exp--cards > li, .tv-eh-exp--cards .tv-eh-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; height: auto; }
  .tv-eh-exp--cards .tv-eh-card__body { display: contents; }
  .tv-eh-exp--cards .tv-eh-card__num { margin-top: 1.35rem; }
  .tv-eh-exp--cards .tv-eh-tags { align-self: start; }
}

.tv-eh-card__go {
  display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.4rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tv-brass-text);
}
.tv-eh-card__go .hb-arrow { transition: transform 0.4s var(--hb-ease); }

@media (hover: hover) {
  .tv-eh-card:hover .tv-eh-card__media img { transform: scale(1.03); }
  .tv-eh-card:hover .tv-eh-card__name a { background-size: 100% 1px; }
  .tv-eh-card:hover .tv-eh-card__go .hb-arrow { transform: translateX(4px); }
}

/* ---------------------------------------------------------------------
   3. BUILD AN EXPERIENCE INTO YOUR TRIP — header left, three open rows right
   ------------------------------------------------------------------- */
.tv-eh-fit { padding: clamp(5rem, 3.5rem + 5vw, 8.75rem) 0; }
.tv-eh-fit__grid { display: grid; grid-template-columns: var(--eh-cols); column-gap: var(--eh-gutter); row-gap: 3rem; align-items: start; }
.tv-eh-fit__head { grid-column: 1 / span 5; }
.tv-eh-fit__head .hb-heading { max-width: 7em; margin-bottom: 1.4rem; }   /* Build an / Experience Into / Your Trip */
.tv-eh-fit__copy { font-size: 0.9375rem; line-height: 1.75; color: var(--hb-text-dim); max-width: 23.75rem; }
.tv-eh-fit__more { margin-top: 1.75rem; }
.tv-eh-fit__list { grid-column: 7 / -1; border-top: 1px solid var(--eh-line-strong); }

.tv-eh-route {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--eh-gutter);
  padding: 2.75rem 0; border-bottom: 1px solid var(--eh-line-strong);
  transition: background-color 0.4s var(--hb-ease), box-shadow 0.4s var(--hb-ease);
}
.tv-eh-route__name {
  font-family: var(--hb-serif); font-weight: 500; color: var(--hb-ink);
  font-size: clamp(1.4rem, 1.25rem + 0.4vw, 1.625rem); line-height: 1.2; margin: 0;
  justify-self: start;
  background: linear-gradient(var(--hb-gold), var(--hb-gold)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--hb-ease);
}
.tv-eh-route__body p { font-size: 0.9375rem; line-height: 1.75; color: var(--hb-text-dim); }
.tv-eh-route__links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 1.1rem; }

/* Brass tracked text link with an arrow */
.tv-eh-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.5;
  color: var(--tv-brass-text); padding-bottom: 0.2rem;
  background: linear-gradient(var(--hb-gold), var(--hb-gold)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--hb-ease), color 0.3s var(--hb-ease);
}
.tv-eh-link .hb-arrow { transition: transform 0.4s var(--hb-ease); }
.tv-eh-link:hover, .tv-eh-link:focus-visible { color: var(--hb-ink); background-size: 100% 1px; }
.tv-eh-link:hover .hb-arrow { transform: translateX(4px); }

@media (hover: hover) {
  .tv-eh-route:hover { background: var(--hb-ivory); box-shadow: -1.25rem 0 0 var(--hb-ivory), 1.25rem 0 0 var(--hb-ivory); }
  .tv-eh-route:hover .tv-eh-route__name { background-size: 100% 1px; }
}

/* ---------------------------------------------------------------------
   4. FAQ — ivory; layout from the shared .tv-faq (triways-visual.css)
   ------------------------------------------------------------------- */
.tv-eh-faq .hb-faq__item > summary::after { color: var(--hb-gold); }

/* ---------------------------------------------------------------------
   5. CLOSE — photographic band: invitation left, where next right
   ------------------------------------------------------------------- */
.tv-eh-close {
  position: relative; isolation: isolate;
  background: var(--hb-ink); color: var(--hb-champagne);
  min-height: clamp(480px, 39vw, 600px);
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(166, 138, 91, 0.3);   /* brass hairline where the band meets the footer */
}
.tv-eh-close__media { position: absolute; inset: 0; z-index: 0; display: block; margin: 0; }
.tv-eh-close__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.tv-eh-close::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--tv-scrim), 0.88) 0%, rgba(var(--tv-scrim), 0.7) 42%, rgba(var(--tv-scrim), 0.25) 65%, rgba(var(--tv-scrim), 0.18) 100%),
    linear-gradient(0deg, rgba(var(--tv-scrim), 0.4) 0%, rgba(var(--tv-scrim), 0) 30%);
}
.tv-eh-close__media[data-pending] { display: none; }
.tv-eh-close:has(> .tv-eh-close__media[data-pending])::before { display: none; }
.tv-eh-close:has(> .tv-eh-close__media[data-pending]) { min-height: 0; }

.tv-eh-close__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: var(--eh-cols); column-gap: var(--eh-gutter); row-gap: 3rem; align-items: center;
  padding-top: clamp(4.5rem, 3rem + 4vw, 7rem); padding-bottom: clamp(4.5rem, 3rem + 4vw, 7rem);
}
.tv-eh-close__lead { grid-column: 1 / span 6; }
.tv-eh-close .hb-eyebrow { color: var(--hb-champagne); }
.tv-eh-close .hb-kicker::after { background: var(--hb-champagne); opacity: 0.6; }
.tv-eh-close__title {
  font-family: var(--hb-serif); font-weight: 500; color: #FBFAF7;
  font-size: clamp(2.2rem, 1.5rem + 1.8vw, 2.875rem); line-height: 1.12; letter-spacing: 0.002em;
  max-width: 13em; margin: 0 0 1.4rem; text-wrap: balance;
}
.tv-eh-close__copy { font-size: 0.9375rem; line-height: 1.75; color: rgba(244, 240, 232, 0.8); max-width: 28.75rem; margin-bottom: 2.25rem; }
.tv-eh-close__copy a { color: var(--hb-champagne); border-bottom: 1px solid rgba(200, 183, 156, 0.6); }
.tv-eh-close__copy a:hover, .tv-eh-close__copy a:focus-visible { color: #fff; border-color: #fff; }
.tv-eh-close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.25rem; }
.tv-eh-close .tv-btn:hover, .tv-eh-close .tv-btn:focus-visible { background: transparent; border-color: var(--hb-champagne); color: var(--hb-champagne); }
.tv-eh-close__direct {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid rgba(244, 240, 232, 0.3); padding-bottom: 0.25rem;
}
.tv-eh-close__direct .bi { color: var(--hb-champagne); font-size: 0.85rem; }
.tv-eh-close__direct:hover, .tv-eh-close__direct:focus-visible { color: var(--hb-champagne); border-color: var(--hb-champagne); }
.tv-eh-close a:focus-visible { outline: 2px solid var(--hb-champagne); outline-offset: 4px; }

/* Continue exploring — the open list where the mockup draws a form */
.tv-eh-close__next { grid-column: 9 / -1; }
.tv-eh-close__next-label {
  font-size: 0.625rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--hb-champagne);
  padding-bottom: 0.9rem; border-bottom: 1px solid rgba(244, 240, 232, 0.2);
}
.tv-eh-close__next li { border-bottom: 1px solid rgba(244, 240, 232, 0.2); }
.tv-eh-close__next a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 1rem; column-gap: 1rem; align-items: baseline;
  padding: 1.05rem 0; font-family: var(--hb-serif); font-size: 1.375rem; line-height: 1.2; color: #FBFAF7;
}
.tv-eh-close__next a span {
  font-family: var(--hb-sans); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--eh-stone-dark); text-align: right;
}
.tv-eh-close__next a::after {
  content: "\2192" / ""; font-family: var(--hb-sans); font-size: 0.85rem; color: var(--hb-champagne);
  opacity: 0; transform: translateX(-4px); transition: opacity 0.3s var(--hb-ease), transform 0.4s var(--hb-ease);
}
.tv-eh-close__next a:hover, .tv-eh-close__next a:focus-visible { color: var(--hb-champagne); }
.tv-eh-close__next a:hover::after, .tv-eh-close__next a:focus-visible::after { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .tv-eh-hero__lead, .tv-eh-hero__answer { grid-column: 1 / span 6; }
  .tv-eh-close__lead { grid-column: 1 / span 7; }
  .tv-eh-close__next { grid-column: 9 / -1; }
  /* Five cards no longer fit a row: a horizontal filmstrip, the next card peeking in */
  .tv-eh-exp--cards {
    display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-right: calc(-1 * clamp(1.25rem, 4vw, 2.5rem)); padding-right: clamp(1.25rem, 4vw, 2.5rem);
    padding-bottom: 0.5rem;
  }
  .tv-eh-exp--cards::-webkit-scrollbar { display: none; }
  .tv-eh-exp--cards > li { flex: 0 0 36%; scroll-snap-align: start; }
}

@media (max-width: 1023.98px) {
  /* Features stack */
  .tv-eh-exp--features { grid-template-columns: 1fr; row-gap: 4rem; }
  .tv-eh-exp--cards > li { flex-basis: 44%; }
  .tv-eh-card__desc { max-width: 34rem; }

  .tv-eh-fit__head, .tv-eh-fit__list { grid-column: 1 / -1; }
  .tv-eh-fit__head .hb-heading { max-width: none; }
  .tv-eh-fit__copy { max-width: 34rem; }

  .tv-eh-close__lead, .tv-eh-close__next { grid-column: 1 / -1; }
  .tv-eh-close__next { max-width: 34rem; }
}

@media (max-width: 991.98px) {
  /* Hero: the photograph on top at 4:3, the words on solid charcoal below */
  .tv-eh-hero__band { display: block; min-height: 0; }
  .tv-eh-hero__band::before { display: none; }
  .tv-eh-hero__media { position: relative; aspect-ratio: 4 / 3; }
  .tv-eh-hero__media img { object-position: 50% 60%; }   /* the figure centred, a pyramid either side */
  .tv-eh-hero__inner { padding-top: 2rem; padding-bottom: 3.5rem; row-gap: 1.75rem; }
  .tv-eh-hero__band:has(> .tv-eh-hero__media[data-pending]) .tv-eh-hero__inner { padding-top: 3rem; }
  .tv-eh-hero__lead, .tv-eh-hero__answer { grid-column: 1 / -1; }
  .tv-eh-hero__answer p { max-width: 34rem; }

  /* Close: the photograph as a 16:9 strip on top, then the words on charcoal */
  .tv-eh-close { display: block; min-height: 0; }
  .tv-eh-close::before { display: none; }
  .tv-eh-close__media { position: relative; aspect-ratio: 16 / 9; }
}

@media (max-width: 767.98px) {
  .tv-eh-hero__title { font-size: clamp(2.6rem, 1.6rem + 5vw, 3.2rem); }
  .tv-eh-jumps { gap: 0.8rem 1.25rem; }

  .tv-eh-exp--cards { gap: 1rem; }
  .tv-eh-exp--cards > li { flex-basis: 78%; }
  .tv-eh-exp--features .tv-eh-card__media { aspect-ratio: 16 / 9; }   /* 12:5 is too thin at phone width */
  .tv-eh-card__name a:focus-visible::after { outline-offset: 2px; }

  .tv-eh-route { grid-template-columns: 1fr; row-gap: 0.85rem; padding: 2rem 0; }

  .tv-eh-close__actions { flex-direction: column; align-items: stretch; }
  .tv-eh-close .tv-btn { justify-content: center; }
  .tv-eh-close__direct { align-self: flex-start; }
  .tv-eh-close__next a { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tv-eh-card__media img, .tv-eh-card__name a, .tv-eh-card__go .hb-arrow, .tv-eh-route, .tv-eh-route__name,
  .tv-eh-link, .tv-eh-link .hb-arrow, .tv-eh-jumps a, .tv-eh-close__next a::after { transition: none !important; transform: none !important; }
}
