/**
 * Fixed “Plan your next adventure” bar (site-wide).
 */

:root {
  --sticky-footer-height: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  --sticky-footer-pad-x: 0.75rem;
  --sticky-footer-pad-x-md: 0.875rem;
  /* Reference bar: ~75–80% viewport, modest inset inside the band */
  --sticky-footer-band-width: min(1520px, 78vw);
  --sticky-footer-band-pad-x: clamp(1rem, 1.5vw, 1.5rem);
}

/* Remove template mb-80 gap (shows as white strip above the bar) */
body:has(.sticky-footer) footer.site-footer {
  margin-bottom: 0 !important;
}

/* Reserve space inside the dark footer so copyright clears the fixed bar */
body:has(.sticky-footer) .tg-footer-copyright {
  padding-bottom: calc(2.5rem + var(--sticky-footer-height)) !important;
}

.sticky-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  width: 100%;
  margin: 0;
  padding: 0.85rem 0;
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background-color: #331766;
  color: #fff;
  box-shadow: 0 -8px 28px rgba(15, 8, 40, 0.28);
}

.sticky-footer__container {
  max-width: 100%;
  padding-left: var(--sticky-footer-pad-x);
  padding-right: var(--sticky-footer-pad-x);
}

.sticky-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 2.75rem;
}

.sticky-footer__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #fff;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(0.9rem, 3.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.sticky-footer__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 1.25rem;
}

.sticky-footer__call {
  color: #fff;
}

.sticky-footer__call .tg-header-contact-number span {
  color: rgba(255, 255, 255, 0.75);
}

.sticky-footer__call .tg-header-contact-number a {
  color: #fff;
  font-weight: 600;
}

.sticky-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  background: #f0e9ff;
  color: #331766 !important;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  border: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.sticky-footer__cta:hover {
  background: #fff;
  color: #4a148c !important;
  transform: translateY(-1px);
}

.sticky-footer__cta-text {
  display: inline-block;
}

.sticky-footer__cta-arrow {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.sticky-footer__cta-arrow svg {
  display: block;
}

@media (min-width: 576px) {
  .sticky-footer__container {
    padding-left: var(--sticky-footer-pad-x-md);
    padding-right: var(--sticky-footer-pad-x-md);
  }

  .sticky-footer__cta {
    padding: 0.75rem 1.15rem;
    font-size: 0.72rem;
  }
}

/* Desktop / laptop — reference: centered ~78% band, title L / actions R */
@media (min-width: 992px) {
  .sticky-footer__container.container-fluid.container-1860 {
    width: var(--sticky-footer-band-width) !important;
    max-width: var(--sticky-footer-band-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--sticky-footer-band-pad-x);
    padding-right: var(--sticky-footer-band-pad-x);
  }

  .sticky-footer__inner {
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
    width: 100%;
  }

  .sticky-footer__title {
    flex: 0 1 auto;
    max-width: none;
    font-size: 1.15rem;
  }

  .sticky-footer__actions {
    flex: 0 0 auto;
    gap: 2.75rem;
  }

  .sticky-footer__call {
    display: flex;
    align-items: center;
    gap: 0.625rem;
  }

  .sticky-footer__call .tg-header-contact-icon {
    margin-right: 0 !important;
    flex-shrink: 0;
  }

  .sticky-footer__cta {
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
  }
}

@media (min-width: 1200px) {
  .sticky-footer {
    padding-top: 0.95rem;
    padding-bottom: calc(0.95rem + env(safe-area-inset-bottom, 0px));
  }

  .sticky-footer__actions {
    gap: 2.75rem;
  }

  .sticky-footer__title {
    font-size: 1.25rem;
  }

  .sticky-footer__cta {
    font-size: 0.78rem;
    padding: 0.8rem 1.35rem;
  }
}

/* India landing overrides */
body.page-home-india .sticky-footer {
  background: #151018;
  border-top: 1px solid rgba(106, 27, 154, 0.35);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
}

body.page-home-india .sticky-footer__cta {
  background: #f3e5f5;
  color: #4a148c !important;
}
