/* Pumo Tours — trip / destination content typography
   Keeps single-trip and archive descriptions on the site fonts
   (DM Sans body, Outfit headings) instead of browser fallbacks. */

/* Package title: Marcellus, emboldened; roomy desktop size + 20px gap before hero */
.single-togo_trip h1.entry-title {
  font-family: "Marcellus", Georgia, "Times New Roman", serif !important;
  font-size: clamp(1.85rem, 1.45rem + 1.8vw, 2.65rem) !important; /* ~30–42px */
  font-weight: 400 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.012em;
  color: #111111 !important;
  /* Marcellus ships only 400 — stronger stroke/shadow for boldness */
  -webkit-text-stroke: 0.55px currentColor;
  text-shadow:
    0.4px 0 0 currentColor,
    -0.4px 0 0 currentColor,
    0 0.35px 0 currentColor;
  margin: 0.75rem 0 20px !important;
  max-width: none;
  width: 100%;
  /* Stay on one line until the content column runs out of width */
  text-wrap: wrap;
  white-space: normal;
}

@media (max-width: 767px) {
  .single-togo_trip h1.entry-title {
    font-size: 1.75rem !important; /* ~28px */
    line-height: 1.28 !important;
    margin: 0.5rem 0 20px !important;
    -webkit-text-stroke: 0.45px currentColor;
  }
}

.single-togo_trip .entry-content,
.single-togo_trip .entry-content p,
.single-togo_trip .entry-content li,
.single-togo_trip .entry-content span,
.tax-togo_trip_destinations .term-description,
.tax-togo_trip_destinations .term-description p,
.tax-togo_trip_activities .term-description,
.tax-togo_trip_types .term-description {
  font-family: "DM Sans", system-ui, sans-serif !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: normal;
  color: #555555;
}

.single-togo_trip .entry-content h1,
.single-togo_trip .entry-content h2,
.single-togo_trip .entry-content h3,
.single-togo_trip .entry-content h4,
.single-togo_trip .entry-content h5,
.single-togo_trip .entry-content h6,
.single-togo_trip .entry-content h1 span,
.single-togo_trip .entry-content h2 span,
.single-togo_trip .entry-content h3 span,
.single-togo_trip .entry-content h4 span,
.single-togo_trip .entry-content h5 span,
.single-togo_trip .entry-content h6 span {
  font-family: "Outfit", "DM Sans", system-ui, sans-serif !important;
  color: #111111;
  line-height: 1.35;
  letter-spacing: normal;
}

/* Package description headings: match T&Cs green (#2c5239) */
.single-togo_trip .entry-content h1,
.single-togo_trip .entry-content h2,
.single-togo_trip .entry-content h3,
.single-togo_trip .entry-content h4,
.single-togo_trip .entry-content h5,
.single-togo_trip .entry-content h6,
.single-togo_trip .entry-content h1 span,
.single-togo_trip .entry-content h2 span,
.single-togo_trip .entry-content h3 span,
.single-togo_trip .entry-content h4 span,
.single-togo_trip .entry-content h5 span,
.single-togo_trip .entry-content h6 span {
  color: #2c5239 !important;
}

.single-togo_trip .entry-content h5 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.single-togo_trip .entry-content h6 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.35rem 0 0.6rem;
}

.single-togo_trip .entry-content p {
  margin: 0 0 1rem;
}

.single-togo_trip .entry-content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.single-togo_trip .entry-content li {
  margin-bottom: 0.4rem;
}

/* Package description bullets: match T&Cs orange (#f7941d) */
.single-togo_trip .entry-content li::marker {
  color: #f7941d;
}

/* Book Tour Now — side-by-side CTAs + modal form */
.pumo-book-cta {
  margin: 2rem 0 1rem;
  padding: 1.5rem 0 0.25rem;
  border-top: 1px solid #ececec;
  font-family: "DM Sans", system-ui, sans-serif;
  max-width: 40rem;
}

.pumo-book-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pumo-book-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 10.5rem;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.12s ease, color 0.18s ease;
}

.pumo-book-cta__btn--primary {
  background: #e3a514;
  color: #111 !important;
}

.pumo-book-cta__btn--primary:hover {
  background: #f0b52a;
  color: #111 !important;
}

.pumo-book-cta__btn--whatsapp {
  background: #1a4924;
  color: #fff !important;
}

.pumo-book-cta__btn--whatsapp:hover {
  background: #12351b;
  color: #fff !important;
}

.pumo-book-cta__btn:active {
  transform: translateY(1px);
}

.pumo-book-cta__btn:focus-visible {
  outline: 2px solid #1a4924;
  outline-offset: 3px;
}

.pumo-book-modal[hidden] {
  display: none !important;
}

.pumo-book-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  margin: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  box-sizing: border-box;
}

.pumo-book-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 14, 0.72);
}

.pumo-book-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 36rem);
  max-height: min(90vh, 46rem);
  overflow: auto;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  -webkit-overflow-scrolling: touch;
}

.pumo-book-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: none;
  border-radius: 999px;
  background: #e3a514;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.12s ease;
}

.pumo-book-modal__close:hover {
  background: #f0b52a;
}

.pumo-book-modal__close:active {
  transform: scale(0.96);
}

.pumo-book-modal__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.pumo-book-panel {
  background: #1a4924;
  border-radius: 14px;
  padding: 1.55rem 1.45rem 1.5rem;
  color: #fff;
}

.pumo-book-panel__title {
  margin: 0 2.5rem 0.4rem 0;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  font-family: "DM Sans", system-ui, sans-serif;
}

.pumo-book-panel__trip {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 500;
  color: #e3a514;
}

.pumo-book-form {
  position: relative;
  display: grid;
  gap: 0.9rem;
}

/* Desktop: name + guest counts share a row */
.pumo-book-form__row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.85rem;
}

.pumo-book-form__row > .pumo-book-form__field {
  width: auto !important;
  max-width: none !important;
}

.pumo-book-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
}

.pumo-book-form__field span {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.pumo-book-form__field input,
.pumo-book-form__field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #1a1a1a;
  background: #fff;
}

.pumo-book-form__field input::placeholder,
.pumo-book-form__field textarea::placeholder {
  color: #8a8a8a;
  opacity: 1;
}

.pumo-book-form__field input:focus,
.pumo-book-form__field textarea:focus {
  outline: none;
  border-color: #e3a514;
  box-shadow: 0 0 0 2px rgba(227, 165, 20, 0.35);
}

.pumo-book-form__field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.pumo-book-form__honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.pumo-book-form__status {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.pumo-book-form__status.is-success {
  color: #d4f5c8;
}

.pumo-book-form__status.is-error {
  color: #ffd0c8;
}

.pumo-book-form__thanks {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.4;
}

.pumo-book-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.85rem;
  margin-top: 0.15rem;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 6px;
  background: #e3a514;
  color: #111;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.12s ease;
}

.pumo-book-form__submit:hover {
  background: #f0b52a;
}

.pumo-book-form__submit:active {
  transform: translateY(1px);
}

.pumo-book-form__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.pumo-book-form__submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

body.pumo-book-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .pumo-book-cta {
    max-width: none;
  }

  /* Mobile: CTAs stack full-width */
  .pumo-book-cta__actions {
    flex-direction: column !important;
  }

  .pumo-book-cta__btn {
    width: 100% !important;
    flex: none !important;
  }

  /* Mobile: First/Last + Adults/Children stack */
  .pumo-book-form__row {
    grid-template-columns: 1fr !important;
  }

  /* Mobile: bottom-sheet covers viewport */
  .pumo-book-modal {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  .pumo-book-modal__dialog {
    width: 100% !important;
    max-width: none !important;
    max-height: min(94dvh, 94vh);
    border-radius: 16px 16px 0 0;
  }

  .pumo-book-panel {
    border-radius: 16px 16px 0 0;
    padding: 1.35rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .pumo-book-panel__title {
    font-size: 1.4rem;
  }

  .pumo-book-modal__close {
    top: 0.7rem;
    right: 0.7rem;
  }
}

@media (min-width: 768px) {
  .pumo-book-cta__actions {
    flex-wrap: nowrap;
  }

  .pumo-book-cta__btn {
    flex: 1 1 0;
  }

  .pumo-book-modal {
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Hide any leftover related-article blocks if markup slips through */
.post-relared {
  display: none !important;
}

/* Homepage hero — force full-bleed early (Elementor boxed FOUC) */
.elementor-3327 > .elementor-element-e7f5f32.e-con,
.elementor-3327 .elementor-element-e7f5f32 > .e-con-inner,
.elementor-3327 .elementor-element-4e1f488,
.elementor-3327 .elementor-element-4e1f488 .elementor-widget-container,
.elementor-3327 .elementor-element-4e1f488 .elementor-shortcode {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Hide jumpy caption until preloader marks layout ready */
html:not(.pumo-hero-ready) #metaslider-id-9282 .caption-wrap {
  opacity: 0 !important;
}

html.pumo-hero-ready #metaslider-id-9282 .caption-wrap {
  opacity: 1 !important;
  transition: opacity 0.25s ease;
}

/* Early caption typography (don't wait for late inline theme styles) */
#metaslider-id-9282 .caption h4 {
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  margin: 0 0 14px !important;
  text-align: center !important;
}

#metaslider-id-9282 .caption p {
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif !important;
  text-align: center !important;
}

@media (min-width: 601px) {
  #metaslider-id-9282 .caption h4 {
    font-size: clamp(64px, 9vw, 140px) !important;
    white-space: nowrap !important;
  }

  #metaslider-id-9282 .caption p {
    font-size: 20px !important;
    margin: 0 0 24px !important;
  }
}

@media (max-width: 600px) {
  #metaslider-id-9282 .caption h4 {
    font-size: 36px !important;
    white-space: normal !important;
  }
}

/* Homepage MetaSlider — reserve hero height before FlexSlider/images settle (CLS).
   Keep overflow visible on the host so the trip-finder dropdowns are not clipped;
   clip slides on the inner containers instead. */
#metaslider-id-9282,
.metaslider.metaslider-9282 {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  min-height: 320px;
  aspect-ratio: 12 / 5;
  overflow: visible;
  background: #12351b;
  z-index: 2;
}

.elementor-3327 .elementor-element-e7f5f32,
.elementor-3327 .elementor-element-4e1f488,
.elementor-3327 .elementor-element-4e1f488 .elementor-shortcode,
.elementor-3327 .elementor-element-e7f5f32 > .e-con-inner {
  overflow: visible !important;
}

#metaslider-id-9282 #metaslider_container_9282,
#metaslider-id-9282 #metaslider_9282,
#metaslider-id-9282 .slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#metaslider-id-9282 .slides > li {
  position: relative;
  width: 100%;
  min-height: inherit;
  margin: 0;
  padding: 0;
}

/* Before FlexSlider init, only show the first slide (avoids stacked captions) */
#metaslider_9282:not(.flexslider) .slides > li:not(:first-child) {
  display: none !important;
}

#metaslider-id-9282 .slides img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

@media (min-width: 601px) {
  #metaslider-id-9282,
  .metaslider.metaslider-9282 {
    min-height: 560px;
    aspect-ratio: auto;
  }
}

@media (max-width: 600px) {
  #metaslider-id-9282,
  .metaslider.metaslider-9282 {
    /* Taller mobile hero so caption + arrows breathe; finder docks below */
    min-height: 300px;
    aspect-ratio: 4 / 3;
  }
}

/* Avoid clipping fixed WhatsApp FAB: don't put overflow-x on html/body.
   Contain horizontal bleed on the page shell instead. */
@media (max-width: 991px) {
  .elementor,
  .site,
  #page,
  .togo-site {
    overflow-x: clip;
  }

  .ctsf-whatsapp,
  .cts-whatsapp {
    position: fixed !important;
    left: 14px !important;
    bottom: 14px !important;
    width: 56px !important;
    height: 56px !important;
    z-index: 100000 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .ctsf-whatsapp svg,
  .cts-whatsapp svg {
    width: 30px !important;
    height: 30px !important;
    fill: #fff !important;
  }

  .ctsf-whatsapp svg path,
  .cts-whatsapp svg path {
    fill: #fff !important;
  }

  .ctsf-bar {
    padding: 22px 56px 22px 22px !important;
    line-height: 1.45;
  }

  .ctsf-bar a {
    color: #f0c14b !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
  }

  .ctsf-top {
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
  }
}

/* Top-bar WhatsApp glyph (replaces Font Awesome) */
.pumo-wa-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

/* Page heroes + numbered headings: match top-bar green (#2c5239) */
.pumo-terms-page {
  --pg: #2c5239;
  --pumo-green: #2c5239;
}

.pumo-terms-hero {
  background: #2c5239 !important;
}

.pumo-terms-number,
.pumo-terms-contact,
.pumo-terms-page .pumo-terms-number,
.pumo-terms-page .pumo-terms-contact {
  background-color: #2c5239 !important;
}

.pumo-terms-section h2 {
  color: #2c5239 !important;
}

/* Destinations filter checkboxes: empty box + checked mark must both read clearly.
   Theme hides the native input; visuals come from .square / .check-square SVGs. */
.togo-trip-filter .filter-checkbox .square {
  color: #5a5a5a !important;
}

.togo-trip-filter .filter-checkbox .check-square {
  color: #1a4924 !important;
}

.togo-trip-filter .filter-checkbox .togo-svg-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Mobile: keep Price / Destinations filters visible (theme hides layout-top
   under 767px, and WP custom CSS hides the canvas Filter button). */
@media screen and (max-width: 767px) {
  .post-type-archive-togo_trip .trip-list-header {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .post-type-archive-togo_trip .trip-list-header > .togo-trip-filter.layout-top {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    order: -1;
  }

  .post-type-archive-togo_trip .trip-list-header .trip-list-header__count {
    display: block !important;
    flex: 1 1 auto;
  }

  .post-type-archive-togo_trip
    .togo-trip-filter.layout-top
    .filter-item.active
    .filter-item__content {
    display: block !important;
  }
}

/* Top-bar social icons (Facebook / Instagram / TikTok) */
.togo-top-bar .top-bar-right.top-bar-socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.togo-top-bar .top-bar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: background 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.togo-top-bar .top-bar-social:hover {
  background: rgba(255, 255, 255, 0.22);
  opacity: 1;
  transform: translateY(-1px);
}

.togo-top-bar .top-bar-social svg {
  display: block;
}

@media (max-width: 768px) {
  .togo-top-bar .top-bar-right.top-bar-socials {
    margin-left: 0;
    gap: 8px;
  }

  .togo-top-bar .top-bar-social {
    width: 26px;
    height: 26px;
  }
}

/* Desktop primary nav: keep labels on one line in mid widths */
@media (min-width: 992px) {
  .site-header .main-menu.desktop-menu > ul.menu,
  .site-header .main-menu.desktop-menu > .menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.15rem;
  }

  .site-header .main-menu.desktop-menu > ul.menu > .menu-item > a,
  .site-header .main-menu.desktop-menu > .menu > .menu-item > a {
    white-space: nowrap !important;
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
  }

  .site-header .main-menu.desktop-menu .menu-item-title {
    white-space: nowrap !important;
  }
}

@media (min-width: 992px) and (max-width: 1280px) {
  .site-header .main-menu.desktop-menu > ul.menu > .menu-item > a,
  .site-header .main-menu.desktop-menu > .menu > .menu-item > a {
    font-size: 0.92rem !important;
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
  }

  .menu-item.pumo-nav-cta > a {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.9rem !important;
  }
}

/* Customize your trip — emphasized main-nav CTA */
.menu-item.pumo-nav-cta > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  padding: 0.45rem 0.95rem !important;
  border-radius: 999px !important;
  background: #1a4924 !important;
  color: #fff !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  transition: background 0.15s ease;
}

.menu-item.pumo-nav-cta > a:hover {
  background: #12351b !important;
  color: #fff !important;
}

.menu-item.pumo-nav-cta .menu-item-title {
  color: #fff !important;
  white-space: nowrap !important;
}

@media (max-width: 991px) {
  .menu-item.pumo-nav-cta > a {
    margin: 0.35rem 0.75rem;
    width: calc(100% - 1.5rem);
  }
}

/* Desktop: click-to-open class mirrors theme :hover submenu visibility */
@media (min-width: 992px) {
  .desktop-menu .menu-item.pumo-menu-open > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: all !important;
  }

  .desktop-menu .menu-item.pumo-menu-open > a {
    color: var(--togo-accent-color);
  }

  .desktop-menu .menu-item-has-children > a {
    cursor: pointer;
  }

  .desktop-menu .destinations-nav .nav-item a {
    cursor: pointer;
  }
}

/* Mobile Destinations panel: theme rotates all mb-menu chevrons -90deg (→ becomes ↑).
   Keep Top destinations pointing right; Kenya / Tanzania point down. */
.mb-menu .destinations-nav .nav-item a > .togo-svg-icon {
  transform: none;
}

.mb-menu .destinations-nav .nav-item:not(:first-child) a > .togo-svg-icon {
  transform: rotate(90deg);
}

/* Top Destinations carousel: keep link arrow pointing right (not ↗) */
.togo-destination-item.carousel-02 .togo-destination-item-link,
.togo-destination-item.carousel-02 .togo-destination-item-link:hover {
  transform: none;
}

/* Destinations mega-menu thumbs: keep true circles (theme sets 56×56 without object-fit) */
.children-list .children-item a {
  align-items: center;
}

.children-list .children-item picture {
  display: block;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8eee9;
}

.children-list .children-item img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
  background: #e8eee9;
}
