/* ==========================================================================
   site.css — components used only by the generated sub-pages.
   styles.css owns the shared chrome (header, footer, buttons, dialogs) and
   every design token; nothing here redefines a token, it only consumes them.
   ========================================================================== */

/* --- Breadcrumbs ------------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.crumbs a { color: inherit; opacity: 0.78; text-decoration: none; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs [aria-current="page"] { font-weight: 600; }
.crumbs__sep { opacity: 0.45; }

/* --- Page hero (image) -------------------------------------------------- */
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(380px, 52vh, 560px);
  overflow: hidden;
  isolation: isolate;
  background: #191714;
  color: var(--white);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Two passes: a vertical ramp that gets heavy behind the text block, and a
     left-hand wash so the lead stays legible over a busy photograph. */
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.55) 0%, rgba(12, 10, 9, 0.14) 26%,
                    rgba(12, 10, 9, 0.68) 58%, rgba(12, 10, 9, 0.94) 100%),
    linear-gradient(90deg, rgba(12, 10, 9, 0.62) 0%, rgba(12, 10, 9, 0.18) 52%, rgba(12, 10, 9, 0) 78%);
}
.page-hero__inner {
  width: min(100%, calc(var(--shell) + (var(--gutter) * 2)));
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(36px, 5vw, 62px);
}
/* Gold-on-sky washes out at the top of a bright photograph, so the eyebrow
   gets the same pill treatment the home hero uses. */
.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  margin-bottom: 14px;
  background: rgba(12, 10, 9, 0.55);
  border: 1px solid rgba(216, 179, 106, 0.5);
  border-radius: 2px;
  color: var(--gold);
  backdrop-filter: blur(6px);
}
.page-hero__title {
  max-width: 20ch;
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.page-hero__lead {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  color: rgba(255, 253, 248, 0.94);
  text-shadow: 0 1px 14px rgba(8, 7, 6, 0.55);
}
.page-hero__title { text-shadow: 0 2px 22px rgba(8, 7, 6, 0.5); }
.page-hero .crumbs { text-shadow: 0 1px 10px rgba(8, 7, 6, 0.75); }
.page-hero .pattern-button { margin-top: 26px; }

/* --- Page hero (no image) ---------------------------------------------- */
.plain-hero {
  padding: clamp(42px, 6vw, 88px) var(--gutter) clamp(30px, 4vw, 54px);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}
.plain-hero .section-shell { width: min(100%, var(--shell)); }
.plain-hero__title {
  max-width: 22ch;
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.plain-hero__lead { max-width: 64ch; margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

/* --- Section rhythm ----------------------------------------------------- */
.subpage .section { padding-block: clamp(52px, 6.5vw, 104px); padding-inline: var(--gutter); }
.section--paper { background: var(--paper-deep); }
.section-header__note {
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* --- Tour cards --------------------------------------------------------- */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(20px, 2.4vw, 34px);
  margin-top: clamp(30px, 4vw, 52px);
}
.tour-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.tour-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(28, 21, 16, 0.13); }
.tour-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.tour-card:hover .tour-card__media img { transform: scale(1.05); }
.tour-card__duration {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  background: rgba(12, 10, 9, 0.76);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 2px;
}
.tour-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px 22px 20px; }
.tour-card__body h3 { margin: 0 0 10px; font-family: var(--display); font-size: 1.6rem; font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; }
.tour-card__body h3 a { color: inherit; text-decoration: none; }
.tour-card__body h3 a::after { content: ""; position: absolute; inset: 0; }
.tour-card { position: relative; }
.tour-card__body > p { margin: 0 0 14px; color: var(--muted); font-size: 0.94rem; }
.tour-card__points { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 6px; }
.tour-card__points li { position: relative; padding-left: 18px; color: var(--ink-soft); font-size: 0.86rem; }
.tour-card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
}
.tour-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tour-card__price { font-weight: 700; font-size: 0.88rem; }
.tour-card__go { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-size: 0.82rem; font-weight: 700; }
.tour-card__go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* --- Destination cards -------------------------------------------------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
  margin-top: clamp(28px, 3.5vw, 48px);
}
.dest-card { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 4px; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.dest-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28, 21, 16, 0.12); }
.dest-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.dest-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.dest-card:hover .dest-card__media img { transform: scale(1.05); }
.dest-card__body { padding: 18px 20px 22px; }
.dest-card__kind { margin: 0 0 6px; color: var(--red); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.dest-card__body h3 { margin: 0 0 8px; font-family: var(--display); font-size: 1.34rem; font-weight: 500; letter-spacing: -0.02em; }
.dest-card__body h3 a { color: inherit; text-decoration: none; }
.dest-card__body h3 a::after { content: ""; position: absolute; inset: 0; }
.dest-card__body p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* --- Tour detail -------------------------------------------------------- */
.tour-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}
.tour-detail__main .section-title { margin-bottom: 28px; font-size: clamp(1.9rem, 3vw, 2.7rem); }

.itinerary { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.itinerary__day { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding-bottom: 26px; }
.itinerary__marker { position: relative; display: flex; justify-content: center; }
.itinerary__marker span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 1;
}
.itinerary__day:not(:last-child) .itinerary__marker::after {
  content: "";
  position: absolute;
  top: 44px;
  bottom: -26px;
  width: 2px;
  background: var(--line);
}
.itinerary__body h3 {
  margin: 11px 0 8px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.itinerary__body p { margin: 0; color: var(--ink-soft); }

.tour-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; margin-top: 44px; }
.tour-list { padding: 24px 24px 26px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.tour-list h3 { margin: 0 0 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.tour-list--in h3 { color: #2c6e49; }
.tour-list--out h3 { color: var(--muted); }
.tour-list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.tour-list li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--ink-soft); }
.tour-list--in li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.34em;
  width: 11px;
  height: 6px;
  border-left: 2px solid #2c6e49;
  border-bottom: 2px solid #2c6e49;
  transform: rotate(-45deg);
}
.tour-list--out li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }

/* --- Aside cards -------------------------------------------------------- */
.tour-detail__aside, .prose-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-height) + 20px); }
.fact-card { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.fact-card--soft { background: var(--paper-deep); }
.fact-card--accent { background: var(--ink); color: var(--paper); border-color: transparent; }
.fact-card--accent h2, .fact-card--accent p { color: inherit; }
.fact-card h2 { margin: 0 0 16px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; color: var(--red); }
.fact-card--accent h2 { color: var(--gold); }
.fact-card dl { margin: 0; display: grid; gap: 0; }
.fact-card dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fact-card dl > div:last-child { border-bottom: 0; }
.fact-card dt { color: var(--muted); font-size: 0.86rem; }
.fact-card dd { margin: 0; font-weight: 600; font-size: 0.9rem; text-align: right; }
.fact-card__note { margin: 16px 0 18px; color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.fact-card .pattern-button, .fact-card .ghost-button { width: 100%; justify-content: center; }
.fact-card .ghost-button {
  margin-top: 10px;
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: none;
}
.fact-card .ghost-button:hover { background: var(--paper-deep); }
.fact-card .ghost-button svg { stroke: var(--red); }
.fact-card--accent .ghost-button {
  background: rgba(247, 241, 232, 0.08);
  border-color: rgba(247, 241, 232, 0.42);
  color: var(--paper);
}
.fact-card--accent .ghost-button:hover { background: rgba(247, 241, 232, 0.16); }
.fact-card--accent .ghost-button svg { stroke: var(--gold); }

.tick-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 24px; font-size: 0.92rem; color: var(--ink-soft); }
.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

/* --- Prose -------------------------------------------------------------- */
.prose-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr); gap: clamp(32px, 4.5vw, 72px); align-items: start; }
.prose { max-width: 74ch; }
.prose__lead { margin: 0 0 28px; font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.62; color: var(--ink); }
.prose__block { margin-bottom: 30px; }
.prose__block h2 { margin: 0 0 10px; font-family: var(--display); font-size: clamp(1.4rem, 2.1vw, 1.85rem); font-weight: 500; letter-spacing: -0.025em; }
.prose__block p { margin: 0 0 12px; color: var(--ink-soft); }
.prose--legal { max-width: 78ch; margin-inline: auto; }
.prose--legal .prose__block h2 { font-size: 1.3rem; }
.prose__meta { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

.portrait-card { margin: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.portrait-card img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-card figcaption { display: grid; gap: 2px; padding: 16px 20px 18px; }
.portrait-card strong { font-size: 1.02rem; }
.portrait-card span { color: var(--muted); font-size: 0.84rem; }

/* --- Galleries ---------------------------------------------------------- */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-top: clamp(26px, 3.4vw, 44px);
}
.gal-grid--full { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.gal-tile {
  display: block;
  padding: 0;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--paper-warm);
  border: 0;
  border-radius: 3px;
  cursor: zoom-in;
}
.gal-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease, filter 0.4s ease; }
.gal-tile:hover img { transform: scale(1.06); filter: brightness(1.05); }
.gal-tile:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* --- Lightbox (site.js) -------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 9, 8, 0.94);
  border: 0;
}
.lightbox::backdrop { background: rgba(10, 9, 8, 0.94); }
.lightbox img { max-width: min(100%, 1400px); max-height: 82vh; object-fit: contain; display: block; }
.lightbox__caption { margin-top: 14px; color: rgba(255, 253, 248, 0.82); font-size: 0.86rem; text-align: center; }
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 253, 248, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 50%;
  cursor: pointer;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 253, 248, 0.24); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

/* --- FAQ ---------------------------------------------------------------- */
.faq-list { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 2; transition: transform 0.25s ease; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item__body { padding: 0 22px 20px; }
.faq-item__body p { margin: 0; color: var(--ink-soft); }

/* --- Contact ------------------------------------------------------------ */
.subpage .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 3vw, 52px); }
.contact-block { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.contact-block h2 { margin: 0 0 18px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; color: var(--red); }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.contact-line:last-of-type { border-bottom: 0; }
.contact-line svg { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: var(--red); stroke-width: 1.6; }
.contact-line span { display: grid; gap: 1px; }
.contact-line small { color: var(--muted); font-size: 0.82rem; }
.contact-line--static { cursor: default; }
.contact-block .pattern-button { margin-top: 6px; }

/* --- Enquire band ------------------------------------------------------- */
.enquire-band { padding: clamp(44px, 5vw, 76px) var(--gutter); background: var(--ink); color: var(--paper); }
.enquire-band__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: clamp(24px, 4vw, 64px); align-items: center; }
.enquire-band .eyebrow { color: var(--gold); }
.enquire-band h2 { margin: 0 0 10px; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 500; letter-spacing: -0.035em; }
.enquire-band p { margin: 0; max-width: 56ch; color: rgba(247, 241, 232, 0.78); }
.enquire-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.enquire-band .ghost-button { color: var(--paper); border-color: rgba(247, 241, 232, 0.4); }
.enquire-band .ghost-button:hover { background: rgba(247, 241, 232, 0.1); }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1000px) {
  .tour-detail__grid, .prose-grid { grid-template-columns: minmax(0, 1fr); }
  .tour-detail__aside, .prose-aside { position: static; }
  .enquire-band__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .itinerary__day { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
  .itinerary__marker span { width: 34px; height: 34px; font-size: 0.84rem; }
  .itinerary__day:not(:last-child) .itinerary__marker::after { top: 34px; }
  .gal-grid, .gal-grid--full { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .tour-card, .dest-card, .tour-card__media img, .dest-card__media img, .gal-tile img { transition: none; }
  .tour-card:hover, .dest-card:hover { transform: none; }
}
