/**
 * Premium white canvas + refined Trails of Africa widgets.
 */

:root {
  --canvas: #fff;
  --surface: #fff;
  --ivory: #ffffff;
  --stone: #ffffff;
  --sand-100: #ffffff;
  --brand-cream: #ffffff;
  --hairline: rgba(28, 36, 33, 0.08);
  --shadow: 0 18px 50px rgba(16, 40, 32, 0.07);
  --shadow-soft: 0 8px 24px rgba(16, 40, 32, 0.05);
}

html,
body,
.wp-site-blocks,
body.elementor-page,
.elementor,
.elementor-location-header,
.elementor-location-footer,
.site,
#page,
#content,
.site-content {
  background-color: #fff;
}

body {
  background: #fff;
  color: var(--charcoal);
}

/* Light page bands stay white (no cream fills). */
.tone-cream,
.tone-light,
.tone-stone,
.section--cream,
.section--sand,
.section.tone-cream,
.swt-editorial-section--stone,
.company-story.tone-cream,
.company-story.tone-plain,
.map-panel,
.map-placeholder,
.quote-box,
.search-panel {
  background: #fff !important;
  background-color: #fff !important;
}

/* Header sits on white, not cream. */
.site-header,
.site-header.is-sticky,
.no-header-overlay .site-header.is-overlay {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: none;
  border-bottom: 1px solid var(--hairline);
}

.mobile-nav {
  background: #fff;
}

.section--sand,
.map-panel,
.map-placeholder,
.quote-box {
  background: #fff;
}

.quote-box {
  border: 1px solid var(--hairline);
}

/* Elementor wrappers should not add a second layout. */
.elementor-widget[data-widget_type^="swt-"] > .elementor-widget-container,
.elementor-element[data-widget_type^="swt-"] > .elementor-widget-container {
  padding: 0 !important;
  background: transparent !important;
}

.elementor .e-con,
.elementor .e-con-boxed,
.elementor .e-con > .e-con-inner {
  --padding-block-start: 0px;
  --padding-block-end: 0px;
  --padding-inline-start: 0px;
  --padding-inline-end: 0px;
  --gap: 0px;
  max-width: none;
}

.elementor-widget:not(:last-child) {
  margin-bottom: 0;
}

/* Section widgets already define their own vertical padding — do not stack more. */
.elementor-widget[data-widget_type^="swt-"] + .elementor-widget[data-widget_type^="swt-"] .section {
  padding-top: unset;
}

.elementor-widget[data-widget_type="swt-home-hero.default"] .hero,
.elementor-widget[data-widget_type="swt-page-hero.default"] .page-hero {
  margin: 0;
}

/* Search sits as a raised instrument with real field chrome. */
.search-panel {
  background: #fff;
  border: 1px solid var(--sand-300, #ddd9d2);
  border-radius: 1.15rem;
  box-shadow: 0 18px 44px rgba(16, 40, 32, 0.14), 0 2px 8px rgba(16, 40, 32, 0.06);
  margin: 0 auto;
  max-width: calc(var(--container-wide) + (var(--gutter) * 2));
  padding: 0.7rem 0.75rem 0.8rem;
  position: relative;
  z-index: 3;
}

.elementor-widget[data-widget_type="swt-home-hero.default"] + .elementor-widget[data-widget_type="swt-tour-search.default"] .search-panel,
.hero + .search-panel,
.hero-wrap + .search-panel {
  margin-top: -2.4rem;
}

.elementor-widget[data-widget_type="swt-tour-search.default"] {
  padding-inline: var(--gutter);
  padding-block: 1.25rem 0.5rem;
}

.search-panel label {
  border: 0;
  color: var(--muted);
}

.search-panel select,
.search-panel input {
  background-color: var(--ivory, #fff);
  font-weight: 600;
}

/* Stats become a quiet ticker, not a beige slab. */
.stats {
  background: #fff;
  border-block: 1px solid var(--hairline);
  margin-inline: auto;
  max-width: calc(var(--container-wide) + (var(--gutter) * 2));
}

.stat {
  padding: 1.65rem 1.25rem 1.75rem;
}

.stat + .stat {
  border-left-color: var(--hairline);
}

.stat strong {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 600;
}

/* Cards */
.tour-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  box-shadow: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.tour-card:hover {
  border-color: rgba(23, 56, 46, 0.18);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.tour-card__media .image-fallback {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.tour-card__media .image-fallback span {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.tour-card__footer a {
  color: var(--forest-800);
  letter-spacing: 0.02em;
  text-transform: none;
}

.tour-card__footer .tour-card__cta,
.tour-card__footer .text-link {
  color: var(--ochre-700);
}

.destination-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 1.15rem;
  min-height: 0;
}

.destination-card::after {
  content: none;
}

.grid:has(> .destination-card:nth-child(4)):not(:has(> .destination-card:nth-child(5))) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-card,
.surface-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 1.05rem;
  border-top: 1px solid var(--hairline);
  padding: 1.45rem 1.4rem 1.5rem;
}

.article-card.article-card--equal {
  padding: 0;
}

.article-card img {
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.article-card--equal .article-card__media img,
.article-card--equal .article-card__media .image-fallback {
  border-radius: 0;
  margin-bottom: 0;
}

.article-card h3,
.surface-card h3 {
  font-size: 1.55rem;
}

.article-card--equal .article-card__title {
  font-size: 1.25rem;
}

/* Process / ways */
.process-step {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 1.05rem;
  height: 100%;
  padding: 1.6rem 1.5rem 1.55rem;
}

.process-step__number {
  color: var(--ochre-600);
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.process-step h3 {
  font-size: 1.55rem;
  margin-top: 0.85rem;
}

.process-step p {
  color: var(--muted);
}

.style-row {
  align-items: center;
  border-color: var(--hairline);
  gap: 1.5rem;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  padding: 1.5rem 0;
}

.style-row__number {
  color: var(--forest-900);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.style-row .btn--outline {
  min-height: 2.85rem;
  padding-inline: 1.15rem;
}

/* Feature band stays cinematic against white. */
.feature-band {
  border-radius: 0;
  margin-inline: 0;
}

.feature-band__image {
  background: var(--forest-950);
  min-height: 28rem;
  overflow: hidden;
  position: relative;
}

.feature-band__image img,
.feature-band__image .image-fallback {
  aspect-ratio: auto;
  display: block;
  height: 100%;
  inset: 0;
  max-height: none;
  min-height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

/* Capability grid — numbered editorial tiles. */
.capability-grid .section-heading__copy {
  max-width: 40rem;
}

.capability-grid__items.grid-4 {
  gap: clamp(2.1rem, 3.8vw, 3rem) clamp(1.85rem, 3.4vw, 2.9rem);
}

.capability-card h3 {
  color: var(--forest-900);
}

@media (prefers-reduced-motion: reduce) {
  .capability-card {
    transition: none;
  }

  .capability-card:hover {
    transform: none;
  }
}

/* Typographic media fallback — no floating logo blob. */
.image-fallback {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(80% 70% at 88% 0%, rgba(198, 106, 43, 0.28), transparent 58%),
    linear-gradient(165deg, #214b3f 0%, #102820 72%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: flex-end;
  padding: 1.4rem 1.35rem;
  text-align: left;
}

.image-fallback img {
  display: none;
}

.image-fallback span {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.destination-card .image-fallback {
  aspect-ratio: 16 / 10;
  height: auto;
  max-height: 12.5rem;
  min-height: 0;
  position: static;
}

.callout {
  border-radius: 1.25rem;
}

/* Conversion / quote canvas */
.cvt-band {
  background: #fff;
  padding-top: clamp(6.5rem, 11vw, 8.5rem);
}

.cvt-card,
.quote-form-shell {
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: none;
}

.cvt-summary {
  background: #fafafa;
  border-color: var(--hairline);
}

.quote-step {
  border-bottom-color: var(--hairline);
}

.contact-card {
  background: #fff;
  border-color: var(--hairline);
}

/* Forms on white */
input,
select,
textarea {
  background: #fff;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--hairline);
  border-radius: 0.7rem;
}

/* Buttons: keep ochre, quieter hover */
.btn {
  letter-spacing: 0.08em;
}

.btn:hover {
  transform: none;
}

.btn--outline:hover {
  background: var(--forest-950);
}

@media (max-width: 1100px) {
  .grid:has(> .destination-card:nth-child(4)):not(:has(> .destination-card:nth-child(5))) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .search-panel {
    margin-top: -1.5rem;
  }

  .search-panel label {
    border: 0;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat + .stat {
    border-left: 0;
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--hairline);
  }
}

/* —— Home hero slider —— */
.hero {
  --hero-overlay: 0.72;
  --hero-overlay-tint: #0a1913;
  --hero-speed: 600ms;
}

.hero::after {
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--hero-overlay-tint) calc(var(--hero-overlay) * 100%), transparent) 0%,
      color-mix(in srgb, var(--hero-overlay-tint) calc(var(--hero-overlay) * 55%), transparent) 53%,
      color-mix(in srgb, var(--hero-overlay-tint) calc(var(--hero-overlay) * 12%), transparent) 100%
    ),
    linear-gradient(
      0deg,
      color-mix(in srgb, var(--hero-overlay-tint) calc(var(--hero-overlay) * 70%), transparent),
      transparent 55%
    );
}

.hero-slides {
  inset: 0;
  position: absolute;
}

.hero-slide {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity var(--hero-speed) ease;
  visibility: hidden;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  z-index: 1;
}

.hero-slide .container-wide {
  align-items: end;
  display: flex;
  height: 100%;
  padding: 12rem 0 7.5rem;
  position: relative;
  z-index: 2;
}

.hero.hero--align-center .hero__content {
  margin-inline: auto;
  text-align: center;
}

.hero.hero--align-center .hero__actions {
  justify-content: center;
}

.hero.hero--slider {
  padding: 0;
}

.hero.hero--slides {
  padding: 0;
}

.hero.hero--slider .hero-discovery {
  z-index: 3;
}

.hero.hero--slide .hero-slide {
  opacity: 1;
  transform: translateX(100%);
  transition: transform var(--hero-speed) ease, visibility 0s linear var(--hero-speed);
  visibility: hidden;
}

.hero.hero--slide .hero-slide.is-active {
  transform: translateX(0);
  transition: transform var(--hero-speed) ease;
  visibility: visible;
}

.hero.hero--slide .hero-slide.is-exit {
  transform: translateX(-30%);
  visibility: visible;
}

.hero-slider__btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  z-index: 4;
}

.hero-slider__btn::before {
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  content: "";
  display: block;
  height: 0.55rem;
  width: 0.55rem;
}

.hero-slider__btn--prev {
  left: max(1rem, var(--gutter, 1.5rem));
}

.hero-slider__btn--prev::before {
  margin-left: 0.2rem;
  transform: rotate(135deg);
}

.hero-slider__btn--next {
  right: max(1rem, var(--gutter, 1.5rem));
}

.hero-slider__btn--next::before {
  margin-right: 0.2rem;
  transform: rotate(-45deg);
}

.hero-slider__btn:hover,
.hero-slider__btn:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.hero-slider__dots {
  bottom: 6.5rem;
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 4;
}

.hero-slider__dot {
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 0.5rem;
  padding: 0;
  width: 0.5rem;
}

.hero-slider__dot.is-active,
.hero-slider__dot:focus-visible {
  background: #fff;
  outline: none;
  width: 1.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero.hero--slide .hero-slide {
    transition: none !important;
  }
}

/* —— Featured tours kit —— */
.tours-block {
  --tours-cols: 4;
}

.tours-block--bg-white {
  background: #fff;
}

.tours-block--bg-sand {
  background: #f6f1e8;
}

.tours-block--bg-forest {
  background: var(--forest-950);
  color: rgba(255, 255, 255, 0.78);
}

.tours-block--bg-forest .section-heading h2,
.tours-block--bg-forest .eyebrow,
.tours-block--bg-forest .text-link {
  color: #fff;
}

.tours-block__viewport {
  position: relative;
}

.tours-block--carousel .tour-scroll,
.tours-block--slider .tour-scroll {
  display: grid;
  gap: 1.5rem;
  grid-auto-columns: calc((100% - (var(--tours-cols) - 1) * 1.5rem) / var(--tours-cols));
  grid-auto-flow: column;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.tours-block--carousel .tour-scroll > *,
.tours-block--slider .tour-scroll > * {
  scroll-snap-align: start;
}

.tours-block--slider .tours-slider__btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--hairline, rgba(23, 56, 46, 0.12));
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 2.5rem;
  z-index: 2;
}

.tours-block--slider .tours-slider__btn::before {
  border: solid var(--forest-900, #17382e);
  border-width: 0 2px 2px 0;
  content: "";
  height: 0.45rem;
  width: 0.45rem;
}

.tours-block--slider .tours-slider__btn--prev {
  left: -0.4rem;
}

.tours-block--slider .tours-slider__btn--prev::before {
  margin-left: 0.15rem;
  transform: rotate(135deg);
}

.tours-block--slider .tours-slider__btn--next {
  right: -0.4rem;
}

.tours-block--slider .tours-slider__btn--next::before {
  margin-right: 0.15rem;
  transform: rotate(-45deg);
}

.tours-block--no-lift .tour-card:hover {
  box-shadow: none;
  transform: none;
}

.tour-card--compact .tour-card__body {
  gap: .4rem;
  padding: .9rem 1rem 1rem;
}

.tour-card--compact .tour-card__title {
  font-size: 1.08rem;
  margin: 0;
}

.tour-card--compact .tour-card__excerpt,
.tour-card--compact .tour-card__body p {
  font-size: 0.84rem;
}

.tour-card--compact .tour-card__type {
  display: none;
}

.tours-block .tour-card__facts,
.grid .tour-card__facts,
.tour-scroll .tour-card__facts {
  display: none;
}

.tours-block .tour-card__footer,
.grid-4 .tour-card__footer {
  gap: .4rem .7rem;
}

.tours-block .tour-card__meta {
  gap: .3rem .45rem;
}

.tours-block--grid .grid-4 {
  gap: 1.15rem;
}

@media (max-width: 1100px) {
  .tours-block--grid .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tour-card--overlay {
  position: relative;
}

.tour-card--overlay .tour-card__media img,
.tour-card--overlay .tour-card__media .image-fallback {
  aspect-ratio: 3 / 4;
  min-height: 18rem;
}

.tour-card--overlay .tour-card__body {
  background: linear-gradient(0deg, rgba(10, 25, 19, 0.92) 10%, rgba(10, 25, 19, 0.15) 70%, transparent);
  bottom: 0;
  color: #fff;
  left: 0;
  padding: 4.5rem 1.25rem 1.25rem;
  position: absolute;
  right: 0;
}

.tour-card--overlay .tour-card__title a,
.tour-card--overlay .tour-card__meta span,
.tour-card--overlay .meta,
.tour-card--overlay .tour-card__excerpt,
.tour-card--overlay .tour-card__body p,
.tour-card--overlay .tour-card__footer a {
  color: #fff;
}

.tour-card--overlay .tour-card__duration {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.tour-card--overlay .tour-card__footer {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.tours-block__empty {
  color: var(--muted);
  margin: 0;
}

/* —— Destinations kit —— */
.destinations-block {
  --dest-cols: 4;
}

.destinations-block--bg-white {
  background: #fff;
}

.destinations-block--bg-sand,
.destinations-block.section--sand {
  background: #f6f1e8;
}

.destinations-block--bg-forest {
  background: var(--forest-950);
  color: rgba(255, 255, 255, 0.78);
}

.destinations-block--bg-forest .section-heading h2,
.destinations-block--bg-forest .eyebrow,
.destinations-block--bg-forest .text-link {
  color: #fff;
}

.destinations-block__viewport {
  position: relative;
}

.destinations-block--carousel .tour-scroll,
.destinations-block--slider .tour-scroll {
  display: grid;
  gap: 1.5rem;
  grid-auto-columns: calc((100% - (var(--dest-cols) - 1) * 1.5rem) / var(--dest-cols));
  grid-auto-flow: column;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.destinations-block--carousel .tour-scroll > *,
.destinations-block--slider .tour-scroll > * {
  scroll-snap-align: start;
}

.destinations-block--slider .tours-slider__btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--hairline, rgba(23, 56, 46, 0.12));
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 2.5rem;
  z-index: 2;
}

.destinations-block--slider .tours-slider__btn::before {
  border: solid var(--forest-900, #17382e);
  border-width: 0 2px 2px 0;
  content: "";
  height: 0.45rem;
  width: 0.45rem;
}

.destinations-block--slider .tours-slider__btn--prev {
  left: -0.4rem;
}

.destinations-block--slider .tours-slider__btn--prev::before {
  margin-left: 0.15rem;
  transform: rotate(135deg);
}

.destinations-block--slider .tours-slider__btn--next {
  right: -0.4rem;
}

.destinations-block--slider .tours-slider__btn--next::before {
  margin-right: 0.15rem;
  transform: rotate(-45deg);
}

.destinations-block--no-lift .destination-card:hover {
  transform: none;
}

.destination-card--compact {
  min-height: 0;
}

.destination-card--compact .destination-card__body {
  gap: .45rem;
  padding: 1rem 1.05rem 1.15rem;
}

.destination-card--compact .destination-card__title,
.destination-card--compact h3 {
  font-size: 1.2rem;
}

.destination-card--compact .destination-card__excerpt,
.destination-card--compact p {
  -webkit-line-clamp: 2;
  font-size: 0.86rem;
}

.destinations-block .destination-card > img,
.destinations-block .destination-card__media img,
.destinations-block .destination-card .image-fallback {
  max-height: 11.5rem;
}

.destinations-block--grid .grid-4 {
  gap: 1.25rem;
}

.destinations-block__empty {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 1100px) {
  .destinations-block--grid .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tours-block--carousel .tour-scroll,
  .tours-block--slider .tour-scroll {
    grid-auto-columns: 78%;
  }

  .destinations-block--carousel .tour-scroll,
  .destinations-block--slider .tour-scroll {
    grid-auto-columns: 78%;
  }

  .hero-slider__dots {
    bottom: 1.5rem;
  }
}
