/* .search-services-page .service-types-navs .nav-item a {
  background-color: transparent;
  border: 0;
} */

.search-services-page .flight-search-types {
  border: 0;
}
.search-services-page .flight-search-types .card-header {
  background-color: transparent;
}

.search-services-page .flight-search-types .card-body {
  border: 1px solid #ddd;
  border-top: 0;
}

.search-services-page .go-back-button {
  float: right;
  position: absolute;
  top: 7px;
  right: 7px;
  height: 35px;
}

@media (max-width: 640px) {
  .search-services-page .go-back-button span {
    display: none;
  }
}

.search-services-page .search-flights-results-container {
  .search-details {
    display: flex;
    margin: 1em -1em;
    gap: 1em;

    .detail-col {
      flex: 1;
      background: #fff;
      padding: 1em;
      border: 1px solid #ddd;
      position: relative;
    }

    .first-line,
    .second-line {
      display: flex;
      gap: 1em;
      padding-right: 60px;
    }

    .edit-button {
      position: absolute;
      top: 13px;
      right: 15px;
      /* line-height: 30px; */
    }
  }

  .search-page {
    position: relative;
    margin: 1em -1em;

    .filters-btn.disabled,
    .filters-btn.disabled:hover {
      color: #cacaca;
    }
    .disabled {
      cursor: default;
    }
  }
}

/* Comparison matrix */
.search-services-page .search-flights-results-container .comparison-matrix {
  vertical-align: top;
  border: 1px solid #ddd;
  margin-bottom: 10px;

  .column-legend {
    float: left;
    width: 100px;
    padding-top: 81px;
  }
  .item-label {
    height: 41px;
    line-height: 40px;
    text-align: right;
    padding-right: 30px;
    border-top: 1px solid #ddd;
  }
  .column-comparison {
    display: block;
    margin: 0 0 0 100px;
    border-left: 1px solid #ddd;
  }
  .slick-comparison {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    font-family: Arial, sans-serif;
  }
  .slick-comparison .slick-carousel {
    width: 100%;
  }
  .slick-list,
  .slick-slider {
    position: relative;
    display: block;
  }
  .slick-slider {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
  .slick-slider {
    margin-bottom: 0;
  }
  .slick-slider {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
  }
  .slick-comparison .slick-list {
    overflow-y: visible;
  }
  .slick-slide,
  .slick-slide img,
  .slick-slider .slick-list,
  .slick-track {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
  }
  .slick-list {
    overflow: auto;
    margin: 0;
    padding: 0;
  }
  .slick-list,
  .slick-slider {
    position: relative;
    display: block;
  }
  .slick-track {
    position: relative;
    left: 0;
    top: 0;
    display: block;
    zoom: 1;
  }
  .slick-initialized .slick-slide {
    display: block;
  }
  .slick-slide {
    float: left;
    height: 100%;
    min-height: 1px;
    display: none;
  }
  .slick-slide,
  .slick-slide img,
  .slick-slider .slick-list,
  .slick-track {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
  }
  .slick-comparison .comparison-item {
    display: table;
    width: 100%;
    border-collapse: collapse;
    cursor: default;
  }
  .slick-comparison .header-caption {
    display: table-caption;
    width: 100%;
    border-right: 1px solid #ddd;
    height: 40px;
    line-height: 40px;
    white-space: nowrap;
    text-align: left;
  }
  .slick-comparison .airline-name {
    display: block;
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
  }
  .slick-comparison .logo-flight {
    /* height: 32px; */
    margin-left: 10px;
    margin-top: -3px;
    display: inline-block;
  }
  .slick-comparison .item-head {
    display: table-header-group;
  }
  .slick-comparison .item-head,
  .slick-comparison .item-row {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
    height: 40px;
    line-height: 40px;
  }
  .slick-comparison .item-head .item {
    background: #f2f2f2;
    position: relative;
  }
  .slick-comparison .item {
    display: table-cell;
    width: 33%;
    height: 40px;
    border: 1px solid #ddd;
    border-left: 0 none;
    border-bottom: 0 none;
  }
  .item,
  .trip-details-list {
    margin: 0;
    padding: 0;
    clear: both;
    list-style-type: none;
  }
  .slick-comparison .item-row {
    display: table-row;
  }
  .slick-comparison .price {
    color: #183028;
    text-align: center;
  }
  .clickable {
    cursor: pointer;
  }
  .airline-name a,
  .airline-name a:focus,
  .airline-name a:hover {
    text-decoration: none;
  }

  .btn-link,
  a {
    color: #183028;
  }

  @media only screen and (min-width: 1900px) {
    .slick-comparison .airline-name {
      max-width: 250px;
    }
  }
  @media only screen and (min-width: 1900px) {
    .column-legend {
      width: 120px;
    }
  }
  @media only screen and (min-width: 1900px) {
    .column-comparison {
      margin-left: 120px;
    }
  }
}

/* filters */
.search-services-page .search-flights-results-container .flight-filters {
  padding: 0 10px;
  border: 1px solid #ddd;

  .filters-container .filters-btn,
  .filters-container .sub-title {
    font-size: 13px;
    text-align: center;
    font-family: Fieldwork, sans-serif;
  }

  .filters-container .filters-btn {
    border: 1px solid;
    border-radius: 3px;
    display: block;
    height: auto;
    line-height: 28px;
    margin: 10px 20px;
    width: auto;
  }

  .filter-container {
    border-top: 1px dashed #ddd;
  }

  .filter-header {
    cursor: pointer;
    font-size: 18px;
  }

  ul.filter-value-group-list {
    padding: 0;
    margin: 0;

    li.group-container {
      display: block;

      .group-header {
        font-weight: 500;
        font-size: 12px;
      }
    }
  }

  ul.filter-value-list {
    padding: 0;
    margin: 0;

    li.filter-value {
      display: block;

      .form-check {
        margin: 0;
      }
    }
  }
  .show-more,
  .show-less {
    cursor: pointer;
    text-align: center;
    font-size: 12px;
  }
  .show-more:hover,
  .show-less:hover {
    text-decoration: underline;
  }

  .filter-slider-container {
    .slider-display-min {
      position: relative;
    }

    .slider-display-max {
      float: right;
    }
  }

  .filter-automplete-container {
    .p-autocomplete {
      height: 33.5px;
    }
    input.form-control {
      border-radius: 0.375rem 0 0 0.375rem;
    }
    button.p-autocomplete-dropdown {
      border-radius: 0 0.375rem 0.375rem 0;
    }
  }
}

/* autocomplete filter */
.p-autocomplete-items {
  padding: 0;

  .p-autocomplete-item {
    padding: 0.5rem;

    .logo-carrier-container {
      /* width: 38px; */
      display: inline-block;
      text-align: center;
    }

    img.logo-carrier {
      /* height: 18px; */
      margin-top: -4px;
    }
  }
}

/* flight recommendations */
.search-services-page .flights-list {
  .ticket-flight {
    margin: 0 0 20px;
    border: 1px solid #cacaca;
    border-left: 5px solid #183028;
    background: #fff;

    .airline {
      padding-bottom: 7px;
      color: #58595b;
      height: 70px;
    }
    .airline-logo-wrapper {
      display: inline-block;
      width: 70px;
      text-align: center;
    }
  }

  .flight-segment {
    border-bottom: 1px solid #d3d3d3;

    .segment-row {
      display: flex;
      align-items: center;
    }
    .airline {
      display: flex;
      align-items: center;
      gap: 1em;
      width: 244px;
    }
    .styled_checkmark {
      height: 16px;
      width: 16px;
      border-radius: 3px;
      border: 1px solid #92939a !important;
      position: relative;
      vertical-align: middle;
      padding: 0;
      float: left;
      background-image: none !important;
      background-color: #fff;
      overflow: hidden;
    }
    .styled_checkmark span.checked {
      background-image: none;
      content: "";
      left: 0 !important;
      top: -2px !important;
      display: block;
      border: solid #183028;
      border-width: 0 3px 2px 0;
      transform: rotate(45deg);
    }
    .checked {
      display: block;
      background-image: url(/assets/icons/b33fe4380c90c11b5da8a788de5f534b.png);
      background-repeat: no-repeat;
      background-position: -30px -90px;
    }
    img {
      vertical-align: middle;
      border: 0;
    }
    .flight-group-details {
      display: flex;
      flex-flow: wrap;
      justify-content: left;
      flex: 1;
      align-items: center;
      gap: 0.8em;
    }
    .flight-group > :not(:last-child) {
      margin-right: 15px;
    }
    .flight-group {
      display: flex;
      flex-direction: row;
      align-items: center;
      min-height: 90px;
      padding-left: 10px;
      padding-right: 10px;
      flex-grow: 1;

      .al-logo {
        height: 60px;
      }

      .title {
        flex-grow: 1;
      }

      .operated-by {
        color: gray;
        font-size: 12px;
        margin-top: 5px;
        width: 100px;
        white-space: nowrap;
      }

      .checkbox-for-filtering {
        margin-right: 10px;
      }

      /* .flight-group-details > .time.time-departure {
        width: 75px;
      } */

      .flight-group-details > .time {
        font-size: 20px;
        white-space: nowrap;
        color: #183028;
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
      }

      .stop-container {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        max-width: 259px;
      }

      .stop-container .stop-row {
        display: flex;
        align-items: center;
        text-align: center;
        flex-grow: 1;
        width: 100%;
      }

      .stop-container .stop-row .airport-code {
        font-family: Arial, sans-serif;
        font-size: 20px;
        padding: 0 3px;
      }

      .flight-group-details .stop-details {
        flex-grow: 1;
        margin: 0 10px;
        font-size: 12px;
      }

      .flight-group-details .stop-details .details {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: auto;
        scrollbar-width: thin;
        max-width: 170px;
      }

      .flight-group-details .stop-details .line,
      .flight-group-details .stop-details .mobile-line {
        height: 1px;
        background-color: gray;
        display: flex;
        justify-content: center;
        margin: 8px 0;
      }

      .flight-group-details .stop-details .line span,
      .flight-group-details .stop-details .mobile-line span {
        border-radius: 100px;
        width: 10px;
        height: 10px;
        background-color: #fff;
        display: block;
        margin: 0 10px;
        margin-top: -5px;
        border: 1px solid gray;
      }

      .flight-group-details .stop-details .time {
        font-weight: 800;
        white-space: nowrap;
      }

      .stop-container .stop-row .airport-code {
        font-family: Arial, sans-serif;
        font-size: 20px;
        padding: 0 3px;
      }

      .flight-group-days-shift-arrival {
        font-size: 12px;
        position: absolute;
        margin-top: -2px;
        margin-left: 2px;
      }
    }
    .segment-row .buttons {
      display: flex;

      .alternatives,
      .details {
        font-size: 12px;
        word-spacing: 200px;
        text-align: center;
        height: 90px;
        cursor: pointer;
        color: #183028;
        width: 85px;
        padding: 0 5px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .alternatives.selected,
      .details.selected {
        background-color: #198754;
        color: #fff;
      }

      .alternatives.disabled,
      .details.disabled {
        color: #e7e7e7;
        pointer-events: none;
      }

      .alternatives .buttons-label:before,
      .details .buttons-label:before {
        content: "";
        display: block;
        margin: 0 auto 5px;
        width: 24px;
        height: 24px;
        background-repeat: no-repeat;
      }

      .alternatives .buttons-label:before {
        background-image: url(/assets/icons/b0333e8243f1c9287c0e97b21554b6f1.png);
      }

      .details .buttons-label:before {
        background-image: url(/assets/icons/77a1f2b4887b819d738322724a53424c.png);
      }

      .alternatives.selected .buttons-label:before,
      .details.selected .buttons-label:before {
        background-position: -24px 0;
      }

      .alternatives.disabled .buttons-label:before,
      .details.disabled .buttons-label:before {
        background-position: -48px 0;
      }
    }
  }

  .flight-fare {
    background-color: #e5e5e5;
    color: #58595b;
    font-family: Arial, sans-serif;

    .flight-fare-wrapper {
      display: flex;
      align-items: center;
      height: 65px;
    }
    .flight-fare-wrapper > * {
      padding-right: 15px;
    }
    .fare-type {
      width: 130px;
      padding-left: 6px;
      padding-right: 6px;
      word-wrap: break-word;
    }
    .hold-until {
      width: 130px;
      font-size: 12px;
    }
    .benefits {
      flex-grow: 1;
      white-space: nowrap;
      margin: 0;
      padding: 0;
    }
    .baggageallowance,
    .changespermitted,
    .i-char-ac,
    .i-char-bags,
    .i-char-seats,
    .i-char-transmition-automatic,
    .i-char-transmition-manual,
    .refundspermitted,
    .ticketvalidity {
      display: inline-block;
      height: 40px;
      margin-right: 5px;
      background-image: url(/assets/icons/06df8d952c9bd5434e11f21b3f665104.png);
      background-repeat: no-repeat;
      -webkit-touch-callout: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      -o-user-select: none;
      user-select: none;
      cursor: default;
    }
    .benefit {
      list-style-type: none;
    }
    .baggageallowance .count,
    .i-char-bags .count {
      float: left;
      width: 100%;
      font-family: GothamBold, sans-serif;
      font-size: 12px;
      font-style: normal;
      line-height: 19px;
      padding: 9px 0 0 0;
      color: #58595b;
      text-align: center;
      vertical-align: baseline;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .ticketvalidity .count {
      float: left;
      font-family: GothamBold, sans-serif;
      font-size: 11px;
      font-style: normal;
      line-height: 20px;
      padding: 9px 0 0 11px;
      color: #58595b;
      text-align: center;
      vertical-align: top;
      white-space: nowrap;
    }

    .baggageallowance,
    .i-char-bags {
      width: 35px;
      background-position: 0 0;
    }
    .ticketvalidity {
      width: 46px;
      background-position: -34px 0;
    }
    .changespermitted {
      width: 47px;
      background-position: -80px 0;
    }
    .refundspermitted {
      width: 40px;
      background-position: -130px 0;
    }
    .flight-rules-link a {
      color: #183028;
      cursor: pointer;
      text-decoration: none;
      font-size: 16px;
    }
    .price {
      white-space: nowrap;
      font-weight: 700;
    }
    .btn-kt {
      background-color: #183028;
      color: #fff;
      border: none;
    }

    .btn-kt:hover {
      background-color: #284038;
      text-decoration: underline;
    }
  }

  /* alternatives */
  .flight-segment-alternatives {
    display: flex;
    flex-flow: wrap;
    justify-content: flex-end;

    .flight-segment-alternative:first-child {
      border-top: 1px solid #d3d3d3;
    }

    .flight-segment-alternative:nth-child(odd) {
      background-color: #fafafa;
    }

    .flight-segment-alternative {
      display: flex;
      align-items: center;
      cursor: pointer;
      width: 100%;
    }

    .flight-segment-alternative:hover {
      background-color: rgba(146, 200, 62, 0.22);
    }
  }

  @media only screen and (max-width: 1080px) {
    .flight-segment .airline-logo-wrapper {
      display: none;
    }
    .flight-segment .airline {
      width: 140px;
    }
  }

  @media only screen and (max-width: 820px) {
    .flight-segment .segment-row,
    .flight-segment .segment-row .flight-group {
      display: block;
    }

    .flight-segment .segment-row .buttons {
      display: block;
      text-align: right;

      .alternatives,
      .details {
        display: inline-block;
        height: auto;
        border: 1px solid #183028;
        border-radius: 5px;
        margin: 0 10px 10px 0;

        .buttons-label:before {
          display: none;
        }
      }

      .alternatives.disabled,
      .details.disabled {
        border-color: #ddd;
      }
    }

    .flight-segment .flight-group .airline {
      width: 100%;
      height: fit-content;

      .title {
        display: flex;
        margin-top: 10px;

        .cabin-name {
          margin-left: 10px;
        }
        .operated-by {
          margin-top: 1px;
          margin-left: 10px;
        }
      }
    }
  }

  /* flight full details */
  .flight-segment .flight-details {
    display: flex;
    flex-flow: wrap;
    justify-content: left;
    flex: 1;
    align-items: center;
    gap: 0.8em;

    .flight-segment-details-flight:first-child {
      padding-top: 20px;
      border-top: 1px solid #d3d3d3;
    }

    .flight-segment-details-flight {
      display: flex;
      flex-direction: column;
      padding-left: 20px;
      padding-right: 20px;
      padding-bottom: 20px;

      width: 100%;

      .details {
        display: flex;
        flex-direction: row;

        .flight-number {
          display: flex;

          img {
            height: 16px;
            padding-right: 10px;
            vertical-align: middle;
            border: 0;
          }

          .number {
            font-family: Fieldwork, sans-serif;
            font-weight: 800;
            width: 120px;
            padding-bottom: 10px;
          }
        }

        .details-container {
          display: flex;
          flex-direction: column;
          width: 100%;

          .details-flights {
            display: flex;
            flex-grow: 1;
            width: 100%;
          }

          .details-cities {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
            width: 100%;
            background-color: transparent;
            border-collapse: collapse;
            border-spacing: 0;
          }

          .airport-row:first-child td {
            padding-bottom: 10px;
          }

          .airport-row .dates {
            white-space: nowrap;
          }

          .airport-row td {
            vertical-align: top;
            padding-right: 20px;
          }

          table td,
          table th {
            padding: 0;
          }

          .airport-row .cities {
            font-family: Fieldwork, sans-serif;
            font-weight: 800;
            white-space: nowrap;
          }

          .touchdown-row .touchdown {
            font-family: Fieldwork, sans-serif;
            font-weight: 800;
            /* display: flex;
            justify-content: flex-end;
            align-items: center; */
            height: 30px;
            padding-right: 30px;
          }

          .aircraft {
            display: flex;
            color: gray;
            padding-top: 10px;
          }

          .aircraft > span:not(:last-of-type) {
            border-right: 1px solid #d3d3d3;
            margin-right: 10px;
            padding-right: 10px;
          }
        }

        .duration {
          font-family: Fieldwork, sans-serif;
          font-weight: 800;
          display: flex;
          align-items: center;
          justify-content: space-between;
          width: 90px;
          min-width: 90px;
        }
      }

      .details > :not(:last-child) {
        margin-right: 20px;
      }

      .line-duration {
        display: inline-block;
        padding: 5px 0;
        height: 100%;
      }

      .line-duration .circle {
        border-radius: 50%;
        border: 2px solid #c4e095;
        width: 10px;
        height: 10px;
        box-sizing: border-box;
        background: #fff;
        position: relative;
      }

      .line-duration .line {
        height: 100%;
        width: 2px;
        background: #c4e095;
        margin: -10px auto;
      }

      .splitted-line-duration {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
      }

      .splitted-line-duration .circle {
        border-radius: 50%;
        border: 2px solid #c4e095;
        width: 10px;
        height: 10px;
        box-sizing: border-box;
        background: #fff;
        position: relative;
      }
      .splitted-line-duration .line {
        height: 100%;
        width: 2px;
        background: #c4e095;
        margin: -10px auto;
      }
      .splitted-line-duration .arrive-point {
        justify-content: flex-end;
      }

      .splitted-line-duration .arrive-point,
      .splitted-line-duration .depart-point {
        height: 4vh;
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      .connection {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-top: 20px;
        text-align: right;
        font-family: Fieldwork, sans-serif;
        font-weight: 800;
      }

      .connection .duration {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 95px;
        margin-left: 30px;
      }

      .connection .icon {
        font-size: 18px;
        color: #183028;
      }
    }
  }

  .ticket-flight .duration {
    font-family: Fieldwork, sans-serif;
    color: #58595b;
    line-height: 28px;
  }
}

/* result header container */
.search-services-page .result-header-container {
  display: flex;
  margin: 10px 0;

  .group-by-container,
  .sort-by-container {
    display: flex;
    justify-content: center;
    justify-items: center;
  }
  .group-by-container {
    margin-right: 32px;
  }
  .group-by-container .group-by-label,
  .sort-by-container .sort-by-label {
    margin: 6px 6px 0 0;
  }
  .group-by-container .group-by-control {
    margin-top: 8px;
  }
}

/* load more button */
.load-more-container {
  .btn.btn-load-more {
    color: #183028;
    background: #e9f4d8;
    border-color: #e9f4d8;
    border-radius: 5px;
  }
  .btn.btn-load-more:before {
    display: inline-block;
    width: 26px;
    height: 26px;
    margin-top: -1px;
    margin-right: 5px;
    background-image: url(/assets/icons/b33fe4380c90c11b5da8a788de5f534b.png);
    background-repeat: no-repeat;
    background-position: -80px -80px;
    vertical-align: middle;
    content: "";
  }
  .btn.btn-load-more:hover {
    color: #fff;
    background: #183028;
    border-color: #183028;
  }
}

.search-rules-container .accordion-button:not(.collapsed) {
  /* color: var(--bs-accordion-active-color); */
  background-color: #fff;
}
