* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #F4F6F8;
}

.no-scroll {
  overflow-y: hidden;
  overflow-x: hidden;
}

.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9998;
}

.loader-container {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(750px, 92vw);
  z-index: 9999;
  text-align: center;
  color: #000;
  background-color: #fff;
  padding-bottom: 12px;
}

.loader-container .slide {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.55s ease;
  display: none;
}

.loader-container .slide.is-active {
  display: block;
  opacity: 1;
}

.loader-caption {
  margin-top: 18px;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.loader-dots {
  margin-top: 8px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  padding-bottom: 16px;
}

.loader-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: loaderDot 1s infinite ease-in-out;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes loaderDot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.loader-hidden {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container-flight {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* left area */
.flight-list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30px 0;
  gap: 20px;
}

.flight-list .left {
  width: 260px;
  flex-shrink: 0;
}

.flight-list .right {
  flex: 1;
  min-width: 0;
}

.filter-title {
  padding: 10px 0;
  color: #3486DC;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}

.filter-title i {
  font-size: 18px;
}

.filter-title .bi-chevron-down {
  transition: transform 0.3s ease;
}

.filter-title .bi-chevron-down.rotate-icon {
  transform: rotate(180deg);
}

.filter-divider {
  height: 1px;
  background: #E6E6E6;
  margin: 12px 0 16px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.radio-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-ui {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #D5D5D5;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  flex-shrink: 0;
}

.radio-ui::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3486DC;
  transform: scale(0);
  transition: transform .15s ease;
}

.radio-text {
  color: #5A5A5A;
  font-size: 13px;
  font-weight: 500;
}

.radio-item input:checked + .radio-ui {
  border-color: #3486DC;
}

.radio-item input:checked + .radio-ui::after {
  transform: scale(1);
}

.radio-item:hover .radio-ui {
  border-color: #BEBEBE;
}

.radio-item input:focus-visible + .radio-ui {
  outline: 3px solid rgba(52, 134, 220, .25);
  outline-offset: 3px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  width: 100%;
  position: relative;
}

.check-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-ui {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid #E0E0E0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  flex-shrink: 0;
}

.check-ui i {
  font-size: 14px;
  color: #fff;
  opacity: 0;
  transform: scale(.6);
  transition: all .15s ease;
}

.check-text {
  color: #5A5A5A;
  font-size: 13px;
  font-weight: 600;
}

.check-item input:checked + .check-ui {
  border-color: #3486DC;
  background-color: #3486DC;
}

.check-item input:checked + .check-ui i {
  opacity: 1;
  transform: scale(1);
}

.check-item:hover .check-ui {
  border-color: #C9C9C9;
}

.check-item input:focus-visible + .check-ui {
  outline: 3px solid rgba(52, 134, 220, .25);
  outline-offset: 3px;
}

.ms-auto {
  margin-left: auto;
  cursor: pointer;
  font-size: 12px;
}

.w-100 {
  width: 100%;
}

.d-flex {
  display: flex;
  align-items: center;
}

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

.mt-3 {
  margin-top: 15px;
}

.only-text {
  font-weight: 400;
  color: #E0E0E0;
  font-size: 11px;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #3486DC;
  font-weight: 600;
  margin-bottom: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #3486DC;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #E6E6E6;
  border-radius: 4px;
  background: #fff;
  padding: 2px;
}

.input-wrapper input {
  flex: 1;
  border: none;
  padding: 8px 10px;
  font-size: 13px;
  outline: none;
}

.input-wrapper button {
  border: none;
  background: transparent;
  padding: 0 10px;
  color: #999;
  cursor: pointer;
}

.btn-apply-gray {
  width: 100%;
  background-color: #E8E8E8;
  color: #666;
  border: none;
  padding: 8px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  margin-top: 5px;
}

.range-info,
.range-sub-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.range-sub-title {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.range-sub-info {
  font-weight: 400;
  color: #666;
  margin-bottom: 5px;
}

.range-slider-mock {
  position: relative;
  height: 20px;
  margin-bottom: 5px;
}

.range-track {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: #E0E0E0;
  transform: translateY(-50%);
  border-radius: 2px;
}

.range-track::after {
  content: '';
  position: absolute;
  left: 20%;
  width: 60%;
  height: 100%;
  background-color: #3486DC;
  border-radius: 2px;
}

.range-knob {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid #3486DC;
  border-radius: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
}

.left-knob {
  left: 20%;
}

.right-knob {
  left: 80%;
}

.city-label {
  font-size: 12px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.email-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.email-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  outline: none;
  background-color: #fcfcfc;
}

.btn-email-send {
  width: 100%;
  background-color: #276FBF;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.2s;
}

.btn-email-send:hover {
  background-color: #1f5ca0;
}

.flight-tabs {
  display: flex;
  list-style: none;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  overflow: visible !important; 
  border: 1px solid #dadada;
  position: relative;
  z-index: 20; 
}

.flight-tabs li {
  flex: 1;
  text-align: center;
  padding: 15px 5px;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  border-right: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; 
}

.flight-tabs li:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.flight-tabs li:last-child {
  border-right: none;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.flight-tabs li.active {
  color: #0F4C81;
  border-bottom-color: #0F4C81;
  background: #F8FBFF;
}

.flight-tabs li.other-opts {
  flex: 1.5;
  padding: 0;
  overflow: visible; 
}

.flight-tabs li.other-opts:hover {
    background: #fff; 
    border-bottom-color: transparent; 
    color: #333;
}

.opts-trigger {
  padding: 8px 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  line-height: 1.2;
}

.flight-tabs li.other-opts span {
  font-size: 11px;
  color: #777777;
  font-weight: 400;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; 
  right: -1px; 
  width: 240px;
  background: #fff;
  border: 1px solid #dadada;
  border-top: 1px solid #dadada; 
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  list-style: none;
  z-index: 100; 
  border-radius: 0 0 4px 4px;
  padding: 5px 0;
  margin: 0;
}

.dropdown-menu li {
  padding: 12px 15px;
  font-size: 13px;
  color: #333;
  font-weight: 500;
  text-align: left;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
  width: 100%;
}

.dropdown-menu li:hover {
  background-color: #F8FBFF;
  color: #0F4C81;
}

.flight-tabs li.other-opts:hover .dropdown-menu {
  display: block;
}


.flight-header-alert {
  background: #0F4C81;
  color: #fff;
  border-radius: 4px 4px 0 0;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.flight-header-alert-return {
  background: #D9534F;
  color: #fff;
  border-radius: 4px 4px 0 0;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.alert-icon-btn {
  background: rgba(255, 255, 255, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.alert-content {
  flex: 1;
  text-align: center;
}

.alert-title {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alert-date {
  font-size: 15px;
  font-weight: 600;
}

.alert-link {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.flight-card {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
  border: 1px solid #dadada;
}

.flight-card.first-card {
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: none;
  margin-top: 0;
}

.flight-card .first-card-return {
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: none;
  margin-top: 0;
}

.flight-card:not(.first-card) {
  margin-top: 20px;
}

.flight-card:not(.first-card-return) {
  margin-top: 20px;
}

.card-main {
  display: flex;
  padding: 25px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.card-main-return {
  display: flex;
  padding: 35px 30px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.carrier-col {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.carrier-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carrier-name {
  font-size: 14px;
  font-weight: 700;
  color: #333333;
}

.flight-code {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #777777;
}

.logo-box {
  width: 24px;
  display: flex;
  align-items: center;
}

.logo-box img {
  width: 100%;
  height: auto;
}

.route-col {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 15px;
}

.time-group {
  display: flex;
  flex-direction: column;
  min-width: 80px;
}

.text-end {
  text-align: right;
}

.text-start {
  text-align: left;
}

.route-code {
  font-size: 13px;
  color: #333;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.route-code.end {
  justify-content: flex-end;
}

.time-big {
  font-size: 20px;
  font-weight: 800;
  color: #000;
}

.city-name {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.flight-date {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.route-line-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  max-width: 140px;
  margin-top: 5px;
}

.duration-text {
  font-size: 11px;
  color: #888;
  margin-bottom: 6px;
  font-weight: 500;
}

.route-line {
  width: 100%;
  height: 1px;
  background: #ccc;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.route-line::before,
.route-line::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ccc;
  border-radius: 50%;
  top: -1.5px;
}

.route-line::before {
  left: 0;
}

.route-line::after {
  right: 0;
}

.plane-icon {
  position: absolute;
  background: #ffffff;
  padding: 0 5px;
  color: #999;
  font-size: 12px;
  transform: rotate(0deg);
}

.price-info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 120px;
}

.baggage-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #333333;
  background: #F5F5F5;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid #E0E0E0;
  margin-bottom: 8px;
}

.baggage-tag i {
  font-size: 12px;
}

.price-amount {
  font-size: 20px;
  font-weight: 800;
  color: #333;
}

.price-desc {
  font-size: 11px;
  color: #777777;
  margin-top: 2px;
}

.action-col {
  padding-left: 15px;
  display: flex;
  align-items: center;
}

.btn-select {
  background-color: #00b894;
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 40px;
  height: 34px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-select:hover {
  background-color: #008c82;
}

.card-footer {
  border-top: 1px solid #dadada;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fdfdfd;
  margin-bottom: 15px;
  margin-left: 20px;
  margin-right: 20px;
}

.footer-links-flight {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-links-flight a {
  text-decoration: none;
  color: #0F4C81 !important;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.footer-links-flight a:hover {
  color: #003366 !important;
}

.footer-links-flight i {
  font-size: 10px;
  margin-top: 2px;
  color: inherit;
}

.badges-area {
  display: flex;
  gap: 8px;
  align-items: center;
}

.badge-item {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  border: 1px solid transparent;
  line-height: 1;
}

.badge-rfnd {
  background: #F1F1F1;
  color: #999;
  border-color: #DDD;
  text-decoration: line-through;
  text-decoration-color: #999;
}

.badge-rfnd i {
  text-decoration: none;
}

.badge-promo {
  background: #FFF9E1;
  color: #CBA237;
  border-color: #F0E2B8;
}

.badge-ndc {
  background: #CBA237;
  color: #fff;
  border-color: #CBA237;
}

.badge-offer {
  background: #E6F0FF;
  color: #1E40AF;
  border-color: #BFDBFE;
}

/* return ; */
.flight-content-body-return {
  display: flex;
  align-items: stretch; 
  padding: 15px 0;
  background-color: #fff;
}

.routes-column-return {
  flex: 1; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 15px;
}

.single-route-row-return {
  display: flex;
  align-items: center;
  padding: 10px 15px;
}

.route-divider-return {
  height: 1px;
  background-color: #f0f0f0;
  margin: 5px 20px;
}

.price-column-return {
  width: 160px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; 
  border-left: 1px dashed #e0e0e0; 
  padding: 0 15px;
  background-color: #fafafa; 
}

.price-info-wrapper-return {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.carrier-col-return {
  width: 140px;
}

.carrier-name-return {
  font-weight: bold;
  font-size: 13px;
  color: #333;
}

.flight-code-return {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.logo-box-return img {
  height: 16px;
  width: auto;
}

.route-col-return {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  padding: 0 20px;
}

.time-group-return {
  min-width: 80px;
}

.time-big-return {
  font-size: 18px;
  font-weight: 800;
  color: #000;
}

.city-name-return {
  font-size: 11px;
  color: #888;
}

.flight-date-return {
  font-size: 10px;
  color: #999;
}

.route-line-wrapper-return {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 15px;
}

.duration-text-return {
  font-size: 10px;
  color: #999;
  margin-bottom: 2px;
}

.route-line-return {
  width: 100%;
  height: 1px;
  background-color: #ddd;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.route-line-return i {
  font-size: 12px;
  color: #999;
  background: #fff;
  padding: 0 5px;
}

.baggage-tag-return {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #333333;
  background: #F5F5F5;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid #E0E0E0;
  margin-bottom: 8px;
}

.baggage-tag-return i {
  font-size: 12px;
}

.price-amount-return {
  font-size: 20px;
  font-weight: 800;
  color: #333;
}

.price-desc-return {
  font-size: 11px;
  color: #777777;
  margin-top: 2px;
  margin-bottom: 10px;
}

.btn-select-return {
  background-color: #00b894;
  color: #fff;
  border: none;
  border-radius: 4px;
  width: 100%; 
  min-width: 80px;
  padding: 8px 0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-select-return:hover {
  background-color: #008c82;
}

.card-footer-return {
  border-top: 1px solid #dadada;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fdfdfd;
}

.footer-links-return {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-links-return a {
  text-decoration: none;
  color: #0F4C81 !important;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.footer-links-return a:hover {
  color: #003366 !important;
}

.badges-area-return {
  display: flex;
  gap: 8px;
  align-items: center;
}

.badge-item-return {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  border: 1px solid transparent;
  line-height: 1;
}

.badge-rfnd-return {
  background: #F1F1F1;
  color: #999;
  border-color: #DDD;
  text-decoration: line-through;
  text-decoration-color: #999;
}

.badge-promo-return {
  background: #FFF9E1;
  color: #CBA237;
  border-color: #F0E2B8;
}

.badge-ndc-return {
  background: #CBA237;
  color: #fff;
  border-color: #CBA237;
}

.badge-offer-return {
  background: #E6F0FF;
  color: #1E40AF;
  border-color: #BFDBFE;
}

.detail-control-row {
  border-top: 1px solid #dadada;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
}

.detail-tabs {
  display: flex;
  gap: 25px;
}

.d-tab-link {
  padding: 15px 0;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.d-tab-link.active {
  color: #0F4C81;
  border-bottom-color: #0F4C81;
}

.d-tab-link i {
  font-size: 10px;
  margin-top: 1px;
}

.flight-detail-panel {
  background-color: #F8F9FA;
  border-top: 1px solid #eee;
  padding: 15px 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-route-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.route-badge-blue {
  background-color: #0F4C81;
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.sc-box {
  background-color: #0F4C81;
  color: #fff;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.detail-segment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 5px;
}

.ds-airline {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 30%;
}

.ds-logo img {
  width: 30px;
  height: auto;
  display: block;
}

.ds-info {
  display: flex;
  flex-direction: column;
}

.ds-name {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.ds-code {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.ds-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex: 1;
}

.ds-time-box {
  text-align: right;
}

.ds-time-box.text-start {
  text-align: left;
}

.ds-time {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.ds-city {
  font-size: 11px;
  color: #777;
}

.ds-date {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.ds-line-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.ds-duration {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
  font-weight: 600;
}

.ds-line {
  width: 100%;
  height: 1px;
  background: #bbb;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ds-line::before,
.ds-line::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: #bbb;
  border-radius: 50%;
}

.ds-line::before {
  left: 0;
}

.ds-line::after {
  right: 0;
}

.ds-dot {
  width: 6px;
  height: 6px;
  background: #bbb;
  border-radius: 50%;
}

.detail-footer-info {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #e5e5e5;
  display: flex;
}

.d-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #ddd;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #555;
}

.flight-card .detail-control-row,
.flight-card .flight-detail-panel {
  display: none;
}

.flight-card .card-footer {
  display: flex;
}

.flight-card.active-details .card-footer {
  display: none;
}

.flight-card .card-footer-return {
  display: flex;
}

.flight-card.active-details .card-footer-return {
  display: none;
}

.flight-card.active-details .detail-control-row {
  display: flex;
}

.flight-card.active-details .flight-detail-panel {
  display: block;
}

.js-toggle-details {
  cursor: pointer;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

.packages-wrapper {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  align-items: stretch;
}

.pkg-card {
  flex: 1;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pkg-card.selected {
  border: 2px solid #2ecc71;
  background-color: #f0fbf4;
  margin-top: -4px;
  border-top: 6px solid #27ae60;
}

.pkg-card:not(.selected) {
  border-top: 6px solid #b0b0b0;
  margin-top: -4px;
}

.pkg-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.pkg-select-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pkg-card.selected .pkg-select-status {
  color: #000;
}

.pkg-card:not(.selected) .pkg-select-status {
  color: #333;
}

.pkg-icon-check {
  color: #27ae60;
  font-size: 18px;
}

.pkg-icon-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e0e0e0;
}

.pkg-route {
  font-size: 11px;
  color: #0F4C81;
  font-weight: 600;
  margin-bottom: 2px;
}

.pkg-name {
  font-size: 18px;
  font-weight: 800;
  color: #000;
}

.pkg-features {
  padding: 15px;
  list-style: none;
  flex: 1;
}

.pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
  font-weight: 500;
}

.pkg-features li i {
  color: #27ae60;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 0px;
}

.pkg-features li i.currency-icon {
  color: #f39c12;
  background: #fff;
  border: 1px solid #f39c12;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.pkg-footer {
  padding: 15px;
  text-align: center;
  border-top: 1px solid #eee;
  background: #fff;
  border-radius: 0 0 4px 4px;
}

.pkg-price-label {
  font-size: 11px;
  color: #777;
  margin-bottom: 4px;
}

.pkg-price {
  font-size: 20px;
  font-weight: 800;
  color: #000;
}

.pkg-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.btn-view-details {
  background: #fff;
  border: 1px solid #0F4C81;
  color: #0F4C81;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn-view-details:hover {
  background: #f0f4f8;
}

.btn-select-proceed {
  background: #27ae60;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
}

.btn-select-proceed:hover {
  background: #219150;
}

@media screen and (max-width: 991px) {
  .container-flight {
    padding: 0 10px;
  }

  .flight-list {
    flex-direction: column;
    gap: 20px;
  }

  .flight-list .left {
    width: 100%;
    margin-bottom: 10px;
  }

  .flight-list .right {
    width: 100%;
  }

  .card-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
  }

  .carrier-col,
  .route-col,
  .price-info-col,
  .action-col {
    width: 100%;
    align-items: flex-start;
  }

  .route-col {
    justify-content: space-between;
  }

  .price-info-col {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .action-col {
    padding-left: 0;
    justify-content: center;
  }

  .btn-select {
    width: 100%;
  }

  .card-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .card-footer-return {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .footer-links-flight {
    width: 100%;
    justify-content: space-between;
  }

  .detail-control-row {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
  }

  .packages-wrapper {
    flex-direction: column;
  }

  .pkg-actions-bar {
    flex-direction: column;
    gap: 10px;
  }

  .btn-view-details,
  .btn-select-proceed {
    width: 100%;
    justify-content: center;
  }
}

.slider-area-wrapper {
    background: #fff;
    border: 1px solid #dadada;
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.priceSwiper {
    height: 100px; 
    padding: 0 30px; 
}

.price-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; 
    text-align: center;
    border-right: 1px dashed #e0e0e0; 
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 5px 0; 
}

.price-slide:last-child {
    border-right: none;
}

.price-slide:hover {
    background-color: #f7f9fa;
}

.ps-logo img {
    height: 18px; 
    width: auto;
    display: block;
    margin: 0 auto 4px auto; 
}

.ps-name {
    font-size: 11px; 
    color: #666;
    margin-bottom: 2px;
    font-weight: 500;
    line-height: 1.2;
}

.ps-price-main {
    font-size: 15px; 
    font-weight: 800;
    color: #000;
    line-height: 1.2;
}

.ps-desc {
    font-size: 10px;
    color: #999;
    font-weight: 400;
}

.ps-divider {
    width: 60%;
    height: 1px;
    border-top: 1px dashed #ddd;
    margin: 3px 0;
}

.ps-price-sub {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.ps-desc-sub {
    font-size: 9px;
    color: #999;
}

.swiper-button-next.ps-nav-btn, 
.swiper-button-prev.ps-nav-btn {
    width: 30px; 
    height: 100%; 
    top: 0;
    margin-top: 0;
    background-color: #f4f6f8; 
    color: #a0a0a0;
    border: none;
    z-index: 10;
}

.swiper-button-prev.ps-nav-btn {
    left: 0;
    border-right: 1px solid #e0e0e0;
}

.swiper-button-next.ps-nav-btn {
    right: 0;
    border-left: 1px solid #e0e0e0;
}

.swiper-button-next.ps-nav-btn:hover, 
.swiper-button-prev.ps-nav-btn:hover {
    background-color: #e9ecef;
    color: #666;
}

.swiper-button-next.ps-nav-btn:after, 
.swiper-button-prev.ps-nav-btn:after {
    font-size: 12px; 
    font-weight: bold;
}


.slider-disclaimer {
    background-color: #f9f9f9;
    padding: 8px 15px;
    font-size: 10px;
    color: #999;
    border-top: 1px solid #e0e0e0;
    text-align: left;
}

/* popup */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: 10000; 
    display: none; 
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.custom-modal-content {
    background-color: #fff;
    width: 95%; 
    max-width: 1200px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    max-height: 95vh; 
    overflow-y: auto; 
    animation: slideDown 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title {
    font-size: 16px;
    font-weight: 800;
    color: #0F4C81;
    margin: 0;
    text-transform: uppercase;
}

.close-modal-btn {
    font-size: 28px;
    font-weight: bold;
    color: #0F4C81;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.close-modal-btn:hover { color: #000; }

.custom-modal-body {
    padding: 25px;
    background-color: #f9f9f9;
    flex: 1; 
}

.modal-wrapper.packages-wrapper {
    margin-top: 0; 
    display: flex;
    gap: 20px;
}

@media (max-width: 991px) {
    .custom-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    .modal-wrapper.packages-wrapper {
        flex-direction: column; 
    }
    .modal-pkg-card {
        margin-bottom: 15px;
    }
}

#flightTagsContainer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px; 
}

.flight-tag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 13px;
  color: #333;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.flight-tag-close {
  cursor: pointer;
  font-size: 16px;
  color: #999;
  line-height: 1;
  padding-left: 10px;
  font-weight: bold;
}

.flight-tag-close:hover {
  color: #ff4757;
}

.range-slider-mock {
    touch-action: none; 
}

.range-track {
    width: 100%; 
    left: 0;
}

.interactive-slider .range-track {
    background-color: #3486DC; 
    z-index: 1;
}

.interactive-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #E0E0E0;
    transform: translateY(-50%);
    border-radius: 2px;
    z-index: 0;
}

.range-knob {
    z-index: 2; 
    margin-left: -7px; 
}

.mobile-filter-header,
.mobile-floating-btn-container {
    display: none;
}

@media screen and (max-width: 991px) {
    
    .flight-list .left {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 10000; 
        padding: 0 20px 80px 20px; 
        overflow-y: auto; 
        transition: transform 0.3s ease-in-out;
        transform: translateY(100%); 
        display: block !important; 
    }

    .flight-list .left.active {
        transform: translateY(0);
    }

    .mobile-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 0;
        margin-bottom: 10px;
        border-bottom: 1px solid #eee;
        font-size: 18px;
        font-weight: 800;
        color: #000;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
    }

    .close-filter-btn {
        cursor: pointer;
        font-size: 20px;
        padding: 5px;
    }

    .mobile-floating-btn-container {
        display: flex;
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9990;
        gap: 10px;
    }

    .btn-open-filter {
        background-color: #2c3e50; 
        color: #fff;
        border: none;
        padding: 12px 25px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        cursor: pointer;
    }
    
    .btn-open-filter i {
        font-size: 16px;
    }
}