/* Trip detail page, in the field-journal language: a photo hero that ends in
   layered ridgelines, a warm facts band they run into, and a forest-green
   schedule drawn over faint contour lines. Brand colours
   are fixed (they do not flip with the theme); surfaces and ink come from styles.css. */

.page-trip {
  --trip-num-font: 'Fraunces', Georgia, serif;
  --trip-gold-ink: #fbf3e1;      /* band values: warm cream */
  --trip-gold-muted: #e3d6b8;    /* band labels */
  --trip-gold-rule: rgba(247, 232, 200, 0.2);
  --trip-glow: #ecc760;          /* price and book button: a warmer gold than the brand yellow */
  --trip-band-top: #3d2b1d;      /* the near ridge ends in this, so hero and band are one shape */
  --trip-band-bottom: #2a1d13;
  --trip-topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' viewBox='0 0 640 640'%3E%3Cg fill='none' stroke='%23edd17c' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M322 96c118 4 214 92 206 214s-106 224-230 218S92 434 98 318 204 92 322 96z'/%3E%3Cpath d='M320 142c92 2 166 74 160 168s-82 176-178 170-160-80-154-172 80-168 172-166z'/%3E%3Cpath d='M318 190c66 0 118 54 114 120s-60 124-128 120-112-58-108-122 56-118 122-118z'/%3E%3Cpath d='M316 238c40 0 72 32 70 72s-36 76-78 74-68-36-66-76 34-70 74-70z'/%3E%3Cpath d='M314 284c16 0 28 12 28 28s-14 30-30 30-28-14-28-30 14-28 30-28z'/%3E%3Cpath d='M-40 560c80-40 150-10 190 40s20 90-40 120'/%3E%3Cpath d='M-40 610c60-26 110-6 136 30'/%3E%3Cpath d='M680 40c-70 30-150 20-190-30'/%3E%3Cpath d='M680 90c-90 40-190 30-250-40'/%3E%3C/g%3E%3C/svg%3E");
}

/* Hero ------------------------------------------------------------------ */
.page-trip .trip-hero {
  display: flex;
  min-height: clamp(500px, 78vh, 800px);
  padding: 2rem 0 clamp(7rem, 13vw, 11rem);
}
.page-trip .trip-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}
.page-trip .trip-back { align-self: flex-start; margin-bottom: 3rem; backdrop-filter: blur(6px); }
.trip-hero-place {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(237, 209, 124, 0.16);
  color: var(--brand-gold);
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.trip-hero-place .icon { width: 17px; height: 17px; }
.page-trip .trip-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.08;
  max-width: 20ch;
  margin-bottom: 1.1rem;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}
/* The trip's name stays in Tajawal like the trips-page cards (owner's call, 2026-10-14); the
   site-wide Amiri rule for Arabic headings is for page titles, not trip names. */
body[dir="rtl"].page-trip .trip-hero h1 { font-family: 'Tajawal', sans-serif; font-weight: 800; line-height: 1.15; }
.page-trip .trip-hero p {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.75;
  max-width: 44rem;
  margin: 0;
  text-wrap: pretty;
  text-shadow: 0 1px 16px rgba(20, 14, 8, 0.6);
}

/* Three ridgelines close the hero; the nearest is the gold of the facts band. */
.trip-hero-ridges {
  position: absolute;
  inset: auto 0 -1px;
  height: clamp(80px, 12vw, 170px);
  pointer-events: none;
}
.trip-ridge { position: absolute; inset: 0; }
.trip-ridge-far {
  background: rgba(32, 62, 49, 0.45);
  clip-path: polygon(0 55%, 12% 30%, 24% 52%, 38% 18%, 52% 46%, 66% 22%, 80% 44%, 91% 12%, 100% 34%, 100% 100%, 0 100%);
}
.trip-ridge-mid {
  background: rgba(32, 62, 49, 0.75);
  clip-path: polygon(0 62%, 9% 48%, 21% 66%, 34% 42%, 47% 64%, 61% 44%, 76% 68%, 88% 50%, 100% 62%, 100% 100%, 0 100%);
}
.trip-ridge-near {
  background: var(--trip-band-top);
  clip-path: polygon(0 84%, 14% 72%, 27% 86%, 43% 70%, 58% 84%, 73% 74%, 87% 88%, 100% 76%, 100% 100%, 0 100%);
}

/* Facts band — a warm gradient with a faint contour texture. The hero's near ridge is the same
   colour as its top edge, and its own bottom edge is a low ridge cut into the page paper, so it
   reads as part of the landscape rather than a slab dropped between two sections. Each fact has
   its icon in a small gold disc; price and booking sit in their own inset panel. ------------ */
.trip-facts-band {
  position: relative;
  color: var(--trip-gold-ink);
  background:
    var(--trip-topo),
    radial-gradient(120% 140% at 12% 0%, rgba(236, 199, 96, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, var(--trip-band-top) 0%, var(--trip-band-bottom) 100%);
  background-size: 640px 640px, auto, auto;
  padding-bottom: 26px;
}
.trip-facts-band::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 26px;
  background: var(--bg);
  clip-path: polygon(0 100%, 0 62%, 14% 38%, 29% 70%, 46% 22%, 62% 64%, 78% 34%, 91% 62%, 100% 48%, 100% 100%);
  pointer-events: none;
}
.trip-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center;
  column-gap: 0.5rem;
}
.trip-fact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.4rem 1.25rem;
  border-inline-start: 1px solid var(--trip-gold-rule);
  min-width: 0;
}
.trip-fact:first-child { border-inline-start: 0; padding-inline-start: 0; }
.trip-fact-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--trip-gold-muted);
}
.trip-fact-label .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(236, 199, 96, 0.14);
  color: var(--trip-glow);
}
.trip-fact-value {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--trip-gold-ink);
  font-feature-settings: "tnum";
}
.trip-fact.is-easy .trip-fact-value::before,
.trip-fact.is-medium .trip-fact-value::before,
.trip-fact.is-hard .trip-fact-value::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-inline-end: 0.45em;
  border-radius: 50%;
  vertical-align: 0.1em;
  border: 2px solid var(--trip-gold-ink);
}
.trip-fact.is-easy .trip-fact-value::before { background: #5f9a6c; }
.trip-fact.is-medium .trip-fact-value::before { background: linear-gradient(90deg, var(--trip-gold-ink) 50%, transparent 50%); }
body[dir="rtl"] .trip-fact.is-medium .trip-fact-value::before { background: linear-gradient(270deg, var(--trip-gold-ink) 50%, transparent 50%); }
.trip-fact.is-hard .trip-fact-value::before { background: #c0583a; }

.trip-fact-book {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-block: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(247, 232, 200, 0.16);
  border-radius: 12px;
  background: rgba(255, 248, 230, 0.05);
}
.trip-fact-price-wrap { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.trip-fact-price {
  font-family: var(--trip-num-font);
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1;
  color: var(--trip-glow);
}
.trip-fact-book .btn {
  border-radius: 8px;
  min-height: 48px;
  padding-inline: 1.5rem;
  white-space: nowrap;
  font-weight: 700;
  background: var(--trip-glow);
  border-color: var(--trip-glow);
  color: #2a1d12;
}
.trip-fact-book .btn:hover { background: #f4d980; border-color: #f4d980; }
.trip-fact-book .btn-outline { background: transparent; border-color: var(--trip-gold-muted); color: var(--trip-gold-ink); }
.page-trip .trip-hero-deadline {
  display: block;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--trip-gold-muted);
  font-size: 0.8rem;
}
.page-trip .trip-hero-deadline strong { color: var(--trip-gold-ink); font-feature-settings: "tnum"; }

/* Shared pieces ------------------------------------------------------------ */
.page-trip {
  --trip-card-radius: 14px;
  --trip-card-shadow: 0 1px 2px rgba(40, 30, 15, 0.05), 0 14px 32px -24px rgba(40, 30, 15, 0.35);
}
.trip-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body[dir="rtl"] .trip-eyebrow { letter-spacing: 0; font-size: 0.92rem; }
.trip-eyebrow .icon { width: 16px; height: 16px; }

/* Overview: the story on one side, everything practical in a single card on the other -------- */
.page-trip .trip-overview { padding-block: 4.5rem 5rem; }
.page-trip .trip-detail-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 4rem;
  align-items: start;
}
.page-trip .trip-detail-main { min-width: 0; }
.page-trip .trip-detail-main > .trip-eyebrow {
  display: flex;
  padding-bottom: 0.9rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
/* The story (renderTripStory in trips.js): a lead, fact tiles, titled sections, lists, callouts. */
.page-trip .trip-long-desc {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}
.page-trip .trip-long-desc.trip-story > * + * { margin-top: 0.75rem; }
.page-trip .trip-long-desc.trip-story > .story-section, .page-trip .trip-long-desc.trip-story > * + .story-facts { margin-top: 1.5rem; }
.page-trip .trip-long-desc p { margin: 0; }
.page-trip .trip-long-desc strong { color: var(--ink); }
.page-trip .trip-long-desc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-trip .story-lead {
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.8;
}

/* "📍 label: value" lines become tiles that use the column's width. */
.story-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 0;
}
.story-fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon label" "icon value";
  column-gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.story-fact:not(:has(.story-fact-icon)) { grid-template-areas: "label" "value"; grid-template-columns: minmax(0, 1fr); }
.story-fact-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--clay-soft);
  font-size: 1.1rem;
  line-height: 1;
}
.story-fact dt { grid-area: label; color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.story-fact dd { grid-area: value; margin: 0; color: var(--ink); font-size: 0.98rem; font-weight: 700; line-height: 1.5; }

/* Titled sections: a rule, an emoji disc and a heading in the body font. */
.story-section { padding-top: 1.15rem; border-top: 1px solid var(--line); }
.page-trip .trip-long-desc .story-section > * + * { margin-top: 0.5rem; }
.page-trip .trip-long-desc .story-section > .story-heading + * { margin-top: 0.65rem; }
body[dir] .story-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--ink);
  font-family: 'Tajawal', 'Inter', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}
body[dir="ltr"] .story-heading { font-family: 'Inter', sans-serif; font-size: 1.02rem; }
.story-heading-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--clay-soft);
  font-size: 0.95rem;
}

.story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.story-list:has(> li:nth-child(5)) { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 2rem; }
.story-list li { position: relative; padding-inline-start: 1.15rem; }
.story-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.1rem;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
ol.story-list { counter-reset: story; }
ol.story-list li { counter-increment: story; padding-inline-start: 1.6rem; }
ol.story-list li::before {
  content: counter(story);
  top: 0.3em;
  width: 1.2rem;
  height: 1.2rem;
  display: grid;
  place-items: center;
  background: var(--clay-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.story-note {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border-inline-start: 3px solid #c0583a;
  background: color-mix(in srgb, #c0583a 9%, var(--surface));
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.7;
}
.story-note::before { content: "⚠️"; margin-inline-end: 0.5rem; }

/* Side column: two short cards that sit beside the story, so neither column runs long. */
.page-trip .trip-detail-side {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.page-trip .trip-detail-side:not(:has(.detail-block)) { display: none; }
.page-trip .trip-detail-grid.no-side { grid-template-columns: minmax(0, 1fr); }
.page-trip .trip-detail-grid.no-main { grid-template-columns: minmax(0, 1fr); }
.page-trip .trip-detail-grid.no-main .trip-detail-main { display: none; }
.page-trip .trip-detail-grid.no-main .trip-detail-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }

.page-trip .detail-block {
  position: relative;
  margin: 0;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--trip-card-radius);
  box-shadow: var(--trip-card-shadow);
  overflow: hidden;
}
.page-trip .detail-block-head { gap: 0.6rem; margin-bottom: 0.9rem; }
.page-trip .detail-block-head .icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: var(--clay-soft);
  color: var(--accent);
}
.page-trip .detail-block-head h3 {
  margin: 0;
  color: var(--ink);
  font-family: 'Tajawal', 'Inter', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
}
body[dir="ltr"].page-trip .detail-block-head h3 { font-family: 'Inter', sans-serif; font-size: 0.95rem; }

/* Meeting point: a little field map across the top of the card, the pin dropped on it. */
.page-trip .detail-block-meeting { padding-top: 0; }
.page-trip .detail-block-meeting::before {
  content: "";
  display: block;
  height: 96px;
  margin: 0 -1.5rem 1.1rem;
  background:
    radial-gradient(circle at 50% 70%, rgba(236, 199, 96, 0.3) 0 8px, transparent 9px),
    var(--trip-topo) 50% 46% / 520px,
    linear-gradient(160deg, #24453a, var(--brand-deep) 70%);
}
.page-trip .detail-block-meeting .detail-block-head {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 96px;
  justify-content: center;
  align-items: center;
  margin: 0;
}
.page-trip .detail-block-meeting .detail-block-head .icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  background: var(--trip-glow);
  color: #2a1d12;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.5);
}
.page-trip .detail-block-meeting .detail-block-head .icon > * { transform: rotate(45deg); transform-origin: center; transform-box: fill-box; }
.page-trip .detail-block-meeting .detail-block-head h3 {
  position: absolute;
  top: 12px;
  inset-inline-start: 14px;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(10, 24, 16, 0.45);
  color: var(--trip-gold-ink);
  font-size: 0.8rem;
}
.page-trip .detail-block-meeting p { margin: 0 0 0.85rem; color: var(--ink); font-size: 1.02rem; font-weight: 600; line-height: 1.7; }
.detail-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t);
}
.detail-map-link:hover { border-bottom-color: currentColor; }
.detail-map-pending { color: var(--muted); font-size: 0.88rem; }
.detail-map-link .icon { width: 15px; height: 15px; }
body[dir="rtl"] .detail-map-link .icon { transform: scaleX(-1); }

/* Packing list: ruled notebook paper, each item a box the visitor can tick. */
.page-trip .detail-block-bring {
  background:
    linear-gradient(90deg, transparent calc(100% - 2px), rgba(192, 88, 58, 0.18) calc(100% - 2px)) 0 0 / 100% 100% no-repeat,
    var(--surface);
}
body[dir="rtl"] .page-trip .detail-block-bring {
  background:
    linear-gradient(90deg, rgba(192, 88, 58, 0.18) 2px, transparent 2px) 0 0 / 100% 100% no-repeat,
    var(--surface);
}
.detail-hint { margin: -0.4rem 0 0.75rem; color: var(--muted); font-size: 0.82rem; }
.detail-tags { list-style: none; display: flex; flex-direction: column; margin: 0; padding: 0; }
.detail-tags li { border-bottom: 1px dashed var(--line-soft); }
.detail-tags li:last-child { border-bottom: 0; }
.detail-tags button {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.93rem;
  line-height: 1.55;
  text-align: start;
  cursor: pointer;
}
.detail-tags button::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  border: 1.5px solid var(--forest-500, #678471);
  border-radius: 4px;
  background: var(--surface) center / 12px no-repeat;
  transition: background-color var(--t), border-color var(--t);
}
.detail-tags button[aria-pressed="true"] { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.detail-tags button[aria-pressed="true"]::before {
  border-color: var(--brand-deep);
  background-color: var(--brand-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23edd17c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.detail-tags button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* What's included: full width under the story, a checklist in columns. */
.page-trip .trip-included { margin-top: 2.5rem; padding: 1.6rem 1.75rem 1.4rem; }
.page-trip .trip-included::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--forest-500, #678471);
}
.page-trip .trip-included .detail-block-head { padding-bottom: 1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line-soft); }
.page-trip .trip-included .detail-block-head .icon { background: color-mix(in srgb, var(--forest-500, #678471) 18%, transparent); color: var(--forest-700, #2f5a3e); }
.detail-count {
  margin-inline-start: auto;
  min-width: 30px;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  font-feature-settings: "tnum";
}
.page-trip .trip-included .detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.7rem 2rem;
  margin: 0;
}
.page-trip .detail-list li { gap: 0.6rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }
.page-trip .detail-list .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 3px;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--forest-500, #678471) 18%, transparent);
  color: var(--forest-700, #2f5a3e);
  stroke-width: 3;
}

/* Long descriptions fold after a few paragraphs. */
.page-trip .trip-long-desc.is-clamped:not(.is-open) {
  max-height: 34rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.trip-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--t), color var(--t);
}
.trip-read-more:hover { border-color: var(--accent); color: var(--accent); }

/* Schedule — a light timeline on the alternate paper ------------------------ */
.page-trip .trip-schedule {
  position: relative;
  padding-block: 5rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' viewBox='0 0 640 640'%3E%3Cg fill='none' stroke='%23866322' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M322 96c118 4 214 92 206 214s-106 224-230 218S92 434 98 318 204 92 322 96z'/%3E%3Cpath d='M320 142c92 2 166 74 160 168s-82 176-178 170-160-80-154-172 80-168 172-166z'/%3E%3Cpath d='M318 190c66 0 118 54 114 120s-60 124-128 120-112-58-108-122 56-118 122-118z'/%3E%3Cpath d='M316 238c40 0 72 32 70 72s-36 76-78 74-68-36-66-76 34-70 74-70z'/%3E%3Cpath d='M-40 560c80-40 150-10 190 40s20 90-40 120'/%3E%3Cpath d='M680 90c-90 40-190 30-250-40'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 640px,
    var(--bg-alt);
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.trip-schedule-head { margin-bottom: 2.25rem; }
.trip-schedule-head h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); color: var(--ink); margin: 0; }

.sched-inline-time {
  color: var(--accent);
  font-weight: 700;
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.sched-time-chip {
  display: inline-block;
  margin-inline-end: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  background: var(--clay-soft);
  color: var(--accent);
  font-size: 0.85em;
  font-weight: 700;
  font-feature-settings: "tnum";
  vertical-align: 0.05em;
}

/* Day jump links */
.schedule-index {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 2.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.schedule-index::-webkit-scrollbar { display: none; }
.schedule-index-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  transition: border-color var(--t), color var(--t);
}
.schedule-index-link:hover { border-color: var(--accent); color: var(--accent); }
.schedule-index-link .icon { width: 15px; height: 15px; color: var(--accent); }
.schedule-index-link.is-night { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--on-dark); }
.schedule-index-link.is-night .icon { color: var(--brand-gold); }

/* Day by day: numbered discs on a rail, each with its card. */
.schedule-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.schedule-day {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 1.25rem;
  scroll-margin-top: 110px;
}
.schedule-day-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.9rem;
}
.schedule-day:not(:last-child) .schedule-day-marker::after {
  content: "";
  position: absolute;
  top: 6.4rem;
  bottom: -1.9rem;
  inset-inline-start: calc(50% - 1px);
  border-inline-start: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent);
}
/* The last day is the summit: a gold disc with a small flag. */
.schedule-days:not(.is-compact) .schedule-day:last-child .schedule-day-num {
  position: relative;
  background: var(--trip-glow);
  color: #2a1d12;
}
.schedule-days:not(.is-compact) .schedule-day:last-child .schedule-day-num::after {
  content: "";
  position: absolute;
  top: -9px;
  inset-inline-end: -2px;
  width: 16px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M2 1v16' stroke='%23203e31' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M3 2h11l-3 3.5 3 3.5H3z' fill='%23c0583a'/%3E%3C/svg%3E") center / contain no-repeat;
}
.schedule-day-num {
  order: -1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-deep);
  color: var(--brand-gold);
  font-family: var(--trip-num-font);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  font-feature-settings: "lnum", "tnum";
  box-shadow: 0 0 0 5px var(--bg-alt);
}
.schedule-day-kind {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body[dir="rtl"] .schedule-day-kind { letter-spacing: 0; font-size: 0.85rem; }
.schedule-day-kind .icon { width: 14px; height: 14px; color: var(--accent); }
.schedule-day-body {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--trip-card-radius);
  padding: 1.35rem 1.6rem;
  box-shadow: var(--trip-card-shadow);
}
body[dir] .schedule-day-title {
  margin: 0;
  color: var(--ink);
  font-family: 'Tajawal', 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
}
body[dir="ltr"] .schedule-day-title { font-family: 'Inter', sans-serif; font-size: 1.05rem; }
.schedule-day.is-brief .schedule-day-body { display: flex; align-items: center; min-height: 100%; }

.schedule-steps {
  list-style: none;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line-soft);
  columns: 2;
  column-gap: 2.25rem;
}
.schedule-steps li {
  position: relative;
  break-inside: avoid;
  padding-inline-start: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}
.schedule-steps li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.15rem;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* The night climb keeps its own sky. */
.schedule-day.is-night .schedule-day-num { background: #0f2019; box-shadow: 0 0 0 5px var(--bg-alt), 0 0 0 6px rgba(237, 209, 124, 0.6); }
.schedule-day.is-night .schedule-day-body {
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1px 1px at 34% 12%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.5px 1.5px at 72% 18%, rgba(255,255,255,0.65), transparent),
    radial-gradient(1px 1px at 88% 40%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 56% 8%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 22% 70%, rgba(255,255,255,0.35), transparent),
    radial-gradient(circle at 92% 12%, rgba(237, 209, 124, 0.22), transparent 18%),
    linear-gradient(160deg, #0b1a13 0%, #12281e 60%, #1d3a2c 100%);
  border-color: rgba(237, 209, 124, 0.35);
}
.schedule-day.is-night .schedule-day-title { color: var(--on-dark); }
.schedule-day.is-night .schedule-steps { border-top-color: rgba(255,255,255,0.14); }
.schedule-day.is-night .schedule-steps li { color: var(--on-dark-muted); }
.schedule-day.is-night .schedule-steps li::before { background: var(--brand-gold); }
.schedule-day.is-night .sched-inline-time { color: var(--brand-gold); }
.schedule-day.is-night .sched-time-chip { background: rgba(237, 209, 124, 0.16); color: var(--brand-gold); }

/* Every day a one-liner: a grid of day cards instead of a long ladder. */
.schedule-days.is-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.schedule-days.is-compact .schedule-day {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--trip-card-radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--trip-card-shadow);
}
.schedule-days.is-compact .schedule-day-marker {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0 0.9rem;
}
.schedule-days.is-compact .schedule-day-marker::after { display: none; }
.schedule-days.is-compact .schedule-day-num { width: 40px; height: 40px; font-size: 1.05rem; box-shadow: none; }
.schedule-days.is-compact .schedule-day-body { display: block; min-height: 0; background: none; border: 0; box-shadow: none; padding: 0; }
.schedule-days.is-compact .schedule-day.is-night { background: #12281e; border-color: rgba(237, 209, 124, 0.35); }
.schedule-days.is-compact .schedule-day.is-night .schedule-day-body { background: none; }
.schedule-days.is-compact .schedule-day.is-night .schedule-day-kind { color: var(--on-dark-muted); }

/* Hour by hour — a rail of nodes, each carrying a card. */
.schedule-hours { list-style: none; margin: 0; padding: 0; }
.schedule-hour { position: relative; }
.schedule-hour-node {
  position: absolute;
  top: 0;
  inset-inline-start: 1.35rem;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 5px var(--line);
}
.schedule-hour.is-untimed .schedule-hour-node { background: var(--surface); border: 2px solid var(--accent); }
.schedule-hour-card {
  position: relative;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--trip-card-radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--trip-card-shadow);
}
.schedule-hour-time {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--trip-num-font);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  font-feature-settings: "lnum", "tnum";
}
.schedule-hour-step { font-size: 0.8em; color: var(--accent); }
.schedule-hour-label { display: block; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.65; }

.schedule-hours.is-strip {
  display: grid;
  grid-template-columns: repeat(var(--steps), minmax(0, 1fr));
  gap: 1rem;
  max-width: calc(var(--steps) * 320px);
}
.schedule-hours.is-strip .schedule-hour { padding-top: 1.9rem; }
.schedule-hours.is-strip .schedule-hour::before {
  content: "";
  position: absolute;
  top: 7px;
  inset-inline-start: 1.35rem;
  inset-inline-end: -1rem;
  border-top: 2px solid var(--line);
}
.schedule-hours.is-strip .schedule-hour:last-child::before { display: none; }

.schedule-hours.is-list { max-width: 760px; }
.schedule-hours.is-list .schedule-hour { padding-inline-start: 2.75rem; padding-bottom: 0.85rem; }
.schedule-hours.is-list .schedule-hour-node { top: 1.5rem; inset-inline-start: 0; }
.schedule-hours.is-list .schedule-hour::before {
  content: "";
  position: absolute;
  inset-inline-start: 7px;
  top: 1.9rem;
  bottom: -1.5rem;
  border-inline-start: 2px solid var(--line);
}
.schedule-hours.is-list .schedule-hour:last-child::before { display: none; }
.schedule-hours.is-list .schedule-hour-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: baseline; }
.schedule-hours.is-list .schedule-hour-time { font-size: 1.45rem; margin: 0; }

/* Gallery */
.page-trip .gallery { gap: 0.75rem; }
.page-trip .gallery-img { border-radius: 12px; }

/* Closing call to action over the trip's own photo ------------------------ */
.page-trip .trip-cta-photo {
  background:
    linear-gradient(180deg, rgba(27, 51, 40, 0.6), rgba(27, 51, 40, 0.88)),
    var(--trip-photo) center / cover;
  border-radius: 16px;
  padding: 4.5rem 2rem;
}
.page-trip .trip-cta-photo::before { display: none; }
.page-trip .trip-cta-photo h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.page-trip .trip-cta-photo .btn-primary {
  min-height: 50px;
  padding-inline: 1.7rem;
  border-radius: 8px;
  background: var(--trip-glow);
  border-color: var(--trip-glow);
  color: #2a1d12;
  font-weight: 700;
}
.page-trip .trip-cta-photo .btn-primary:hover { background: #f4d980; border-color: #f4d980; }

/* Cards rise in as they scroll into view (JS adds .trip-reveal). */
.trip-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease var(--reveal-delay, 0ms), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) var(--reveal-delay, 0ms);
}
.trip-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .trip-reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .trip-fact-book { grid-column: 1 / -1; margin-top: 0; }
}
@media (max-width: 960px) {
  .page-trip .trip-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .page-trip .trip-detail-side { position: static; }
  .schedule-steps { columns: 1; }
}
@media (max-width: 720px) {
  .page-trip .trip-hero { min-height: 560px; }
  /* Compact band on phones: a tight 2 x 2 grid of facts and one slim price + book panel. */
  .trip-facts-band { padding-bottom: 16px; }
  .trip-facts-band::after { height: 16px; }
  .trip-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
  .trip-fact { gap: 0.3rem; padding: 0.7rem 0.9rem; border-inline-start: 0; border-top: 1px solid var(--trip-gold-rule); }
  .trip-fact:first-child { padding-inline-start: 0.9rem; }
  .trip-fact:nth-child(-n+2) { border-top: 0; }
  .trip-fact:nth-child(even) { border-inline-start: 1px solid var(--trip-gold-rule); }
  .trip-fact-label { font-size: 0.74rem; gap: 0.35rem; }
  .trip-fact-label .icon { width: 22px; height: 22px; padding: 4px; }
  .trip-fact-value { font-size: 1.02rem; line-height: 1.2; }
  .trip-fact-book { grid-column: 1 / -1; border-inline-start: 1px solid rgba(247, 232, 200, 0.16) !important; margin: 0.4rem 0 0.6rem; padding: 0.7rem 0.9rem; gap: 0.75rem; }
  .trip-fact-price { font-size: 1.5rem; }
  .page-trip .trip-hero-deadline { font-size: 0.72rem; }
  .trip-fact-price-wrap { gap: 0.2rem; }
  .trip-fact-book .btn { min-height: 42px; padding-inline: 1.1rem; font-size: 0.92rem; }

  .page-trip .trip-overview { padding-block: 3rem 3.5rem; }
  .page-trip .trip-detail-main > .trip-eyebrow { margin-bottom: 1.1rem; }
  .page-trip .trip-long-desc { font-size: 1rem; line-height: 1.9; }
  .page-trip .story-lead { font-size: 1.06rem; }
  .story-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .story-fact { padding: 0.65rem 0.75rem; column-gap: 0.55rem; }
  .story-fact-icon { width: 32px; height: 32px; font-size: 0.95rem; }
  .story-fact dd { font-size: 0.92rem; }

  .page-trip .trip-schedule { padding-block: 3.5rem; }
  .trip-schedule-head { margin-bottom: 1.5rem; }
  .schedule-index { margin-bottom: 1.5rem; }

  .schedule-day { grid-template-columns: 44px minmax(0, 1fr); gap: 0.85rem; }
  .schedule-day-marker { padding-top: 1rem; }
  .schedule-day-kind { display: none; }
  .schedule-day-num { width: 40px; height: 40px; font-size: 1.05rem; box-shadow: 0 0 0 4px var(--bg-alt); }
  .schedule-day:not(:last-child) .schedule-day-marker::after { top: 3.8rem; bottom: -1.6rem; }
  .schedule-day-body { padding: 1.1rem 1.15rem; }
  .schedule-day-title { font-size: 1.02rem; }
  .schedule-steps li { font-size: 0.92rem; }
  .schedule-days.is-compact .schedule-day-kind { display: inline-flex; }

  .schedule-hours.is-strip { display: block; max-width: none; }
  .schedule-hours.is-strip .schedule-hour,
  .schedule-hours.is-list .schedule-hour { padding: 0 0 0.85rem; padding-inline-start: 2.4rem; }
  .schedule-hours .schedule-hour-node { top: 1.4rem; inset-inline-start: 0; }
  .schedule-hours.is-strip .schedule-hour::before,
  .schedule-hours.is-list .schedule-hour::before {
    display: block;
    inset-inline: 7px auto;
    top: 1.8rem;
    bottom: -1.4rem;
    border-top: 0;
    border-inline-start: 2px solid var(--line);
  }
  .schedule-hours .schedule-hour:last-child::before { display: none; }
  .schedule-hours.is-list .schedule-hour-card { display: block; }
  .schedule-hours .schedule-hour-time { font-size: 1.4rem; margin-bottom: 0.35rem; }

  .page-trip .trip-cta-photo { padding: 3.25rem 1.25rem; border-radius: 12px; }
}
@media (max-width: 960px) {
  .page-trip .trip-detail-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
  .page-trip .trip-included { margin-top: 2rem; }
}
@media (max-width: 720px) {
  .page-trip .detail-block { padding: 1.2rem 1.25rem; }
  .page-trip .detail-block-meeting { padding-top: 0; }
  .page-trip .detail-block-meeting::before { height: 84px; margin-inline: -1.25rem; }
  .page-trip .detail-block-meeting .detail-block-head { height: 84px; }
  .page-trip .trip-included { padding: 1.25rem 1.25rem 1.1rem; }
  .page-trip .trip-included .detail-list { grid-template-columns: minmax(0, 1fr); }
  .schedule-days:not(.is-compact) .schedule-day:last-child .schedule-day-num::after { top: -8px; width: 13px; height: 15px; }
}
/* Dark theme: the day discs share the page's green, so they get a gold ring to stand out. */
[data-theme="dark"] .page-trip .schedule-day-num { box-shadow: 0 0 0 5px var(--bg-alt), 0 0 0 6px rgba(237, 209, 124, 0.5); }
/* With a story, "what's included" sits under it in the main column, so the two columns fill evenly. */
.page-trip .trip-detail-main .trip-included { margin-top: 2rem; }
.page-trip .trip-detail-main .trip-included .detail-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
/* With no packing list, "what's included" fills the side column under the meeting point. */
.page-trip .trip-detail-side .trip-included { margin-top: 0; }
.page-trip .trip-detail-side .trip-included .detail-list { grid-template-columns: minmax(0, 1fr); }
/* A night between two days shows a moon in its disc instead of a number. */
.schedule-day-num .icon { width: 22px; height: 22px; color: var(--brand-gold); }
@media (max-width: 720px) { .schedule-day-num .icon { width: 17px; height: 17px; } }
/* At a glance: the description's day-by-day lines as a slim route, one row per day. */
.story-glance { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0.15rem; }
.story-glance::before {
  content: "";
  position: absolute;
  inset-block: 0.9rem;
  inset-inline-start: 0.4rem;
  border-inline-start: 2px dashed color-mix(in srgb, var(--accent) 40%, transparent);
}
.story-glance li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(84px, max-content) minmax(0, 1fr);
  gap: 0.25rem 0.85rem;
  align-items: baseline;
  padding: 0.45rem 0 0.45rem 0;
  padding-inline-start: 1.6rem;
}
.story-glance li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.08rem;
  top: 0.95rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
}
.story-glance li:last-child::before { background: var(--accent); }
.story-glance-day {
  justify-self: start;
  padding: 0.05rem 0.55rem;
  border-radius: 6px;
  background: var(--clay-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.story-glance-text { color: var(--ink-soft); }
.story-glance li:not(:has(.story-glance-day)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) {
  .story-glance li { grid-template-columns: minmax(0, 1fr); }
}
/* The glance list ends with a link down to the full schedule. */
.story-glance-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  transition: border-color var(--t), background var(--t);
}
.story-glance-more:hover { border-color: var(--accent); background: var(--clay-soft); }
.story-glance-more .icon { width: 16px; height: 16px; }
.page-trip #trip-schedule { scroll-margin-top: 72px; }
