/* Africa Natural Safaris standalone layout system. */
:root {
  --ans-forest: #123f2b;
  --ans-leaf: #1f7a4a;
  --ans-moss: #eaf4ec;
  --ans-cream: #faf8f1;
  --ans-gold: #b8873f;
  --ans-ink: #17211b;
  --ans-muted: #667269;
  --ans-line: rgba(18, 63, 43, .14);
  --ans-shadow: 0 18px 48px rgba(18, 63, 43, .13);
  --ans-radius: 18px;
}

body {
  background: #fbfcf8;
  color: var(--ans-ink);
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

body img,
body table,
body iframe {
  max-width: 100%;
}

body .container,
body .row,
body main,
body section {
  max-width: 100%;
}

body .ans-filter-panel {
  position: relative;
  display: block;
  border: 1px solid rgba(18, 63, 43, .16);
  border-radius: 22px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(145deg, rgba(31, 122, 74, .34), rgba(184, 135, 63, .28)) border-box;
  box-shadow: 0 20px 50px rgba(18, 63, 43, .14);
  overflow: hidden;
  isolation: isolate;
}

body .ans-filter-panel__intro {
  position: relative;
  padding: 24px 20px 18px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .18), transparent 28%),
    linear-gradient(135deg, rgba(184, 135, 63, .24), transparent 45%),
    linear-gradient(135deg, #0f3424 0%, #1f7a4a 100%);
  color: #fff;
}

body .ans-filter-panel__intro::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -18px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
}

body .ans-filter-panel__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .72);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body .ans-filter-panel__intro h2 {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

body .ans-filter-panel__intro p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: .88rem;
  line-height: 1.45;
}

body .ans-filter-panel__status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .86);
  font-size: .78rem;
  font-weight: 800;
}

body .ans-filter-panel__status a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body .ans-filter-panel .advanced-filters-container {
  display: grid !important;
  gap: 11px !important;
  padding: 16px !important;
  background: linear-gradient(180deg, #fff 0%, #f7fbf7 100%);
}

body .ans-filter-panel .filters__block {
  margin: 0 !important;
  border: 1px solid rgba(18, 63, 43, .1) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 8px 20px rgba(18, 63, 43, .05) !important;
  transform: none !important;
}

body .ans-filter-panel .filters__block summary {
  min-height: 48px;
  padding: 14px 44px 14px 16px !important;
  background: transparent !important;
  color: var(--ans-forest) !important;
  font-size: .88rem !important;
  font-weight: 850 !important;
  border-radius: 16px !important;
}

body .ans-filter-panel .filters__block summary h3 {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

body .ans-filter-panel .filters__block details[open] summary {
  background: linear-gradient(90deg, var(--ans-moss), #fff) !important;
  border-bottom: 1px solid rgba(18, 63, 43, .08);
}

body .ans-filter-panel .filters__block ul {
  max-height: 290px;
  overflow: auto;
  padding: 12px 14px 14px !important;
  background: rgba(255, 255, 255, .96) !important;
  scrollbar-width: thin;
}

body .ans-filter-panel .filters__block .filters__block__check {
  margin: 0 !important;
  padding: 3px 0 !important;
}

body .ans-filter-panel .filters__block label {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 34px;
  color: var(--ans-muted);
  font-size: .84rem !important;
  line-height: 1.25;
}

body .ans-filter-panel .filters__block label span {
  min-width: 0;
  overflow-wrap: anywhere;
}

body .ans-filter-panel .filters__block input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0 !important;
  accent-color: var(--ans-leaf);
}

body .ans-filter-panel .filters__block input[type="checkbox"]:checked + span {
  color: var(--ans-forest);
  font-weight: 800;
}

body .ans-filter-panel .filters__block label:hover {
  color: var(--ans-forest);
}

body .ant-safari-slider-section {
  --tnt-green: var(--ans-leaf);
  --tnt-green-dark: var(--ans-forest);
  --tnt-green-soft: var(--ans-moss);
  --tnt-gold: var(--ans-gold);
  --tnt-ink: var(--ans-ink);
  --tnt-muted: var(--ans-muted);
  --tnt-line: var(--ans-line);
  --tnt-shadow: var(--ans-shadow);
  padding: 30px 0 44px;
  overflow: hidden;
}

body .ant-safari-slider-section .ant-safari-header {
  align-items: flex-end;
  padding: 0 2px 4px;
}

body .ant-safari-slider-section .package-count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ans-forest);
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
}

body .ant-safari-slider-section .package-count::before {
  content: "";
  width: 36px;
  height: 2px;
  background: var(--ans-gold);
}

body .ant-safari-slider-section .ant-safari-card {
  grid-template-rows: 250px auto auto;
  min-height: 610px;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(31, 122, 74, .3), rgba(184, 135, 63, .34)) border-box;
  box-shadow: 0 18px 46px rgba(18, 63, 43, .16);
}

body .ant-safari-slider-section .ant-safari-media {
  min-height: 250px;
}

body .ant-safari-slider-section .ant-safari-luxury-badge {
  border-radius: 999px;
  background: rgba(18, 63, 43, .84);
}

body .ant-safari-slider-section .ant-safari-card-content {
  justify-content: flex-start;
  gap: 16px;
  padding: 22px 22px 18px;
}

body .ant-safari-slider-section .ant-safari-title {
  font-size: 1.32rem;
}

body .ant-safari-slider-section .ans-card-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

body .ant-safari-slider-section .ans-card-fact {
  min-height: 72px;
  padding: 12px 10px;
  border: 1px solid rgba(18, 63, 43, .12);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbf5, #fff);
}

body .ant-safari-slider-section .ans-card-fact span {
  display: block;
  color: var(--ans-muted);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body .ant-safari-slider-section .ans-card-fact strong {
  display: block;
  margin-top: 5px;
  color: var(--ans-forest);
  font-size: .82rem;
  line-height: 1.2;
}

body .ant-safari-slider-section .ant-safari-price-box {
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(184, 135, 63, .18), transparent 48%),
    linear-gradient(135deg, #123f2b, #1b6540);
}

body .ant-safari-slider-section .ant-safari-availability {
  grid-template-columns: 1fr;
}

body .ant-safari-slider-section .ant-safari-availability span {
  border-radius: 12px;
  text-align: left;
}

body .ant-safari-slider-section .ant-safari-button {
  border-radius: 14px;
}

body .ans-content-suite.relatedlinks1 {
  width: min(1180px, calc(100% - 28px)) !important;
  max-width: 1180px !important;
  padding: 64px 0 !important;
  overflow: hidden;
}

body .ans-content-intro {
  margin: 0 0 26px;
  padding: 0 0 22px;
  border-bottom: 1px solid rgba(18, 63, 43, .14);
}

body .ans-content-intro span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--ans-moss);
  color: var(--ans-forest);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body .ans-content-intro h2 {
  max-width: 820px;
  margin: 0;
  color: var(--ans-forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  line-height: 1.12;
}

body .ans-content-intro p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--ans-muted);
  font-size: 1rem;
  line-height: 1.7;
}

body .ans-content-gallery {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 14px;
  margin: 0 0 42px;
}

body .ans-content-gallery__item {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--ans-moss);
  box-shadow: 0 14px 34px rgba(18, 63, 43, .1);
}

body .ans-content-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(18, 63, 43, .28));
  pointer-events: none;
}

body .ans-content-gallery__item:first-child {
  grid-row: span 2;
  min-height: 432px;
}

body .ans-content-gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .6s ease;
}

body .ans-content-gallery__item:hover img {
  transform: scale(1.05);
}

body .ans-content-card.container1 {
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr);
  gap: 34px;
  width: 100%;
  margin: 0 0 30px !important;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(18, 63, 43, .13);
  border-radius: 24px;
  background:
    radial-gradient(circle at 6% 8%, rgba(184, 135, 63, .1), transparent 28%),
    linear-gradient(90deg, rgba(234, 244, 236, .72), transparent 44%),
    #fff;
  box-shadow: 0 22px 56px rgba(18, 63, 43, .11);
  overflow: hidden;
}

body .ans-content-card__heading {
  position: relative;
  padding-top: 6px;
}

body .ans-content-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ans-forest);
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}

body .ans-content-card .relatedlinks__top {
  margin: 0 !important;
  color: var(--ans-forest) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 1.7vw, 1.62rem) !important;
  line-height: 1.22;
  text-align: left !important;
}

body .ans-content-card__body {
  min-width: 0;
}

body .ans-content-card .rendered-content {
  color: #354238;
  font-size: 1rem;
  line-height: 1.82;
}

body .ans-content-card .rendered-content p {
  margin: 0 0 14px !important;
}

body .ans-content-card .ans-section-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 340px;
  margin: 16px 0 0;
  border-radius: 20px;
  object-fit: cover;
}

body .ans-content-card .table-container {
  grid-column: 1 / -1;
  border: 1px solid var(--ans-line);
  border-radius: 18px;
  overflow: auto;
}

body .ans-content-card .data-table th {
  background: var(--ans-forest);
  color: #fff;
}

body .ans-content-card .data-table th,
body .ans-content-card .data-table td {
  padding: 12px;
}

body .ans-content-card .buttons {
  grid-column: 1 / -1;
  justify-content: flex-start !important;
}

body .ans-content-card .whatsapp,
body .ans-content-card .email {
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(18, 63, 43, .12);
}

@media (max-width: 1180px) {
  body .ant-safari-slider-section .ant-safari-inner {
    max-width: calc(100vw - 24px);
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 900px) {
  body .ans-content-gallery {
    grid-template-columns: 1fr 1fr;
  }
  body .ans-content-gallery__item:first-child {
    grid-column: 1 / -1;
    min-height: 330px;
  }
  body .ans-content-card.container1 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body .ans-filter-panel {
    border-radius: 16px;
  }
  body .ant-safari-slider-section .ant-safari-header {
    gap: 12px;
  }
  body .ant-safari-slider-section .package-count {
    font-size: 1.35rem;
  }
  body .ant-safari-slider-section .ant-safari-card {
    flex-basis: calc(100vw - 40px) !important;
    min-width: 0;
    min-height: 0;
    grid-template-rows: 220px auto auto;
    transform: none !important;
  }
  body .ant-safari-slider-section .ant-safari-media {
    min-height: 220px;
  }
  body .ant-safari-slider-section .ans-card-facts {
    grid-template-columns: 1fr;
  }
  body .ant-safari-slider-section .ant-safari-actions {
    grid-template-columns: 1fr;
  }
  body .ans-content-gallery {
    grid-template-columns: 1fr;
  }
  body .ans-content-gallery__item,
  body .ans-content-gallery__item:first-child {
    min-height: 240px;
  }
  body .ans-content-card.container1 {
    gap: 18px;
    padding: 20px;
  }
  body .ans-content-card .buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  body .ans-content-suite.relatedlinks1 {
    width: min(100% - 18px, 1180px) !important;
    padding: 34px 0 !important;
  }
  body .ant-safari-slider-section .ant-safari-inner {
    max-width: calc(100vw - 16px);
  }
  body .ant-safari-slider-section .ant-safari-card {
    flex-basis: calc(100vw - 28px) !important;
  }
  body .ant-safari-slider-section .ant-safari-card-content,
  body .ant-safari-slider-section .ant-safari-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Final filter overrides because filter.php contains legacy inline styles after markup. */
body .ans-filter-panel .filters__block {
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(18, 63, 43, .05) !important;
}

body .ans-filter-panel .filters__block:hover {
  transform: none !important;
}

body .ans-filter-panel .filters__block summary {
  background: transparent !important;
  color: var(--ans-forest) !important;
}

body .ans-filter-panel .filters__block details[open] summary {
  background: linear-gradient(90deg, var(--ans-moss), #fff) !important;
}

/* Tabbed advanced filter layout. */
body .ans-filter-panel .ans-filter-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 14px 0;
  overflow-x: auto;
  background: linear-gradient(180deg, #fff, #f7fbf7);
  scrollbar-width: thin;
}

body .ans-filter-panel .ans-filter-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid rgba(18, 63, 43, .12);
  border-radius: 999px;
  background: #fff;
  color: var(--ans-forest);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(18, 63, 43, .06);
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

body .ans-filter-panel .ans-filter-tab:hover,
body .ans-filter-panel .ans-filter-tab.is-active {
  background: var(--ans-forest);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(18, 63, 43, .18);
}

body .ans-filter-panel .advanced-filters-container {
  display: block !important;
  padding-top: 12px !important;
}

body .ans-filter-panel .advanced-filters-container > .filters__block {
  display: none !important;
}

body .ans-filter-panel .advanced-filters-container::before {
  content: "Choose a filter tab above to refine your safari results.";
  display: block;
  padding: 18px;
  border: 1px dashed rgba(18, 63, 43, .2);
  border-radius: 16px;
  background: rgba(234, 244, 236, .58);
  color: var(--ans-muted);
  font-size: .86rem;
  font-weight: 750;
  text-align: center;
}

body .ans-filter-panel.ans-filter-has-active-tab .advanced-filters-container::before {
  display: none;
}

body .ans-filter-panel .advanced-filters-container > .filters__block.ans-filter-tab-active {
  display: block !important;
}

body .ans-filter-panel .advanced-filters-container > .filters__block.ans-filter-tab-active > details > summary {
  display: none !important;
}

body .ans-filter-panel .filters__block.ans-filter-tab-active {
  padding: 3px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(31, 122, 74, .22), rgba(184, 135, 63, .2)) border-box !important;
}

body .ans-filter-panel .filters__block.ans-filter-tab-active > details > ul,
body .ans-filter-panel .filters__block.ans-filter-tab-active > details > details,
body .ans-filter-panel .filters__block.ans-filter-tab-active > details > .destination-list,
body .ans-filter-panel .filters__block.ans-filter-tab-active > details > .start-list {
  animation: ansPanelIn .18s ease-out;
}

@keyframes ansPanelIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Richer website-color content presentation. */
body .ans-content-suite.relatedlinks1 {
  position: relative;
}

body .ans-content-suite.relatedlinks1::before {
  content: "";
  position: absolute;
  inset: 22px auto auto 50%;
  width: min(680px, 90vw);
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(31, 122, 74, .1), transparent 70%);
  pointer-events: none;
}

body .ans-content-intro {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(18, 63, 43, .12);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(234, 244, 236, .92), rgba(255, 255, 255, .96)),
    #fff;
  box-shadow: 0 18px 44px rgba(18, 63, 43, .09);
}

body .ans-content-intro::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 28px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(184, 135, 63, .32);
}

body .ans-content-card.container1 {
  position: relative;
}

body .ans-content-card.container1::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--ans-leaf), var(--ans-gold));
}

body .ans-content-card.container1::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 98px;
  bottom: 30px;
  width: 1px;
  background: linear-gradient(180deg, rgba(31, 122, 74, .3), transparent);
}

body .ans-content-card:nth-of-type(even) {
  background:
    radial-gradient(circle at 94% 12%, rgba(184, 135, 63, .1), transparent 26%),
    linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(234, 244, 236, .62)),
    #fff;
}

body .ans-content-card__heading {
  align-self: start;
  padding-left: 28px;
}

body .ans-content-card__number {
  box-shadow: 0 10px 20px rgba(18, 63, 43, .18);
}

body .ans-content-card .rendered-content {
  position: relative;
  padding: 4px 0 0;
}

body .ans-content-card .rendered-content > p:first-child {
  color: #26392d;
  font-size: 1.04rem;
}

body .ans-content-card .rendered-content h3,
body .ans-content-card .rendered-content h4 {
  color: var(--ans-forest);
}

body .ans-content-card .rendered-content ul,
body .ans-content-card .rendered-content ol {
  display: block !important;
  margin: 16px 0 !important;
  padding-left: 22px !important;
}

body .ans-content-card .rendered-content li {
  margin-bottom: 8px;
}

body .ans-content-card .rendered-content li::marker {
  color: var(--ans-leaf);
}

body .ans-content-card .rendered-content blockquote {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--ans-gold);
  border-radius: 0 16px 16px 0;
  background: rgba(184, 135, 63, .08);
  color: var(--ans-forest);
}

body .ans-content-card .ans-section-image {
  box-shadow: 0 18px 38px rgba(18, 63, 43, .12);
}

@media (max-width: 760px) {
  body .ans-filter-panel .ans-filter-tabs {
    padding: 12px 12px 0;
  }

  body .ans-filter-panel .ans-filter-tab {
    min-height: 40px;
    padding: 9px 11px;
    font-size: .78rem;
  }

  body .ans-filter-panel .advanced-filters-container {
    padding: 12px !important;
  }

  body .ans-content-intro {
    padding: 22px;
  }

  body .ans-content-intro::after {
    display: none;
  }

  body .ans-content-card.container1::after {
    display: none;
  }

  body .ans-content-card__heading {
    padding-left: 0;
  }
}
