/* ============================================================
   SafariBando — custom additions
   Load AFTER main.css:
   <link rel="stylesheet" href="<?= base_url('assets/css/custom.css') ?>">
   Uses the theme's own tokens (--tp-theme-1, --tp-common-black, Onest).
   ============================================================ */

/* ============================================================
   1. TOP BAR
   Sits above #header-sticky in normal flow. When the theme JS
   adds .header-sticky the header goes position:fixed and the
   topbar scrolls away on its own — nothing to compensate for.
   ============================================================ */

.sb-topbar {
   background: var(--tp-common-black);
   color: rgba(255, 255, 255, .8);
   font-family: var(--tp-ff-body);
   font-size: 13px;
   line-height: 1.4;
   position: relative;
   z-index: 11;
}

.sb-topbar__inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
   min-height: 38px;
   padding: 6px 0;
}

.sb-topbar__trust {
   display: flex;
   align-items: center;
   gap: 12px;
   min-width: 0;
}

.sb-topbar__sep {
   width: 1px;
   height: 12px;
   background: rgba(255, 255, 255, .25);
   flex-shrink: 0;
}

.sb-topbar__contact {
   display: flex;
   align-items: center;
   gap: 18px;
   flex-shrink: 0;
}

.sb-topbar__link {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   color: var(--tp-common-white);
   text-decoration: none;
   transition: color .3s ease;
}

.sb-topbar__link:hover {
   color: var(--tp-theme-1);
}

.sb-topbar__icon {
   width: 14px;
   height: 14px;
   fill: currentColor;
   flex-shrink: 0;
}

@media only screen and (min-width: 576px) and (max-width: 767px), (max-width: 574.98px) {
   .sb-topbar__trust,
   .sb-topbar__link--email { display: none; }
   .sb-topbar__inner { justify-content: center; }
}

/* ============================================================
   2. HERO
   ============================================================ */

.sb-hero {
   position: relative;
   display: flex;
   align-items: center;
   min-height: 640px;
   padding: 72px 0;
   overflow: hidden;
   color: var(--tp-common-white);
}

.sb-hero__media {
   position: absolute;
   inset: 0;
}

.sb-hero__slide {
   position: absolute;
   inset: 0;
   background-size: cover;
   background-position: center;
   opacity: 0;
   transform: scale(1.04);
   transition: opacity 1.4s ease-in-out;
}

.sb-hero__slide.is-active {
   opacity: 1;
   animation: sb-drift 14s ease-out forwards;
}

@keyframes sb-drift {
   from { transform: scale(1.04); }
   to   { transform: scale(1.12); }
}

.sb-hero__scrim {
   position: absolute;
   inset: 0;
   background: linear-gradient(90deg,
      rgba(7, 21, 22, .78) 0%,
      rgba(7, 21, 22, .58) 45%,
      rgba(7, 21, 22, .28) 100%);
}

.sb-hero__container {
   position: relative;
   z-index: 2;
}

.sb-hero__grid {
   display: grid;
   grid-template-columns: minmax(0, 1.15fr) minmax(0, 420px);
   gap: 56px;
   align-items: center;
}

.sb-hero__title {
   margin: 0 0 18px;
   font-family: var(--tp-ff-heading);
   font-size: clamp(2.4rem, 4.6vw, 4rem);
   line-height: 1.04;
   letter-spacing: -0.02em;
   font-weight: 700;
   color: var(--tp-common-white);
}

.sb-hero__lede {
   margin: 0 0 26px;
   max-width: 56ch;
   font-size: clamp(1rem, 1.25vw, 1.15rem);
   line-height: 1.6;
   color: rgba(255, 255, 255, .88);
}

.sb-hero__proof {
   display: flex;
   flex-wrap: wrap;
   gap: 14px 34px;
   margin: 0;
   padding: 20px 0 0;
   list-style: none;
   border-top: 1px solid rgba(255, 255, 255, .2);
   font-size: 15px;
   color: rgba(255, 255, 255, .78);
}

.sb-hero__proof strong {
   display: block;
   font-size: 24px;
   font-weight: 700;
   line-height: 1.2;
   color: var(--tp-theme-1);
}

/* ============================================================
   3. QUOTE CARD
   ============================================================ */

.sb-quote {
   background: var(--tp-common-white);
   color: var(--tp-common-black);
   border-radius: 14px;
   padding: 28px;
   box-shadow: 0 24px 60px rgba(7, 21, 22, .3);
}

.sb-quote__title {
   margin: 0 0 16px;
   font-family: var(--tp-ff-heading);
   font-size: 21px;
   font-weight: 700;
   color: var(--tp-common-black);
}

.sb-quote__choices {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 6px;
   padding: 5px;
   margin-bottom: 20px;
   background: var(--tp-grey-3);
   border-radius: 10px;
}

.sb-quote__choice {
   padding: 10px 6px;
   border: 0;
   border-radius: 7px;
   background: transparent;
   font-family: var(--tp-ff-body);
   font-size: 14px;
   font-weight: 500;
   color: var(--tp-grey-1);
   cursor: pointer;
   transition: all .3s ease;
}

.sb-quote__choice.is-active {
   background: var(--tp-common-white);
   color: var(--tp-common-black);
   box-shadow: 0 1px 3px rgba(7, 21, 22, .14);
}

.sb-quote__label {
   display: block;
   margin-bottom: 8px;
   font-size: 14px;
   font-weight: 500;
   color: var(--tp-common-black);
}

.sb-quote__field {
   width: 100%;
   padding: 13px 14px;
   margin-bottom: 18px;
   border: 1px solid var(--tp-border-1);
   border-radius: 9px;
   background-color: var(--tp-common-white);
   font-family: var(--tp-ff-body);
   font-size: 15px;
   color: var(--tp-common-black);
   appearance: none;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235f556a'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
   background-repeat: no-repeat;
   background-position: right 12px center;
   background-size: 20px;
}

.sb-quote__field:focus {
   outline: 2px solid var(--tp-theme-1);
   outline-offset: 1px;
   border-color: var(--tp-theme-1);
}

/* note: not .tp-btn — that class carries margin:10px 14px which
   breaks a full-width button inside the card */
.sb-quote__submit {
   width: 100%;
   padding: 15px 20px;
   margin: 0;
   border: 0;
   border-radius: 50px;
   background: var(--tp-theme-1);
   color: var(--tp-common-white);
   font-family: var(--tp-ff-body);
   font-size: 16px;
   font-weight: 500;
   letter-spacing: -0.02em;
   cursor: pointer;
   transition: all .4s ease;
}

.sb-quote__submit:hover {
   background: var(--tp-common-red);
}

.sb-quote__submit:focus-visible {
   outline: 3px solid var(--tp-common-black);
   outline-offset: 2px;
}

.sb-quote__note {
   margin: 12px 0 0;
   text-align: center;
   font-size: 13px;
   color: var(--tp-grey-2);
}

/* ============================================================
   4. STICKY MOBILE CTA BAR
   ============================================================ */

.tour-mobile-cta {
   position: fixed;
   bottom: 0;
   left: 0;
   right: 0;
   z-index: 99;
   display: flex;
   gap: 10px;
   padding: 10px 15px;
   padding-bottom: calc(10px + env(safe-area-inset-bottom));
   background: var(--tp-common-white);
   box-shadow: 0 -2px 12px rgba(7, 21, 22, .14);
}

/* override .tp-btn's own margin so the two buttons sit level */
.tour-mobile-cta .tp-btn,
.tour-mobile-cta .tp-btn-wa {
   flex: 1;
   margin: 0;
   padding: 13px 16px;
   border: 0;
   border-radius: 50px;
   font-family: var(--tp-ff-body);
   font-size: 15px;
   font-weight: 500;
   line-height: 1;
   text-align: center;
   white-space: nowrap;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all .4s ease;
}

.tour-mobile-cta .tp-btn {
   background: var(--tp-theme-1);
   color: var(--tp-common-white);
}

.tour-mobile-cta .tp-btn-wa {
   background: #25D366;
   color: var(--tp-common-white);
   text-decoration: none;
}

.tour-mobile-cta .tp-btn-wa:hover {
   background: #1DA851;
   color: var(--tp-common-white);
}

/* stop the bar covering the end of the page */
@media only screen and (min-width: 992px) and (max-width: 1199px), only screen and (min-width: 768px) and (max-width: 991px), only screen and (min-width: 576px) and (max-width: 767px), (max-width: 574.98px) {
   body { padding-bottom: 78px; }
}

/* ============================================================
   5. FLOATING WHATSAPP — desktop only
   ============================================================ */

@media only screen and (min-width: 992px) and (max-width: 1199px), only screen and (min-width: 768px) and (max-width: 991px), only screen and (min-width: 576px) and (max-width: 767px), (max-width: 574.98px) {
   .whatsapp-floating { display: none !important; }
}

/* ============================================================
   6. RESPONSIVE + MOTION
   ============================================================ */

@media only screen and (min-width: 992px) and (max-width: 1199px), only screen and (min-width: 768px) and (max-width: 991px), only screen and (min-width: 576px) and (max-width: 767px), (max-width: 574.98px) {
   .sb-hero {
      min-height: 0;
      padding: 48px 0 56px;
   }
   .sb-hero__grid {
      grid-template-columns: 1fr;
      gap: 32px;
   }
   .sb-hero__scrim {
      background: linear-gradient(180deg, rgba(7, 21, 22, .55) 0%, rgba(7, 21, 22, .72) 100%);
   }
   .sb-hero__proof { gap: 12px 24px; }
   .sb-quote { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
   .sb-hero__slide,
   .sb-hero__slide.is-active {
      transition: none;
      animation: none;
      transform: none;
   }
}

@media only screen and (min-width: 576px) and (max-width: 767px), (max-width: 574.98px) {
   .sb-hero__slide[data-mobile] {
      background-image: var(--sb-mobile-img) !important;
   }
}

/* ============================================================
   TOP BAR — white
   Replaces the whole "1. TOP BAR" block in custom.css
   ============================================================ */

.sb-topbar {
   background: var(--tp-common-white);
   border-bottom: 1px solid var(--tp-border-1);
   color: var(--tp-grey-1);
   font-family: var(--tp-ff-body);
   font-size: 13px;
   line-height: 1.4;
   position: relative;
   z-index: 11;
}

.sb-topbar__inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
   min-height: 40px;
   padding: 6px 0;
}

.sb-topbar__trust {
   display: flex;
   align-items: center;
   gap: 12px;
   min-width: 0;
}

.sb-topbar__right {
   display: flex;
   align-items: center;
   gap: 16px;
   flex-shrink: 0;
}

.sb-topbar__contact {
   display: flex;
   align-items: center;
   gap: 18px;
}

.sb-topbar__sep {
   width: 1px;
   height: 13px;
   background: rgba(17, 17, 17, .15);
   flex-shrink: 0;
}

.sb-topbar__link {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   color: var(--tp-common-black);
   text-decoration: none;
   transition: color .3s ease;
}

.sb-topbar__link:hover {
   color: var(--tp-theme-1);
}

.sb-topbar__icon {
   width: 14px;
   height: 14px;
   fill: currentColor;
   flex-shrink: 0;
}

/* --- social --- */

.sb-topbar__social {
   display: flex;
   align-items: center;
   gap: 6px;
}

.sb-topbar__social a {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 26px;
   height: 26px;
   border-radius: 50%;
   color: var(--tp-grey-1);
   transition: all .3s ease;
}

.sb-topbar__social a:hover {
   background: var(--tp-theme-1);
   color: var(--tp-common-white);
}

.sb-topbar__social svg {
   width: 14px;
   height: 14px;
   fill: currentColor;
}

/* --- small screens: keep phone + social, drop the rest --- */

@media only screen and (min-width: 768px) and (max-width: 991px) {
   .sb-topbar__trust { display: none; }
   .sb-topbar__inner { justify-content: flex-end; }
}

@media only screen and (min-width: 576px) and (max-width: 767px), (max-width: 574.98px) {
   .sb-topbar__trust,
   .sb-topbar__link--email,
   .sb-topbar__sep--social { display: none; }
   .sb-topbar__inner { justify-content: center; }
   .sb-topbar__right { gap: 12px; }
   .sb-topbar__social { gap: 2px; }
}

/* ============================================================
   HEADER CTA — "Plan My Trip" instead of the WhatsApp link
   ============================================================ */

.tp-header-contact a {
   display: inline-block;
   padding: 11px 22px;
   border-radius: 50px;
   background: var(--tp-theme-1);
   color: var(--tp-common-white);
   font-size: 15px;
   font-weight: 500;
   line-height: 1;
   letter-spacing: -0.02em;
   text-decoration: none;
   transition: all .4s ease;
}

.tp-header-contact a:hover {
   background: var(--tp-common-red);
   color: var(--tp-common-white);
}

