
/* Life Travels Kandy custom fixes - stable v8
   IMPORTANT: No banner/slider CSS changes here.
   Mobile canvas keeps the original Tourm layout. Only buttons + scroll support are added. */
:root {
  --life-travels-blue: #008cce;
  --life-travels-blue-dark: #007bb5;
  --life-travels-ink: #071326;
}

/* Header action buttons */
.life-travels-header--style2 .menu-area {
  overflow: visible;
}

.life-travels-header--style2 .life-travels-header__row {
  min-height: 118px;
  flex-wrap: nowrap;
}

.life-travels-header--style2 .life-travels-header__right-wrap,
.life-travels-header--style2 .life-travels-header__actions {
  display: flex;
  align-items: center;
}

.life-travels-header--style2 .life-travels-header__actions {
  gap: 14px;
  flex: 0 0 auto;
  margin-left: 18px;
}

.life-travels-header--style2 .life-travels-header__listing-btn {
  min-height: 46px;
  padding: 13px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--life-travels-blue);
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.38);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 16px 34px rgba(0,140,206,.26), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease;
}

.life-travels-header--style2 .life-travels-header__listing-btn::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}

.life-travels-header--style2 .life-travels-header__listing-btn:hover {
  transform: translateY(-2px);
  background: var(--life-travels-blue-dark);
  box-shadow: 0 20px 42px rgba(0,140,206,.34);
}

.life-travels-header--style2 .life-travels-header__user-btn,
.life-travels-header--style2 .life-travels-header__canvas,
.life-travels-header--style2 .life-travels-header__mobile-toggle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
  background: rgba(255,255,255,.16);
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.36);
  box-shadow: 0 14px 32px rgba(7,19,38,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .28s ease, background .28s ease, color .28s ease;
}

.life-travels-header--style2 .life-travels-header__user-btn:hover,
.life-travels-header--style2 .life-travels-header__canvas:hover,
.life-travels-header--style2 .life-travels-header__mobile-toggle:hover {
  transform: translateY(-2px);
  background: var(--life-travels-blue);
  color: #ffffff !important;
}

.life-travels-header--style2 .life-travels-header__user-btn i,
.life-travels-header--style2 .life-travels-header__user-btn svg {
  display: block;
  margin: 0;
  line-height: 1;
  text-align: center;
}

.life-travels-header--style2 .life-travels-header__user-btn i {
  font-size: 18px;
}

.life-travels-header--style2 .life-travels-header__user-btn svg {
  width: 18px;
  height: 18px;
}

.life-travels-header--style2 .life-travels-header__mobile-toggle img,
.life-travels-header--style2 .life-travels-header__canvas img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.life-travels-mobile-actions-source {
  display: none !important;
}

/* Desktop header layout: logo left + one menu + actions right */
@media (min-width: 1200px) {
  .life-travels-header--style2 .life-travels-header__row--single-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  .life-travels-header--style2 .life-travels-header__brand-menu-col {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 18px !important;
  }

  .life-travels-header--style2 .life-travels-header__brand-menu {
    display: flex !important;
    align-items: center !important;
    gap: clamp(28px, 3vw, 56px) !important;
    min-width: 0 !important;
  }

  .life-travels-header--style2 .life-travels-header__logo-left {
    flex: 0 0 auto !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .life-travels-header--style2 .life-travels-header__logo-left img {
    max-width: 112px !important;
    height: auto !important;
  }

  .life-travels-header--style2 .life-travels-header__single-menu {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .life-travels-header--style2 .life-travels-header__single-menu > ul {
    display: flex !important;
    align-items: center !important;
    gap: clamp(26px, 2.5vw, 46px) !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
  }

  .life-travels-header--style2 .life-travels-header__single-menu > ul > li {
    margin: 0 !important;
  }

  .life-travels-header--style2 .life-travels-header__right-col {
    flex: 0 0 auto !important;
    width: auto !important;
    padding-left: 18px !important;
  }

  .life-travels-header--style2 .life-travels-header__right-wrap--actions-only {
    justify-content: flex-end !important;
    gap: 0 !important;
  }

  .life-travels-header--style2 .life-travels-header__mobile-toggle {
    display: none !important;
  }

  .life-travels-header--style2 .life-travels-header__canvas {
    display: inline-flex !important;
  }
}

/* Mobile header only. Canvas layout is not redesigned. */
@media (max-width: 1199px) {
  .life-travels-header--style2 .menu-area {
    padding: 0 !important;
  }

  .life-travels-header--style2 .menu-area > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .life-travels-header--style2 .life-travels-header__row {
    min-height: 90px;
    width: 100% !important;
    margin: 0 !important;
    --bs-gutter-x: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .life-travels-header--style2 .life-travels-header__brand-menu-col {
    flex: 0 0 auto !important;
    width: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-right: auto !important;
  }

  .life-travels-header--style2 .life-travels-header__brand-menu {
    display: flex !important;
    align-items: center !important;
  }

  .life-travels-header--style2 .life-travels-header__single-menu {
    display: none !important;
  }

  .life-travels-header--style2 .life-travels-header__logo-left img {
    max-width: 92px !important;
    height: auto !important;
  }

  .life-travels-header--style2 .life-travels-header__right-col {
    flex: 0 0 auto !important;
    width: auto !important;
    margin-left: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .life-travels-header--style2 .life-travels-header__right-wrap {
    justify-content: flex-end !important;
    gap: 0 !important;
  }

  .life-travels-header--style2 .life-travels-header__actions {
    gap: 10px !important;
    margin-left: 0 !important;
    justify-content: flex-end !important;
  }

  .life-travels-header--style2 .life-travels-header__listing-btn {
    display: none !important;
  }

  .life-travels-header--style2 .life-travels-header__canvas {
    display: none !important;
  }

  .life-travels-header--style2 .life-travels-header__mobile-toggle {
    display: inline-flex !important;
  }

  .life-travels-header--style2 .life-travels-header__user-btn,
  .life-travels-header--style2 .life-travels-header__mobile-toggle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: var(--life-travels-blue) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,.45) !important;
  }
}

@media (max-width: 575px) {
  .life-travels-header--style2 .life-travels-header__row {
    min-height: 82px;
  }

  .life-travels-header--style2 .life-travels-header__logo-left img {
    max-width: 90px !important;
  }

  .life-travels-header--style2 .life-travels-header__user-btn,
  .life-travels-header--style2 .life-travels-header__mobile-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
}

/* Original Tourm mobile canvas is preserved. Only add scroll support and action buttons. */
@media (max-width: 767px) {
  .th-menu-wrapper,
  .mobile-menu-wrapper,
  .th-menu-wrapper .th-menu-area,
  .th-menu-wrapper .th-mobile-menu,
  .th-menu-wrapper .mobile-menu,
  .mobile-menu-wrapper .mobile-menu {
    max-height: 100dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .th-menu-wrapper .life-travels-mobile-menu-actions,
  .mobile-menu-wrapper .life-travels-mobile-menu-actions,
  .th-mobile-menu .life-travels-mobile-menu-actions,
  .th-menu-area .life-travels-mobile-menu-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 18px 22px 26px !important;
    margin-top: 12px !important;
  }

  .life-travels-mobile-action {
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 13px 18px !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  .life-travels-mobile-action--listing {
    background: var(--life-travels-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(0,140,206,.24) !important;
  }

  .life-travels-mobile-action--login {
    background: #ffffff !important;
    color: var(--life-travels-ink) !important;
    border: 1px solid rgba(0,140,206,.18) !important;
    box-shadow: 0 10px 24px rgba(8,64,101,.08) !important;
  }
}

/* v9: stable mobile canvas fix only */
@media (max-width: 767px) {
  body.th-menu-open,
  body.mobile-menu-open,
  body.side-menu-open,
  html.th-menu-open,
  html.mobile-menu-open,
  html.side-menu-open {
    overflow: hidden !important;
  }

  .th-menu-wrapper,
  .mobile-menu-wrapper {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    transform: none !important;
    z-index: 999999 !important;
  }

  .th-menu-wrapper .th-menu-area,
  .th-menu-wrapper .th-mobile-menu,
  .th-menu-wrapper .mobile-menu,
  .mobile-menu-wrapper .mobile-menu,
  .mobile-menu-wrapper .th-menu-area,
  .mobile-menu-wrapper .th-mobile-menu {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    right: auto !important;
    width: min(82vw, 410px) !important;
    max-width: min(82vw, 410px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    transform: none !important;
    margin: 0 !important;
    z-index: 1000000 !important;
  }

  .th-menu-wrapper .th-menu-area > *,
  .th-menu-wrapper .th-mobile-menu > *,
  .th-menu-wrapper .mobile-menu > *,
  .mobile-menu-wrapper .mobile-menu > * {
    max-width: 100% !important;
  }

  .th-menu-wrapper .th-menu-toggle,
  .th-menu-wrapper .sideMenuCls,
  .th-menu-wrapper .side-menu-close,
  .th-menu-wrapper .close-menu,
  .mobile-menu-wrapper .th-menu-toggle,
  .mobile-menu-wrapper .sideMenuCls,
  .mobile-menu-wrapper .side-menu-close,
  .mobile-menu-wrapper .close-menu {
    position: fixed !important;
    top: max(18px, env(safe-area-inset-top)) !important;
    left: calc(min(82vw, 410px) - 24px) !important;
    right: auto !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    z-index: 1000002 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .th-menu-wrapper .life-travels-mobile-menu-actions,
  .mobile-menu-wrapper .life-travels-mobile-menu-actions,
  .th-mobile-menu .life-travels-mobile-menu-actions,
  .th-menu-area .life-travels-mobile-menu-actions {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    max-width: 100% !important;
    padding-bottom: max(26px, env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 390px) {
  .th-menu-wrapper .th-menu-area,
  .th-menu-wrapper .th-mobile-menu,
  .th-menu-wrapper .mobile-menu,
  .mobile-menu-wrapper .mobile-menu,
  .mobile-menu-wrapper .th-menu-area,
  .mobile-menu-wrapper .th-mobile-menu {
    width: 84vw !important;
    max-width: 84vw !important;
  }

  .th-menu-wrapper .th-menu-toggle,
  .th-menu-wrapper .sideMenuCls,
  .th-menu-wrapper .side-menu-close,
  .th-menu-wrapper .close-menu,
  .mobile-menu-wrapper .th-menu-toggle,
  .mobile-menu-wrapper .sideMenuCls,
  .mobile-menu-wrapper .side-menu-close,
  .mobile-menu-wrapper .close-menu {
    left: calc(84vw - 24px) !important;
  }
}


/* v10: fix mobile canvas overlap - keep panel stable, reset inner menu/logo to normal document flow */
@media (max-width: 767px) {
  .th-menu-wrapper,
  .mobile-menu-wrapper {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    transform: none !important;
    z-index: 999999 !important;
  }

  /* The outer panel is fixed and scrollable */
  .th-menu-wrapper .th-menu-area,
  .mobile-menu-wrapper .th-menu-area,
  .mobile-menu-wrapper > .mobile-menu {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    right: auto !important;
    width: min(82vw, 410px) !important;
    max-width: min(82vw, 410px) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    transform: none !important;
    margin: 0 !important;
    padding-bottom: max(26px, env(safe-area-inset-bottom)) !important;
    z-index: 1000000 !important;
  }

  /* Inner menu must NOT be fixed. This was causing the logo/menu/buttons overlap. */
  .th-menu-wrapper .th-menu-area .th-mobile-menu,
  .th-menu-wrapper .th-menu-area .mobile-menu,
  .mobile-menu-wrapper .th-menu-area .th-mobile-menu,
  .mobile-menu-wrapper .th-menu-area .mobile-menu,
  .mobile-menu-wrapper > .mobile-menu .th-mobile-menu,
  .mobile-menu-wrapper > .mobile-menu .mobile-menu {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: auto !important;
  }

  .th-menu-wrapper .mobile-logo,
  .mobile-menu-wrapper .mobile-logo,
  .th-menu-wrapper .th-menu-area .mobile-logo,
  .mobile-menu-wrapper .th-menu-area .mobile-logo {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    clear: both !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 22px !important;
    padding: 18px 0 20px !important;
    text-align: center !important;
    z-index: 1 !important;
    transform: none !important;
  }

  .th-menu-wrapper .mobile-logo img,
  .mobile-menu-wrapper .mobile-logo img {
    display: inline-block !important;
    position: static !important;
    width: auto !important;
    max-width: 170px !important;
    max-height: 125px !important;
    height: auto !important;
    object-fit: contain !important;
    transform: none !important;
  }

  .th-menu-wrapper .th-mobile-menu ul,
  .th-menu-wrapper .mobile-menu ul,
  .mobile-menu-wrapper .th-mobile-menu ul,
  .mobile-menu-wrapper .mobile-menu ul {
    position: relative !important;
    z-index: 2 !important;
    clear: both !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
    transform: none !important;
  }

  .th-menu-wrapper .th-mobile-menu ul li,
  .th-menu-wrapper .mobile-menu ul li,
  .mobile-menu-wrapper .th-mobile-menu ul li,
  .mobile-menu-wrapper .mobile-menu ul li {
    position: relative !important;
    z-index: 2 !important;
  }

  .th-menu-wrapper .life-travels-mobile-menu-actions,
  .mobile-menu-wrapper .life-travels-mobile-menu-actions,
  .th-mobile-menu .life-travels-mobile-menu-actions,
  .th-menu-area .life-travels-mobile-menu-actions {
    position: relative !important;
    z-index: 3 !important;
    clear: both !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px 0 0 !important;
    padding: 0 0 max(26px, env(safe-area-inset-bottom)) !important;
    transform: none !important;
  }

  .life-travels-mobile-action {
    width: 100% !important;
    max-width: 100% !important;
  }

  .th-menu-wrapper .th-menu-toggle,
  .th-menu-wrapper .sideMenuCls,
  .th-menu-wrapper .side-menu-close,
  .th-menu-wrapper .close-menu,
  .mobile-menu-wrapper .th-menu-toggle,
  .mobile-menu-wrapper .sideMenuCls,
  .mobile-menu-wrapper .side-menu-close,
  .mobile-menu-wrapper .close-menu {
    position: fixed !important;
    top: max(18px, env(safe-area-inset-top)) !important;
    left: calc(min(82vw, 410px) - 24px) !important;
    right: auto !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    z-index: 1000002 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

@media (max-width: 390px) {
  .th-menu-wrapper .th-menu-area,
  .mobile-menu-wrapper .th-menu-area,
  .mobile-menu-wrapper > .mobile-menu {
    width: 84vw !important;
    max-width: 84vw !important;
  }

  .th-menu-wrapper .th-menu-toggle,
  .th-menu-wrapper .sideMenuCls,
  .th-menu-wrapper .side-menu-close,
  .th-menu-wrapper .close-menu,
  .mobile-menu-wrapper .th-menu-toggle,
  .mobile-menu-wrapper .sideMenuCls,
  .mobile-menu-wrapper .side-menu-close,
  .mobile-menu-wrapper .close-menu {
    left: calc(84vw - 24px) !important;
  }
}


/* v11: remove mobile Banner Slider extra image/thumb strip and blue swiper box */
@media (max-width: 767px) {
  .hero-3 .hero3-wrapper,
  .hero-3 .hero3Thumbs,
  .hero-3 .hero3-swiper-custom,
  .hero-3 .hero-3-booking,
  .hero-3 .booking-sec,
  .hero-3 .hero-left,
  .hero-3 .scroll-down,
  .hero-3 .th-swiper-custom,
  .hero-3 .hero-icon,
  .hero-3 .swiper-pagination,
  .hero-3 .slider-pagination,
  .hero-3 .hero-arrow,
  .hero-3 .slider-arrow,
  .hero-3 .swiper-button-prev,
  .hero-3 .swiper-button-next,
  .life-travels-hero3-mobile-dots {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 0 !important;
  }

  .hero-3,
  .hero-3 .hero-slider-3,
  .hero-3 .swiper-wrapper,
  .hero-3 .swiper-slide,
  .hero-3 .hero-inner {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
  }

  .hero-3 + *,
  .hero-3 + section,
  .hero-3 + .elementor-section,
  .hero-3 + .e-con,
  .hero-3 + .elementor-top-section {
    margin-top: 0 !important;
  }
}


/* v12: final remove remaining mobile image strip under Banner Slider */
@media (max-width: 767px) {
  /* Hide every secondary/thumb image area that can appear after the main hero. */
  .hero-3 > .hero3-wrapper,
  .hero-3 > .hero3-wrapper *,
  .hero-3 .hero3Thumbs,
  .hero-3 .hero3Thumbs *,
  .hero-3 .hero3-card,
  .hero-3 .hero3-card *,
  .hero-3 .hero3-swiper-custom,
  .hero-3 .hero3-swiper-custom *,
  .hero-3 .hero-3-booking,
  .hero-3 .hero-3-booking *,
  .hero-3 .booking-sec,
  .hero-3 .booking-sec *,
  .hero-3 .hero-left,
  .hero-3 .hero-left * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 0 !important;
  }

  /* Crop the main hero cleanly so the next/thumbnail image cannot show below it. */
  .hero-3 {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    max-height: 100svh !important;
    background: transparent !important;
  }

  .hero-3 .hero-slider-3,
  .hero-3 .hero-slider-3 > .swiper-wrapper,
  .hero-3 .hero-slider-3 > .swiper-wrapper > .swiper-slide,
  .hero-3 .hero-inner {
    overflow: hidden !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
  }

  .hero-3 .hero-inner::after,
  .hero-3 .hero-slider-3::after,
  .hero-3::after {
    display: none !important;
    content: none !important;
  }
}
