body {
  /* WPForms specific */
  font-family: "Poppins", sans-serif !important;
}

html {
    scrollbar-gutter: stable;
}

/* Custom CSS for Search Bar and Radio Buttons */
/* desktop view */
.search-bar {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  column-gap: 5px;
}

.search-num {
  justify-content: space-between !important;
}

.hidden-search {
  transition: transform 0.4s ease-in-out;
  transform: translateY(150%) !important;
}

.hidden-search svg {
  height: 20px !important;
}

.num-css {
  display: flex;
  align-items: center;
}

.search-bar svg {
  height: 20px;
}

.search-bar {
  color: black;
}

.top-search-bar {
  width: auto;
}

/* mobile view
.search-bar-mobile {
  color: white !important;
  fill: white !important;
}

.mobile-view {
  color: white !important;
  background-color: transparent !important;
} */

/* radio button disppear */
input.radio-button,
.radio-button-mobile {
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
  width: 0;
  display: none;
}

.type-of-way-mobile-one {
  display: grid;
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr !important;
  grid-column-gap: 0px !important;
  grid-row-gap: 0px !important;
}

.type-of-way-mobile-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important;
  grid-template-rows: 1fr !important;
  grid-column-gap: 10px !important;
  grid-row-gap: 0px !important;
}

.search-bar-between {
  justify-content: space-between;
}

/* input try */
.radio-button:checked + .trip-type-label {
  background-color: #172a77;
  color: white !important;
}

.radio-button:checked + .trip-type-label svg {
  fill: white !important;
}

.radio-button-mobile:checked + .trip-type-label-mobile {
  background-color: #ffffff;
  color: black;
}

.radio-button-mobile:checked + .trip-type-label-mobile svg {
  fill: black;
}

#type-way-one-mobile + .trip-type-label {
  background-color: white;
}

.trip-type-label-mobile,
.trip-type-label-mobile svg {
  color: white;
  fill: white;
}

.trip-type-label-mobile {
  border: solid 2px white;
}

/* trip type selector */
.trip-type-selector {
  display: flex;
  flex-direction: row;
}

/* This targets all dropdown selects on your site */
select,
select option,
.trip-type-selector select {
  /* WPForms specific */
  font-family: "Poppins", sans-serif !important;
}

.trip-type-selector-mobile {
  height: 54px;
  width: 100%;
  display: flex;
  flex-direction: row;
  column-gap: 10px;
}

.trip-type-selector svg {
  fill: black;
  margin-right: 5px;
}

.trip-type-label,
.trip-type-label-mobile {
  padding: 12px 16px;
  border-radius: 5px;
  justify-items: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trip-type-label-mobile {
  width: 50%;
}

.trip-type-label-mobile svg {
  height: 20px;
  margin-right: 10px;
}

/* radio button */
.radio-button label {
  color: black;
  font-size: 15px;
}

/* buttons configuration */
.select-search,
.date-search,
.quantity-search {
  border: none !important;
  background-color: transparent !important;
  padding: 0 !important;
}

/* input number width */
.quantity-search {
  width: 50px !important;
}
.quantity-search::-webkit-outer-spin-button,
.quantity-search::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* input number width mobile */
.quantity-search {
  width: 30px !important;
}

/* Hide the default spinner buttons for Firefox */
.quantity-search[type="number"] {
  -moz-appearance: textfield;
}

/* input number configuration */
.number-button {
  background-color: black !important;
  padding: 2px !important;
  color: white !important;
  border: none !important;
  font-size: 15px !important;
}

.passenger-mobile {
  justify-content: space-between;
}

/* input number configuration in mobile */
.number-button-mobile {
  background-color: black !important;
  padding: 2px !important;
  color: white !important;
  border: none !important;
}

.num-label {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
}

.date-label {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.span-label-date {
  display: none !important;
}

/* search button configuration*/
.search-button a {
  height: 50px !important;
  align-content: center;
}

.search-button a:hover {
  color: white !important;
  fill: white !important;
}

/* footer hover state */
.icon-footer:hover {
  background-color: #c60e0e !important;
}

.icon-footer:hover svg {
  fill: white !important;
}

/* custom styles for nav menu */
#nav-main::before {
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: white;
  z-index: 1;
  transition: height 10ms ease;
}

#nav-main.active::before {
  height: 100%;
}

search date #search-date {
  font-size: 13px !important;
}

#bringing-you-banner {
  background-image: radial-gradient(at center, #c60e0e 10%, #c60e0e00 80%);
  background-size: 150% 150%;
  background-repeat: no-repeat;
  animation: moveGradient 10000ms infinite ease-in-out;
}

/* custom styles for nav menu */
.carousel-card-active {
  background-image: radial-gradient(
    circle at bottom left,
    #fb7712 20%,
    #fb771200 60%
  ) !important;
}

.carousel-card-not-active {
  background-image: linear-gradient(
    180deg,
    #ec333800 30%,
    #000000 100%
  ) !important;
}

@keyframes moveGradient {
  0% {
    background-position: 50% 0%;
  }
  33% {
    background-position: 100% 50%;
  }
  66% {
    background-position: 100% -0%;
  }
  100% {
    background-position: 50% 0%;
  }
}

/* swipe mobile */
@media (max-width: 420px) {
  #carousel-destination .swiper-slide-prev {
    transform: translateX(20%) scale(0.9) !important;
    z-index: -1;
    transition: transform 0.4s ease;
  }

  #carousel-destination .swiper-slide-next {
    transform: translateX(-20%) scale(0.9) !important;
    z-index: -1;
    transition: transform 0.4s ease;
  }

  #carousel-bringing .swiper-slide-prev {
    transform: translateX(15%) scale(0.9) !important;
    z-index: -1;
    transition: transform 0.4s ease;
  }

  #carousel-bringing .swiper-slide-next {
    transform: translateX(-15%) scale(0.9) !important;
    z-index: -1;
    transition: transform 0.4s ease;
  }

  #bringing-you-banner {
    background-image: radial-gradient(at center, #c60e0e 10%, #c60e0e00 80%);
    background-size: 200% 100%;
    animation: moveGradient 10000ms infinite ease-in-out;
  }

  /* input number configuration */
  .number-button {
    background-color: black !important;
    padding: 0px 5px 0px 5px !important;
    color: white !important;
    border: none !important;
    font-size: 20px !important;
  }

  .timeline-header {
    font-size: 40px !important;
    font-weight: 700 !important;
    color: white !important;
    transition: opacity 0.3s ease-in-out !important;
  }
}

.Kaligtasan.is-active {
  background-color: #ffeeb3 !important;
  transition: background-color 0.5s ease;
}

/* timeline */
/* Timeline Container */
.timeline-wrapper {
  display: flex; /* flex */
  align-items: flex-start; /* items-start */
  justify-content: space-between; /* justify-between */
  position: relative; /* relative */
}

/* Timeline Item (Year Marker + Label) */
.timeline-item {
  display: flex; /* flex */
  flex-direction: column-reverse; /* flex-col */
  align-items: center; /* items-center */
  flex: none; /* flex-none */
  width: 2rem; /* w-8 */
}

/* Timeline Marker (Dot) */
.timeline-marker {
  width: 1rem; /* w-4 */
  height: 1rem; /* h-4 */
  border-radius: 9999px; /* rounded-full */
  box-shadow: 0 0 0 4px; /* ring-4 */
  background-color: #9ca3af; /* bg-gray-400 */
  margin-top: 10px; /* mt-[10px] */
  z-index: 20; /* z-20 */
  color: transparent;
  /* Transitions */
  transition: background-color 0.5s ease, box-shadow 0.5s ease, color 0.5s ease;
}

/* Active Marker Styling */
.timeline-marker.active-style {
  background-color: #ffdb03; /* bg-blue-600 */
}

/* Timeline Label (Year Text) */
.timeline-label {
  font-size: 32px; /* text-sm */
  font-weight: 700; /* font-semibold */
  color: #6b7280; /* text-gray-600 */
  margin-top: 5vh; /* mt-2 */
  white-space: nowrap; /* whitespace-nowrap */
  transition: color 0.5s ease;
}
.timeline-label.active-label {
  color: #c60e0e; /* text-gray-800 */
  font-weight: 700; /* font-extrabold */
  font-size: 48px;
  margin-top: 1.7vh;
}

/* Segment (Connecting Line) */
.timeline-segment {
  height: 4px; /* h-1 (adjusted for visibility, was 0.25rem) */
  background-color: #e5e7eb; /* bg-gray-200 */
  flex-grow: 1; /* flex-grow */
  position: relative; /* relative */
  align-self: flex-start; /* self-start */
  margin-top: 7.8%; /* mt-[13px] (to align with marker center) */
  z-index: 10; /* z-10 */

  /* Transitions */
  transition: background-color 0.5s ease, opacity 0.3s ease;
}

/* Active Segment Color */
.timeline-segment.active-segment {
  background-color: #c60e0e; /* bg-blue-600 */
}

/* Continuation Line (Short segment at the end) */
#continuation-line {
  width: 1rem; /* w-4 */
  flex: none; /* flex-none */
  background-color: #d1d5db; /* bg-gray-300 */
  opacity: 0;
}

/* Control Button */
.control-button {
  color: white; /* text-white */
  font-weight: 700; /* font-bold */
  transition: all 0.3s ease-in-out; /* transition duration-300 ease-in-out */
  cursor: pointer;
  transform-style: preserve-3d;
}
/* Define the left-to-right (Y-axis) rotation animation */
@keyframes spin-left {
  from {
    transform: rotateY(180deg);
  }
  to {
    transform: rotateY(0deg);
  }
}

/* Class to apply the animation to the element */
.spin-left {
  /* Now using 1s duration and ease-out for a clean, single rotation. */
  animation: spin-left 1s ease-out 1 forwards;
}

@keyframes spin-right {
  from {
    transform: rotateY(180deg);
  }
  to {
    transform: rotateY(0deg);
  }
}

/* Class to apply the animation to the element */
.spin-right {
  /* Now using 1s duration and ease-out for a clean, single rotation. */
  animation: spin-right 1s ease-out 1 forwards;
}

/* Class to apply the animation to the element */
.timeline-img {
  transition: opacity 0.3s ease !important;
  background-size: cover;
  background-position: center;
}

/* Button Colors */
.btn-blue {
  background-color: #2563eb; /* bg-blue-600 */
}
.btn-blue:hover {
  background-color: #1d4ed8; /* hover:bg-blue-700 */
}
.btn-orange {
  background-color: #ea580c; /* bg-orange-600 */
}
.btn-orange:hover {
  background-color: #c2410c; /* hover:bg-orange-700 */
}
.btn-red {
  background-color: #dc2626; /* bg-red-600 */
}
.btn-red:hover {
  background-color: #b91c1c; /* hover:bg-red-700 */
}

/* SVG Styling */
.control-button svg {
  width: 5rem; /* h-8 */
  height: 5rem; /* w-8 */
}

.timeline-paragraph {
  font-size: 14px !important; /* text-lg */
  font-weight: 400 !important; /* font-medium */
  color: white !important; /* text-gray-800 */
  transition: opacity 0.3s ease-in-out !important;
}

.timeline-header {
  font-size: 56px; /* text-lg */
  font-weight: 700 !important; /* font-medium */
  color: white !important; /* text-gray-800 */
  transition: opacity 0.3s ease-in-out !important;
}

/* CHANGE: CSS Media Query for Mobile (Max 640px) */
@media (max-width: 640px) {
  .timeline-card {
    padding: 1.5rem; /* p-6 */
  }
  .control-button svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  /* Segment (Connecting Line) */
  .timeline-segment {
    margin-top: 43.5%; /* mt-[13px] (to align with marker center) */
  }

  /* Timeline Item (Year Marker + Label) */
  .timeline-item {
    display: flex; /* flex */
    flex-direction: column-reverse; /* flex-col */
    align-items: center; /* items-center */
    width: 10px;
  }

  .timeline-label.active-label {
    color: #c60e0e; /* text-gray-800 */
    font-weight: 700; /* font-extrabold */
    font-size: 48px;
    margin-top: 1.7vh;
  }

  .timeline-label {
    margin-top: 4.7vh;
  }

  #timeline-container {
    margin-left: 7%;
  }
}