/* =====================================================================
   TRIWAYS — EGYPT TOUR PACKAGES HUB (/egypt-tour-packages/ only). Loaded after triways-visual.css.
   Prefix: tv-etp-   Built from the approved tour-packages template (2026-09-30), with every word,
   link, id, heading and number taken from the live page.
   Rhythm: photographic hero below the solid header (H1 left, the five durations right)
           → ivory "Compare Sample Journeys" (the live table, landscape thumbnails)
           → charcoal "How to Choose" (a photograph behind the words, four briefs right)
           → ivory "Every Sample Journey Can Be Adapted" (words left, a photograph bleeding right)
           → deeper ivory FAQ (shared .tv-faq) → charcoal close over a photograph → footer.
   Egypt comes from the photography alone — no ornament, no texture, no radius.
   ===================================================================== */

.tv-etp {
  --etp-cols: repeat(12, minmax(0, 1fr));
  --etp-gutter: clamp(1rem, 2vw, 2rem);
  --etp-header: 4.35rem;                             /* the fixed header bar */
  --etp-ivory-text: rgba(251, 250, 247, 0.9);        /* body copy on charcoal / photograph */
  --etp-stone-dark: rgba(244, 240, 232, 0.72);       /* secondary copy on charcoal */
  --etp-ink: 21, 21, 21;                             /* --hb-ink as an rgb triplet */
}
.tv-etp .hb-section--ivory .hb-eyebrow { color: var(--tv-brass-text); }
.tv-etp .hb-heading--h2 { font-size: clamp(2.4rem, 1.7rem + 1.9vw, 3.375rem); line-height: 1.06; }

/* ---------------------------------------------------------------------
   1. HERO — a photographic band below the solid header:
      breadcrumb top left, eyebrow + H1 low left; the answer and the five durations right
   ------------------------------------------------------------------- */
.tv-etp-hero { background: var(--hb-ink); padding-top: var(--etp-header); color: var(--hb-champagne); border-bottom: 1px solid var(--hb-line-on-dark); }
.tv-etp-hero__band {
  position: relative; isolation: isolate;
  min-height: clamp(540px, 41vw, 620px);
  display: flex; align-items: stretch;
}
.tv-etp-hero__media { position: absolute; inset: 0; z-index: 0; display: block; margin: 0; }
.tv-etp-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
/* Charcoal strongest under the H1, eased through the ship in the centre, held again under the duration list;
   a foot vignette seats the title */
.tv-etp-hero__band::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--tv-scrim), 0.84) 0%, rgba(var(--tv-scrim), 0.6) 24%, rgba(var(--tv-scrim), 0.18) 44%, rgba(var(--tv-scrim), 0.22) 56%, rgba(var(--tv-scrim), 0.7) 70%, rgba(var(--tv-scrim), 0.8) 100%),
    linear-gradient(0deg, rgba(var(--tv-scrim), 0.62) 0%, rgba(var(--tv-scrim), 0) 42%);
}

.tv-etp-hero__inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: var(--etp-cols); column-gap: var(--etp-gutter);
  padding-top: clamp(2.25rem, 3.5vw, 3.25rem); padding-bottom: clamp(2.75rem, 4.5vw, 4rem);
}
.tv-etp-hero__lead { grid-column: 1 / span 6; display: flex; flex-direction: column; }
.tv-etp-hero__lead > nav { margin-bottom: auto; }
.tv-etp-hero .hub-crumbs { margin-bottom: 0; padding-bottom: 2.5rem; }
.tv-etp-hero .hb-eyebrow { color: var(--hb-champagne); }
.tv-etp-hero .hb-kicker { margin-bottom: 1.35rem; }
.tv-etp-hero .hb-kicker::after { background: var(--hb-champagne); opacity: 0.6; }
.tv-etp-hero__title {
  font-family: var(--hb-serif); font-weight: 500; color: #FBFAF7;
  font-size: clamp(3rem, 1.4rem + 4vw, 4.75rem); line-height: 1.02; letter-spacing: 0.002em;
  max-width: 6.2em;   /* "Egypt Tour / Packages" */
  margin: 0;
}
.tv-etp-hero__answer { grid-column: 8 / -1; align-self: center; max-width: 31rem; justify-self: end; width: 100%; }
.tv-etp-hero__answer p { font-size: 0.9375rem; line-height: 1.7; color: var(--etp-ivory-text); max-width: 26rem; }

/* The five durations: serif numerals, hairlines, no boxes */
.tv-etp-days { margin-top: 1.4rem; border-top-color: rgba(200, 183, 156, 0.4); }
.tv-etp-days li { border-bottom-color: rgba(244, 240, 232, 0.16); }
.tv-etp-days a { grid-template-columns: 3rem minmax(0, 1fr); gap: 1.4rem; padding: 0.62rem 0; font-size: 0.875rem; color: var(--etp-ivory-text); }
.tv-etp-days a > span:last-child { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--hb-ease); justify-self: start; }
.tv-etp-days a:hover > span:last-child, .tv-etp-days a:focus-visible > span:last-child { background-size: 100% 1px; }
.tv-etp-days .hub-days__n { align-items: flex-start; font-size: 2.125rem; line-height: 0.9; }
.tv-etp-days .hub-days__n small { margin-top: 0.3rem; font-size: 0.5rem; line-height: 1; color: rgba(244, 240, 232, 0.62); }
.tv-etp-hero a:focus-visible { outline: 2px solid var(--hb-champagne); outline-offset: 4px; }

/* ---------------------------------------------------------------------
   2. COMPARE SAMPLE JOURNEYS — the live table on ivory; landscape
      thumbnails, generous rows, hairlines only
   ------------------------------------------------------------------- */
.tv-etp-compare { padding-top: clamp(4rem, 3rem + 3.5vw, 6.5rem); }
.tv-etp-compare .hb-intro { margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.tv-etp-compare .hb-intro .hb-copy { max-width: 36rem; color: var(--hb-text-dim); }
.tv-etp-compare .hub-cmp thead th { color: var(--tv-brass-text); }
.tv-etp-compare .hub-cmp tbody th.hub-cmp__id { width: 28%; }
.tv-etp-compare .hub-cmp td:nth-child(2) { width: 27%; }
.tv-etp-compare .hub-cmp tbody th, .tv-etp-compare .hub-cmp tbody td { padding-top: clamp(1.5rem, 2.2vw, 2rem); padding-bottom: clamp(1.5rem, 2.2vw, 2rem); }
.tv-etp-compare .hub-cmp__thumb { float: left; width: 8.5rem; height: 6rem; margin-right: 1.25rem; border-radius: 0; background: #E6DFD2; }
.tv-etp-compare .hub-cmp__thumb img { transition: transform 0.45s var(--hb-ease); }
.tv-etp-compare .hub-cmp__title { display: block; max-width: none; overflow: hidden; }   /* beside the floated thumbnail */
.tv-etp-compare .hub-cmp__days { font-size: clamp(1.9rem, 1.5rem + 1vw, 2.4rem); margin-bottom: 0.35rem; }
.tv-etp-compare .hub-cmp__title a { font-size: 0.9375rem; }
.tv-etp-compare .hub-cmp__cta { color: var(--tv-brass-text); border-color: rgba(125, 99, 57, 0.35); letter-spacing: 0.16em; }
.tv-etp-compare .hub-cmp__cta:hover, .tv-etp-compare .hub-cmp__cta:focus-visible { color: var(--hb-ink); border-color: var(--hb-ink); }
.tv-etp-compare .hub-cmp a:focus-visible { outline: 2px solid var(--hb-gold); outline-offset: 3px; }
@media (hover: hover) {
  .tv-etp-compare .hub-cmp tbody tr:hover .hub-cmp__thumb img { transform: scale(1.03); }
}

/* ---------------------------------------------------------------------
   3. HOW TO CHOOSE — charcoal; the photograph held on the left behind the
      heading and dissolving into ink under the four briefs
   ------------------------------------------------------------------- */
.tv-etp-choose { position: relative; isolation: isolate; overflow: hidden; padding: clamp(4.5rem, 3rem + 4.5vw, 7.5rem) 0; }
.tv-etp-choose__media { position: absolute; top: 0; bottom: 0; left: 0; width: 64%; z-index: -2; display: block; margin: 0; }
.tv-etp-choose__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 38% 70%; }
.tv-etp-choose::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--etp-ink), 0.3) 0%, rgba(var(--etp-ink), 0.42) 30%, rgba(var(--etp-ink), 0.9) 52%, var(--hb-ink) 64%),
    linear-gradient(180deg, rgba(var(--etp-ink), 0.82) 0%, rgba(var(--etp-ink), 0.35) 48%, rgba(var(--etp-ink), 0.15) 78%, rgba(var(--etp-ink), 0.55) 100%);
}
.tv-etp-choose__grid { display: grid; grid-template-columns: var(--etp-cols); column-gap: var(--etp-gutter); row-gap: 3rem; align-items: start; }
.tv-etp-choose .hub-built__head { grid-column: 1 / span 5; position: static; }
.tv-etp-choose .hub-built__head .hb-heading { color: #FBFAF7; margin-bottom: 1.1rem; }
.tv-etp-choose .hub-built__head .hb-copy { font-size: 0.9375rem; line-height: 1.7; color: var(--etp-ivory-text); max-width: 20rem; }
.tv-etp-choose .hub-built__list { grid-column: 7 / -1; border-top-color: rgba(200, 183, 156, 0.4); }
.tv-etp-choose .hub-built__item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: 1.9rem 0; }
.tv-etp-choose .hub-built__term { font-size: clamp(1.3rem, 1.15rem + 0.45vw, 1.5rem); color: #FBFAF7; }
.tv-etp-choose .hub-built__item p { font-size: 0.875rem; line-height: 1.7; color: var(--etp-stone-dark); }
.tv-etp-choose a:focus-visible { outline: 2px solid var(--hb-champagne); outline-offset: 3px; }

/* ---------------------------------------------------------------------
   4. EVERY SAMPLE JOURNEY CAN BE ADAPTED — ivory; words left, the
      dahabiya bleeding to the right edge and feathered into the ivory
   ------------------------------------------------------------------- */
.tv-etp-adapt { position: relative; overflow: hidden; padding: clamp(4.5rem, 3rem + 4.5vw, 7rem) 0; }
.tv-etp-adapt__grid { display: grid; grid-template-columns: var(--etp-cols); column-gap: var(--etp-gutter); align-items: center; min-height: clamp(22rem, 30vw, 26rem); }
.tv-etp-adapt__text { grid-column: 1 / span 5; position: relative; z-index: 1; }
.tv-etp-adapt .hub-cust__head .hb-heading { color: var(--hb-ink); max-width: 9em; margin-bottom: 1.5rem; }
.tv-etp-adapt .hb-copy { font-size: 0.9375rem; line-height: 1.7; color: var(--hb-text-dim); max-width: 27rem; }
.tv-etp-adapt .hub-cust__named { margin-top: 1.6rem; padding: 0.95rem 0; border-top: 1px solid var(--hb-line); border-bottom: 1px solid var(--hb-line); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.2em; color: var(--hb-ink); }
.tv-etp-adapt .hub-named li::after { color: var(--hb-gold); }
.tv-etp-adapt__link { margin-top: 1.6rem; }
.tv-etp-adapt__link .hb-link { display: inline; line-height: 2; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tv-brass-text); border-color: rgba(125, 99, 57, 0.35); }
.tv-etp-adapt__link .hb-link:hover, .tv-etp-adapt__link .hb-link:focus-visible { color: var(--hb-ink); border-color: var(--hb-ink); }
.tv-etp-adapt a:focus-visible { outline: 2px solid var(--hb-gold); outline-offset: 3px; }
.tv-etp-adapt__media {
  position: absolute; top: 0; bottom: 0; right: 0; width: 56%; display: block; margin: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 24%);
}
.tv-etp-adapt__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 74% 50%; }

/* ---------------------------------------------------------------------
   5. FAQ — deeper ivory; layout from the shared .tv-faq (triways-visual.css)
   ------------------------------------------------------------------- */
.tv-etp-faq { background: var(--tv-ivory-deep); padding: clamp(4rem, 3rem + 3.5vw, 6.5rem) 0; }
.tv-etp-faq .hb-faq__item > summary::after { color: var(--hb-gold); }
.tv-etp-faq .hb-faq__item p a { color: var(--hb-ink); border-bottom: 1px solid var(--hb-gold); }
.tv-etp-faq .hb-faq__item p a:hover, .tv-etp-faq .hb-faq__item p a:focus-visible { color: var(--tv-brass-text); }

/* ---------------------------------------------------------------------
   6. CLOSE — the live .hub-close over the terrace photograph; the words
      on the left on a held scrim, the links on the right on charcoal
   ------------------------------------------------------------------- */
.tv-etp-close { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid rgba(166, 138, 91, 0.3); padding: clamp(4.5rem, 3rem + 4.5vw, 7rem) 0; }
.tv-etp-close__media { position: absolute; top: 0; bottom: 0; left: 0; width: 66%; z-index: -2; display: block; margin: 0; }
.tv-etp-close__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 40% 62%; }
.tv-etp-close::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--etp-ink), 0.72) 0%, rgba(var(--etp-ink), 0.6) 38%, rgba(var(--etp-ink), 0.92) 56%, var(--hb-ink) 66%),
    linear-gradient(180deg, rgba(var(--etp-ink), 0.35) 0%, rgba(var(--etp-ink), 0.1) 45%, rgba(var(--etp-ink), 0.6) 100%);
}
.tv-etp-close .hb-eyebrow { color: var(--hb-champagne); }
.tv-etp-close .hb-heading { font-size: clamp(2.2rem, 1.5rem + 1.8vw, 2.875rem); line-height: 1.12; max-width: 12.5em; text-wrap: balance; color: #FBFAF7; }
.tv-etp-close .hb-copy { color: var(--etp-ivory-text); font-size: 0.9375rem; line-height: 1.7; }
.tv-etp-close .hub-close__direct { color: var(--etp-ivory-text); }
.tv-etp-close .tv-btn:hover, .tv-etp-close .tv-btn:focus-visible { background: transparent; border-color: var(--hb-champagne); color: var(--hb-champagne); }
.tv-etp-close a:focus-visible { outline: 2px solid var(--hb-champagne); outline-offset: 4px; }

/* ---------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  /* The shared table turns into stacked entries below 1200px (triways-hub.css); the thumbnail stays beside the title */
  .tv-etp-compare .hub-cmp tbody th.hub-cmp__id { width: auto; }
  .tv-etp-compare .hub-cmp tbody th, .tv-etp-compare .hub-cmp tbody td { padding: 0; }
  .tv-etp-hero__lead { grid-column: 1 / span 6; }
  .tv-etp-hero__answer { grid-column: 7 / -1; }
  .tv-etp-choose .hub-built__head { grid-column: 1 / span 5; }
  .tv-etp-choose .hub-built__list { grid-column: 6 / -1; }
  .tv-etp-adapt__text { grid-column: 1 / span 6; }
  .tv-etp-adapt__media { width: 50%; }
}

@media (max-width: 991.98px) {
  /* Hero: the photograph on top, the words on solid charcoal below */
  .tv-etp-hero__band { display: block; min-height: 0; }
  .tv-etp-hero__band::before { display: none; }
  .tv-etp-hero__media { position: relative; aspect-ratio: 16 / 9; }
  .tv-etp-hero__media img { object-position: 60% 50%; }   /* the ship and the lit pylons */
  .tv-etp-hero__inner { padding-top: 2rem; padding-bottom: 3.25rem; row-gap: 1.75rem; }
  .tv-etp-hero .hub-crumbs { margin-bottom: 1.75rem; padding-bottom: 0; }
  .tv-etp-hero__lead, .tv-etp-hero__answer { grid-column: 1 / -1; }
  .tv-etp-hero__answer { justify-self: stretch; max-width: 36rem; }
  .tv-etp-hero__title { max-width: none; }

  /* Choose and close: the photograph across the top, fading down into charcoal behind the heading */
  .tv-etp-choose, .tv-etp-close { --etp-photo: min(62vw, 26rem); padding-top: calc(var(--etp-photo) * 0.62); }
  .tv-etp-choose__media, .tv-etp-close__media { width: 100%; bottom: auto; height: var(--etp-photo); }
  .tv-etp-choose::before, .tv-etp-close::before {
    background: linear-gradient(180deg, rgba(var(--etp-ink), 0.15) 0, rgba(var(--etp-ink), 0.55) calc(var(--etp-photo) * 0.5), rgba(var(--etp-ink), 0.94) calc(var(--etp-photo) * 0.9), var(--hb-ink) var(--etp-photo));
  }
  .tv-etp-choose .hub-built__head, .tv-etp-choose .hub-built__list { grid-column: 1 / -1; }
  .tv-etp-choose .hub-built__head .hb-copy { max-width: 32rem; }
  .tv-etp-close .hb-heading { max-width: 16em; }

  /* Adapt: the words, then the photograph full-bleed below */
  .tv-etp-adapt { padding-bottom: 0; }
  .tv-etp-adapt__grid { min-height: 0; }
  .tv-etp-adapt__text { grid-column: 1 / -1; }
  .tv-etp-adapt .hub-cust__head .hb-heading { max-width: 14em; }
  .tv-etp-adapt__media { position: relative; width: auto; grid-column: 1 / -1; margin: 2.75rem calc(-1 * clamp(1.25rem, 4vw, 2.5rem)) 0; aspect-ratio: 16 / 9; -webkit-mask-image: none; mask-image: none; }
  .tv-etp-adapt__media img { object-position: 78% 50%; }
}

@media (max-width: 767.98px) {
  .tv-etp-hero__media { aspect-ratio: 4 / 3; }
  .tv-etp-hero__media img { object-position: 62% 50%; }
  .tv-etp-hero__title { font-size: clamp(2.7rem, 1.6rem + 5vw, 3.2rem); max-width: 6.4em; }
  .tv-etp-days a { grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1.1rem; padding: 0.7rem 0; }

  /* Each journey stacks: the photograph, then duration and name, then the facts */
  .tv-etp-compare .hub-cmp__thumb { float: none; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 0 0 1.1rem; }
  .tv-etp-compare .hub-cmp__title { display: block; max-width: none; }
  .tv-etp-compare .hub-cmp tbody tr { padding: 2rem 0; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
  .tv-etp-compare .hub-cmp td:nth-child(3), .tv-etp-compare .hub-cmp td:nth-child(4) { margin-bottom: 0; }

  .tv-etp-choose .hub-built__item { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem 0; }

  .tv-etp-adapt__media { aspect-ratio: 4 / 3; }
  .tv-etp-close .tv-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .tv-etp-compare .hub-cmp__thumb img, .tv-etp-days a > span:last-child { transition: none !important; transform: none !important; }
}
