/**
 * Custom styles for new.html
 * Quick sidebar, popup, header logistic, hero slider, footer
 */

/* Body background by base theme */
body.base-travel {
   background-color: #ade8f494;
}

/* body.base-logistic uses existing color from main.css (#ffe56859) */

/* Section anchor scroll - space for fixed/sticky header when clicking About/Feedback */
html {
   scroll-padding-top: 160px;
}
#about, #testimonials {
   scroll-margin-top: 160px;
}

/* Header above quick button so menu never gets covered */
header,
.togo-header-4-sec,
.togo-header-wrapper {
   position: relative;
   z-index: 10000;
}

/* Mobile menu (offcanvas) above header when open */
.body-overlay.opened {
   z-index: 10001;
}
.offcanvas-area .offcanvas-wrapper {
   z-index: 10002;
}

/* Hero section (banner) – reduce mobile spacing and heading size */
@media (max-width: 767px) {
   .togo-hero-9-sec.togo-hero-9-hight {
      padding-top: 24px !important;
      padding-bottom: 28px !important;
   }
   .togo-hero-9-heading {
      margin-top: 0 !important;
      margin-bottom: 20px !important;
   }
   .togo-hero-9-title {
      font-size: 24px !important;
      line-height: 1.25;
      padding-top: 0;
      margin-bottom: 12px;
   }
   .togo-hero-9-text .ff-outfit.fs-18 {
      font-size: 15px !important;
      margin-bottom: 12px !important;
   }
}

/* Logistic hero – fixed alert base line (background wraps text only) */
.hero-alert-base-line {
   display: inline-block;
   width: fit-content;
   margin: 0;
   padding: 8px 18px;
   background: #fc0605;
   color: #fff;
   font-size: 19px;
   font-weight: 500;
   border-radius: 50px;
}

@media (max-width: 767px) {
   .hero-alert-base-line {
      font-size: 13px;
      padding: 6px 14px;
   }
}

/* Nav link icons */
.nav-link-icon {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   margin-right: 6px;
   vertical-align: middle;
}

.nav-link-icon svg {
   flex-shrink: 0;
}

/* Header logo: desktop width, smaller on mobile */
.togo-header-logo-img {
   width: 241px;
   height: auto;
   max-width: 100%;
}

@media (max-width: 767px) {
   .togo-header-logo-img {
      width: 120px;
      max-width: 100%;
   }
}

@media (max-width: 400px) {
   .togo-header-logo-img {
      width: 100px;
   }
}

/* Mobile header: logo column – prevent overflow, keep visible */
@media (max-width: 1199px) {
   .togo-header-wrapper .row.align-items-center {
      justify-content: space-between;
   }
   .togo-header-logo-col {
      flex: 0 1 auto;
      min-width: 0;
      max-width: 50%;
   }
   .togo-header-right-col {
      flex: 0 0 auto;
   }
   .togo-header-logo a {
      display: block;
      max-width: 100%;
   }
   .togo-header-logo img {
      max-width: 100%;
      height: auto;
   }
}

/* Mobile header: right side – menu icon + toggle, properly aligned */
.togo-header-right-wrap {
   display: flex;
   align-items: center;
   justify-content: flex-end;
   gap: 12px;
   flex-shrink: 0;
}

.togo-header-right-wrap .togo-header-2-bar {
   margin-left: 0;
   flex-shrink: 0;
}

/* Hamburger button – compact, no overlap */
@media (max-width: 1199px) {
   .togo-header-2-bar .togo-mobile-menu-btn {
      width: 40px;
      height: 40px;
      min-width: 40px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
   }
   .togo-header-2-bar .togo-mobile-menu-btn svg {
      width: 22px;
      height: 22px;
   }
}

/* Base switch toggle – compact on mobile */
@media (max-width: 767px) {
   .base-switch-toggle {
      min-width: 120px;
      padding: 3px;
      font-size: 11px;
   }
   .base-switch-pill {
      top: 3px;
      left: 3px;
      height: calc(100% - 6px);
   }
   .base-switch-option {
      padding: 6px 12px;
   }
}

@media (max-width: 400px) {
   .togo-header-right-wrap {
      gap: 8px;
   }
   .base-switch-toggle {
      min-width: 100px;
      font-size: 10px;
   }
   .base-switch-option {
      padding: 5px 8px;
   }
}

/* Menu icon black on mobile (visible on white header) */
@media (max-width: 1199px) {
   .togo-mobile-menu-btn {
      color: #111;
   }
   .togo-mobile-menu-btn svg {
      color: inherit;
   }
}

/* Desktop: keep menu icon white when header is dark */
@media (min-width: 1200px) {
   .togo-mobile-menu-btn {
      color: #fff;
   }
}

/* Hero slider: desktop padding-top, none on mobile */
.togo-hero-12-slider-pad {
   padding-top: 106px;
}

@media (max-width: 767px) {
   .togo-hero-12-slider-pad {
      padding-top: 0;
   }
}

/* Quick popup above header when open */
.quick-popup-overlay.is-open {
   z-index: 10001;
}

/* Right sidebar quick button - sticky, behind header */
.quick-sidebar-wrap {
   position: fixed;
   right: 0;
   top: 50%;
   transform: translateY(-50%);
   z-index: 9998;
}

.quick-sidebar-btn {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 6px;
   padding: 14px 12px 14px 16px;
   background: linear-gradient(135deg, #FD4621 0%, #e03a18 100%);
   color: #fff;
   border: none;
   border-radius: 12px 0 0 12px;
   cursor: pointer;
   font-size: 12px;
   font-weight: 600;
   letter-spacing: 0.02em;
   box-shadow: -4px 4px 20px rgba(253, 70, 33, 0.4);
   transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-sidebar-btn:hover {
   transform: translateX(-4px);
   box-shadow: -6px 6px 28px rgba(253, 70, 33, 0.5);
}

.quick-sidebar-btn .quick-sidebar-icon {
   display: flex;
   align-items: center;
   justify-content: center;
}

.quick-sidebar-btn .quick-sidebar-label {
   white-space: nowrap;
   writing-mode: horizontal-tb;
}

/* WhatsApp floating button - bottom right, dynamic from Admin → Settings → Contact */
.whatsapp-float {
   position: fixed;
   right: 24px;
   bottom: 24px;
   width: 56px;
   height: 56px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: #25d366;
   color: #fff;
   border-radius: 50%;
   box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
   z-index: 9997;
   transition: transform 0.25s ease, box-shadow 0.25s ease;
   text-decoration: none;
}
.whatsapp-float:hover {
   transform: scale(1.08);
   box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
   color: #fff;
}
.whatsapp-float svg {
   flex-shrink: 0;
}
@media (max-width: 767px) {
   .whatsapp-float {
      right: 16px;
      bottom: 20px;
      width: 52px;
      height: 52px;
   }
   .whatsapp-float svg {
      width: 26px;
      height: 26px;
   }
}

/* Quick popup overlay & modal */
.quick-popup-overlay {
   position: fixed;
   inset: 0;
   background: rgba(0, 0, 0, 0.5);
   backdrop-filter: blur(6px);
   z-index: 9999;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 20px;
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quick-popup-overlay.is-open {
   opacity: 1;
   visibility: visible;
}

.quick-popup-overlay.is-open .quick-popup {
   transform: scale(1) translateY(0);
   opacity: 1;
}

.quick-popup {
   position: relative;
   width: 100%;
   max-width: 420px;
   background: #fff;
   border-radius: 20px;
   box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255,255,255,0.1);
   transform: scale(0.9) translateY(20px);
   opacity: 0;
   transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
   overflow: hidden;
}

.quick-popup-close {
   position: absolute;
   top: 16px;
   right: 16px;
   width: 40px;
   height: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: rgba(0, 0, 0, 0.06);
   border: none;
   border-radius: 50%;
   color: #333;
   cursor: pointer;
   z-index: 2;
   transition: background 0.2s ease, color 0.2s ease;
}

.quick-popup-close:hover {
   background: rgba(253, 70, 33, 0.12);
   color: #FD4621;
}

.quick-popup-inner {
   padding: 32px 28px 28px;
}

.quick-popup-header {
   text-align: center;
   margin-bottom: 24px;
}

.quick-popup-badge {
   display: inline-block;
   padding: 6px 14px;
   background: linear-gradient(135deg, rgba(253, 70, 33, 0.12) 0%, rgba(253, 70, 33, 0.06) 100%);
   color: #FD4621;
   font-size: 11px;
   font-weight: 700;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   border-radius: 100px;
   margin-bottom: 14px;
}

.quick-popup-title {
   font-size: 22px;
   font-weight: 700;
   color: #111;
   margin: 0 0 8px;
   line-height: 1.3;
}

.quick-popup-subtitle {
   font-size: 14px;
   color: #666;
   margin: 0;
}

.quick-popup-body {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 12px;
}

.quick-popup-card-single {
   grid-column: 1 / -1;
   justify-self: center;
   max-width: 50%;
}

.quick-popup-card {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 10px;
   padding: 20px 12px;
   background: #f8f9fa;
   border-radius: 14px;
   color: #333;
   text-decoration: none;
   font-size: 13px;
   font-weight: 600;
   transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
   border: 1px solid transparent;
}

.quick-popup-card:hover {
   background: #fff;
   color: #FD4621;
   transform: translateY(-2px);
   box-shadow: 0 8px 24px rgba(253, 70, 33, 0.15);
   border-color: rgba(253, 70, 33, 0.2);
}

.quick-popup-card-icon {
   width: 44px;
   height: 44px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: #fff;
   border-radius: 12px;
   color: #FD4621;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.quick-popup-whatsapp:hover .quick-popup-card-icon { color: #25d366 !important; }
.quick-popup-card:hover .quick-popup-card-icon {
   background: linear-gradient(135deg, #FD4621 0%, #e03a18 100%);
   color: #fff;
}

@media (max-width: 480px) {
   .quick-popup-card-single {
      max-width: 100%;
   }
}

/* Header Logistic button (legacy) */
.togo-header-logistic-btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 10px 18px;
   background: #000000;
   border: 1px solid rgba(255,255,255,0.4);
   border-radius: 8px;
   color: #fff;
   font-size: 15px;
   font-weight: 600;
   cursor: pointer;
   transition: background 0.2s ease, border-color 0.2s ease;
}

.togo-header-logistic-btn:hover {
   background: #000000;
   border-color: rgba(255,255,255,0.6);
}

.togo-header-logistic-btn .togo-header-logistic-icon {
   display: flex;
   align-items: center;
   justify-content: center;
}

.togo-header-logistic-btn .togo-header-logistic-icon svg {
   flex-shrink: 0;
}

/* Header Base Switch – toggle/pill design, Travel=sky blue, Logistic=orange */
.base-switch-toggle {
   display: inline-flex;
   position: relative;
   align-items: center;
   padding: 4px;
   border-radius: 50px;
   font-size: 13px;
   font-weight: 600;
   min-width: 140px;
}

/* Travel active: sky blue track */
.base-switch-toggle.active-travel {
   background: #0ea5e9;
}

/* Logistic active: orange track */
.base-switch-toggle.active-logistic {
   background: #FD4621;
}

.base-switch-pill {
   position: absolute;
   top: 4px;
   left: 4px;
   width: calc(50% - 4px);
   height: calc(100% - 8px);
   background: #fff;
   border-radius: 999px;
   transition: transform 0.3s ease;
}

.base-switch-toggle.active-logistic .base-switch-pill {
   transform: translateX(100%);
}

.base-switch-option {
   flex: 1;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 8px 16px;
   color: #fff;
   text-decoration: none;
   z-index: 1;
   transition: color 0.2s ease;
}

/* Travel active: Travel on white pill (sky blue text), Logistic on track (white) */
.base-switch-toggle.active-travel .base-switch-option:first-of-type {
   color: #0ea5e9;
}
.base-switch-toggle.active-travel .base-switch-option:last-of-type {
   color: #fff;
}

/* Logistic active: Travel on track (white), Logistic on white pill (orange text) */
.base-switch-toggle.active-logistic .base-switch-option:first-of-type {
   color: #fff;
}
.base-switch-toggle.active-logistic .base-switch-option:last-of-type {
   color: #FD4621;
}

.base-switch-toggle .base-switch-option:hover {
   opacity: 0.9;
}

/* Hero 12 slider - end-to-end, half content / half image */
.togo-hero-12-slider .togo-hero-12-swiper {
   overflow: hidden;
}

.togo-hero-12-slider .swiper-slide {
   height: auto;
}

.togo-hero-12-slider .togo-hero-12-slide-inner.togo-hero-12-split {
   display: flex;
   flex-wrap: wrap;
   min-height: 420px;
   width: 100%;
}

.togo-hero-12-slider .togo-hero-12-half {
   width: 50%;
   min-height: 420px;
}

.togo-hero-12-slider .togo-hero-12-content {
   display: flex;
   align-items: center;
   padding: 60px 10% 60px 8%;
   background: #0C2C55;
}

.togo-hero-12-slider .togo-hero-12-heading .togo-hero-2-title {
   color: #fff;
   margin-bottom: 16px;
}

.togo-hero-12-slider .togo-hero-12-desc {
   color: #fff;
   font-size: 18px;
   margin-bottom: 24px;
   line-height: 1.5;
}

.togo-hero-12-slider .togo-hero-12-image-wrap {
   padding: 0;
   overflow: hidden;
}

.togo-hero-12-slider .togo-hero-12-img {
   width: 100%;
   height: 100%;
   min-height: 420px;
   object-fit: cover;
   display: block;
}

@media (max-width: 991px) {
   .togo-hero-12-slider .togo-hero-12-half {
      width: 100%;
   }
   .togo-hero-12-slider .togo-hero-12-content {
      order: 1;
      min-height: 320px;
      padding: 50px 24px;
   }
   .togo-hero-12-slider .togo-hero-12-image-wrap {
      order: 0;
      min-height: 280px;
   }
   .togo-hero-12-slider .togo-hero-12-img {
      min-height: 280px;
   }
}

.togo-hero-12-slider .togo-hero-12-pagination {
   position: absolute;
   bottom: 30px;
   left: 0;
   right: 0;
   z-index: 10;
}

.togo-hero-12-slider .togo-hero-12-pagination .swiper-pagination-bullet {
   background: rgba(255,255,255,0.5);
   opacity: 1;
   width: 10px;
   height: 10px;
   transition: background 0.2s ease, transform 0.2s ease;
}

.togo-hero-12-slider .togo-hero-12-pagination .swiper-pagination-bullet-active {
   background: #fff;
   transform: scale(1.2);
}

.togo-hero-12-slider .togo-hero-12-prev,
.togo-hero-12-slider .togo-hero-12-next {
   color: #fff;
   width: 48px;
   height: 48px;
   background: rgba(255,255,255,0.2);
   border-radius: 50%;
   transition: background 0.2s ease;
}

.togo-hero-12-slider .togo-hero-12-prev:hover,
.togo-hero-12-slider .togo-hero-12-next:hover {
   background: rgba(255,255,255,0.35);
}

.togo-hero-12-slider .togo-hero-12-prev::after,
.togo-hero-12-slider .togo-hero-12-next::after {
   font-size: 20px;
   font-weight: 700;
}

/* Simple footer - logo center, horizontal links, copyright */
.togo-footer-simple {
   background: #000;
   color: rgba(255,255,255,0.8);
}

.togo-footer-simple-logo a {
   display: inline-block;
}

.togo-footer-simple-logo img {
   max-height: 67px;
   width: auto;
       background-color: #ffffff6b;
    padding: 4px;
    border-radius: 10px;
}

.togo-footer-disclaimer-text {
   max-width: 640px;
   margin: 0 auto;
   font-size: 13px;
   line-height: 1.6;
   color: rgba(255,255,255,0.7);
}

.togo-footer-contact-row {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   align-items: center;
   gap: 12px 32px;
}

.togo-footer-contact-row li {
   display: inline-flex;
   align-items: center;
   gap: 8px;
}

.togo-footer-contact-row a,
.togo-footer-contact-row li {
   color: rgba(255,255,255,0.85);
   text-decoration: none;
   font-size: 14px;
   transition: color 0.2s ease;
}

.togo-footer-contact-row a:hover {
   color: #fff;
}

.togo-footer-contact-icon {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
   color: rgba(255,255,255,0.9);
}

.togo-footer-simple-links {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 8px 28px;
}

.togo-footer-simple-links li {
   display: inline-block;
}

.togo-footer-simple-links a {
   color: rgba(255,255,255,0.85);
   text-decoration: none;
   font-size: 14px;
   transition: color 0.2s ease;
}

.togo-footer-simple-links a:hover {
   color: #fff;
}

.togo-footer-simple-copyright p {
   font-size: 13px;
   color: rgba(255,255,255,0.6);
}

@media (max-width: 575px) {
   .togo-footer-simple-links {
      gap: 6px 16px;
   }
   .togo-footer-simple-links a {
      font-size: 13px;
   }
   .togo-footer-contact-row {
      flex-direction: column;
      gap: 12px;
   }
   .togo-footer-disclaimer-text {
      font-size: 12px;
   }
}

/* Footer mobile: ensure rest of section (logo, contact, links, copyright) shows black background */
@media (max-width: 767px) {
   .togo-banner-6-sec.togo-banner-6-hight {
      background-color: rgb(3, 7, 18);
      min-height: auto;
      height: auto;
      padding-bottom: 30px;
   }
}

/* Logistic base: service card title font size */
.togo-tour-grid-sec--logistic .togo-tour-2-card-title {
   font-size: 16px;
}

/* Service cards – smaller title on mobile */
@media (max-width: 767px) {
   .togo-tour-grid-sec .togo-tour-2-card-title,
   .togo-tour-grid-sec--logistic .togo-tour-2-card-title {
      font-size: 13px !important;
   }
}
