/* GENERAL STYLES */
html, body {
    margin: auto;
    font-family: 'Roboto','arial',sans-serif !important;
    font-size: 90%  !important;
}
html {
    background-image: url(../img/background_1.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}
body {
    background-color: transparent;
    min-height: 100vh;
}

#app-container {
    position: absolute;
    top: 20%;
    width: 100%;
}
#app-container > section {
    position: relative;
    top: 0;
    width: 80%;
    height: auto;
    margin: auto;
    padding: 35px;
    background-color: rgba(255, 255, 255, 0.75); 
    border-radius: 20px;
}
.hidden {
    display: none;
}
.active {
    display: block;
}

/* SEARCH FORM */
#form-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.form-header-logo {
    width: auto;
    height: 50px;
}
.form-header-searchFlight-cont-mobile {
    display: none;
}
.form-header-searchFlight-cont {
    display: flex;
    flex-direction: row;
    gap: 25px;
}
.form-header-searchFlight {
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    color: #174e82;
    cursor: pointer;
}
.form-header-searchFlight > span {
    margin-left: 15px;
    padding: 15px 0;
    
}
.form-header-searchFlight.activeTab  > span {
    border-bottom: 3px solid #174e82;
}
#form-body {
    text-align: center;
}
#form-body h1 {
    font-size: 32px;
    line-height: 36px;
    font-weight: 700;
    color: #174e82;
    margin: 30px 0;
}
.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.input-group .input-container {
    flex: 1;
    margin-bottom: 0;
}
.input-container {
    position: relative;
    background-color: transparent;
    border-radius: 4px;
}
.input-container.noInput {
    background-color: #fff;
    border: 1px solid #174e82;
}
.input-container.full-width {
    width: 100%;
}
.input-container.half-width {
    flex: 1;
}
.input-label {
    position: absolute;
    top: 8px;
    left: 50px;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    z-index: 1;
    pointer-events: none;
}
.input-field {
    width: 100%;
    padding: 25px 10px 10px 50px;
    border: 1px solid #174e82;
    border-radius: 4px;
    font-size: 15px;
    line-height: 20px;
    box-sizing: border-box;
    background-color: white;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #174e82;
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
    transform: translateY(-50%);
}
.input-icon.rotate90 {
    transform: rotate(-90deg) translateX(50%)
}
.input-label-nights {
    color: grey;
    margin-left: 5px;
}
.autocomplete-results {
    position: absolute;
    height: auto;
    max-height: 300px;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1000;
    background-color: white;
    overflow-y: auto;
    margin-top: 5px;
}
.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 10px;
    cursor: pointer;
    text-align: left;
}
.autocomplete-item:hover {
    background-color: #f2f2f2;
}
.autocomplete-item > i {
    color: #174e82;
    font-size: 20px;
    flex: 0 0 30px;
}
.autocomplete-item > div > span {
    display: block;
    color: #000;
}
.autocomplete-primaryText {
    font-size: 16px;
    line-height: 26px;
    font-weight: 500;
}
.autocomplete-secondaryText {
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
    color: grey;
}
#slider-range {
    width: auto;
    height: 5px;
    margin-left: 55px;
    margin-right: 25px;
    margin-top: 33px;
    background: #ECECEC;
}
#slider-range > div {
    height: 5px;
    background-color: #174e82;
    
}
#slider-range > span {
    top: -8.5px;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #174e82;
}
/* Estilos básicos para el toggle switch (adaptar colores y formas) */
.flight-options {
    margin: 20px 0 25px;
}
.toggle-switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 45px; /* Ancho del switch */
    height: 25px; /* Alto del switch */
}
.toggle-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: 25px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #228ed4;
}
input:focus + .slider {
    box-shadow: 0 0 1px #228ed4;
}
input:checked + .slider:before {
    transform: translateX(20px);
}
.toggle-label {
    color: #000;
    font-size: 16px;
    font-weight: 700;
}
.search-button {
    position: relative;
    width: fit-content;
    padding: 15px 30px;
    background-image: linear-gradient(to right, #228ed4, #6160e4);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-image 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: auto;
    overflow: hidden;
}


/* RESULTS TABLE */
#flight-results-section {
    margin-bottom: 40px !important;
}
#resultTitle {
    font-size: 32px;
    line-height: 36px;
    font-weight: 700;
    color: #174e82;
    margin-bottom: 0;
}
.numberPersons_text {
    font-size: 14px;
    line-height: 16px;
    color: grey;
    margin-top: 5px;
    margin-bottom: 20px;
}
.sortByModify_container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 20px;
}
.sortBy_container_mobile {
    display: none;
}
.sortBy_container {
    display: flex;
    flex-direction: row;
    gap: 25px;
    color: #174e82;
    font-size: 16px;
    line-height: 18px;
    font-weight: 500;
}
.sortBy_container > span {
    padding: 5px 0;
}
.sortBy_container .clicableOption {
    font-weight: 700;
    cursor: pointer;
}
.sortBy_container .clicableOption.activeOption {
    border-bottom: 3px solid #174e82;
}
.sortByModify_prices {
    display: block;
    font-size: 14px;
    line-height: 16px;
    font-weight: 700;
    color: #545860;
    margin-top: 10px;
}
#modifyResults {
    background-color: #228ed4;
    font-size: 14px;
    line-height: 16px;
    font-weight: 700;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    border-radius: 4px;
}
#modifyResults:hover {
    background-color: #1a6da5;
}
#result_empty {
    font-size: 20px;
    line-height: 40px;
    font-weight: 500;
    color: #000;
}
.flightResult-container {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background-color: #fff;
    text-decoration: none;
    box-shadow: 0 1px 3px 0 rgba(37,32,31,.3);
    border-radius: 0.75rem;
    margin-bottom: 0.75em;
}
.flightResult-container > div:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 5%;
    bottom: 5%;
    right: 0;
    width: 1px;
    background-color: #ECECEC;
    z-index: 1;
}
.flightResultDateTime-container {
    position: relative;
    padding: 25px 20px;
    flex: 2 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    gap: 20px;
}
.flightResultFrom-container, .flightResultTo-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.flightResultTo-container {
    margin-top: 0.5rem;
}
.flightResultDate-container {
    display: flex;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    color: #545860;
}
.flightResultTime-container {
    display: flex;
    flex-flow: row wrap;
    flex: 1 1 78%;
    text-align: center;
}
.flightResultTimeDepart-container, .flightResultTimeReturn-container {
    display: flex;
    max-width: 32%;
    padding-right: 0.25rem;
    flex-direction: column;
    flex: 0 1 31%;
    
}
.flightResultTimeDepart-container {
    text-align: right;
    align-items: flex-end;
}
.flightResultTimeReturn-container {
    text-align: left;
}
.flightResultTimeScales-container {
    max-width: 30%;
    padding: 0 10px;
    flex: 0 1 30%;
    text-align: center;
}
.flightResultTime {
    color: #000;
    font-size: 24px;
    line-height: 26px;
    font-weight: 400;
}
.flightResultCity {
    font-size: 18px;
    line-height: 20px;
    font-weight: 400;
    color: #545860;
}
.flightResultDuration {
    color: #545860;
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
}
.flightResultAirImage {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: center;
    align-items: center;
}
.flightResultAirImage > div {
    width: 90%;
    height: 4px;
    background-color: #c1c7cf;
    border-radius: 2px;

}
.flightResultAirImage > i {
    color: #8d8697;
}
.flightResultScale {
    color: #0e8447;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}
.flightResultScalesName {
    font-size: 12px;
    cursor: pointer;
}
.flightResultCarriers_cont {
    display: inline;
    margin-left: 20px;
}
.flightResultCarriers {
    margin-left: -10px;
    cursor: pointer;
}
.flightResultCarriers img {
    width: 20px;
    border-radius: 10px;
    border: 1px solid #ECECEC;
}
.flightResultNights-container {
    position: relative;
    text-align: center;
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
    color: #000;
}
.flightResultNights-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 8px;
    height: 1px;
    background-color: #ECECEC;
    z-index: 0;
    overflow: hidden;
}
.flightResultNights-container > span {
    position: relative;
    background: #fff;
    padding: 5px 10px;
    border-radius: 14px;
    border: 1px solid #ECECEC;
    z-index: 1;
}
.flightPrice-container {
    padding: 1rem;
    flex: 0 0 16%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 15px;
}
.flightPrice {
    font-size: 24px;
    line-height: 26px;
    font-weight: 700;
    color: #000;
}
.flightPrice > i {
    font-size: 14px;
    margin-left: 5px;
    cursor: pointer;
    color: #c1c7cf;
}
.link_skyscanner {
    text-decoration: none;
}
.btn_skyscanner {
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    background-image: linear-gradient(to right, #228ed4, #6160e4);
}

/* MAP */
#close-map-btn {
    position: absolute;
    top: 0;
    right: 0;
    color: #ECECEC;
    font-size: 30px;
    padding: 30px;
    cursor: pointer;
}
.flightPrice-seeRouteBtn {
    cursor: pointer;
    font-size: 14px;
    line-height: 18px;
    border-radius: 15px;
    color: #545860;
    border: 1px solid #545860;
    padding: 5px 15px;
}

.flightPrice-seeRouteBtn > i {
    margin-right: 5px;
    font-size: 20px;

}

.flight-duration-label {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    box-shadow: none;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 12px;
}

.flight-duration-label::before {
    border: none !important;
}

.flight-cities-label {
    border: none;
    box-shadow: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    border: 2px solid;
}
.cityOrigen {
    border-color: green;
}
.cityEscala {
    border-color: orange;
}
.cityDestino {
    border-color: red;
}
.cityOrigen, .cityDestino {
    font-weight: 700;
}