:root {
  --sol-olive: #45402b;
  --sol-sand: #b49980;
  --sol-petrol: #213739;
  --sol-clay: #99593d;
  --sol-clay-button: color-mix(in srgb, var(--sol-clay) 86%, var(--sol-petrol));
  --sol-ivory: #efe3d3;
  --sol-header-stone: #8f7c65;
  --sol-green: var(--sol-olive);
  --sol-forest: var(--sol-olive);
  --sol-terra: var(--sol-clay);
  --sol-cream: var(--sol-ivory);
  --sol-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='grain' color-interpolation-filters='sRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.63' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.18'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Cpath fill='%23213739' d='M0 0h160v160H0z' filter='url(%23grain)'/%3E%3C/svg%3E");
}

html {
  background-color: var(--sol-ivory);
  color: var(--sol-petrol);
  accent-color: var(--sol-clay);
}

html body {
  background-color: var(--sol-ivory);
  color: var(--sol-petrol);
  background-image: var(--sol-paper);
  background-blend-mode: soft-light;
}

:where(main section[style*="background-color:"], main .bg-white, footer, .sol-mega,
  .sol-enquire, .btn.primary, .sol-experience-slide > .btn, dialog) {
  background-image: var(--sol-paper);
  background-blend-mode: soft-light;
}

html body #sol-header {
  background-color: transparent;
  color: var(--sol-header-stone);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html body #sol-header:not(.sol-menu-open)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

html body #sol-header.sol-menu-open {
  background-color: var(--sol-olive);
}

html body #sol-header.sol-menu-open #sol-menu-button i {
  border-color: currentColor;
}

html body #sol-header :is(#sol-menu-button, .sol-actions > a) {
  color: inherit;
}

#sol-header .sol-header-logo {
  content: url('/assets/sol-header-logo-stone.svg?v=matte-stone');
}

html body #sol-header #sol-menu-button i {
  border-color: var(--sol-olive);
}

#sol-header #sol-menu-button:focus-visible i {
  color: var(--sol-ivory);
}

@media (hover: hover) {
  #sol-header #sol-menu-button:hover i {
    background-color: var(--sol-clay);
    border-color: var(--sol-clay);
    color: var(--sol-ivory);
  }
}

html body #sol-header .sol-enquire,
.sol-experience-deck .sol-experience-slide > .btn {
  background-color: var(--sol-clay-button);
  background-image: var(--sol-paper);
  background-blend-mode: soft-light;
  color: var(--sol-ivory);
}

main [style*="background-color:#b49980"],
main [style*="background-color: #b49980"] {
  color: var(--sol-petrol);
}

:where(input, textarea, select, button) {
  accent-color: var(--sol-clay);
}

select option {
  background-color: var(--sol-ivory);
  color: var(--sol-petrol);
}

::selection {
  background-color: var(--sol-petrol);
  color: var(--sol-ivory);
}


/* Use ivory for shared surfaces while retaining the safari card’s price panel. */
main section[style*="background-color:#b49980"],
main section[style*="background-color: #b49980"],
body .bg-stoneGrey:not(.details-container) {
  background-color: var(--sol-ivory) !important;
}

/* Pair shared controls and labels with their actual surface. */
body :is(a.btn.primary, button.btn.primary, .sol-wizard-next:not(:disabled)) {
  background-color: var(--sol-clay-button) !important;
  color: var(--sol-ivory) !important;
}

body .btn.primary span {
  color: inherit !important;
}

body :is(a.btn.primary, button.btn.primary, .sol-wizard-next:not(:disabled)):is(:hover, :focus-visible) {
  background-color: var(--sol-clay-button) !important;
}

body .wc-luxury-tag,
body .camp-card-item .tag {
  background-color: var(--sol-petrol);
  color: var(--sol-ivory);
}

body .camp-card-item .text-container {
  background-image: linear-gradient(to bottom, rgb(38 38 38 / 72%), rgb(38 38 38 / 94%));
  color: var(--sol-ivory);
}

body .camp-card-item .img-container:hover .text-container {
  transition: max-height 200ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  body .camp-card-item .img-container .text-container {
    transition: none;
  }
}

body :is(.wc-card-body, .wc-tour-card) .btn.secondary,
body #faq :is(.text-darkSand, .index-number),
body #Reviews :is(.subtitle-large, .text-small, .text-tiny),
body :is(.sol-enquiry-start, .sol-enquiry-start .sol-wizard-progress) p {
  color: var(--sol-petrol) !important;
}

body .facts-tabs button.active {
  color: var(--sol-ivory) !important;
}

body .sol-reference-menu :is(.sol-active, .sol-menu-tabs button.active) {
  color: var(--sol-ivory) !important;
}

body :is(#faq, #FAQs) :is(.text-darkSand, .index-number),
body[data-style="light"] :is([data-testid="subtitle"], [data-testid="filterbar-results"], .text-secondary-dark),
body .sol-namibia-faq .faq-answers {
  color: var(--sol-petrol) !important;
}

body .tag.text-white {
  background-color: var(--sol-petrol);
  color: var(--sol-ivory);
}

/* Center journey badge text, allowing for its trailing letter spacing. */
body p.tag.text-tag[data-v-a0817342] {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-block: 14px 10px;
  padding-inline: calc(12px + .05em) calc(12px - .05em);
}

/* Keep the existing spacing while removing decorative card edges and button rims. */
html body :is(.wc-tour-card, .wc-stops-row, .camp-card-item, .card-panel,
  .sol-planning-card, .sol-stay-overview-panel, .sol-stay-map-panel,
  .promo-card-item, .custom-card-item, [data-slot="card"]) {
  border-color: transparent !important;
  box-shadow: none !important;
}

html body :is(button, [role="button"], .btn, .sol-planning-card-link),
html body #sol-header #sol-menu-button i {
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Keyboard focus uses text or a filled control state instead of an outline. */
html body :is(button, [role="button"], .btn, .sol-planning-card-link):focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
}

html body :is(button, [role="button"])[aria-label]:has(svg):focus-visible,
html body #sol-header #sol-menu-button:focus-visible i {
  background-color: var(--sol-petrol);
  color: var(--sol-ivory);
}

.sol-country-cards button.active span {
  background-color: var(--sol-petrol);
}

/* Newsletter signup surfaces use the same ivory as the page canvas. */
body .newsletter-module,
body .newsletter-module .newsletter-form,
html body #sol-newsletter .newsletter-form {
  background-color: var(--sol-ivory) !important;
}

button:is([aria-label="Play"], [aria-label="Play tour video"]) {
  border-radius: 50%;
  background-color: rgb(33 55 57 / 32%);
  color: var(--sol-ivory);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

button:is([aria-label="Play"], [aria-label="Play tour video"]):is(:hover, :focus-visible) {
  background-color: rgb(33 55 57 / 58%);
}

:is(.promo-card-item, .custom-card-item, .camp-card-item, .wc-tour-card, .card-content)
  :is(.img-container, .wc-card-media) > picture {
  display: block;
  width: 100%;
  height: 100%;
}

:is(.promo-card-item, .custom-card-item, .camp-card-item, .wc-tour-card, .card-content)
  :is(.img-container, .wc-card-media) :is(picture > img, img.object-cover) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body .wc-tour-card :is(.wc-card-body, .btn.secondary),
body .solo-journeys :is(.card-text, .card-title, .btn.secondary),
body .card-item .details-container {
  background-color: var(--sol-ivory);
  color: var(--sol-petrol);
}

body .wc-tour-card :is(.wc-card-title, .wc-card-description, .wc-price-row),
body .card-item .details-container :is(.card-text, .text-darkSand, .btn.secondary),
body .water-mark .vertical-text {
  color: var(--sol-petrol) !important;
}

.sol-transition-mark {
  width: min(384px, 60vw);
  height: auto;
}

.sol-footer-main-mark {
  display: block;
  width: min(200px, 100%);
  height: auto;
  margin-inline: auto;
}

.sol-footer-brands {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 0 clamp(0px, 3vw, 24px);
  color: var(--sol-ivory);
}

.sol-footer-brands h2:not(:where(.text-h2)) {
  font-size: clamp(19px, 2vw, 22px);
}

.sol-footer-brands h2 {
  text-align: center;
  color: inherit;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 clamp(28px, 4vw, 40px);
}

.sol-footer-brands ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 40px) clamp(10px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

footer .sol-footer-divider {
  width: 100%;
  height: 1px;
  background-color: color-mix(in srgb, var(--sol-ivory) 18%, transparent);
}

footer .footer > .sol-footer-divider {
  margin-top: clamp(24px, 4vw, 48px);
}

footer .content:has(> .sol-footer-divider) {
  row-gap: clamp(24px, 4vw, 40px);
}

.sol-footer-divider + .logo-wrapper {
  margin-top: clamp(24px, 4vw, 48px);
}

.sol-footer-brands a {
  display: grid;
  place-items: center;
  min-height: 80px;
  color: var(--sol-ivory);
  text-align: center;
  text-decoration: none;
}

.sol-footer-brands a:hover {
  opacity: .78;
}

.sol-footer-brand-mark {
  width: min(150px, 100%);
  height: 74px;
  background-color: currentColor;
  -webkit-mask: var(--footer-mark) center / contain no-repeat;
  mask: var(--footer-mark) center / contain no-repeat;
}

.sol-footer-brand-name {
  max-width: 14ch;
  font: 600 clamp(12px, 2vw, 17px)/1.15 'PT Serif', serif;
  letter-spacing: .02em;
}

.sol-compact-footer {
  background-color: var(--sol-olive);
  padding-block: 24px;
}

body .sol-footer-brands {
  background-color: transparent;
}

.card-content > [class*="aspect-"] picture,
.tptomanimation:is(.first-img, .second-img) picture {
  display: block;
  width: 100%;
  height: 100%;
}

.card-content > [class*="aspect-"] picture img,
.tptomanimation:is(.first-img, .second-img) picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Headings use the same site face and the title case in the page copy. */
html body :is(h1, h2, h3, h4, h5, h6),
html body :is(h1, h2, h3, h4, h5, h6) :is(a, em, span, strong),
html body main .title > p {
  font-family: Wingman, sans-serif !important;
  text-transform: none !important;
}

/* A slightly lighter ivory separates journey titles from the surrounding canvas. */
.JourneyListingModule .text.absolute.bg-white:has(> .card-title) {
  background-color: #f1e6d7;
}

/* Align the visible leading letters of left-aligned label and heading pairs. */
main [style*="--sol-heading-optical-offset"] {
  translate: var(--sol-heading-optical-offset) 0;
}

/* Safari listings use the photo, summary and details arrangement of journey cards. */
.wc-tour-grid-wrapper .wc-tour-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1176px;
  margin-inline: auto;
  gap: 40px;
}
.wc-tour-grid-wrapper .wc-tour-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 0;
  background: transparent;
  text-align: left;
}
.wc-tour-grid-wrapper .wc-card-media {
  aspect-ratio: 16 / 9;
}
body .wc-tour-grid-wrapper .wc-tour-card .wc-card-body {
  display: contents;
}
.wc-card-summary {
  position: relative;
  background: #f1e6d7;
  padding: clamp(24px, 3.4vw, 48px);
}
.wc-card-summary .wc-card-description {
  margin-bottom: 0;
}
.wc-card-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  padding: clamp(24px, 3vw, 42px);
  background: var(--sol-sand);
}
.wc-card-details .wc-meta-row {
  flex-wrap: wrap;
  gap: 8px 16px;
}
.wc-card-details .wc-price-row {
  flex-wrap: wrap;
}
body .wc-card-details .btn.primary {
  display: flex;
  justify-content: center;
  margin-top: 0;
  width: 100%;
  min-height: 76px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .wc-tour-grid-wrapper .wc-tour-card {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 34%);
  }
  .wc-tour-grid-wrapper .wc-card-media {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1024px) {
  .wc-tour-grid-wrapper .wc-tour-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 23.76%);
    align-items: center;
  }
  .wc-tour-grid-wrapper .wc-card-media {
    grid-area: 1 / 1;
    height: 400px;
    min-height: 0;
    aspect-ratio: auto;
  }
  .wc-tour-grid-wrapper .wc-card-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .wc-card-summary {
    grid-area: 1 / 1;
    justify-self: end;
    width: min(70%, 540px);
    min-height: 335px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 4.7vw, 60px);
  }
  .wc-card-details {
    grid-area: 1 / 2;
    align-self: center;
    min-height: 335px;
    padding: 28px clamp(24px, 3.3vw, 42px);
  }
}

.wc-tour-grid-wrapper .wc-luxury-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 0 12px;
  line-height: 1;
  text-align: center;
  z-index: 1;
}
@media (min-width: 1024px) {
  .wc-tour-grid-wrapper .wc-luxury-tag {
    top: 33px;
    left: 44px;
  }
}

/* Match the experience hero fade below the hero copy and breadcrumbs. */
.LargeHeroLeftText .hero-gradiated {
  z-index: 11;
  background: linear-gradient(180deg, transparent 26%, #26262680 61%, #262626f5);
}


/* Neutral photo overlays across destination, experience and journey headers. */
.hero-gradiated,
.sol-journey-hero .sol-journey-hero-fade {
  background: linear-gradient(180deg, transparent 26%, #26262680 61%, #262626f5);
}
.sol-journey-hero .sol-journey-hero-rule {
  height: 1px;
  width: 100%;
  background: #efe3d380;
}

/* Keep the full portrait in view, with a soft extension on wider screens. */
picture.sol-ready-lion {
  overflow: hidden;
  isolation: isolate;
  background: #262626;
}
picture.sol-ready-lion::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  background: url("/assets/home/enquiry-lion-wide-900.jpg") center / cover no-repeat;
  filter: blur(24px) brightness(.62);
}
picture.sol-ready-lion > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}
