/* ==========================================================================
   Outreach Africa Tours page
   Uses the homepage/about page's editorial type, palette, button and
   container system so the redesigned pages stay visually consistent.
   ========================================================================== */
.tours-page {
  --tours-serif: "Playfair Display", Georgia, serif;
  --tours-cream: #fbf7f1;
  --tours-cream-deep: #f5eee5;
  --tours-red: #b5221d;
  --tours-red-dark: #8f1915;
  --tours-gold: #a46e20;
  --tours-ink: #201e1b;
  --tours-muted: #68625b;
  --tours-line: #e8e0d7;
}

.tours-page main { overflow: hidden; }
.tours-page main h1,
.tours-page main h2,
.tours-page main h3 { font-family: var(--tours-serif); }
.tours-page .container { max-width: 1240px; }

.tours-page .tours-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: .72rem 1.55rem;
  border-radius: 6px;
  font-size: .9rem;
}

/* Hero */
.tours-hero {
  min-height: 475px;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center 44%;
}
.tours-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(17, 16, 14, .8) 0%, rgba(17, 16, 14, .52) 42%, rgba(17, 16, 14, .16) 78%),
    linear-gradient(0deg, rgba(12, 11, 10, .55), transparent 55%);
}
.tours-hero-inner { position: relative; z-index: 1; width: 100%; padding: 46px 0 0; }
.tours-hero-copy { max-width: 620px; padding-bottom: 40px; }
.tours-hero-eyebrow {
  margin: 0 0 13px;
  color: #f2dcc4;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tours-page main .tours-hero h1 {
  max-width: 620px;
  margin: 0;
  color: #fff !important;
  font-size: clamp(3.1rem, 4.3vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.07;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .25);
}
.tours-hero-lede {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .96);
  font-size: 1rem;
  line-height: 1.7;
}

/* Hero trust row */
.tours-hero-trust {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.tours-hero-trust-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 0 22px;
}
.tours-hero-trust-item:first-child { padding-left: 0; }
.tours-hero-trust-item + .tours-hero-trust-item { border-left: 1px solid rgba(255, 255, 255, .22); }
.tours-hero-trust-item > i { margin-top: 2px; color: #e2a94f; font-size: 1.3rem; line-height: 1; }
.tours-hero-trust-item h2 {
  margin: 0 0 3px;
  color: #fff !important;
  font-family: var(--font-body) !important;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.3;
}
.tours-hero-trust-item p { margin: 0; color: rgba(255, 255, 255, .78); font-size: .78rem; line-height: 1.5; }

/* Section heading (centred) */
.tours-section { padding: clamp(60px, 6.5vw, 88px) 0; background: var(--tours-cream); }
.tours-section-heading { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.tours-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--tours-gold);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tours-page main .tours-section-heading h2 {
  margin: 0;
  color: var(--tours-ink) !important;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  letter-spacing: -.025em;
  line-height: 1.15;
}
.tours-section-heading p { max-width: 560px; margin: 10px auto 0; color: var(--tours-muted); font-size: .96rem; }

/* Filter bar */
.tours-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.tours-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .6rem 1.2rem;
  background: #fff;
  border: 1px solid var(--tours-line);
  border-radius: 999px;
  color: var(--tours-ink);
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.tours-filter-btn i { font-size: .95rem; }
.tours-filter-btn:hover { border-color: var(--tours-red); color: var(--tours-red); }
.tours-filter-btn.is-active {
  background: var(--tours-red);
  border-color: var(--tours-red);
  color: #fff;
}
.tours-filter-btn.is-active:hover { color: #fff; }

/* Tour grid */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.tours-grid .tour-card {
  min-width: 0;
  border-color: #e5ded5;
  border-radius: 10px;
  box-shadow: 0 3px 14px rgba(48, 37, 25, .055);
}
.tours-grid .tour-card:hover { box-shadow: 0 10px 24px rgba(48, 37, 25, .1); transform: translateY(-2px); }
.tours-grid .tour-card.is-hidden { display: none; }
.tours-grid .tour-card-media { aspect-ratio: 4 / 3; }
.tour-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  background: rgba(20, 18, 16, .72);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-body);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tours-grid .tour-card-body { min-height: 150px; padding: 22px 22px 12px; gap: 11px; }
.tours-page .tours-grid .tour-card-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.35;
}
.tours-grid .tour-card-title a { color: var(--tours-ink); text-decoration: none; }
.tours-grid .tour-card-title a:hover { color: var(--tours-red); }
.tours-grid .tour-card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--tours-muted);
  font-size: .89rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.tours-grid .tour-card-footer { padding: 10px 22px 22px; }
.tours-grid .tour-card-footer .btn { padding: .66rem 1.2rem; font-size: .84rem; }
.tours-price { display: flex; flex-direction: column; line-height: 1.2; }
.tours-price span,
.tours-price small { color: var(--tours-muted); font-size: .65rem; }
.tours-price strong { margin: 2px 0; color: var(--tours-red); font-size: 1.22rem; }
.tours-duration { display: inline-flex; align-items: center; gap: 5px; text-transform: uppercase; letter-spacing: .03em; }
.tours-duration i { font-size: .72rem; }

.tours-empty-state {
  display: none;
  padding: 56px 24px;
  text-align: center;
  color: var(--tours-muted);
}
.tours-empty-state.is-visible { display: block; }
.tours-empty-state p { margin: 0 0 16px; font-size: .98rem; }

/* Reassurance strip */
.tours-reassurance { padding: 44px 0; background: #fff; border-top: 1px solid #f0e9df; border-bottom: 1px solid #f0e9df; }
.tours-reassurance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tours-reassurance-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 17px;
  align-items: center;
  min-width: 0;
  padding: 0 25px;
}
.tours-reassurance-item:first-child { padding-left: 8px; }
.tours-reassurance-item:last-child { padding-right: 8px; }
.tours-reassurance-item + .tours-reassurance-item { border-left: 1px solid var(--tours-line); }
.tours-reassurance-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tours-red);
  background: var(--tours-cream-deep);
  border: 1px solid #f0e7dd;
  border-radius: 50%;
  font-size: 1.55rem;
}
.tours-page main .tours-reassurance-item h2 {
  margin: 0 0 5px;
  font-family: var(--font-body);
  color: var(--tours-ink) !important;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}
.tours-reassurance-item p { margin: 0; color: var(--tours-muted); font-size: .8rem; line-height: 1.55; }

/* Closing CTA */
.tours-final-cta {
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 52px 0;
  background-image:
    linear-gradient(rgba(23, 20, 17, .61), rgba(23, 20, 17, .67)),
    url('../images/capetown-table-mountain.jpg');
  background-position: center 48%;
  background-size: cover;
}
.tours-final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.tours-final-cta-copy { max-width: 520px; }
.tours-page main .tours-final-cta h2 {
  margin: 0 0 8px;
  color: #fff !important;
  font-size: clamp(2.1rem, 3.2vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -.025em;
}
.tours-final-cta p { margin: 0; color: rgba(255, 255, 255, .93); font-size: .98rem; line-height: 1.6; }
.tours-final-actions { display: flex; flex-wrap: wrap; gap: 13px; flex: none; }
.tours-final-actions .btn { min-width: 165px; }
.tours-final-actions .btn-light { border: 1px solid #fff; color: var(--tours-red); font-weight: 600; }
.tours-final-actions .btn-light:hover { background: transparent; color: #fff; }

@media (max-width: 1199.98px) {
  .tours-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .tours-reassurance-item { padding-right: 18px; padding-left: 18px; }
  .tours-reassurance-icon { width: 52px; height: 52px; font-size: 1.4rem; }
}

@media (max-width: 991.98px) {
  .tours-hero { min-height: 430px; background-position: 58% center; }
  .tours-hero-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px 0; }
  .tours-hero-trust-item { grid-template-columns: 26px 1fr; padding: 0 12px; }
  .tours-hero-trust-item p { display: none; }
  .tours-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .tours-grid .tour-card-body { min-height: 132px; }
  .tours-reassurance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .tours-reassurance-item:nth-child(even) { border-left: 0; }
  .tours-reassurance-item:nth-child(n+3) { padding-top: 22px; border-top: 1px solid var(--tours-line); }
  .tours-final-cta-inner { justify-content: center; text-align: center; }
  .tours-final-cta-copy { max-width: 100%; }
  .tours-final-actions { justify-content: center; }
}

@media (max-width: 767.98px) {
  .tours-section { padding: 56px 0; }
  .tours-hero { min-height: 460px; background-position: 62% center; }
  .tours-hero-inner { padding-top: 40px; }
  .tours-page main .tours-hero h1 { font-size: clamp(2.6rem, 9vw, 3.3rem); }
  .tours-hero-lede { max-width: 460px; }
  .tours-hero-trust { grid-template-columns: 1fr; gap: 12px; padding: 18px 0 4px; }
  .tours-hero-trust-item { padding: 0; border-left: 0 !important; }
  .tours-hero-trust-item + .tours-hero-trust-item { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .22); }
  .tours-hero-trust-item p { display: block; }
  .tours-filter-bar { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin: 0 -20px 32px; padding: 0 20px 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tours-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .tours-page .container { padding-right: 20px; padding-left: 20px; }
  .tours-hero { min-height: 500px; }
  .tours-hero-copy { padding-bottom: 32px; }
  .tours-page main .tours-hero h1 { font-size: clamp(2.35rem, 11vw, 3rem); line-height: 1.1; }
  .tours-hero-lede { font-size: .92rem; }
  .tours-page main .tours-section-heading h2 { font-size: 2rem; }
  .tours-grid { grid-template-columns: 1fr; }
  .tours-grid .tour-card-body { min-height: auto; }
  .tours-reassurance-grid { grid-template-columns: 1fr; row-gap: 20px; }
  .tours-reassurance-item { border-left: 0 !important; padding: 0 !important; }
  .tours-reassurance-item:nth-child(n+2) { padding-top: 20px !important; border-top: 1px solid var(--tours-line) !important; }
  .tours-final-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .tours-final-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tours-page *,
  .tours-page *::before,
  .tours-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
