.search_box {
  gap: 5px;
  padding: 5px;
  width: 100%;
  display: flex;
  max-width: var(--max-content-width);
  align-items: center;
  justify-content: flex-start;
  transition: margin-top 0.5s, background-color 0.5s, padding 0.5s;
}

.search_box.animate {
  margin-top: 20px;
  background-color: #EEE;
}

.search_input {
  height: 50px;
  text-align: left;
  position: relative;
  background-color: #fff;
}

.search_input_wide {
  width: 29%;
}

.search_input_row {
  gap: 5px;
  width: 40%;
  display: flex;
  flex-direction: row;
}

.search_input_narrow {
  /* width: 90px; */
  width: inherit;
}

.search_input_mid {
  width: 140px;
}

.search_traveler_box {
  width: 160px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
}

.search_traveler_label {
  text-align: left;
}

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

.search_traveler_no {
  display: inline-block;
  text-align: center;
  width: 20px;
  font-size: 120%;
  font-weight: bold;
  line-height: normal;
  user-select: none;
}

.search_traveler_no_but {
  cursor: pointer;
  font-size: 130%;
  color: #BBB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search_traveler_no_but:hover {
  color: #29f;
}

.search_traveler_no_but:active {
  color: rgb(8, 30, 50);
}

.search_input_tl {
  font-size: 12px;
  margin-top: 6px;
  margin-left: 12px;
}

.search_input_ac {
  font-size: 13px;
  margin-top: 6px;
  margin-left: 12px;
  width: calc(100% - 12px);
  box-sizing: border-box;
  /* text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden; */
}

.search_input_start:hover {
  opacity: 0.8;
}

/* 
.search_input_start {
  border: 0;
  width: 100px;
  color: white;
  cursor: pointer;
  text-align: center;
  background-color: var(--button-color);
  transition: opacity 0.2s ease-in-out;
}

.search_input_start:hover {
  opacity: 0.8;
}

@keyframes pulse-opacity {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.9;
  }
}

.search_input_start[disabled] {
  animation: pulse-opacity 2s infinite;
  opacity: 0.6;
  cursor: default;
} */

.search_input_start {
  border: 0;
  width: 100px;
  color: white;
  cursor: pointer;
  text-align: center;
  background-color: var(--button-color);
  transition: opacity 0.2s ease-in-out;
  background-size: 300% 100%; /* Allows the gradient to move across the button */
}
.search_input_start_searching {
  animation: wave-gradient 3s ease-in-out infinite;
  background-image: linear-gradient(270deg, #83bfe3, #2d91ba, #83bfe3, #2d91ba);
  background-size: 300% 100%;
  cursor: default;
  color: #EEE; 
}
.search_input_start[disabled] {
  background-color: var(--button-color-disabled);
  cursor: default;
  color: #EEE; /* Lighten the text color */
  pointer-events: none;
}

@keyframes wave-gradient {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

#results {
  text-align: left;
  margin-top: 90px;
  width: 100%;
  max-width: var(--max-content-width);
}

.results_grid {
  width: var(--max-content-width);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.results_grid_titles {
  width: 100%;
  display: grid;
  height: 50px;
  border-top: 1px solid #CCC;
  position: sticky;
  top: 0px;
  background-color: #FFF;
  z-index: 2;
  border-bottom: 1px solid #DDD;
}

.results_grid_col_widths_single {
  grid-template-columns: var(--column-widths-single);
}

.results_grid_col_widths_multi {
  grid-template-columns: var(--column-widths);
}

.results_grid_title {
  position: relative;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  font-size: 13px;
  cursor: pointer;
}

.results_grid_title:not(:last-child):not(:first-child) {
  padding-left: 10px;
}

.results_grid_title:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 25%;
  bottom: 25%;
  width: 2px;
  border-right: 2px dotted #CCC;
}

.results_grid_title_airline {
  justify-content: left;
  padding-left: 15px !important;
}

.l_res {
  padding-right: 10px;
}

.r_res {
  padding-left: 10px;
  padding-right: 10px;
}

.m_res {
  padding-right: 10px;
  padding-left: 10px;
  text-align: center;
  color: #0e1d3b;
}

.results_row_wrapper {
  width: 100%;
  border-top: 1px solid #DDD;
  /* border-bottom: 1px solid #DDD; */
}

.results_row_wrapper:hover {
  border-top: 1px solid #DDD;
  box-shadow: 0px 3px 5px rgb(198, 198, 198);
}

.results_row {
  width: 100%;
  display: grid;
  height: 50px;
  font-size: 13px;
  margin-top: 0px;
  cursor: pointer;
}

.results_row_sel {
  box-shadow: 0px 3px 5px rgb(198, 198, 198);
}

.results_grid_cell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}

.results_grid_cell_price {
  display: flex;
  align-items: center;
  justify-content: right;
  flex-direction: row;
}

.results_grid_cell:not(:last-child) {
  position: relative;
  padding-left: 10px;
}

.results_grid_cell:not(:last-child):not(:nth-last-child(2))::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 25%;
  bottom: 25%;
  width: 2px;
  border-right: 2px dotted #CCC;
}

.results_price {
  font-weight: bold;
  border-radius: 2px;
  font-size: 14px;
  justify-content: right;
  padding: 14px 6px;
  white-space: nowrap;
  background-color: var(--button-color);
  color: #FFF;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  margin: 4px;
}

.results_airline {
  font-size: 13px;
  justify-content: left;
  padding-left: 5px !important;
}

.m_res_bot {
  color: #777;
}

.sel_details {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  display: none;
}

.filtered_variant {
  opacity: 0.4;
}

.filtered_variant:hover {
  opacity: 1;
}

.reserve_box {
  color: #000;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 10px;
}

.reserve_box_title_row {
  display: grid;
  grid-template-columns: 50% 50%;
  margin: 10px 0px 20px 0px;
}

.reserve_box_title_row_widths_single {
  grid-template-columns: var(--reserve-column-widths-single);
}

.reserve_box_title_row_widths_multi {
  grid-template-columns: var(--reserve-column-widths);
}

.reserve_box_title {
  display: flex;
  justify-content: center;
  font-size: 14px;
  column-gap: 4px;
}

.reserve_but_row {
  display: grid;
  gap: 3px;
  grid-template-areas: "l p r";
  justify-content: center;
  padding: 5px 7px;
  cursor: pointer;
  border: 1px solid #f1f1f1;
}

.reserve_but_row_first .reserve_but_direction {
  background-color: #f3f3f3;
}

.reserve_but_row:not(:last-child) {
  margin-bottom: 6px;
}

.reserve_but_row:hover {
  opacity: 0.9;
  background-color: #f1f1f1;
  border-color: #e1e1e1;
}

.reserve_but_row_widths_single {
  grid-template-columns: var(--reserve-column-widths-single);
}

.reserve_but_row_widths_single_ai {
  grid-template-columns: var(--reserve-column-widths-single-ai);
}

.reserve_but_row_widths_multi {
  grid-template-columns: var(--reserve-column-widths);
}

.reserve_but_row_widths_multi_ai {
  grid-template-columns: var(--reserve-column-widths-ai);
}

.reserve_but_row2 {
  display: grid;
  grid-template-columns: var(--reserve-column-widths2);
  margin: 11px;
  padding: 3px;
}

.reserve_but_direction {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  padding: 4px;
}


.reserve_but_direction_icons {
  display: flex;
}

.reserve_but_text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.reserve_but_icon {
  display: flex;
  font-size: 16px;
  margin: 0px 5px;
}

.reserve_but_buy {
  font-weight: bold;
  font-size: 17px;
  width: 100%;
  text-align: center;
  background-color: var(--button-color);
  color: #FFF;
  padding: 6px 4px;
  box-sizing: border-box;
  border-radius: 4px;
}

#reservation_title {
  font-size: 16px;
  font-weight: bold;
  margin: 25px 15px;
}

#reservation_travelers .tbl_row_cont {
  border: 2px dotted #CCC;
  border-radius: 3px;
  margin-bottom: 10px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

#reservation_comments{
  padding-top: 20px;;
}

.cell_comp {
  vertical-align: top;
  padding: 2px;
}

.cell_label {
  padding: 2px 0px 2px 5px;
}

.cell_label::after {
  content: ":";
}

.cell_comp ._text {
  border-bottom: 1px solid #DDD;
}

.reservation_customer_box {
  padding: 5px 10px;
  border: 2px dotted #CCC;
}

.reservation_customer_box .tabs_content {
  margin-top: 5px
}

#reservation_comments{
  padding: 5px 10px;
  border: 2px dotted #CCC;
  margin-top: 5px;
}

#reservation_customer {
  padding: 5px 0;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

#reservation_customer table {
  width: 100%;
}

#reservation_payment {
  padding: 5px 0;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}

#reservation_payment table {
  width: 100%;
}

#reservation_checks {
  padding: 5px 0;
}

.reservation_travelers_heading {
  padding: 20px 0 10px 18px;
  font-size: 17px;
  font-weight: bold;
  color: #48a3cf;
}

.reservation_buy_button {
  font-size: 16px;
  font-weight: bold;
  padding: 10px;
  width: 100%;
  color: white;
  cursor: pointer;
  text-align: center;
  background-color: var(--button-color);
  border-radius: 3px;
  box-sizing: border-box;
}


.sel_details_directions {
  width: 100%;
  display: flex;
  align-items: top;
  justify-content: left;
  flex-direction: row;
  padding-bottom: 15px;
  ;
}

.sel_details_direction {
  /* width: 498px; */
  width: 50%;
}

.sel_details_direction_single {
  width: 100%;
}

.sel_details_direction .h_dots {
  margin: 17px;
}

.sel_details_direction_title {
  font-weight: bold;
  margin: 10px 0 10px 30px
}

.sel_details_direction_title_preview {
  font-size: 15px;
  margin: 10px 0px 0px 0px
}

.sel_details_leg {
  flex-direction: column;
}

.sel_details_leg_title {
  color: #000;
  font-size: 120%
}

.sel_details_leg_title img {
  margin-bottom: -5px;
}

.sel_details_leg_row {
  color: #333;
}

.sel_details_overlay {
  color: #333;
  margin: 10px 0 10px 35px
}


.mts_wrapper {
  padding-top: 20px;
  width: 100%;
  max-width: var(--max-content-width);
  display: flex;
  flex-direction: column;
  row-gap: 6px;
}

.mts_row {
  display: flex;
  width: 100%;
  justify-content: space-between;
  border-bottom: 1px solid #e7e7e7;
}

.mts_travelnum {
  font-size:18px;
  color:var(--button-color);
  display:flex;
  align-items:center;
  width: 180px;
  justify-content: space-between;
}

.rm_mts_row {
  opacity: 0.3;
  font-size: 15px;
  cursor: pointer;
}

.rm_mts_row:hover {
  opacity: 1;
}

.mts_buttons {
  display: flex;
  justify-content: center;
  column-gap: 10px;
}

.mts_title {
  display:flex; 
  flex-direction:column; 
  align-items:center;
}
.mts_title_active {
  color: #47a3cf;
}


@media screen and (max-width: 480px) {
  .results_grid {
    width: 100%;
  }

  .results_grid_title_airline img {
    display: inline;
    margin-left: -20px;
  }

  .l_res {
    padding-right: 2px;
  }

  .r_res {
    padding-left: 2px;
  }

  .m_res {
    padding-left: 2px;
    padding-right: 2px;
  }

  .central_bg {
    height: 600px;
    top: calc(50% - 300px);
  }

  .central_bg.animate {
    height: 300px;
  }

  .central_content {
    width: 100%;
    min-width: 0px;
  }

  .search_box {
    width: 100%;
    min-width: 0px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }

  .search_input_wide {
    width: 96%;
  }

  .search_input_row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    width: 96%;
  }

  .search_input_mid,
  .search_input_narrow{
    width: auto; 
  }

  .results {
    margin-top: 320px;
  }

  .sel_details_directions {
    flex-direction: column;
  }

  .sel_details_direction {
    width: 100%;
  }

  .sel_details_direction_title {
    margin: 10px 0 10px 15px;
    text-align: center;
  }

  .sel_details_leg_row {
    margin: 10px 0 10px 20px
  }

  .sel_details_overlay {
    margin: 10px 0 10px 20px
  }

  .sel_details_leg_grid {
    grid-template-columns: 30px 15px auto !important;
  }

  .reserve_but_row {
    grid-template-columns: 50% 50%;
    grid-template-areas: unset;
  }

  .reserve_but_row_widths_single.reserve_but_row {
    grid-template-columns: 100%;
  }

  .reserve_box_title_row {
    grid-template-columns: 50% 50%;
  }

  .reserve_but_direction {
    padding: 4px 0px;
    justify-content: space-around;
  }

  .reserve_but_direction_icons {
    flex-direction: column;
  }

  .reservation_buy_button {
    margin: 6px 0px 10px 0px;
  }

  .search_input_start {
    width: 96%;
  }

  .reserve_but_text {
    row-gap: 0px;
    align-self: center;
    flex-wrap: wrap;
  }

}

#loading_results_icon {
  font-weight: bold;
  margin-top: 100px;
  text-align: center;
}

#loading_results_icon_span {
  padding-left: 10px;
  font-weight: bold;
}

.sel_details_leg_grid {
  display: grid;
  grid-template-columns: 30px 15px auto;
  grid-template-rows: auto auto auto;
  gap: 0px;
  margin-left: 15px;
}

.sel_details_leg_cell {
  display: flex;
  align-items: center;
  justify-content: left;
  height: 28px;
}

.sel_details_leg_boxyline {
  width: 100%;
  height: 50%;
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 5px;
  box-sizing: border-box;
}

.sel_details_leg_boxylinecont {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sel_details_leg_boxyline2 {
  width: 100%;
  height: 50%;
  border-bottom: 1px solid #ccc;
  border-left: 1px solid #ccc;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 5px;
  box-sizing: border-box;
}

.sel_details_leg_boxylinecont2 {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
}

.sel_details_leg_stop_grid {
  margin: 10px 0px 10px 0px;
  padding: 10px 0px 10px 0px;
  margin-left: 15px;
}

.sel_details_leg_stop_cell {
  border-bottom: 1px solid #ccc;
  border-top: 1px solid #ccc;
}

.icon_flight_plane {
  transform: rotate(-90deg);
  font-size: 160%;
}

.icon_flight_leg_stop {
  padding-top: 5px;
  color: red;
  font-size: 150%;
}

.ac_travelers {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.ac_traveler {
  display: flex;
  padding: 5px;
  border-bottom: 1px solid #DDD;
}

.ac_traveler:hover {
  background-color: #ededed;
  cursor: pointer;
}

.no_flights {
  position: fixed;
  /* Fixed positioning to cover the viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  /* Flexbox to center the content */
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  /* Blur effect */
  z-index: 1000;
  font-size: 20px;
  font-weight: bold;
}

.sel_highlight {
  border: 10px solid #FFF;
  box-shadow: 0px 0px 50px #4e698d;
  margin-left: -10px;
  z-index: 1000;
}

.row_controls_container {
  padding: 10px 0 0 20px;
  display: flex;
  column-gap: 10px;
}

.reservation_check {
  margin-left: auto;
  padding-right:20px;
}

.fare_rules_container {
  display: flex;
  justify-content: space-between;
}

.fare_rule_container {
  flex: 1;
  margin: 10px;
  box-sizing: border-box;
}

.fare_rule {
  padding: 10px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
}

.fare_rule_icon{
  margin: 3px;
  display: inline-block;
  width: 20px;
  font-size: 15px;
  position: relative;
  top: 4px;
}

.for_fee {
  color: var(--for-fee-color);
}

.included {
  color: var(--included-color);
}

.not_available {
  color: var(--none-color);
}

.mts_flights {
  display: flex;
  column-gap: 6px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  margin-top: 10px;
  padding-left: 10px;
  color: #c3c3c3;
}

.travel_overlay_text {
  font-size: 16px;
  font-weight: bold;
  background-color: white;
  padding: 16px;
  border-radius: 4px;
  box-shadow: 0px 0px 10px rgba(0, 40, 93, 0.2); 
}

.travel_overlay_icon {
  font-size: 46px;
  margin-left: 150px;
  offset-path: ellipse(200px 150px);
  animation: move 8000ms infinite;
  color: rgb(255, 255, 255);
  animation-timing-function: linear;
  text-shadow: 0px 0px 10px rgba(0, 40, 93, 0.5); 
}


.seat_tabs{
  position: absolute;
  top:-5px;
  font-size: 14px;
  text-align: center;
  font-weight: bold;
  color: #777;
}
.seat_tab{
  display: inline-block;
  padding: 10px;
}
.seat_tab_active{
  color: #29f;
}
.seat_airplane {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: fit-content;
  padding:20px;
  background-color: #E5E5E5;
}

.seat_row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  position: relative;
}

.seat_icon {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 45px;
  background-color: #b6b6b6;
  border-radius: 13px;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.2s ease-in-out;
}

.seat_icon::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 22%;
  background-color: rgba(0, 0, 0, 0.1);
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
}

.seat_icon a {
  text-decoration: none;
  color: inherit;
}

.seat_icon:not(.unavailable):not(.seat_selected):hover {
  opacity: 0.7;
}

.seat_icon.unavailable {
  background-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.5;
}

.seat_icon.seat_selected {
  background-color: #F99 !important;
}

.seat_icon.seat_selected_other {
  background-color: #EAF !important;
}

.seat_label {
  font-size: 14px; 
  color: #000;
}

.seat_price {
  font-size: 11px; 
  color: #333;
}

.seat_aisle {
  width: 60px; 
  height: 45px; 
}

.seat_sign {
  transform: rotate(270deg);
  position: absolute;
  font-weight: bold;
}
.seat_exit_l {
  left: -20px;
  color: #D00;
}
.seat_exit_r {
  right: -20px;
  color: #D00;
}
.seat_wing_l {
  left: -20px;
  color: #BBB;
}
.seat_wing_r {
  right: -20px;
  color: #BBB;
}
.seat_wing_lbg {
  left: -320px;
  top: -20px;
  height: 100px;
  position: absolute;
  width: 300px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100'%3E%3Cpath d='M0,100 L0,50 L300,0 L300,80 Z' fill='%23e5e5e5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: top left;
}

.seat_wing_rbg {
  right: -320px;
  top: -20px;
  height: 100px;
  position: absolute;
  width: 300px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100'%3E%3Cpath d='M300,100 L300,50 L0,0 L0,80 Z' fill='%23e5e5e5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: top left;
}