/* =========================================================
   Kigali Charm Safaris — multi-page additions
   Loaded after styles.css. Uses only the tokens defined there
   (:root in styles.css) so the two files stay one system.
   ========================================================= */

/* ---------- Inner-page banner ----------
   The site header is fixed and transparent, designed to sit over the
   full-bleed home hero. Inner pages have no hero, so they need their own
   dark banner or the white nav text would land on a light background. */
.page-hero {
  position: relative;
  min-height: clamp(300px, 38vh, 420px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
}
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(43,38,33,0.75) 0%, rgba(43,38,33,0.35) 45%, rgba(43,38,33,0.85) 100%);
}
.page-hero__content {
  position: relative; z-index: 2;
  color: var(--white);
  padding-top: calc(var(--header-h) + var(--sp-lg));
  padding-bottom: var(--sp-md);
}
.page-hero__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 800; }
.page-hero__sub { margin-top: 0.8rem; max-width: 620px; color: rgba(255,255,255,0.92); }

/* ---------- Breadcrumb ---------- */
.crumb { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.88rem; color: rgba(255,255,255,0.75); margin-bottom: 0.6rem; }
.crumb a:hover { color: var(--ochre); }
.crumb span[aria-hidden] { opacity: 0.6; }

/* ---------- Long-form copy ---------- */
.prose { max-width: 68ch; }
.prose p { color: var(--muted); margin-bottom: 1rem; }
.prose h2 { font-size: var(--fs-h2); margin: 2rem 0 0.8rem; }
.prose h3 { font-size: var(--fs-h3); margin: 1.6rem 0 0.6rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; color: var(--muted); }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--terracotta); text-decoration: underline; }

/* ---------- Tours ---------- */
.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-md); }
.tour-card {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease);
}
.tour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.tour-card__media { position: relative; background: var(--olive); }
.tour-card__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.6s var(--ease); }
.tour-card:hover .tour-card__media img { transform: scale(1.06); }
.tour-card__badge {
  position: absolute; left: 0.9rem; top: 0.9rem;
  background: var(--terracotta); color: var(--cream);
  border-radius: 999px; padding: 0.3rem 0.8rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
}
.tour-card__body { padding: var(--sp-md); display: flex; flex-direction: column; flex: 1; }
.tour-card__body h3 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.tour-card__body p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.tour-card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--sand-dk); }
.tour-card__price { font-family: "Playfair Display", serif; font-size: 1.35rem; font-weight: 700; color: var(--terracotta); }
.tour-card__price small { display: block; font-family: "Inter", sans-serif; font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Tour detail ---------- */
.tour-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--sp-lg); align-items: start; }

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-sm); margin-bottom: var(--sp-lg); }
.spec { background: var(--surface); border: 1px solid var(--sand-dk); border-radius: var(--radius); padding: 0.9rem 1rem; }
.spec__k { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--terracotta); font-weight: 600; }
.spec__v { font-weight: 600; }

/* Booking panel — sticky on desktop so the price stays in view while reading. */
.booking {
  background: var(--surface); border: 1px solid var(--sand-dk);
  border-radius: var(--radius-lg); padding: var(--sp-md);
  box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 1rem);
}
.booking__price { font-family: "Playfair Display", serif; font-size: 2.2rem; color: var(--terracotta); line-height: 1.1; }
.booking__price small { display: block; font-family: "Inter", sans-serif; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.booking .btn { width: 100%; margin-top: 1rem; }

/* Itinerary — a vertical timeline of days. */
.itinerary { border-left: 2px solid var(--sand-dk); padding-left: var(--sp-md); margin-left: 0.6rem; }
.itinerary__day { position: relative; padding-bottom: var(--sp-md); }
.itinerary__day::before {
  content: ""; position: absolute; left: calc(-1 * var(--sp-md) - 7px); top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--terracotta); box-shadow: 0 0 0 4px var(--bg);
}
.itinerary__n { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--terracotta); font-weight: 600; }
.itinerary__day h3 { font-size: var(--fs-h3); margin: 0.2rem 0 0.4rem; }
.itinerary__day p { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-sm); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--sp-sm); max-width: 560px; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 0.98rem; color: var(--text);
  background: var(--white); border: 1px solid var(--sand-dk);
  border-radius: 12px; padding: 0.75rem 0.9rem; width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(181, 101, 29, 0.18);
}
.field textarea { min-height: 150px; resize: vertical; }
.field__error { color: #b3261e; font-size: 0.86rem; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3261e; }

/* Honeypot — hidden from people, visible to naive bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-bottom: var(--sp-md); font-weight: 500; }
.alert--ok { background: rgba(107, 122, 79, 0.15); border: 1px solid var(--olive); color: var(--olive-dk); }
.alert--err { background: rgba(179, 38, 30, 0.1); border: 1px solid #b3261e; color: #8c1d18; }

/* ---------- Contact page layout ---------- */
.contact-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-lg); align-items: start; }

/* ---------- Empty state ---------- */
.empty { background: var(--surface); border: 1px dashed var(--sand-dk); border-radius: var(--radius); padding: var(--sp-lg); text-align: center; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tour-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-layout, .contact-split { grid-template-columns: 1fr; }
  .booking { position: static; }
}

@media (max-width: 620px) {
  .tour-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
