/* Floating WhatsApp — Agness Demo */
.wa-float {
  position: fixed !important;
  right: 22px !important;
  bottom: 28px !important;
  left: auto !important;
  top: auto !important;
  z-index: 99999 !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(145deg, #25d366 0%, #128c7e 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(18, 140, 126, 0.38);
  text-decoration: none !important;
  opacity: 0;
  transform: translateY(28px) scale(0.86);
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, opacity 0.35s ease;
}
.wa-float.is-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
  animation: wa-float-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: wa-pulse 2.4s ease-out infinite;
  opacity: 0;
}
.wa-float.is-visible::before {
  opacity: 1;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 14px 32px rgba(18, 140, 126, 0.48);
  color: #fff !important;
}
.wa-float:focus-visible {
  outline: 2px solid #128c7e;
  outline-offset: 4px;
}
.wa-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: block;
  position: relative;
  z-index: 1;
}
.wa-float .wa-label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translate(8px, -50%);
  white-space: nowrap;
  background: #151515;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.wa-float .wa-label::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #151515;
}
.wa-float:hover .wa-label {
  opacity: 1;
  transform: translate(0, -50%);
}
@keyframes wa-float-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
@media (max-width: 575px) {
  .wa-float {
    right: 16px !important;
    bottom: 20px !important;
    width: 54px !important;
    height: 54px !important;
  }
  .wa-float .wa-label {
    display: none;
  }
}


/* Current page label in header (replaces menu) */
.page-nav-label {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #151515;
  letter-spacing: 0.01em;
  padding: 8px 0;
  pointer-events: none;
  cursor: default;
}
.header-1 .main-menu ul li.active .page-nav-label {
  color: var(--theme, #ff6b35);
}


/* Clickable card images — overlays must never steal clicks */
.tour-place-image > a,
.news-image > a,
.destination-image > a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.tour-place-image > a img,
.news-image > a img,
.destination-image > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shine overlays (template animation) — keep visual, pass clicks through */
.tour-card-item .tour-image::after,
.tour-place-item .tour-place-image::after,
.tour-place-item-2 .tour-place-image::after,
.tour-list-wrapper .tour-list-box-items .tour-image::after,
.activities-wrapper .activities-card-item .activities-image::after {
  pointer-events: none !important;
}

/* Full-card hit target for collage + unique tours */
.tour-card-item .tour-image,
.tour-place-item {
  position: relative;
}
.tour-card-item .tour-image > a.tour-hit,
.tour-place-item > a.tour-card-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: block;
  border-radius: 10px;
  background: transparent;
  text-indent: -9999px;
  overflow: hidden;
}
.tour-card-item .tour-image .tour-content {
  z-index: 5;
  pointer-events: none;
}
.tour-card-item .tour-image .tour-content a {
  pointer-events: auto;
}
.tour-card-item .tour-image > span,
.tour-place-item .tour-place-image > span,
.tour-place-item .tour-place-image .icon {
  pointer-events: none;
  z-index: 5;
}
.tour-place-item .tour-place-content {
  position: relative;
  z-index: 5;
}


/* Live demo search */
.header-main .header-right .search-widget.demo-search {
  position: relative;
  z-index: 1000;
}
@media (max-width: 1399px) {
  .header-main .header-right .search-widget.demo-search {
    display: block !important;
    max-width: 200px;
    margin-right: 12px;
  }
}
@media (max-width: 767px) {
  .header-main .header-right .search-widget.demo-search {
    display: none !important;
  }
}
.demo-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: min(420px, 92vw);
  max-height: min(420px, 70vh);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(21, 21, 21, 0.18);
  border: 1px solid rgba(21, 21, 21, 0.08);
  padding: 8px;
  animation: demo-search-in 0.22s ease both;
}
@keyframes demo-search-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-search-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none !important;
  color: #151515;
  transition: background 0.15s ease;
}
.demo-search-item:hover,
.demo-search-item:focus {
  background: rgba(255, 107, 53, 0.08);
  outline: none;
}
.demo-search-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.demo-search-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.demo-search-meta strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.demo-search-meta small {
  font-size: 12px;
  color: #777;
}
.demo-search-empty {
  padding: 16px 14px;
  font-size: 13px;
  color: #666;
  line-height: 1.45;
}
.search-widget.is-searching form input {
  color: #151515;
  border-bottom-color: var(--theme, #ff6b35);
}


/* Header Log in + Book Now */
.header-actions {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.theme-btn.theme-btn-outline {
  background: transparent !important;
  color: var(--header, #151515) !important;
  border: 1.5px solid rgba(21, 21, 21, 0.18) !important;
  box-shadow: none !important;
}
.theme-btn.theme-btn-outline::before,
.theme-btn.theme-btn-outline::after {
  display: none !important;
}
.theme-btn.theme-btn-outline:hover {
  background: var(--theme, #ff6b35) !important;
  border-color: var(--theme, #ff6b35) !important;
  color: #fff !important;
}

/* ===== Compact mobile header (hamburger first) ===== */
@media (max-width: 1199px) {
  .header-top-section {
    display: none !important;
  }

  .header-1 .header-main,
  .header-main {
    padding: 8px 0 !important;
    min-height: 56px;
  }

  .header-1 .logo img,
  .header-main .logo img,
  .header-logo img {
    max-height: 34px !important;
    width: auto !important;
  }

  /* Logo + hamburger only — Log in / Book Now live in the side menu */
  .header-main .header-right .search-widget,
  .header-main .header-right .header-actions {
    display: none !important;
  }

  .header-main .header-right {
    gap: 0 !important;
    margin-left: auto;
  }

  .header__hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
  }

  .header__hamburger .sidebar__toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(21, 21, 21, 0.12);
    background: #fff;
    color: #151515 !important;
    font-size: 18px !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  }

  .header__hamburger .sidebar__toggle:active {
    transform: scale(0.96);
  }

  .header-1#header-sticky,
  #header-sticky.header-1 {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  }
}

@media (max-width: 575px) {
  .header-1 .logo img,
  .header-logo img {
    max-height: 30px !important;
  }

  .header-1 .header-main,
  .header-main {
    padding: 6px 0 !important;
    min-height: 52px;
  }
}

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 20px;
}
.mobile-menu-cta .theme-btn {
  text-align: center;
  justify-content: center;
  padding: 12px 18px !important;
  font-size: 14px !important;
  width: 100%;
}

/* Trusted clients avatars — crisp circles */
.client-avatars {
  display: flex;
  align-items: center;
  margin-top: 18px;
}
.client-avatars img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  margin-left: -14px;
  background: #fff;
  image-rendering: auto;
}
.client-avatars img:first-child {
  margin-left: 0;
}
@media (min-width: 768px) {
  .client-avatars img {
    width: 64px;
    height: 64px;
    margin-left: -16px;
  }
}

/* Preloader — do not force-hide .loaded; CSS exit animation must play */


/* ===== China-compatible fonts & performance ===== */
:root {
  --ag-font: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}
html, body, h1, h2, h3, h4, h5, h6, button, input, select, textarea, .theme-btn, .preloader {
  font-family: var(--ag-font) !important;
}
.preloader .animation-preloader .txt-loading .letters-loading,
.preloader .animation-preloader .txt-loading .letters-loading::before {
  font-family: var(--ag-font) !important;
}

/* Static map fallback (no Google Maps dependency) */
.china-safe-map {
  display: block;
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 12px;
  background: #e8eef3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400'%3E%3Crect fill='%23dbe4ec' width='800' height='400'/%3E%3Ctext x='50%25' y='46%25' text-anchor='middle' fill='%23475569' font-family='system-ui' font-size='22'%3EHwange National Park%3C/text%3E%3Ctext x='50%25' y='56%25' text-anchor='middle' fill='%2394a3b8' font-family='system-ui' font-size='14'%3EZimbabwe%3C/text%3E%3C/svg%3E") center/cover no-repeat;
}


/* Collage: real image anchors (reliable hit targets) */
.tour-card-item .tour-image > a:not(.tour-hit) {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  cursor: pointer;
}
.tour-card-item .tour-image > a:not(.tour-hit) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Smooth page motion (back/forward + internal links) ===== */
html.page-leave body {
  opacity: 0.001;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
html.page-enter body,
html.page-enter-soft body {
  animation: agPageIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.page-enter-soft body {
  animation-duration: 0.28s;
}
@keyframes agPageIn {
  from {
    opacity: 0.001;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Never leave content blank after load (WOW + ScrollSmoother race) */
body.is-ready .wow,
body.preloader-done .wow {
  visibility: visible !important;
}
/*
 * Original template: img-custom-anim-* CSS keyframes end at opacity:1.
 * WOW parks them with inline animation-name:none until scroll-show; ScrollSmoother
 * prevents that show, so they stay opacity:0 (white). Force finished state.
 */
body.is-ready [class*="img-custom-anim"],
body.preloader-done [class*="img-custom-anim"] {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  clip-path: none !important;
  transform: none !important;
}
.preloader.soft-nav .animation-preloader {
  transform: scale(0.92);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  html.page-leave body,
  html.page-enter body,
  html.page-enter-soft body {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
