/* ==========================================================================
   MINÈ TOURS: inner pages
   Load AFTER styles.css and home.css. Uses the shared design tokens.
   Sections: 1. Utilities  2. Media + image stand-ins  3. Page head
             4. Destinations  5. Tours listing  6. Tour detail  7. About
             8. Story teaser  9. CTA band  10. Legal pages
   ========================================================================== */

/* ---------- 1. Utilities ---------- */
.section { padding-block: clamp(5rem, 10vw, 9rem); }
.section--sand { background: var(--sand); }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* ---------- 2. Media + image stand-ins ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ph, var(--khaki));
}
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-soft), var(--overlay-olive);
  opacity: 0.5;
  pointer-events: none;
}
.media--arch { border-radius: 999px 999px 0 0; }
.media--4x5  { aspect-ratio: 4 / 5; }
.media--3x2  { aspect-ratio: 3 / 2; }
.media--wide { aspect-ratio: 16 / 9; }
@media (min-width: 64rem) { .media--wide { aspect-ratio: 21 / 9; } }

/* Gradient stand-ins until real photos are added (also drive the tour cards) */
.ph-winelands { --ph: linear-gradient(170deg, #B7A27A 0%, #8A7A52 45%, #4A4F30 100%); }
.ph-story     { --ph: linear-gradient(170deg, #D4B77E 0%, #A39B7A 40%, #5A6240 100%); }
.ph-person    { --ph: linear-gradient(170deg, #C7BA9A 0%, #A39B7A 55%, #6B7552 100%); }

/* ---------- 3. Page head ---------- */
.page-head {
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5.5rem);
  background: var(--sand);
}
.page-head__grid { display: grid; gap: 2rem; }
@media (min-width: 64rem) {
  .page-head__grid {
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: clamp(3rem, 8vw, 8rem);
  }
}
.page-head__title {
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.page-head__lede { max-width: 40ch; color: var(--charcoal-70); }

.breadcrumb { margin-bottom: 2rem; font-size: 0.875rem; color: var(--charcoal-70); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--charcoal-40); }
.breadcrumb a { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size var(--dur) var(--ease); }
.breadcrumb a:hover { background-size: 100% 1px; }

/* ---------- 4. Destinations ---------- */
.dest { display: grid; gap: 2rem; align-items: center; }
.dest + .dest { margin-top: clamp(4.5rem, 9vw, 8rem); }
.dest__media { max-width: 34rem; }
.dest:hover .media img { transform: scale(1.03); }

@media (min-width: 64rem) {
  .dest { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 7vw, 7rem); }
  .dest--flip .dest__media { order: 2; max-width: none; }
}

.dest__region { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; color: var(--olive); }
.dest__title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.dest__text { max-width: 46ch; margin-top: 1.25rem; color: var(--charcoal-70); }
.dest__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  max-width: 34rem;
  margin: 1.75rem 0 2rem;
  padding-block: 1.1rem;
  border-block: 1px solid var(--line);
}
.dest__facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--charcoal-40); }
.dest__facts dd { margin: 0.1rem 0 0; font-size: 0.9375rem; font-weight: 500; }

/* ---------- 5. Tours listing ---------- */
@media (min-width: 64rem) {
  .tours__grid--all { row-gap: 4rem; }
  .tours__grid--all > li:nth-child(3n + 2) { margin-top: 3rem; }
}
.tours--page { padding-top: clamp(3.5rem, 7vw, 6rem); }

/* ---------- 6. Tour detail ---------- */
.tour-body { padding-top: clamp(3rem, 6vw, 5rem); }
.tour-layout { display: grid; gap: 3.5rem; margin-top: clamp(3rem, 6vw, 5rem); }
@media (min-width: 64rem) {
  .tour-layout { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .book-card { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.block + .block { margin-top: clamp(3rem, 6vw, 4.5rem); }
.block h2 {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
}
.block p { max-width: 62ch; color: var(--charcoal-70); }
.block p + p { margin-top: 1rem; }

.marks { display: grid; gap: 0.8rem; margin: 0; padding: 0; list-style: none; }
.marks li { position: relative; padding-left: 1.75rem; max-width: 62ch; color: var(--charcoal-70); }
.marks li::before { content: ""; position: absolute; left: 0; top: 0.9em; width: 0.9rem; height: 1px; background: var(--gold); }

.two-col { display: grid; gap: 3rem; }
@media (min-width: 40rem) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Day by day */
.day { border-top: 1px solid var(--line); }
.day:last-of-type { border-bottom: 1px solid var(--line); }
.day summary {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.25rem 0;
  list-style: none;
  cursor: pointer;
}
.day summary::-webkit-details-marker { display: none; }
.day summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--gold); }
.day[open] summary::after { content: "\2212"; }
.day__num { flex: none; min-width: 4.5rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); }
.day__title { flex: 1; font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.day summary:hover .day__title { color: var(--olive); }
.day__text { max-width: 60ch; padding: 0 0 1.5rem 5.75rem; color: var(--charcoal-70); }
@media (max-width: 36rem) { .day__text { padding-left: 0; } .day__num { min-width: 3.5rem; } }

/* Booking card */
.book-card { padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: 4px; background: var(--parchment); }
.book-card__from { font-size: 0.8125rem; font-weight: 500; color: var(--charcoal-40); }
.book-card__price { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 500; line-height: 1.1; }
.book-card__unit { font-size: 0.875rem; color: var(--charcoal-70); }
.facts { margin: 1.5rem 0 1.75rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.facts dt { color: var(--charcoal-70); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.book-card .btn { width: 100%; justify-content: center; border-color: var(--olive-deep); background: var(--olive-deep); color: var(--cream); --btn-hover-fill: var(--gold); --btn-hover-text: var(--charcoal); }
.book-card__note { margin-top: 1rem; font-size: 0.8125rem; color: var(--charcoal-70); }

/* ---------- 7. About ---------- */
.about-story { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 64rem) { .about-story { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 8vw, 8rem); } }
.about-story__media { max-width: 32rem; }
.about-story__text p { max-width: 54ch; margin-top: 1.25rem; color: var(--charcoal-70); }
.about-story__text .h2 { margin-bottom: 2rem; max-width: 14ch; }

.values { display: grid; gap: 2.5rem; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; list-style: none; }
@media (min-width: 52rem) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); } }
.values li { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.values__num { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--gold); }
.values__title { margin-top: 1rem; font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; line-height: 1.15; }
.values p { margin-top: 0.75rem; color: var(--charcoal-70); }

.people { display: grid; gap: 3rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 40rem) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 52rem; gap: clamp(2rem, 5vw, 4rem); } }
.person__name { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; line-height: 1.2; }
.person__role { font-size: 0.875rem; font-weight: 600; color: var(--olive); }
.person__bio { margin-top: 0.6rem; font-size: 0.9375rem; color: var(--charcoal-70); }

/* ---------- 8. Story teaser (homepage) ---------- */
.story__grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 64rem) { .story__grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 8vw, 8rem); } }
.story__media { max-width: 28rem; }
.story__text p { max-width: 48ch; margin: 1.5rem 0 2rem; color: var(--charcoal-70); }
.story__text .h2 { max-width: 14ch; }

/* ---------- 9. CTA band ---------- */
.cta-band { padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--olive-deep); color: var(--cream); }
.cta-band__grid { display: grid; gap: 2.25rem; align-items: end; }
@media (min-width: 64rem) { .cta-band__grid { grid-template-columns: 7fr 5fr; gap: clamp(3rem, 8vw, 8rem); } }
.cta-band__title { max-width: 14ch; font-family: var(--font-display); font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 500; line-height: 1; letter-spacing: -0.015em; }
.cta-band__side { display: grid; justify-items: start; gap: 1.75rem; max-width: 30rem; color: rgba(246, 241, 231, 0.78); }
.cta-band .btn { --btn-hover-fill: var(--cream); --btn-hover-text: var(--charcoal); }

/* ---------- 10. Legal pages ---------- */
.legal { display: grid; gap: 3rem; }
@media (min-width: 64rem) { .legal { grid-template-columns: 4fr 8fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; } .legal__toc { position: sticky; top: calc(var(--header-h) + 2rem); } }

.legal__toc-title { margin-bottom: 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--charcoal-70); }
.legal__toc ol { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: inline-block; font-size: 0.9375rem; color: var(--charcoal-70); transition: color var(--dur) var(--ease); }
.legal__toc a::before { content: counter(toc) ". "; color: var(--gold); }
.legal__toc a:hover { color: var(--charcoal); }

.prose { max-width: 64ch; }
.prose h2 { scroll-margin-top: calc(var(--header-h) + 1.5rem); margin: 3rem 0 0.9rem; font-family: var(--font-display); font-size: 1.875rem; font-weight: 500; line-height: 1.15; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: var(--charcoal-70); }
.prose p + p { margin-top: 0.9rem; }
.prose ul { display: grid; gap: 0.5rem; margin: 0.9rem 0 0; padding-left: 1.25rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.prose strong { color: var(--charcoal); font-weight: 600; }

.notice { max-width: 64ch; margin-bottom: 2.5rem; padding: 1rem 1.25rem; border: 1px dashed var(--terracotta); border-radius: 2px; font-size: 0.875rem; line-height: 1.6; color: var(--charcoal-70); }
.notice strong { color: var(--terracotta); }

.table-wrap { margin-top: 1.25rem; overflow-x: auto; }
.table { width: 100%; min-width: 28rem; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.table th { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--charcoal-70); }

@media (prefers-reduced-motion: reduce) { .dest:hover .media img { transform: none; } }

/* ---------- Additions for the Cape Town experiences ---------- */
.ph-peninsula { --ph: linear-gradient(170deg, #E0B98A 0%, #8FA39A 48%, #3E5A52 100%); }
.ph-shark     { --ph: linear-gradient(170deg, #7FA6A8 0%, #3E6B70 50%, #1F3A3D 100%); }
.ph-whale     { --ph: linear-gradient(170deg, #B7C4C0 0%, #6F8E94 50%, #2F4B52 100%); }
.ph-heritage  { --ph: linear-gradient(170deg, #D9A27A 0%, #A65D3F 50%, #5A3A2B 100%); }
.ph-garden    { --ph: linear-gradient(170deg, #B4B98A 0%, #5A6240 50%, #2E3320 100%); }

.dest__links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.price-note { max-width: 62ch; margin-top: 2.5rem; font-size: 0.875rem; color: var(--charcoal-70); }

.values.values--four { gap: 2.5rem; }
@media (min-width: 40rem) { .values.values--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .values.values--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.mv { display: grid; gap: 3rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 52rem) { .mv { grid-template-columns: 7fr 5fr; gap: clamp(3rem, 8vw, 8rem); } }
.mv__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--olive); }
.mv__text { margin-top: 1rem; font-family: var(--font-display); font-size: clamp(1.625rem, 2.6vw, 2.25rem); font-weight: 500; line-height: 1.25; }

.contacts { display: grid; gap: 2.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 52rem) { .contacts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); } }
.contacts > div { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.contacts__role { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--olive); }
.contacts__name { margin-top: 0.4rem; font-family: var(--font-display); font-size: 1.875rem; font-weight: 500; line-height: 1.15; }
.contacts p { margin-top: 0.4rem; color: var(--charcoal-70); }

/* ---------- About: collage of all four photos, each one breathing ---------- */
.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.collage__item { position: relative; overflow: hidden; margin: 0; border-radius: 4px; background: var(--khaki); }
.collage__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: breathe 16s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -4s); /* each photo breathes at its own point in the cycle */
}
.collage__item::after { content: ""; position: absolute; inset: 0; background: var(--overlay-soft); opacity: 0.8; pointer-events: none; }
.collage__item figcaption { position: absolute; left: 0.9rem; bottom: 0.8rem; z-index: 1; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; color: var(--cream); }
.collage__item:nth-child(1) { aspect-ratio: 3 / 4; border-radius: 999px 999px 4px 4px; }
.collage__item:nth-child(2) { aspect-ratio: 1; margin-top: 4rem; }
.collage__item:nth-child(3) { aspect-ratio: 1; }
.collage__item:nth-child(4) { aspect-ratio: 1; }
@media (prefers-reduced-motion: reduce) { .collage__item img { animation: none; } }

/* ---------- Tour page hero slider (same .hero-slide engine as the home page) ---------- */
.tour-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(26rem, 72vh, 40rem);
  background: var(--olive-deep);
  color: var(--cream);
}
.tour-hero .hero__media { position: absolute; inset: 0; aspect-ratio: auto; background: var(--olive); }

/* soft scrim so the headline stays readable on every photo */
.tour-hero .hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(37, 36, 31, 0.72) 0%, rgba(37, 36, 31, 0.25) 45%, rgba(37, 36, 31, 0) 70%);
  pointer-events: none;
}

.hero-slide__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 900ms var(--ease) 700ms, transform 900ms var(--ease) 700ms;
}
.hero-slide.active .hero-slide__content { opacity: 1; transform: none; }

.hero-slide__title {
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-slide__text { max-width: 44ch; margin-top: 1rem; color: rgba(246, 241, 231, 0.9); }
@media (prefers-reduced-motion: reduce) { .hero-slide__content { transition: none; } }
