:root {
  --dot-size: 23px;
  --line-color: #ffffff;
  --dot-color: #ffffff;
  --dot-color-active: #0d6efd;
  /* Egyptian Blue as primary */
  --min-height: 100vh;
  --bg-speed: 1s;
  --text-speed: 0.6s;
  --slide-height: 175px;
  --slide-active-height: 200px;

  /* Theme Variables - Default Dark */
  --bg-primary: #111;
  --bg-secondary: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --nav-bg: rgba(17, 17, 17, 0.95);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.05);
  --social-bg: rgba(255, 255, 255, 0.1);
  --social-color: #fff;
  --input-bg: rgba(255, 255, 255, 0.05);
  --text-muted: rgba(255, 255, 255, 0.5);

  /* Gradient Variables - Dark */
  --bg-grad-1: linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
  --bg-grad-2: linear-gradient(135deg, #0a0a0a 0%, #161616 100%);
  --bg-grad-accent: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(253, 126, 20, 0.08) 100%);
}

body.light-mode {
  --bg-primary: #ffffff;
  --bg-secondary: #f3f3f3;
  /* Warm off-white/sandy tint */
  --bg-tertiary: #f1f5f9;
  /* Cool slate tint for contrast */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --dot-color: #64748b;
  --line-color: #cbd5e1;
  --social-bg: rgba(15, 23, 42, 0.05);
  --social-color: var(--bs-blue);
  --input-bg: #ffffff;
  --text-muted: #94a3b8;

  /* Gradient Variables - Light */
  --bg-grad-1: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --bg-grad-2: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  --bg-grad-accent: linear-gradient(135deg, rgba(13, 110, 253, 0.04) 0%, rgba(253, 126, 20, 0.04) 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
[class^="display-"] {
  color: var(--text-primary);
  transition: color 0.5s ease;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-white-50 {
  color: var(--text-muted) !important;
}

.as-social-sidebar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1100;
  /* Higher than navbar and slider content */
}

@media (max-width: 991px) {
  .as-social-sidebar {
    display: none;
  }
}

.social-icon {
  width: 45px;
  height: 45px;
  background: var(--social-bg);
  backdrop-filter: blur(5px);
  border: 1px solid var(--card-border);
  color: var(--social-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
  background: #fff;
  color: #000;
  transform: scale(1.1) translateX(-5px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Hide on very small screens to avoid overlapping thumbnails */
@media (max-width: 576px) {
  .as-social-sidebar {
    right: 10px;
  }

  .social-icon {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }
}

.about-section {
  background: var(--bg-primary);
  transition: background 0.5s ease;
}

body.light-mode .about-section {
  background: var(--bg-primary);
}

.trip-slider-section {
  background: var(--bg-primary);
  transition: background 0.5s ease;
}

body.light-mode .trip-slider-section {
  background: var(--bg-secondary);
}

.trip-slider-section.py-5.overflow-hidden {
  position: relative;
}

.navbar {
  transition: all 0.4s ease-in-out;
  padding: 20px 6vw;
  z-index: 1050;
  /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%); */
}



body.light-mode .navbar.navbar-scrolled .nav-link {
  color: #111 !important;
}

/* body.light-mode .navbar:not(.navbar-scrolled) .navbar-toggler-icon {
  filter: invert(1);
} */

/* body.light-mode .navbar .nav-link,
body.light-mode .navbar .nav-link .letter {
  color: var(--text-primary) !important;
} */

/* Scrolled state */
.navbar.navbar-scrolled {
  background: var(--nav-bg) !important;
  backdrop-filter: blur(10px);
  padding: 12px 6vw;
  /* Shrink effect */
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (min-width: 992px) {
  .nav-actions {
    margin-left: 15px;
    padding-left: 20px;
    border-left: 1px solid var(--card-border);
  }
}

/* Language Dropdown Hover & Style */
.language-dropdown .btn {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

body.light-mode .navbar:not(.navbar-scrolled) .language-dropdown .btn {
  color: #111;
}

body.light-mode .navbar.navbar-scrolled .language-dropdown .btn {
  color: var(--text-primary);
}

.language-dropdown .dropdown-menu {
  min-width: 150px;
  z-index: 1100 !important;
}

/* Match main dropdown items */
.language-dropdown .dropdown-item {
  color: rgba(255, 255, 255, 0.7) !important;
  display: flex !important;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

body.light-mode .language-dropdown .dropdown-item {
  color: #475569 !important;
}

.language-dropdown .dropdown-item:hover {
  background: transparent !important;
  color: var(--dot-color-active) !important;
  transform: translateX(5px);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 2px;
}

/*body .navbar:not(.navbar-scrolled) .navbar-brand:after {*/
body .navbar-brand:after {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: rgb(255 255 255 / 50%);
  top: -10%;
  left: -10%;
  z-index: 0;
  border-radius: 50px;
}

.navbar-brand img {
  width: auto;
  height: 50px;
  transition: all 0.4s ease;
  /* Force white logo default for contrast on dark/gradient hero */
  /*filter: brightness(0) invert(1);*/
  position: relative;
  z-index: 1;
}



/* Scrolled: Keep white in default (dark) mode */
.navbar-scrolled .navbar-brand img {
  height: 40px;
  /*filter: brightness(0) invert(1);*/
}

/* Light Mode Top: Keep white on hero */
/* body.light-mode .navbar-brand img { filter: brightness(0) invert(1); } */

/* Light Mode Scrolled: Show colored logo on white navbar */
body.light-mode .navbar.navbar-scrolled .navbar-brand img {
  filter: none;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

/* Letter Animation Base */
.nav-link .letter {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s;
  transform-origin: center;
}

/* Hover State: Staggered Delay */
.nav-link:hover .letter {
  color: var(--dot-color-active);
  transform: translateY(-4px);
  /* Moves letters up slightly */
}

/* Add delays for up to 15 letters (adjust as needed) */
.nav-link .letter:nth-child(1) {
  transition-delay: 0.02s;
}

.nav-link .letter:nth-child(2) {
  transition-delay: 0.04s;
}

.nav-link .letter:nth-child(3) {
  transition-delay: 0.06s;
}

.nav-link .letter:nth-child(4) {
  transition-delay: 0.08s;
}

.nav-link .letter:nth-child(5) {
  transition-delay: 0.10s;
}

.nav-link .letter:nth-child(6) {
  transition-delay: 0.12s;
}

.nav-link .letter:nth-child(7) {
  transition-delay: 0.14s;
}

.nav-link .letter:nth-child(8) {
  transition-delay: 0.16s;
}

.nav-link .letter:nth-child(9) {
  transition-delay: 0.18s;
}

.nav-link .letter:nth-child(10) {
  transition-delay: 0.20s;
}

.nav-link .letter:nth-child(11) {
  transition-delay: 0.22s;
}

.nav-link .letter:nth-child(12) {
  transition-delay: 0.24s;
}

.offcanvas .nav-link {
  color: var(--text-primary) !important;
}

.offcanvas-title {
  color: var(--text-primary);
}

.btn-close {
  filter: var(--close-filter);
}

:root {
  --close-filter: invert(1);
}

body.light-mode {
  --close-filter: invert(0);
}

/* Ensure the letter animation only targets top-level links to avoid messy dropdowns */
.navbar-nav>.nav-item>.nav-link {
  display: flex !important;
  white-space: nowrap;
}

/* Dropdown Menu Styling */
.dropdown-menu {
  background: var(--nav-bg) !important;
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border) !important;
  border-radius: 10px;
  padding: 15px;
  margin-top: 0 !important;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

/* Hover bridge to prevent closing on gap */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
}

.dropdown-item {
  font-size: 0.9rem;
  padding: 8px 20px;
  transition: all 0.3s ease;
  color: var(--text-secondary) !important;
}

.dropdown-item:hover {
  background: transparent;
  color: var(--dot-color-active) !important;
  transform: translateX(5px);
}

/* Hover trigger for desktop */
@media (min-width: 992px) {

  .nav-item.dropdown:hover>.dropdown-menu,
  .dropdown.language-dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-top: 10px !important;
  }
}

/* Mobile visibility fix (Bootstrap) */
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  margin-top: 10px !important;
}

/* Remove dropdown arrow animation from letter splitting */
.dropdown-toggle::after {
  margin-left: 8px;
  vertical-align: middle;
  margin-top: 8px;
}

.offcanvas {
  background-color: var(--nav-bg) !important;
  backdrop-filter: blur(10px);
  z-index: 1060;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--social-bg);
  color: var(--bs-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.theme-toggle:hover {
  background: var(--dot-color-active);
  color: #fff;
}

.theme-toggle i {
  transition: transform 0.5s ease;
}

.light-mode .theme-toggle .fa-sun {
  transform: translateY(40px);
}

.light-mode .theme-toggle .fa-moon {
  transform: translateY(0);
}

.theme-toggle .fa-moon {
  transform: translateY(-40px);
  position: absolute;
}


.as-slider {
  position: relative;
  min-height: var(--min-height);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 100px 6vw 30px;
}

.as-slider-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.as-slider-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.85) 0%, rgba(17, 17, 17, 0.3) 50%, rgba(253, 126, 20, 0.7) 100%);
  z-index: 2;
}

.as-slider-background img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(20px);
  transform: scale(1.1);
  transition: opacity var(--bg-speed) ease-in-out, filter var(--bg-speed) ease-in-out;
  will-change: opacity, filter, transform;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.as-slider-background img.currentBackward,
.as-slider-background img.currentForward {
  z-index: 1;
  opacity: 1;
  filter: blur(0px);
  animation: kenBurns 12s ease-in-out infinite;
}

.as-slider-background img.prev {
  opacity: 0;
  filter: blur(20px);
}


.as-bar {
  position: relative;
  z-index: 3;
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: 60vh;
  justify-content: center;
}

.as-bar:before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line-color);
  opacity: 0.2;
  z-index: 0;
}

.dot {
  position: relative;
  z-index: 2;
  height: var(--dot-size);
  width: var(--dot-size);
  background: var(--dot-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: scale(.3);
  transition: all .3s ease-in-out;
}

.dot.active {
  transform: scale(1);
  background: var(--dot-color-active);
}

.dot-number {
  font-size: 11px;
  color: #000;
  opacity: 0;
}

.dot.active .dot-number {
  opacity: 1;
}


.as-content {
  flex: 1;
  z-index: 3;
  padding: 40px;
  max-width: 640px;
}

.as-changing-widget {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.text-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: all var(--text-speed) ease-in-out;
}

.text-slide.currentUp,
.text-slide.currentDown {
  opacity: 1;
  z-index: 2;
  transform: translateY(0);
}

.text-slide.prev {
  transform: translateY(-30px);
  opacity: 0;
}

.text-slide.next {
  transform: translateY(30px);
  opacity: 0;
}

.text-slide h2,
.text-slide p {
  color: #ffffff !important;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.text-slide h2 {
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.text-slide p {
  font-size: 1.1rem;
  color: #ffffff;
}

/* Container that holds everything */
.as-side-slider {
  width: 550px;
  z-index: 3;
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
  overflow: visible;
  /* Allow child to pop out */
}

/* The "Window" that clips horizontal content */
.as-side-viewport {
  width: 100%;
  overflow: hidden;
  /* Clips horizontally */
  padding-top: 30px;
  /* Space for the -10px lift */
  margin-top: -30px;
  padding-bottom: 5px;
}

/* The moving track */
.as-side-slider .slides {
  display: flex;
  gap: 20px;
  transition: transform .45s ease;
  align-items: flex-end;
  overflow: visible;
  padding-right: 40px;
  /* Extra buffer so last item isn't cut */
}

/* Handle the 'align-start' request specifically */
.as-side-slider.align-start {
  align-items: flex-start !important;
}

.as-side-slider.align-start .as-side-viewport {
  padding-top: 10px;
  margin-top: 0;
}

.slide {
  flex: 0 0 180px;
  height: var(--slide-height);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
}

.slide.active {
  height: var(--slide-active-height);
  transform: translateY(-10px);
  border: 2px solid var(--dot-color-active);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide .name {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all ease-in-out 0.4s;
}

.slide.active .name {
  background: transparent;
}

.as-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-left: 30px;
  align-self: flex-end;
  z-index: 3;
}

.as-slider-left,
.as-slider-right {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #000;
  font-size: 1.2rem;
  cursor: pointer;
}


/* Responsive Fixes */
@media (max-width: 991px) {
  .navbar-brand img {
    max-height: 35px;
  }

  .as-slider {
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px 20px 20px;
    height: 100vh;
  }

  .as-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 30px;
    order: 1;
    z-index: 5;
  }

  .as-changing-widget {
    min-height: 150px;
    /* background: rgba(17, 17, 17, 0.85) !important; */
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 20px;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
  }

  .text-slide {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .text-slide h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
  }

  .text-slide p {
    font-size: 0.95rem;
  }

  .as-side-slider {
    width: 100%;
    order: 2;
    z-index: 5;
    overflow: visible !important;
  }

  .as-controls {
    flex-direction: row;
    margin: 15px 0;
    align-self: center;
    order: 3;
    z-index: 5;
  }

  .as-bar {
    display: none;
  }
}


@media (max-width: 576px) {
  :root {
    --slide-height: 120px;
    --slide-active-height: 135px;
  }

  .as-slider {
    padding-top: 100px;
  }
}

@media (min-width: 992px) {
  .navbar-nav .nav-link {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
  }

  .navbar-nav .nav-link:hover {
    color: var(--dot-color-active) !important;
  }

  /* Select the parent 'nav-item dropdown' */
  .navbar-nav .nav-item.dropdown:hover>.dropdown-menu {
    display: block;
    margin-top: 0;
    /* Ensures there is no gap that breaks the hover */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 0.3s ease;
  }

  /* Optional: Smooth fade-in animation */
  .dropdown-menu {
    display: block;
    /* We control visibility manually */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  .navbar-toggler {
    display: none;
  }
}

@media (max-width: 760px) {
  .as-side-slider {
    overflow: visible !important;
  }

  .as-side-viewport {
    padding-top: 15px;
  }
}

.image-stack {
  position: relative;
  height: 450px;
}

.stack-img-top {
  width: 70%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  border: 8px solid var(--bg-primary);
}

.stack-img-bottom {
  width: 70%;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.trips-section {
  background: var(--bg-grad-2) !important;
  transition: all 0.5s ease;
}

.trip-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
  background: var(--bg-secondary);
  border-radius: 20px;
}

.trip-card:hover {
  transform: translateY(-10px);
}

.trip-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.trip-card h4 {
  color: #fff;
}

.trip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all ease-in-out .4s;
  color: #ffffff;
}

.trip-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--dot-color-active);
  color: #000;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.8rem;
  z-index: 3;
}

@media (max-width: 767px) {
  .trip-card img {
    height: 220px;
  }

  .trip-overlay {
    padding: 15px !important;
  }

  .trip-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .trip-badge {
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    font-size: 0.7rem;
  }

  .trip-card .btn-sm {
    padding: 4px 8px !important;
    font-size: 0.7rem;
  }

  .trip-card .fs-4 {
    font-size: 1.1rem !important;
  }
}

/* --- "Curated Untidy" Aesthetic for Signature Trips --- */

.tripSwiper {
  padding: 80px 0 120px !important;
  width: 100%;
}

.trip-card-slide {
  height: 480px;
  background: #000;
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  transform: scale(0.9);
  opacity: 0.5;
  /*filter: grayscale(1);*/
  color: #ffffff !important;
  border: 1px solid var(--card-border);
}

/* Apply "Untidy" offsets to the INNER card only to avoid breaking Swiper layout */
/* .swiper-slide:nth-child(odd) .trip-card-slide {
  transform: translateY(-30px) rotate(-3deg) scale(0.9);
}

.swiper-slide:nth-child(even) .trip-card-slide {
  transform: translateY(30px) rotate(3deg) scale(0.9);
} */

/* Vary Heights for Organic Look */
/*.swiper-slide:nth-child(3n) .trip-card-slide {*/
/*  height: 520px;*/
/*}*/

/*.swiper-slide:nth-child(3n+1) .trip-card-slide {*/
/*  height: 450px;*/
/*}*/

/* Active Slide Highlight: Straighten and Scale Up */
.swiper-slide-active {
  z-index: 10;
}

.swiper-slide-active .trip-card-slide {
  transform: translateY(0) rotate(0) scale(1.1) !important;
  opacity: 1;
  filter: grayscale(0);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  border-color: var(--dot-color-active);
}

.trip-card-slide .card-img-overlay {
  /* Stronger gradient: black at bottom to transparent at middle */
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.4) 40%,
      transparent 100%) !important;
  z-index: 5;
}

/* Explicitly target text elements to ensure they are white */
.trip-card-slide h3,
.trip-card-slide p,
.trip-card-slide span,
.trip-card-slide a {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* Adds a shadow for extra legibility */
}

.trip-card-slide a:hover {
  color: var(--dot-color-active) !important;
}


.trip-card-slide img {
  height: 100%;
  object-fit: cover;
}

.swiper-pagination-bullet {
  background: #fff !important;
  opacity: 0.3;
}

.swiper-pagination-bullet-active {
  background: var(--dot-color-active) !important;
  opacity: 1;
  width: 25px;
  border-radius: 5px;
}


/* Page Load Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply to Hero Content */
.as-content {
  animation: fadeInUp 1.2s ease-out forwards;
}

.as-side-slider {
  animation: slideInRight 1.2s ease-out 0.3s forwards;
  opacity: 0;
  /* Starts hidden, animation brings it in */
}

.as-bar {
  animation: fadeInUp 1s ease-out 0.5s forwards;
  opacity: 0;
}

/* Ensure navbar fades in from top */
.navbar {
  animation: fadeInUp 0.8s ease-out reverse backwards;
  /* Simple fade down */
  animation-direction: alternate-reverse;
}

/* Reveal Wrapper */
.reveal-box {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

/* The sliding curtain */
.reveal-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-blue);
  /* Your Sky Blue */
  transform: translateX(-101%);
  z-index: 2;
}

/* The Image inside */
.reveal-box img {
  opacity: 0;
  transition: opacity 0.1s 0.4s;
  /* Waits for the curtain to be halfway */
  display: block;
}

/* Animation Trigger (Activated by AOS or a class) */
.reveal-box.aos-animate::after {
  animation: revealCurtain 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.reveal-box.aos-animate img {
  opacity: 1;
}

@keyframes revealCurtain {
  0% {
    transform: translateX(-101%);
  }

  50% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(101%);
  }
}

/* Variation: Navy Curtain */
.reveal-navy::after {
  background-color: var(--primary-navy);
}

/* FIXED: Trigger animation when the parent card is animated by AOS */
[data-aos].aos-animate .reveal-box::after {
  animation: revealCurtain 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

[data-aos].aos-animate .reveal-box img {
  opacity: 1;
}

/* If you want to use it standalone (without a parent AOS container) */
.reveal-box.aos-animate::after {
  animation: revealCurtain 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.reveal-box.aos-animate img {
  opacity: 1;
}

/* 1. Zoom the image inside the reveal box on hover */
.trip-card:hover .reveal-box img {
  transform: scale(1.1);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 2. Make the badge pop */
.trip-card:hover .trip-badge {
  background-color: var(--primary-navy);
  color: #fff;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

/* 3. Enhance the overlay gradient */
.trip-card:hover .trip-overlay {
  background: linear-gradient(to top, rgba(10, 46, 80, 0.95) 20%, transparent 100%);
  transition: background 0.4s ease;
}

/* --- New Sections Styles --- */

/* Adventure Categories Section */
.adventure-categories {
  background: var(--bg-grad-1);
  transition: all 0.5s ease;
}

body.light-mode .section-divider path {
  fill: var(--bg-secondary);
}

.interest-card {
  position: relative;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.interest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.interest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: all 0.4s ease;
}

.interest-card:hover img {
  transform: scale(1.1);
}

.interest-card:hover .interest-overlay {
  background: linear-gradient(to top, rgba(10, 46, 80, 0.9) 0%, rgba(10, 46, 80, 0.4) 100%);
}

.interest-icon {
  width: 50px;
  height: 50px;
  background: var(--social-bg);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.interest-card:hover .interest-icon {
  background: #fff;
  color: #000;
  transform: translateY(-5px);
}

/* Trust Promise Section */
.trust-promise {
  background: var(--bg-grad-1);
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.trust-promise::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.promise-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 40px;
  border-radius: 24px;
  transition: all 0.4s ease;
  height: 100%;
}

.promise-card:hover {
  background: var(--input-bg);
  border-color: var(--dot-color-active);
  transform: translateY(-10px);
}

.promise-icon-wrapper {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #0d6efd, #0dcaf0);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

.promise-card h4 {
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.promise-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .interest-card {
    height: 300px;
  }
}

/* --- Archive & Single Page Styles --- */


.page-header {
  padding-top: 120px;
  /* Space for fixed navbar */
}

.trip-hero {
  padding-top: 120px;
  /* Space for fixed navbar */
  display: flex;
  flex-direction: column;
}

.trips-archive .form-control:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--dot-color-active);
  box-shadow: none;
  color: #fff;
}

body.light-mode .trips-archive .form-control {
  color: #111;
  border-color: #ddd;
}


.breadcrumb-item+.breadcrumb-item::before {
  color: var(--text-muted);
}

.itinerary-list h5 {
  margin-top: -2px;
}

.booking-sidebar .form-control {
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.booking-sidebar .form-control:focus {
  border-color: var(--dot-color-active);
  box-shadow: 0 0 15px rgba(13, 110, 253, 0.2);
}

.trip-details-page section h3 {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.trip-details-page section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--dot-color-active);
  border-radius: 2px;
}

/* Override for light mode description text */
body.light-mode .text-secondary.lead {
  color: #333 !important;
}

.main-gallery {
  background: var(--bg-grad-2);
  transition: all 0.5s ease;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 20px;
}

.gallery-item,
.gallery-item-large {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  cursor: pointer;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

/* Specific Bento Placements */
.gallery-grid .gallery-item:nth-child(2) {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-grid .gallery-item:nth-child(3) {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-grid .gallery-item:nth-child(4) {
  grid-column: span 1;
  grid-row: span 1;
}

.gallery-item img,
.gallery-item-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Floating Maximize Button */
.gallery-btn-maximize {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 3;
}

.gallery-item:hover,
.gallery-item-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--dot-color-active);
}

.gallery-item:hover .gallery-btn-maximize,
.gallery-item-large:hover .gallery-btn-maximize {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover img,
.gallery-item-large:hover img {
  transform: scale(1.1);
  filter: brightness(0.9);
}

.video-item .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  z-index: 2;
}

.video-item .play-overlay i {
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 0 20px rgba(13, 110, 253, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-item:hover .play-overlay {
  background: rgba(13, 110, 253, 0.2);
}

.video-item:hover .play-overlay i {
  transform: scale(1.15);
  color: var(--dot-color-active);
}

/* Lightbox Modal */
.as-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.as-lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.as-lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: #ff4757;
  transform: rotate(90deg);
}

/* Lightbox Navigation */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.lightbox-nav:hover {
  background: var(--dot-color-active);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 40px;
}

.lightbox-next {
  right: 40px;
}

/* Lightbox Thumbnails */
.lightbox-thumbnails {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
  max-width: 90vw;
  overflow-x: auto;
}

.thumb-item {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  flex: 0 0 60px;
}

.thumb-item.active {
  border-color: var(--dot-color-active);
  transform: scale(1.1);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.thumb-item:hover img,
.thumb-item.active img {
  opacity: 1;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .thumb-item {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
  }
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 15px;
  }

  .gallery-btn-maximize {
    opacity: 1;
    transform: translateY(0);
    width: 38px;
    height: 38px;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 10px;
  }

  .gallery-item-large,
  .gallery-grid .gallery-item:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Compact items for mobile grid */
  .gallery-grid .gallery-item:nth-child(even) {
    min-height: 180px;
  }

  .gallery-item,
  .gallery-item-large {
    height: 100%;
    position: relative;
    z-index: 1;
  }
}

/* Interest Cards (Adventure Categories) Mobile */
@media (max-width: 576px) {
  .interest-card {
    height: 200px;
  }

  .interest-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .interest-overlay {
    padding: 15px;
  }

  .interest-overlay h4 {
    font-size: 1rem;
  }
}

/* Promise Cards Mobile */
@media (max-width: 576px) {
  .promise-card {
    padding: 20px 15px;
  }

  .promise-icon-wrapper {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }

  .promise-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .promise-card p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* Testimonials Styles */
.testimonial-section {
  background: var(--bg-grad-accent);
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 40px;
  border-radius: 30px;
  text-align: center;
  transition: all 0.4s ease;
  height: 100%;
}

.testimonial-card:hover {
  border-color: var(--dot-color-active);
  transform: translateY(-10px);
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  object-fit: cover;
  border: 3px solid var(--dot-color-active);
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.testimonial-author h5 {
  font-weight: 700;
  margin-bottom: 5px;
}

.testimonial-stars {
  color: #ffc107;
  margin-bottom: 15px;
}

/* Video CTA Styles */
.video-cta {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.video-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.video-cta-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

.video-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.video-cta h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .video-cta h2 {
    font-size: 2.5rem;
  }
}

/* --- Animated SVG Shapes & Blobs --- */
.shape-blob {
  position: absolute;
  z-index: 0;
  opacity: 0.1;
  filter: blur(40px);
  pointer-events: none;
  animation: blobFloat 20s infinite alternate cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--dot-color-active);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: #0dcaf0;
  bottom: 100px;
  right: -50px;
  animation-duration: 15s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(100px, 50px) scale(1.1);
  }

  66% {
    transform: translate(-50px, 120px) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* --- Floating Animated Shapes --- */
.shape-floating {
  position: absolute;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
  background: var(--dot-color-active);
  transition: opacity 0.5s ease;
}

.shape-circle-1 {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  top: 15%;
  left: 5%;
  animation: floatAround 12s infinite ease-in-out;
}

.shape-square-1 {
  width: 30px;
  height: 30px;
  top: 60%;
  right: 8%;
  transform: rotate(45deg);
  animation: floatAround 18s infinite ease-in-out reverse;
  background: #0dcaf0;
}

.shape-circle-2 {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  bottom: 10%;
  left: 12%;
  animation: floatAround 15s infinite ease-in-out 2s;
}

@keyframes floatAround {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, 50px) rotate(10deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(-10deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

body.light-mode .shape-floating {
  opacity: 0.1;
}

/* --- Contact Us Section --- */
.contact-section {
  position: relative;
  background: var(--bg-grad-accent);
  transition: all 0.5s ease;
}

.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 30px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  border-color: var(--dot-color-active);
  background: var(--input-bg);
}

.contact-info-card h5 {
  color: var(--text-primary);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--dot-color-active);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

@media (max-width: 767px) {
  .contact-info-card {
    padding: 20px 10px !important;
    text-align: center;
    flex-direction: column !important;
    justify-content: center;
  }

  .contact-icon,
  .icon-wrap {
    margin: 0 auto 10px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }

  .contact-info-card h5 {
    font-size: 0.9rem !important;
    margin-bottom: 3px !important;
  }

  .contact-info-card p {
    font-size: 0.7rem !important;
  }
}

.contact-form-container {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.contact-form-container label {
  color: var(--text-primary);
}

/* --- Advanced Footer --- */
.advanced-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--card-border);
  padding: 100px 0 30px;
  color: var(--text-primary);
  transition: all 0.5s ease;
}

.footer-widget h5 {
  font-weight: 700;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
  color: var(--text-primary);
}

.footer-widget h5::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--dot-color-active);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--dot-color-active);
  transform: translateX(10px);
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 30px;
  margin-top: 50px;
}

.newsletter-box {
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 5px;
  display: flex;
}

.newsletter-box input {
  background: transparent;
  border: none;
  padding: 10px 20px;
  color: var(--text-primary);
  flex: 1;
}

.newsletter-box input:focus {
  outline: none;
}

.form-control,
.form-select {
  background-color: var(--input-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--input-bg);
  border-color: var(--dot-color-active);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* --- Blog Section & Pages --- */
.home-blog-section {
  background: var(--bg-grad-2);
}

.blog-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--card-border) !important;
  background: var(--card-bg) !important;
  backdrop-filter: blur(10px);
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
  border-color: var(--dot-color-active) !important;
}

.blog-img {
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.blog-card-h {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  backdrop-filter: blur(10px);
  padding: 15px;
  transition: all 0.3s ease;
}

.blog-card-h:hover {
  border-color: var(--dot-color-active) !important;
}

.blog-img-wrap {
  overflow: hidden;
  border-radius: 12px;
}

.blog-img-wrap img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card-h:hover .blog-img-wrap img {
  transform: scale(1.1);
}

.blog-archive .page-link {
  background: var(--card-bg);
  color: var(--text-primary);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-archive .page-item.active .page-link {
  background: var(--dot-color-active);
  color: #fff;
}

/* Post Header */
.post-header {
  min-height: 60vh;
  position: relative;
}

.blog-article {
  line-height: 1.8;
  color: var(--text-secondary);
}

.blog-article h3 {
  color: var(--text-primary);
  margin-top: 2rem;
}

.hover-primary:hover {
  color: var(--dot-color-active) !important;
}

/* Lightbox/Gallery Link in Blog (if needed) */
.blog-article img {
  transition: all 0.3s ease;
}

.blog-article img:hover {
  filter: brightness(1.1);
}

/* Blog swiper pagination color */
.blogSwiper .swiper-pagination-bullet {
  background: var(--text-muted);
}

.blogSwiper .swiper-pagination-bullet-active {
  background: var(--dot-color-active);
}

@media (max-width: 768px) {
  .blog-img-wrap img {
    height: 200px;
  }
}

/* Offcanvas Social Icons */
.offcanvas-social {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding-top: 25px;
  border-top: 1px solid var(--card-border);
  margin-top: 20px;
}

.offcanvas-social .social-icon {
  position: static;
  transform: none;
}

/* Contact & Legal Pages */
.contact-info-card {
  transition: all 0.3s ease;
  background: var(--nav-bg) !important;
  backdrop-filter: blur(10px);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  border-color: var(--bs-blue) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.legal-content .card {
  background: var(--nav-bg) !important;
  backdrop-filter: blur(10px);
}

.legal-content h2 {
  color: var(--bs-blue);
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

.legal-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--bs-orange);
  border-radius: 2px;
}

/* Page Headers Enrichment */
.page-header,
.post-header,
.trip-hero {
  min-height: 60vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px !important;
  position: relative;
  background-attachment: fixed !important;
  background-size: cover !important;
  background-position: center !important;
  overflow: hidden;
}

.page-header::before,
.post-header::before,
.trip-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.7) 0%, rgba(17, 17, 17, 0.4) 50%, rgba(253, 126, 20, 0.6) 100%);
  z-index: 1;
}

.page-header .container,
.post-header .container,
.trip-hero .container {
  position: relative;
  z-index: 2;
}


@media (max-width: 991px) {

  .page-header,
  .post-header,
  .trip-hero {
    min-height: 45vh;
    padding: 100px 0 60px !important;
    background-attachment: scroll !important;
  }
}

.page-header h1,
.post-header h1,
.page-header h2,
.post-header h2,
.trip-hero h1 {
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Specific fix for trip-details hero */
.trip-hero .container {
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mobile Optimizations for 2-per-row Trips */
@media (max-width: 767px) {
  .tripSwiper {
    padding: 40px 0 60px !important;
  }

  .trip-card-slide {
    height: 280px !important;
    border-radius: 15px !important;
  }

  .trip-card-slide h3 {
    font-size: 0.95rem !important;
    margin-bottom: 5px !important;
  }

  .trip-card-slide p {
    font-size: 0.75rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .trip-card-slide .card-img-overlay {
    padding: 12px !important;
  }

  .trip-card-slide .pt-3 {
    padding-top: 8px !important;
    font-size: 0.8rem;
  }

  .swiper-slide-active .trip-card-slide {
    transform: scale(1.05) !important;
  }
}

/* ========================================
   MOBILE OPTIMIZATIONS - COMPREHENSIVE
   ======================================== */

@media (max-width: 767px) {

  /* About Section */
  .about-section .display-5 {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }

  .about-section .lead {
    font-size: 1rem !important;
    line-height: 1.6;
  }

  .about-section .btn-lg {
    padding: 12px 30px !important;
    font-size: 0.95rem !important;
  }

  /* Optimized Image Stack for Mobile */
  .image-stack {
    height: 280px !important;
    margin-top: 50px;
  }

  .stack-img-top {
    width: 75% !important;
    top: 0;
    right: 0;
  }

  .stack-img-bottom {
    width: 75% !important;
    bottom: 0;
    left: 0;
  }

  /* Video CTA Section */
  .video-cta {
    min-height: 300px;
    height: 50vh;
  }

  .video-cta h2 {
    font-size: 1.75rem !important;
    margin-bottom: 15px !important;
  }

  .video-cta h6 {
    font-size: 0.75rem !important;
  }

  .video-cta .lead {
    font-size: 0.9rem !important;
    margin-bottom: 20px !important;
  }

  .video-cta .btn-lg {
    padding: 10px 25px !important;
    font-size: 0.85rem !important;
  }

  .video-cta .d-flex {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .video-cta .btn {
    width: 100%;
  }

  /* Why Mon Amour Section */
  .trust-promise .display-5 {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }

  .trust-promise .lead {
    font-size: 0.95rem !important;
    line-height: 1.5;
  }

  .trust-promise h6 {
    font-size: 0.75rem !important;
  }

  .trust-promise h4 {
    font-size: 1.1rem !important;
  }

  /* All Section Titles */
  .display-5 {
    font-size: 1.85rem !important;
    line-height: 1.3 !important;
  }

  .display-6 {
    font-size: 1.5rem !important;
  }

  h6.text-uppercase {
    font-size: 0.7rem !important;
    letter-spacing: 1.5px !important;
  }

  .tracking-widest {
    letter-spacing: 2px !important;
  }

  /* Section Padding Adjustments */
  section.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  .container.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Footer Optimizations */
  .advanced-footer {
    padding-top: 2rem !important;
  }

  .footer-widget h5 {
    font-size: 1.1rem !important;
    margin-bottom: 15px !important;
  }

  .footer-widget p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }

  .footer-links li {
    margin-bottom: 8px !important;
  }

  .footer-links a {
    font-size: 0.85rem !important;
  }

  .newsletter-box input {
    font-size: 0.85rem !important;
    padding: 10px 15px !important;
  }

  .footer-bottom {
    padding-top: 1.5rem !important;
    margin-top: 2rem !important;
  }

  .footer-bottom p,
  .footer-bottom a {
    font-size: 0.75rem !important;
  }
}

/* Offcanvas Collapse Menu Styles */
.offcanvas-body .nav-link[data-bs-toggle="collapse"] {
  cursor: pointer;
  transition: all 0.3s ease;
}

.offcanvas-body .nav-link[data-bs-toggle="collapse"]:hover {
  color: var(--dot-color-active) !important;
}

.offcanvas-body .nav-link[data-bs-toggle="collapse"] i {
  transition: transform 0.3s ease;
}

.offcanvas-body .nav-link[data-bs-toggle="collapse"]:not(.collapsed) i {
  transform: rotate(180deg);
}

.offcanvas-body .collapse ul {
  background: var(--input-bg);
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 10px;
}

.offcanvas-body .collapse ul li a {
  color: var(--text-secondary);
  transition: all 0.2s ease;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 0.95rem;
}

.offcanvas-body .collapse ul li a:hover {
  color: var(--dot-color-active);
  background: var(--card-bg);
  padding-left: 15px;
}

body.light-mode .offcanvas-body .collapse ul {
  background: var(--bg-secondary);
}

body.light-mode .offcanvas-body .collapse ul li a {
  color: var(--text-primary);
}

/* Navbar Toggler (Hamburger Menu) - Light Mode Fix */
body.light-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15, 23, 42, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

body.light-mode .navbar-scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15, 23, 42, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Dark Mode Toggler */
body:not(.light-mode) .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Ensure toggler is visible on scrolled navbar in light mode */
body.light-mode .navbar.navbar-scrolled .navbar-toggler {
  border-color: rgba(15, 23, 42, 0.1) !important;
}

body.light-mode .navbar.navbar-scrolled .navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* ========================================
   TRIP DETAILS PAGE - MOBILE OPTIMIZATIONS
   ======================================== */

@media (max-width: 767px) {

  /* Hero Section */
  .trip-hero .display-3 {
    font-size: 1.75rem !important;
    line-height: 1.2;
    margin-bottom: 15px !important;
  }

  .trip-hero .d-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 0.85rem;
  }

  .trip-hero .breadcrumb {
    font-size: 0.8rem;
  }

  /* Main Content Sections */
  .trip-details-page h3 {
    font-size: 1.3rem !important;
    margin-bottom: 20px !important;
  }

  .trip-details-page .lead {
    font-size: 0.95rem !important;
    line-height: 1.5;
  }

  .trip-details-page p {
    font-size: 0.9rem !important;
  }

  /* What's Included Section */
  .trip-details-page .col-md-6 {
    font-size: 0.85rem;
  }

  .trip-details-page .col-md-6 .d-flex {
    gap: 10px !important;
  }

  .trip-details-page .col-md-6 i {
    font-size: 1rem !important;
  }

  /* Itinerary Section */
  .itinerary-list h5 {
    font-size: 1rem !important;
  }

  .itinerary-list p {
    font-size: 0.85rem !important;
  }

  /* Booking Sidebar */
  .booking-sidebar {
    position: static !important;
    margin-top: 30px;
  }

  .booking-sidebar .card {
    margin-bottom: 20px;
  }

  .booking-sidebar h3 {
    font-size: 1.5rem !important;
  }

  .booking-sidebar .form-label {
    font-size: 0.75rem !important;
  }

  .booking-sidebar .form-control {
    font-size: 0.9rem !important;
    padding: 10px 12px !important;
  }

  .booking-sidebar .btn {
    font-size: 0.95rem !important;
    padding: 12px 20px !important;
  }

  .booking-sidebar .small {
    font-size: 0.75rem !important;
  }

  /* WhatsApp Booking Box */
  .booking-sidebar .mt-4 h5 {
    font-size: 1.1rem !important;
  }

  .booking-sidebar .mt-4 .fs-2 {
    font-size: 1.5rem !important;
  }

  /* Gallery in Trip Details */
  .trip-details-page .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: minmax(120px, auto) !important;
    gap: 8px !important;
  }

  .trip-details-page .gallery-item-large {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
  }

  /* Prevent horizontal scroll */
  .trip-details-page .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .trip-details-page .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .trip-details-page [class*="col-"] {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ===================== WHATSAPP FLOATING CHAT & TABS ===================== */
.chat-wrapper {
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  width: 90vw;
  max-width: 350px;
  border-radius: 16px;
  overflow: hidden;
  position: fixed;
  bottom: 90px;
  right: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
}

.chat-wrapper.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header {
  background: #128C7E;
  color: #ffffff;
  padding: 15px 20px 0;
  /* Adjusted padding for tabs */
  transition: background 0.3s ease;
}

.chat-header.facebook-bg {
  background: #0084FF;
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.header-profile .img-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
}

.header-profile .person-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.header-profile .header-content h5 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

.header-profile .header-content span {
  font-size: 12px;
  opacity: 0.9;
}

/* Tabs */
.chat-tabs {
  display: flex;
  gap: 20px;
  padding-bottom: 0;
}

.chat-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
}

.chat-tab:hover {
  color: rgba(255, 255, 255, 0.8);
}

.chat-tab.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Chat Body (Switchable) */
.chat-body {
  display: none;
  animation: fadeIn 0.3s ease;
}

.chat-body.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-center {
  background-color: #E5DDD5;
  background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
  padding: 20px;
  min-height: 200px;
}

.chat-center.facebook-theme {
  background-color: #f0f2f5;
  background-image: none;
}

.chat-message {
  background: #ffffff;
  padding: 10px 15px;
  border-radius: 0 10px 10px 10px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  max-width: 85%;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  color: #111;
}

.chat-message::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid #fff;
  border-left: 10px solid transparent;
}

.chat-message .time {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #999;
  margin-top: 4px;
}

.chat-footer {
  background: #fff;
  padding: 15px 20px;
}

.chat-btn {
  background: #25D366;
  color: #fff;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
}

.chat-btn:hover {
  background: #20b85c;
}

.chat-btn.facebook-btn {
  background: #0084FF;
}

.chat-btn.facebook-btn:hover {
  background: #0073e6;
}

/* Floating Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
}

.whatsapp-float-btn .icon-open {
  position: absolute;
  transition: all 0.3s;
  opacity: 1;
  transform: rotate(0deg);
}

.whatsapp-float-btn .icon-close {
  position: absolute;
  transition: all 0.3s;
  opacity: 0;
  transform: rotate(-90deg);
  font-size: 24px;
}

.whatsapp-float-btn.active .icon-open {
  opacity: 0;
  transform: rotate(90deg);
}

.whatsapp-float-btn.active .icon-close {
  opacity: 1;
  transform: rotate(0deg);
}

.whatsapp-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* --- Advanced Transfers Page Styles --- */

.transfers-section {
  background: var(--bg-tertiary);
  /* Use valid theme variable */
  min-height: 60vh;
  transition: background 0.5s ease;
}

body:not(.light-mode) .transfers-section {
  background: var(--bg-grad-2);
}

/* --- Premium Transfer Card --- */
.transfer-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
  position: relative;
  backdrop-filter: blur(10px);
}

/* Light Mode Card - Clean & Soft */
body.light-mode .transfer-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.05);
  backdrop-filter: none;
}

.transfer-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
  border-color: var(--dot-color-active);
}

body.light-mode .transfer-card:hover {
  box-shadow: 0 30px 60px -12px rgba(13, 110, 253, 0.15);
  border-color: var(--dot-color-active);
}

/* Image Area */
.transfer-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.transfer-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.transfer-card:hover .transfer-img-wrapper img {
  transform: scale(1.1);
}

.transfer-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  z-index: 1;
}

/* Vehicle Badge */
.transfer-vehicle-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .transfer-vehicle-badge {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  border-color: transparent;
}

/* Card Content */
.transfer-content {
  padding: 25px;
  position: relative;
}

.transfer-route-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.light-mode .transfer-route-title {
  color: var(--text-primary);
}

.transfer-route-arrow {
  color: var(--dot-color-active);
  font-size: 1rem;
}

.transfer-features {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .transfer-features {
  border-top-color: #f1f5f9;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

body.light-mode .feature-item {
  color: var(--text-secondary);
}

.feature-item i {
  color: var(--dot-color-active);
}

/* Price Tag */
.price-tag {
  text-align: right;
}

.price-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dot-color-active);
  line-height: 1;
}

.price-unit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body.light-mode .price-unit {
  color: var(--text-muted);
}

/* --- Premium Table Styles --- */
.custom-table {
  border-collapse: separate;
  border-spacing: 0 15px;
}

.custom-table thead th {
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  padding: 0 20px 10px;
}

body.light-mode .custom-table thead th {
  color: var(--text-secondary);
}

.custom-table tbody tr {
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

body.light-mode .custom-table tbody tr {
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.custom-table tbody td {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-style: solid none;
  padding: 25px;
  vertical-align: middle;
}

.custom-table tbody tr td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.custom-table tbody tr td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* Light Mode Borders */
body.light-mode .custom-table tbody td,
body.light-mode .custom-table tbody tr td:first-child,
body.light-mode .custom-table tbody tr td:last-child {
  border-color: #f1f5f9;
}


.custom-table tbody tr:hover {
  transform: scale(1.01);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.light-mode .custom-table tbody tr:hover {
  background: #ffffff;
  border-color: var(--dot-color-active);
  box-shadow: 0 15px 40px rgba(13, 110, 253, 0.1);
}

/* Ensure text inside table adapts */
.custom-table .text-white {
  color: #fff !important;
}

body.light-mode .custom-table .text-white {
  color: var(--text-primary) !important;
}

.custom-table .text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

body.light-mode .custom-table .text-white-50 {
  color: var(--text-muted) !important;
}

/* Toggle Buttons */
.view-switcher .btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.view-switcher .btn.active {
  background: var(--dot-color-active);
  border-color: var(--dot-color-active);
  color: #fff;
  box-shadow: 0 0 15px rgba(13, 110, 253, 0.4);
}

body.light-mode .view-switcher .btn {
  border-color: #e2e8f0;
  color: var(--text-secondary);
}

body.light-mode .view-switcher .btn:hover {
  background: #f8fafc;
}

body.light-mode .view-switcher .btn.active {
  background: var(--dot-color-active);
  color: #fff;
  border-color: var(--dot-color-active);
}


/* --- Advanced Air Tickets Page Styles --- */

.flight-header {
  margin-bottom: 0 !important;
}

.flight-search-box {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  /* max-width removed */
  margin: 0 auto;
}

body.light-mode .flight-search-box {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Form Styles */
.flight-form .input-group-flight {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

body.light-mode .flight-form .input-group-flight {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.flight-form .input-group-flight:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--dot-color-active);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

body.light-mode .flight-form .input-group-flight:focus-within {
  background: #fff;
}


.cabin-class-select select {
  color: #fff !important;
}

body.light-mode .cabin-class-select select {
  color: #1e293b !important;
}




.flight-input {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  padding-top: 28px !important;
  /* Reduced from 40px */
  padding-bottom: 2px !important;
  padding-left: 55px !important;
  height: 65px;
  /* Reduced from 80px for a "more less" / compact feel */
  font-weight: 700;
  font-size: 1rem;
  box-shadow: none !important;
  width: 100%;
  line-height: normal;
}

body.light-mode .flight-input {
  color: #0f172a !important;
  /* Darker slate for better contrast */
}

/* Date Input Specifics */
.flight-input[type="date"] {
  padding-right: 10px !important;
  font-family: 'Outfit', sans-serif;
}

/* Force hide the placeholder/mm-dd-yyyy text when valid or focused if possible, 
   but ensuring we align the text properly */
.flight-input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  display: flex;
}

.flight-input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  cursor: pointer;
  filter: invert(1);
  width: 20px;
  height: 20px;
}

body.light-mode .flight-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0);
}

.flight-label {
  position: absolute;
  top: 10px;
  /* Adjusted up */
  left: 55px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  pointer-events: none;
  line-height: 1;
}

body.light-mode .flight-label {
  color: #64748b;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: var(--dot-color-active);
  font-size: 1.2rem;
  /* Reduced from 1.4rem */
  z-index: 1;
  pointer-events: none;
}

/* Swap Button */
.btn-icon-swap {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: #fff;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.light-mode .btn-icon-swap {
  background: #fff;
  color: var(--dot-color-active);
  border-color: #e2e8f0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-icon-swap:hover {
  background: var(--dot-color-active);
  color: #fff;
  transform: rotate(180deg) scale(1.1);
}

/* Submit Button */
.flight-btn-submit {
  border-radius: 16px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.4);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.flight-btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(13, 110, 253, 0.6);
}

/* Radio Buttons */
.flight-tabs .form-check-input {
  width: 1.2em;
  height: 1.2em;
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.flight-tabs .form-check-input:checked {
  background-color: var(--dot-color-active);
  border-color: var(--dot-color-active);
}

body.light-mode .flight-tabs .form-check-input {
  border-color: #94a3b8;
}

body.light-mode .flight-tabs .form-check-label {
  color: #1e293b !important;
}

/* Helper to partition inputs */
.border-white-10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.light-mode .border-white-10 {
  border-color: #cbd5e1 !important;
}

/* Other Sections */
.bg-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.bg-glass:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

body.light-mode .bg-glass {
  background: #fff;
  border-color: #e2e8f0 !important;
}

.object-fit-cover {
  object-fit: cover;
}

.bg-gradient-dark {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* ----------------------------------------------------
   Select2 & Autocomplete Styling - Dark Glass Theme
   ---------------------------------------------------- */

/* Select2 Container */
.select2-container .select2-selection--single {
  height: 80px !important;
  /* Match input height if needed, or less for specific usage */
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
}

/* Specific overrides for our context */
.cabin-class-select .select2-container .select2-selection--single {
  height: auto !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #fff !important;
  font-weight: 700 !important;
  padding-left: 0 !important;
  line-height: normal !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  display: none !important;
  /* Hide default arrow if we want custom or none */
}

/* Dropdown Menu - Glassmorphism */
.select2-dropdown.glass-dropdown {
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  padding: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.select2-results__option {
  color: #fff;
  padding: 10px 15px;
  font-size: 0.9rem;
  border-radius: 8px;
  margin-bottom: 2px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--dot-color-active) !important;
  color: white !important;
}

.select2-container--default .select2-results__option--selected {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Light Mode Overrides */
body.light-mode .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #0f172a !important;
}

body.light-mode .select2-dropdown.glass-dropdown {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
}

body.light-mode .select2-results__option {
  color: #1e293b;
}

/* 
   jQuery UI Autocomplete Styling 
*/
.ui-autocomplete {
  background: rgba(17, 17, 17, 0.95) !important;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px;
  color: #fff;
  padding: 5px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  max-height: 300px;
  overflow-y: auto;
  z-index: 9999 !important;
  /* Ensure it's on top */
}

.ui-menu-item {
  padding: 0;
  margin-bottom: 2px;
}

.ui-menu-item-wrapper {
  padding: 10px 15px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.8) !important;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
}

.ui-menu-item-wrapper:hover,
.ui-state-active {
  background: var(--dot-color-active) !important;
  color: #fff !important;
  border: none !important;
  margin: 0 !important;
}

.airport-item {
  display: flex;
  flex-direction: column;
  padding: 2px 0;
}

.airport-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.airport-name-text {
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 10px;
  font-size: 0.95rem;
}

.airport-code {
  font-weight: 800;
  color: #fd7e14;
  /* Orange accent */
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.airport-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  padding-left: 0;
}

/* Light Mode Overrides */
body.light-mode .airport-name-text {
  color: #1e293b;
}

body.light-mode .airport-sub {
  color: #64748b;
}

body.light-mode .airport-code {
  background: rgba(13, 110, 253, 0.1);
  color: var(--bs-primary);
}

/* Light Mode Autocomplete */
body.light-mode .ui-autocomplete {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

body.light-mode .ui-menu-item-wrapper {
  color: #1e293b !important;
}

body.light-mode .airport-code {
  background: rgba(0, 0, 0, 0.05);
  color: var(--bs-primary);
}

/* Flight Card Styles */
.flight-line {
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  top: -10px;
  margin-top: 20px;
}

.flight-line:after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--bs-primary);
  border-radius: 50%;
}

.flight-line:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

/* Feature Card Styles */
.feature-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.light-mode .feature-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--bs-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.light-mode .feature-card:hover {
  background: #ffffff;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(253, 126, 20, 0.1));
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(253, 126, 20, 0.2));
}

.feature-icon-wrapper i {
  font-size: 2rem;
  background: linear-gradient(135deg, #0d6efd, #fd7e14);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Premium Flight Search Box */
.flight-search-container {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.light-mode .flight-search-container {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-control-flight {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  height: 50px;
  padding-left: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.light-mode .form-control-flight {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

.form-control-flight:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15) !important;
}

.light-mode .form-control-flight:focus {
  background: #fff !important;
}

.form-control-flight::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.light-mode .form-control-flight::placeholder {
  color: #94a3b8;
}

.input-icon-flight {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bs-primary);
  z-index: 5;
  pointer-events: none;
}

.btn-search-glow {
  background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
  border: none;
  color: white;
  height: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
  transition: all 0.3s ease;
}

.btn-search-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.6);
  color: white;
}

.flight-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 5px;
  display: block;
  font-weight: 600;
}

.light-mode .flight-label {
  color: #64748b;
}

/* Fix Label positioning override */
.flight-search-container .flight-label {
  position: static !important;
  display: block;
  margin-bottom: 5px;
}

/* Passenger Picker Popover */
.passenger-popover {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 15px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  margin-top: 10px;
}

.light-mode .passenger-popover {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.passenger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.passenger-row:last-child {
  margin-bottom: 0;
}

.passenger-label {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.passenger-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.light-mode .passenger-label {
  color: #334155;
}

.light-mode .passenger-sub {
  color: #64748b;
}

.counter-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-counter {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.light-mode .btn-counter {
  border-color: #cbd5e1;
  color: #334155;
}

.btn-counter:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff !important;
}

.passenger-count {
  font-weight: 700;
  width: 20px;
  text-align: center;
  color: #fff;
}

.light-mode .passenger-count {
  color: #334155;
}

/* Accommodations Card Styles */
.accom-card {
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  height: 100%;
}

.light-mode .accom-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.accom-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--bs-primary);
}

/* Destination Cards */
.destination-card {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  cursor: pointer;
}

.destination-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.hover-scale {
  transition: transform 0.8s ease;
}

.destination-card:hover .hover-scale {
  transform: scale(1.1);
}

.bg-gradient-to-t {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
}

.accom-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.accom-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.accom-card:hover .accom-img-wrapper img {
  transform: scale(1.1);
}

.accom-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.accom-rating {
  color: #ffc107;
  font-size: 0.9rem;
}

.accom-price-tag {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bs-primary);
}

.accom-price-period {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

.light-mode .accom-price-period {
  color: #64748b;
}

/* --- Select2 Customization --- */
.select2-container .select2-selection--single {
  height: 50px;
  background-color: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  color: var(--text-primary);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-primary);
  padding-left: 0;
  line-height: normal;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px;
  right: 15px;
}

.select2-dropdown {
  background-color: var(--nav-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  z-index: 9999;
}

.select2-search--dropdown .select2-search__field {
  background-color: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 8px;
}

.select2-results__option {
  color: var(--text-primary);
  padding: 10px 15px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--dot-color-active);
  color: #fff;
}

.select2-container--default .select2-results__option--selected {
  background-color: rgba(13, 110, 253, 0.2);
}



/* =========================================
   Accommodations Page Styles
   ========================================= */

/* Background Gradient for Light/Dark Modes */
.bg-gradient-dark {
  background: var(--bg-grad-1);
  /* Uses existing variables which flip automatically */
}

/* Accommodations Card */
.accom-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.accom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Light Mode Card Shadow Enhancement */
body.light-mode .accom-card {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  /* Softer shadow for light mode */
  background: white;
  /* Ensure it's white, not transparent */
  border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .accom-card:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Image Wrapper and Badge */
.accom-img-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.accom-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.accom-card:hover .accom-img-wrapper img {
  transform: scale(1.1);
}

.accom-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

/* Rating Star */
.accom-rating {
  background: rgba(253, 126, 20, 0.1);
  /* Orange tint */
  color: #fd7e14;
  /* Bootstrap orange */
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Price Tag */
.accom-price-tag {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.accom-price-period {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Glassmorphism Effect */
.bg-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Override border-secondary for glass cards in dark mode for subtler look */
body:not(.light-mode) .bg-glass.border-secondary {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Glass Effect in Light Mode - Make it visible! */
body.light-mode .bg-glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-mode .bg-glass.border-secondary {
  border-color: rgba(0, 0, 0, 0.05) !important;
}


/* Hover Effect for Experience Cards */
.card-hover-effect {
  transition: all 0.3s ease;
}

.card-hover-effect:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  /* Lighter on hover in dark */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.light-mode .card-hover-effect:hover {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* Darker shadow in light */
}

/* Form Controls and Inputs */
.form-control-flight {
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding-top: 12px;
  padding-bottom: 12px;
}

.form-control-flight:focus {
  background: var(--input-bg);
  color: var(--text-primary);
  border-color: var(--dot-color-active);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

body.light-mode .form-control-flight {
  background: #fff;
  border-color: #e2e8f0;
  color: #333;
}

body.light-mode .form-control-flight:focus {
  border-color: var(--dot-color-active);
}

/* Input Icons */
.input-icon-flight {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 5;
}

/* Passenger Popover */
.passenger-popover {
  display: none;
  position: absolute;
  top: 100%;
  /* Below input */
  left: 0;
  width: 300px;
  background: rgba(17, 17, 17, 0.95);
  /* Use theme bg */
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  /* Enhance glass effect */
  border-radius: 15px;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  margin-top: 10px;
}

body.light-mode .passenger-popover {
  background: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-color: #e2e8f0;
}

.passenger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.passenger-label {
  font-weight: 600;
  color: var(--text-primary);
}

.passenger-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.counter-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-counter {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-counter:hover {
  background: var(--dot-color-active);
  color: #fff;
  border-color: var(--dot-color-active);
}

.passenger-count {
  font-weight: 700;
  width: 20px;
  text-align: center;
  color: var(--text-primary);
}

/* Active Tab Style */
.active-tab {
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
}

.hover-white:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.light-mode .hover-white:hover {
  background: rgba(0, 0, 0, 0.05);
  /* Darken slightly on hover in light mode */
  color: #111;
  /* Keep text dark */
}

/* Fix specifically for buttons in light mode Hero Search */
body.light-mode .btn-outline-light {
  color: #000 !important;
  /* Keep text white on dark hero overlay? */
  border-color: #000;
}

/* Wait, the hero has a DARK overlay even in light mode: <div class='bg-dark' style='opacity: 0.4;'> */
/* So the search buttons inside the hero should remain light-styled even in light mode because they are on a dark image */


/* Fix for Text Visibility in Dark Mode */
.text-muted {
  color: var(--text-muted) !important;
}

/* Fix for Search Toggles in Light Mode Hero Section */
/* Fix for Search Toggles in Light Mode Hero Section */
/* Since hero always has dark bg, buttons should always be white, even in light mode */
body.light-mode .section-hero .btn-outline-light,
body.light-mode .page-header .btn-outline-light,
body.light-mode .hero-section .btn-outline-light,
body.light-mode .hover-white {
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* FIX: Flight Search Container in Light Mode is bright, so buttons must be colored */
body.light-mode .flight-search-container .btn-outline-light {
  color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

body.light-mode .section-hero .btn-outline-light:hover,
body.light-mode .page-header .btn-outline-light:hover,
body.light-mode .hero-section .btn-outline-light:hover,
body.light-mode .hover-white:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

body.light-mode .flight-search-container .btn-outline-light:hover {
  background: var(--bs-primary) !important;
  color: #ffffff !important;
  border-color: var(--bs-primary) !important;
}

/* Ensure active tab maintains contrast */
body.light-mode .active-tab {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
  border: none;
}

/* Specific fix for the Extraordinary Section text in Dark Mode */
/* If the p tag inside .bg-glass isn't picking up white, force it */
body:not(.light-mode) .bg-glass p {
  color: rgba(255, 255, 255, 0.7);
}

body:not(.light-mode) .bg-glass h4,
body:not(.light-mode) .bg-glass h3,
body:not(.light-mode) .bg-glass .display-5 {
  color: #ffffff;
}



/* =========================================
   Flight/Accommodations Search Box Styles
   ========================================= */

.flight-search-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.flight-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff;
  /* Always white on hero */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Ensure icons inside inputs are visible */
.input-icon-flight {
  color: var(--text-muted);
}

/* If in light mode, input is white, so icon should be dark (default text-muted in light mode is dark gray) */
/* If in dark mode, input is glass, icon is light gray */

/* Specific fix for Guest Toggles inside Popover */
.btn-counter {
  border-color: var(--card-border);
}

body.light-mode .btn-counter {
  border-color: #dee2e6;
  color: #333;
}

body.light-mode .btn-counter:hover {
  background: var(--bs-primary);
  color: #fff;
}



/* =========================================
   Booking Form & UX Fixes
   ========================================= */

/* Booking Card Container */
.booking-card {
  background: var(--card-bg);
  /* Dark by default */
  border: 1px solid var(--card-border);
}

body.light-mode .booking-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Booking Form Inputs */
/* Default (Dark Mode) - override Bootstrap */
.booking-card .form-control,
.booking-card .form-select {
  background-color: var(--input-bg);
  border-color: var(--card-border);
  color: var(--text-primary);
}

.booking-card .form-control:focus,
.booking-card .form-select:focus {
  background-color: var(--input-bg);
  color: var(--text-primary);
  border-color: var(--dot-color-active);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Light Mode Inputs */
body.light-mode .booking-card .form-control,
body.light-mode .booking-card .form-select {
  background-color: #f8f9fa;
  /* Light grey bg */
  border-color: #dee2e6;
  color: #333;
}

body.light-mode .booking-card .form-control:focus,
body.light-mode .booking-card .form-select:focus {
  background-color: #fff;
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Labels */
body.light-mode .booking-card .form-label {
  color: #495057 !important;
  /* Force darker text for labels in light mode */
}

/* Muted text in Light Mode Booking Card */
body.light-mode .booking-card .text-muted {
  color: #6c757d !important;
}



/* =========================================
   Mobile Optimization for Booking UI
   ========================================= */

@media (max-width: 991px) {

  /* Disable sticky sidebar on mobile/tablet since it stacks to bottom */
  .booking-sidebar.sticky-top {
    position: static !important;
    margin-top: 30px;
  }

  /* Ensure padding is comfortable but not excessive */
  .booking-card .p-4 {
    padding: 1.5rem !important;
    /* Bootstrap p-4 is 1.5rem, reinforcing consistency */
  }

  /* Compact header for booking card on mobile */
  .booking-card h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {

  /* Even smaller padding for very small screens */
  .booking-card .p-4 {
    padding: 1.25rem !important;
  }
}