html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Jost';
    font-weight: 300 !important;
    /*   background: #e9ecefed; */
    margin: 0px;
    padding: 0px;
}



header {
    margin: 0px;
    padding: 0px;
    background: linear-gradient(135deg, #005B7A 0%, #003F59 100%);
    overflow: visible;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#main-search-form {
    margin-top: -25px;
}

#locale-picker-top .nice-select.form-control {
    height: 38px;
    line-height: 38px;
    padding-top: 0;
    padding-left: 8px;
    padding-right: 20px;
}

#locale-picker-top {
    display: flex;
    flex-wrap: nowrap;
}

#locale-picker-top::after {
    content: url(../assets/images/globe.svg);
    width: 24px;
    height: 24px;
    align-self: center;
}

#top {
    width: 95%;
    max-width: 1200px;
    margin: auto;
    position: relative;
}

#logo {
    width: 130px !important;
    min-width: 0 !important;
    height: 60px;
    color: #77AFC3;
    font-size: 24px;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

#logo div, #logo_inner {
    background-size: contain;
    background-repeat: no-repeat;
    height: 45px;
    width: 100%;
}

@media (min-width: 576px) {
    #logo {
        min-width: 200px;
    }
}

#faw #logo,
#wishlist #logo {
    background: none;
}

#nomadstop #logo,
#feed #logo {
    background: none;
}

#nomadstop .flightStatsMenu,
#nomadstop .wishlistMenu,
#nomadstop #locale-picker-top,
#feed .flightStatsMenu,
#feed .wishlistMenu,
#feed #locale-picker-top {
    display: none;
}

#logo:hover {
    text-decoration: none;
}

#top .links {
    width: 50%;
    float: right;
    text-align: right;
}

#searchBar {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, #003F59 0%, #003247 100%);
    margin-top: 25px;
    margin-bottom: 25px;
    position: relative;
    z-index: 5;
    overflow: visible;
}

#searchBar::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 113, 156, 0.1) 0%, transparent 70%);
    transform: rotate(-15deg);
    pointer-events: none;
}

#searchBar .content {
    width: 90%;
    max-width: 1096px;
    margin: auto;
    padding: 5% 0px;
    position: relative;
    z-index: 1;
}

#searchBar .title {
    color: #ffffff;
    font-size: 2.5em;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#searchBar .title span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    display: block;
    margin-top: 8px;
}

#searchBar .form {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    padding: 3.5%;
    padding-bottom: 80px;
    border-radius: 20px;
    margin-top: 42px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: visible;
    position: relative;
}




#searchBar .content {
    position: relative;
    /* ensure absolute children are positioned to content */
}

#previousWeekend,
#nextWeekend {
    position: absolute;
    top: -29px;
    right: -15px;
    z-index: 50;
    float: none !important;
    margin: 0 !important;
    padding: 4px 8px;
    color: #fff;
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

#previousWeekend i,
#nextWeekend i {
    font-size: 11px;
}

#previousWeekend:hover,
#nextWeekend:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
}

/* On small screens keep it in flow to avoid overlap */
@media (max-width: 767.98px) {
    #nextWeekend {
        position: static !important;
        display: inline-block;
        width: auto;
        margin: 8px 0 12px auto;
        box-shadow: none;
    }

    #searchBar .form {
        padding-top: 18px;
        /* ensure space if button appears above */
    }
}

#main-search-form label:not(.custom-control-label) {
    font-weight: 300;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    pointer-events: none;
}

#main-search-form label:not(.custom-control-label) #stayoverInfoBtn {
    pointer-events: auto;
}

#main-search-form label[for="depart"],
#main-search-form .stayover-label {
    justify-content: center;
}

#main-search-form #depart {
    text-align: center;
}

.date-time-pickers-col {
    position: relative;
}

.date-time-pickers-col:focus-within,
.date-time-pickers-col.date-picker-active {
    z-index: 20;
}

#stopoverDays,
#stopoverDays + .nice-select {
    width: 100% !important;
    text-align: center;
    text-align-last: center;
}

#stopoverDays + .nice-select {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: normal !important;
}

#stopoverDays + .nice-select .current {
    display: inline-block;
    float: none;
    line-height: normal;
}

#stopoverDays + .nice-select .option {
    text-align: center;
}


#main-search-form label:not(.custom-control-label) i {
    font-size: 18px;
    opacity: 0.7;
    width: 20px;
    text-align: center;
}

#main-search-form .form-control,
#main-search-form .nice-select {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border-radius: 8px !important;
    height: 48px !important;
    line-height: 46px !important;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

#main-search-form .form-control:focus,
#main-search-form .nice-select:focus,
#main-search-form .nice-select.open {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05), 0 0 15px rgba(255, 255, 255, 0.1) !important;
}

#main-search-form .nice-select .current {
    color: #fff;
}

#main-search-form .nice-select .list {
    background-color: #003F59 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

#main-search-form .nice-select .option {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 40px !important;
    min-height: 40px !important;
}

#main-search-form .nice-select .option:hover,
#main-search-form .nice-select .option.focus,
#main-search-form .nice-select .option.selected.focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

#main-search-form .nice-select:after {
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
}

#main-search-form .custom-control-input:checked~.custom-control-label::before {
    background-color: #00719C;
    border-color: #00719C;
}

#recentSearchesBtn {
    padding: 12px 18px;
    font-weight: 400;
    letter-spacing: 0.04em;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow: none;
    height: auto !important;
    position: absolute;
    bottom: 20px;
    left: 3.5%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

#recentSearchesBtn i {
    font-size: 1.05rem;
}

#recentSearchesBtn .recent-searches-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
}

#recentSearchesBtn:hover,
#recentSearchesBtn:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

#recentSearchesBtn.is-empty {
    opacity: 0.55;
}

#mainSearch {
    padding: 14px 32px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: linear-gradient(135deg, #00719C 0%, #006789 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 113, 156, 0.3);
    height: auto !important;
    position: absolute;
    bottom: 20px;
    right: 3.5%;
    overflow: hidden;
    margin-top: 0;
}

.recent-search-item {
    cursor: pointer;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.recent-search-item:last-child {
    margin-bottom: 0;
}

.recent-search-item:hover {
    border-color: #00719C;
    box-shadow: 0 6px 18px rgba(0, 113, 156, 0.12);
    transform: translateY(-1px);
}

.recent-search-item-icon {
    color: #00719C;
    font-size: 1.15rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.recent-search-item-route {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.recent-search-item-route .flag {
    flex-shrink: 0;
}

.recent-search-item-meta {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.recent-searches-empty {
    text-align: center;
    color: #777;
    padding: 28px 12px;
    font-size: 0.95rem;
}

#mainSearch::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#mainSearch:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 113, 156, 0.45);
    background: linear-gradient(135deg, #008FBE 0%, #00719C 100%);
}

#mainSearch:hover::after {
    opacity: 1;
}

#anywhere {
    padding-left: 35px !important;
}

.anywhereIcon {
    position: absolute;
    left: 28px;
    top: 15px;
    z-index: 5;
    opacity: 0.8;
    color: #fff !important;
    pointer-events: none;
}

#searchBar .where {

    padding-top: 10px;
}

#searchBar .bigger {
    font-size: 1.4em;
}

#searchOptions {
    width: 60%;
    margin: auto;
}

#searchResults h3 {
    display: none;
}

#searchResults {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

#searchResults,
#homeText,
#footer,
#top,
#page,
#cheapestCtoBFlights {
    width: 90%;
    max-width: 1096px;
    margin: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* nomadstop, cheapest C to B flights */

.ctobAirport {
    color: #978d8d;
    font-weight: 300;
}

a.ctobAirport {
    text-decoration: underline dashed;
}

ol.c-to-b-flights,
ul.c-to-b-flights {
    list-style-type: none;
    gap: 0.5rem;
}

.ctobPrice {
    display: inline-block;
    font-weight: 300;
}

.c-to-b-flights li.show-more-item:not(:last-child)::after {
    content: ",";
}

.c-to-b-flights li.show-more-item:not(nth-last-of-type(3))::after {
    content: '';
}

.show-more-container-closed .show-more-extra {
    display: none;
}

.show-more-container:not(.show-more-container-closed) .show-more-closed-only {
    display: none;
}

#footer,
#top,
#page {
    padding: 0;
    margin-top: 25px;
}

#page #footer {
    width: 100%;
}

#searchResults .item {
    position: relative;
    margin-bottom: 15px;
    box-shadow: 0px 0px 2px 0px rgba(37, 32, 31, .3);
    background: rgb(248 245 245 / 73%);
    border-radius: 8px;
}

#searchResults .item .briefInfo {
    position: absolute;
    color: #fff;
    bottom: 0px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    margin-left: 0px;
}

#searchResults .item .img {
    /* max-width: 516px; */
    padding: 0;
    max-height: 330px;
}

#searchResults .item .briefInfo .title {
    font-size: 1.3em;
    /* font-weight: 300; */
    /* margin-top: 11px;  */
}

.item .flag {
    width: 33px;
    height: 21px;
}

span.flag {
    width: 38px;
    height: 26px;
}

.weatherDay a {
    color: #ffffff;
    text-decoration: none;
}

#searchResults .item .data {

    /* margin-left: 10px; */
    /* padding: 15px; */
    vertical-align: middle;
}

#searchResults .item .data .times,
#searchResults .item .data .length {
    font-size: 0.9em;
    color: #647582;
}

#searchResults .item .data .time {
    font-weight: 300;
    color: #000;
    font-size: 0.9em !important;
    color: #1a7e9ce0;
    /* background: #8edff51f; */
    /* padding: 3px;
    padding-left: 10px;
    padding-right: 10px; */
    border-radius: 6px;
    /* margin-left: -7px; */
    /* padding: 6px; */
    padding-right: 4px;
}


#searchResults .item .data .there {
    margin-bottom: 10px;
    margin-top: 16px;

}

#searchResults .item .data .airlineLogo,
#faw .data .airlineLogo,
#wishlist .data .airlineLogo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logoSmaller {
    width: 30px;
    margin-right: 2px;
}

.stats-image {
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 5px 0 rgba(0, 0, 0, 0.19);
    margin-right: 10px;
}

#searchResults .item .data .logo,
#faw .data .logo,
#wishlist .data .logo {
    padding: 0;
    padding-left: 5px;
}

#searchResults .item .data .totals {
    margin-top: 25px;
    font-size: 1.7em;
    font-weight: 300;
}

#searchResults .item .data .totals span {
    font-size: 0.6em;
}

.flight .fa-circle {
    color: #8DC7DA;
}

#searchResults .item .data .time {}


.hotel .fa-circle {
    color: #6DAEC5;
}

#searchResults .item .destinationImage {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.datepicker td,
.datepicker th {
    font-size: 0.8em;
}

.datepicker td.active:active,
.datepicker td.active:hover:active,
.datepicker td.active.active,
.datepicker td.active:hover.active {
    border-radius: 15px;
    background-image: linear-gradient(to bottom, #cc0000, #ff5061);
}

.flightPrice {
    font-size: 0.8em;
    width: 100%;
    background: none;
    color: #5f5e5e;
    border-color: #139622;
    margin-top: 10px;
    border: 0.5px solid #c0c0c0;
    border-radius: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-weight: 200;
}

.select {
    background-color: #00719C;
    box-shadow: 0px 4px 0px 0px #005D7D;
    border: none;
}

#anywhere {
    background-color: #c0c0c0;
    padding-left: 26px;
}

#resultCount {
    margin-left: 6px;
    font-weight: 300;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.modal-content {
    padding: 10px;
}

#previousWeekend {
    display: none;
}

.airportInfo .icon,
.airportStop .icon {
    /* border-left: 1px solid #c0c0c0; */
    float: left;
    /* margin-right: 5px; */
    position: relative;
    clear: both;
}

.airportStop .icon {
    margin-right: 0;
}

.airportInfo .icon::before,
.airportStop .icon::before {
    content: '\f111';
    font-family: 'Font Awesome 5 Free';
    margin-left: -3px;
    font-size: 7px;
    color: #3f3f3f;
    font-weight: 300;
    margin-top: -5px;
    z-index: 5;
    position: relative;
}

.airportStop .icon::before {
    content: '\f072';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    display: block;
    font-size: 13px;
    margin-left: -13px;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
    color: #005B7A;
    background: #fff;
    padding: 3px 0;
    z-index: 10;
    position: relative;
    top: -2px;
}

.data .times .airportInfo .icon::after,
.data .times .airportStop .icon::after {
    height: 42px;
    width: 100%;
    display: inline-block;
    content: '';
    position: absolute;
    border-left: 1px solid #c0c0c0;
    left: 0;
}

.data .times .airportStop .icon::after {
    height: 22px;
}

.data .times .airportInfo:first-child .icon::after {
    top: 50%;
}

.data .times .airportInfo:last-child .icon::after {
    top: 0;
    height: 15px;
}

.airportStop span {
    background: #e8ebebe0;
    border-radius: 5px;
    padding: 0 6px;
    margin-right: 5px;
}

#searchResults .item .airportStop span.times {
    background: #e0e0e0;
    color: #1f1e1e;
}

span.direct {
    background-color: #cde6d2;
}

.airportInfo .info {
    margin-left: 15px;
}

.airline {
    font-weight: 300;
}

.autocomplete {
    position: absolute;
    background: white;
    z-index: 10;
    border-radius: .375rem;
    box-shadow: 0 4px 14px 0 rgba(37, 32, 31, .25);
    font-size: 0.9em;
    width: calc(100% - 30px);
    margin-top: 2px;
}

.autocomplete .clearAll {
    position: absolute;
    right: 13px;
    font-size: 1.2em;
    top: -1px;
    color: rgb(255, 0, 0);
}

.autocomplete ul {
    padding: 0;
    margin: 0;
}

.autocomplete li {
    list-style: none;
    border-bottom: 1px solid #c0c0c0;
    position: relative;
}

.autocomplete li ul li a {
    padding-left: 30px;
}

.autocomplete li:last-child {
    border: none;
}

.autocomplete li a {
    color: #000;
    text-decoration: none;
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: .375rem;
}

.autocomplete .results li a:hover {
    background-color: #f7f4f4;
}

.autocomplete .selected li a:hover {
    background-color: #f7f4f4;
}

.autocomplete li .check {
    position: absolute;
    right: 5px;
    top: 10px;

}

/* .autocomplete li .check label {
    visibility: hidden;
} */


.autocomplete li .check input {
    width: 1.1rem;
    z-index: 3;
}

.autocomplete li>li:hover {
    visibility: hidden;
}

.autocomplete .selected {
    color: #000;
    border-bottom: 2px solid #c0c0c0;
    display: none;
}

.autocomplete .selected li {
    background: #daebff;
}

.autocomplete .selected>span {
    margin-left: 10px;
    font-weight: 300;
    text-transform: uppercase;
}

.autoSelected {
    position: absolute;
    width: 90%;
    overflow: hidden;
    height: 80px;
    margin-left: 4px;
}

.autoSelected.active {
    z-index: -1;
}

.autoSelected .cont {
    position: absolute;
    margin-top: 7.5px;
    white-space: nowrap;
}

.autoSelected .tag {
    border-radius: 7px;
    background-color: #005B7A;
    padding: .25em .4em;
    margin-right: 5px;
    white-space: nowrap;
}

.autoSelected .tag a {
    color: #fff;
    z-index: 10;
}

/* .autocomplete li a:hover + .check label, .autocomplete li .check:hover label, .autocomplete li .check input:checked + label {
    visibility: visible;
} */



#airports a.off {
    background: #f37171;
    color: #fbb7b7;
    border-color: #f79696;
    text-decoration: line-through;
    box-shadow: 0px 4px 0px 0px #c05e5e;

}

#airports {
    margin-left: -12px;
}

#airports .btn-info {
    margin-bottom: 10px;
    box-shadow: 0px 4px 0px 0px #1792a6;
}


#airports .btn-info:active {
    box-shadow: 0px 2px 0px 0px #1792a6;
}

#airports a.off:active {
    box-shadow: 0px 2px 0px 0px #c05e5e;

}

/* .fa, .fas {
    font-size: 0.85em;
} */
/* .fas {
    font-size: 0.8rem;
} */

.fa-search {
    font-size: 1rem;
}

i.fas.fa-plane-departure,
i.fas.fa-plane,
i.fas.fa-plane-arrival {
    padding-right: 4px;
    font-size: 18px;
}

i.fal.fa-globe,
i.fas.fa-compass {
    font-size: 18px;
}

i.fal.fa-male,
i.fal.fa-female {
    font-size: 16px;
}

i.fal.fa-thermometer-half {
    font-size: 16px;
}

i.fal.fa-search {
    font-size: 16px;
}

i.fal.fa-caret-left,
i.fal.fa-caret-right {
    font-size: 16px;
}

span.airportCode {
    background: rgba(179, 221, 211, 0.25);
    color: #005B7A;
    padding-left: 6px;
    padding-right: 6px;
    border-radius: 5px;
    margin-left: 3px;
}


@media only screen and (max-width: 500px) {
    #searchResults .item .data .time {
        font-size: 0.9em !important;
    }
}

#homeText .hpicon {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 20px !important;
    display: block !important;
}

#homeText .item img {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto !important;
}

#homeText .item {
    text-align: center;
}

#footer a {
    color: #000;
    margin-right: 10px;
    white-space: nowrap;
    padding: 10px;
}

#footer {
    background: #e8e8e8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgb(189, 191, 191);
}

div#page {
    margin-top: 52px;
}

#mainSearch,
#mainNomadSearch,
button#include-flights-one-stop,
#moreItineraries,
a#bottomFB,
#fixedDate,
#seeDealsButton,
#dateRange,
.button {
    background: #00719C;
    border-color: #00719C;
    color: white;
    box-shadow: 0px 4px 0px 0px #005D7D;
    transition: background 0.3s ease;
}



#mainSearch:hover,
#moreItineraries:hover,
a#bottomFB:hover,
.select:hover {
    background: #005B7A;
    border-color: #005B7A;
    box-shadow: 0px 4px 0px 0px #00435D;
}

#mainSearch:active,
#moreItineraries:active,
a#bottomFB:active,
.select:active {
    box-shadow: 0px 2px 0px 0px #005D7D;
}

a.btn.btn-success.btn-lg.w-100.select:hover {
    background: #005B7A;
    border-color: #005B7A;
}

.weatherDay {
    text-align: right;
    margin-top: 7px;
}

.weatherDate {
    display: block;
}

.weatherDay {
    background: no-repeat;
    background-size: 41%;
    background-position-x: 17px;
}

.weatherDay:not(.averageWeather) {
    padding-top: 21px;
    line-height: 1;
}

span#weatherTempMax {
    margin-left: 10px;
}

div#spaceHeader {
    height: 4px;
    background: #00719C;
    margin-right: 0px;
}

#homeText {
    margin-top: 84px !important;
    padding: 20px 0;
}

#founders .row {
    margin-top: 30px;
}

#founders h4 {
    text-align: center;
}

.personImage {
    -webkit-box-shadow: 15px 17px 22px -21px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 15px 17px 22px -21px rgba(0, 0, 0, 0.75);
    box-shadow: 15px 17px 22px -21px rgba(0, 0, 0, 0.75);
}



.align-items-center {
    -ms-flex-align: center !important;
    align-items: center !important;
}

.d-flex {
    flex-direction: column;
}

.fa-facebook:before {
    content: "\f09a";
}

.media-body {
    -ms-flex: 1;
    flex: 1;
}

.d-block {
    display: block !important;
}

#topFB {
    height: 65px;
    margin-top: 8px;
    border-radius: 8px;
    padding-left: 20px;
    padding-right: 30px;
    position: absolute;
    right: 17px;
    /* background: #00719C;
    border-color: #005B7A;	 */
    background: none;
    border: none;
    font-size: 0.9em;
}

a#topFB:hover {
    background: #005B7A;
    border-color: #00719C;
}

.giveUsALike {
    margin-left: 16px;
}

a#bottomFB {
    height: 65px;
    margin-top: 8px;
    border-radius: 8px;
    padding-left: 20px;
    padding-right: 30px;
    background: #00719C;

}

.fab {
    font-size: 2em;
}

#temperatureField {
    width: 63px;
    margin-left: 4px;
}

.temperatureContainer {
    position: relative;
    display: inline-block;
    /* float: left; */
}

.temperatureContainer:after {
    position: absolute;
    right: 13px;
    top: 7px;
    content: '°C';
    color: #495057;
}

.after {
    position: relative;
    display: inline-block;
    width: 100%;
}

.after:after {
    position: absolute;
    /* right: 18%; */
    left: 60px;
    top: 15px;
    content: '°C';
    color: #495057;
}

.after.time:after {
    content: '- 23:59';
}

input#temperatureField::-webkit-outer-spin-button,
input#temperatureField::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input#temperatureField {
    -moz-appearance: textfield;
}

label.custom-control-label.temperature {
    margin-left: 20px;
    margin-bottom: 4px;
}

.atLeast i.fas.fa-thermometer-half {
    font-size: 1.1em;
    padding-right: 5px;
}

div#tempDiv {
    margin-left: 4px !important;
}

.flagIcon {
    margin-top: .35rem !important;
    padding-right: 4px;
}

#itinerary {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

#itinerary .header {
    width: 100%;
}

#itinerary .header img.main {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

#itinerary .header img.contHelper {
    width: 54%;
}

#itinerary .header .titleCont {
    color: #f3f4f5;
    /* padding-left: 30px; */
    padding-right: 30px;
    padding-bottom: 20px;
    bottom: 0;
}

#itinerary .header .title {
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -.03em;
    color: #fff;
}

#itinerary .header .cover {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .4) 0, rgba(0, 0, 0, .3) 20%, transparent 50%, rgba(0, 0, 0, .3) 75%, #000);
}

#itinerary .header .FixedAspectContainer {
    position: relative;
    display: inline-block;
    width: 100%;
}

#itinerary .header .cont {
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0
}

#itinerary .section {
    /* padding-left: 30px; */
    padding-top: 20px;
    /* padding-right:20px; */
}

#itinerary .section h2 {
    margin-left: 7px;
}

#itinerary #left {
    width: 100%;
    max-width: 750px;
}

.customScroll::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #F5F5F5;
}

.customScroll::-webkit-scrollbar {
    width: 6px;
    background-color: #F5F5F5;
}

.customScroll::-webkit-scrollbar-thumb {
    background-color: #000000;
}

#itineary #chart {
    width: 90%;
}


#itinerary #right {
    width: calc(100% - 750px);
    min-width: 370px;
    height: calc(100% - 96px);
    position: fixed;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    backface-visibility: hidden;
    bottom: 0;
    right: 0;
    transition: all .2s ease-in-out;
}

#itinerary .thumb {
    width: 200px;
    margin-left: 12px;
    box-shadow: 1px 2px 2px 1px #a2a2a2;
    border-radius: 2px;
}

#itinerary .itineraryItem {
    display: inline-block;
    margin: 10px 0;
    border-bottom: 1px solid #e2e2e2;
    cursor: pointer;
}

#itinerary .itineraryItem:hover {
    background: #f7f7f7;
}

#itinerary .markerIcon {
    display: inline-block;
    margin-top: 5px;
}

#itinerary .markerIcon .number {
    position: absolute;
    color: #fff;
    margin-left: 8px;
    font-weight: 300;
    font-size: 12px;
    margin-top: 4px;
}

#itinerary .markerIcon span i {
    font-size: 30px;
}

#itinerary .itineraryItem .title {
    font-size: 1.3em;
}

#itinerary .tags {
    display: block;
}

#itinerary .tags span {
    background-color: #e2e2e2;
    padding: 3px;
    font-size: 0.65em;
    border-radius: 3px;
    white-space: nowrap;

}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(25px, 15px) rotate(5deg);
    }

    66% {
        transform: translate(-10px, 30px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

#searchBar::after {
    content: "";
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 143, 190, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s infinite ease-in-out;
}

#itinerary #right #itemDetails {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #f3f4f5;
    background-clip: border-box;
    border: 0 solid rgba(0, 0, 0, .125);
    bottom: 0px;
    /* padding: 5px 10px; */
    bottom: -1000px;
    transition: bottom .3s ease-in-out;
}

#itinerary #right #itemDetails.visible {
    bottom: 0;
}

#itinerary #right .itemDetailsCont {
    bottom: 0;
    width: 100%;
}

#itinerary #right #itemDetails .data {
    background: #fff;
    padding: 15px;
    font-size: 0.8em;
}

#itinerary #right #itemDetails .data>div {
    margin-bottom: 5px;
}

#itinerary #right #shadow {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 62;
    box-shadow: inset 1.25rem 0 1rem -1rem rgba(0, 0, 0, .2);
    pointer-events: none;
}

#itinerary #right #itemDetails .heading .title {
    display: inline-block;
}

#itinerary #right #itemDetails .heading .markerIcon {
    margin-top: 0;
}

#itinerary #right #itemDetails .heading .markerIcon i {
    font-size: 20px;
}

#itinerary #right #itemDetails .heading .markerIcon .number {
    font-size: 12px;
    margin-left: 4px;
    margin-top: -1px;
}


#itinerary #right #itemDetails .heading {
    padding: 5px 13px;
    cursor: pointer;
}

#itinerary #right #itemDetails .data i {
    width: 20px;
}

#itinerary #right #itemDetails .data .opening_hours>span {
    display: inline-grid;
}

#itinerary .itinerarySection.day_1 .markerIcon span {
    color: #7EED94;
}

#itinerary .itinerarySection.day_2 .markerIcon span {
    color: #A163A2;
}

#itinerary .itinerarySection.day_3 .markerIcon span {
    color: #3B9FA6;
}

#itinerary .placesSection .markerIcon span {
    color: #E6A26E;
}

#itinerary #map {
    width: 100%;
    height: 100%;
}

body#itinerary header {
    position: fixed;
    width: 100%;
    top: 0;
}

body#itinerary .content {
    margin-top: 96px;
}

body#itinerary #right {
    top: 96px;
    transition: left .2s ease-in-out;
}

body#itinerary #footer {
    margin-left: 0px;
    width: 100%;
    max-width: 750px;
}

body#itinerary #showMap {
    position: fixed;
    display: none;
    width: 100px;
    height: 51px;
    background: #000000;
    border-radius: 3px;
    top: 18px;
    right: -3px;
    z-index: 10;
    color: #8e9ea0;
    text-align: center;
    font-weight: 300;
    display: none;
    text-transform: uppercase;
}

body#itinerary #showMap:hover {
    text-decoration: none;
    background: #3b3b3b;
    color: #fff;
}

#left section h2 i {
    font-size: 32px;
}

.section.averageTemperatures text,
.section.averageTemperatures rect {
    font-family: 'Jost';
}

#itinerary .markerColumn {
    width: 35px;
    display: table-cell;
}

#itinerary .itemColumn {
    display: table-cell;
    vertical-align: top;
}

#itinerary .itemRow {
    padding-left: 50px;
    width: 100%;
    display: table;
}

.content.maxWidth {
    max-width: 1096px;
    margin: auto;
}

.itineraryList .list {
    padding: 0;
    margin: 0;
}

.itineraryList .list .item {
    padding: 0;
}

.itineraryList .list .item .flag {
    position: absolute;
    left: 10px;
    top: 13px;
}

.itineraryList .list .item .main {
    width: 98%;
    height: 270px;
    margin-top: 11px;
    object-fit: cover;
    box-shadow: 0px 1px 1px 0px #a2a2a2;
    transition: opacity 0.2s ease;
}

.itineraryList .list .item .title {
    position: absolute;
    font-size: 1.5em;
    padding-top: 6px;
    padding-bottom: 6px;
    color: #fff;
    bottom: 0%;
    width: 98%;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
}


table.calendarMonth caption {
    caption-side: top;
    font-size: 1.3em;
    text-align: center;
    background: #eeeeee;
}

table.calendarMonth .day {
    color: #c0c0c0;
    text-align: center;
    border-bottom: 1px solid #fff;
}

table.calendarMonth .header {
    text-align: center;
}

table.calendarMonth .day.active {
    background: #00b8ff;
    border: 1px solid white;
    color: #fff;
    border-radius: 9px;
}

table.calendarMonth td.day.active.group_1 {
    background: #00A8D2
}

table.calendarMonth td.day.active.group_2 {
    background: #00b8ff;
}

table.calendarMonth td.day.active.group_3 {
    background: #f2b678;
}

table.calendarMonth td.extra.group_1 {
    color: #00A8D2;
}

table.calendarMonth td.extra.group_2 {
    color: #00b8ff;
}

table.calendarMonth td.extra.group_3 {
    color: #f2b678;
}

table.calendarMonth .extra {
    padding: 0 5px;
    color: #00e5a7;
    width: 60px;
    font-weight: 300;
}

#faw #flightDetails,
#wishlist #flightDetails {
    display: none;
}

#faw .active,
#faw .extra,
#wishlist .active,
#wishlist .extra {
    cursor: pointer;
}

#calendar .day.fawHover {
    background: #000;
}

#calendar .extra.fawHover {
    color: #000;
}

#calendar {
    display: none;
}


#calendar tr {
    text-align: center;
}

td.day.active {
    border-radius: 9px;
}

.modal .data .dates {
    font-weight: 300;
    margin-bottom: 14px;
}


#faw header,
#wishlist header {
    background-color: #0e8bab;
}


#faw #spaceHeader {
    background: #0e7994;
}

#faw button#mainSearch,
#faw #moreItineraries {
    background: #0e8bab;
    border-color: #1b8fad;
    box-shadow: 0px 4px 0px #0e758f;
    transition: background 0.3s ease;
}

#faw button#mainSearch:active,
#faw #moreItineraries:active {
    box-shadow: 0px 2px 0px #0e758f;
}

.ftw-modal .flightPrice {
    font-size: 22px;
}

#fawExampleImg {
    width: 460px;
}

#fawPromo {
    padding-left: 23px;
    padding-right: 23px;
}

.itineraryList .list .item .main:hover {
    opacity: 0.7;
}

#faw button#mainSearch:hover,
#faw #moreItineraries:hover {
    background: #0d7691;
    border-color: #166e85;
    box-shadow: 0 4px 0 #0b586c;
}

#faw #topFB:hover {
    background: #0c6a82;
}

.addToWishlist {
    position: absolute;
    right: 11px;
    top: 8px;
    color: rgb(230, 214, 0);
    font-size: 1.4em;
    z-index: 10;
}

#showWishlist {
    padding: 7px;
    padding-left: 10px;
    padding-right: 9px;
    text-align: center;
    border-radius: 4px;
    height: 36px;
    /* width: 36px; */
    background-color: #00719C;
    right: -100px;
    color: #fff;
    position: fixed;
    bottom: 10px;
    font-weight: 300;
    display: none;
    text-decoration: none;
}


#wishlist #calendar {
    display: block;
}

#wishlist #calendar .row {
    margin-right: 0;
    margin-left: 0;
}

#wishlist .nav-tabs .nav-link.active {
    border-color: #dee2e6 #dee2e6 #eee;
    background: #eee;
}

#wishlist .nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

#wishlist .nav-tabs {
    font-weight: 300;
    margin-top: 16px;
}

#wishlist .wishlistImage {
    border-radius: 5px;
    object-fit: cover;
    width: 100%;
    max-height: 270px;
}

#preloader {
    position: fixed;
    background: url(../assets/images/preloader.png) no-repeat;
    width: 220px;
    height: 28px;
    top: calc(50vh - 28px);
    left: calc(50vw - 110px);
}

#menu {
    padding: 0;
    background-color: transparent !important;
}

#navbar_list {
    display: flex;
    padding-right: 120px;
}

#auth_nav_list {
    display: block;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    transform: none !important;
    margin: 0;
    padding: 0;
    z-index: 20;
}

#menu li {
    margin-right: 5px;
}

#menu a {
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    font-weight: 300;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

#navbar_list > .nav-item:not(.active) > .nav-link,
#navbar_list > .nav-item:not(.active) > .nav-link .product-nav-icon {
    color: #ffffff !important;
}

#menu li.active a {
    border-color: rgba(255, 255, 255, 0.3);
}

#menu_item_home.active > .nav-link {
    background: linear-gradient(135deg, #0b654f 0%, #074d3d 100%);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff !important;
    box-shadow: 0 3px 9px rgba(5, 59, 47, 0.24);
}

#menu_item_home.active > .nav-link .product-nav-icon {
    color: #ffffff !important;
}

#menu_item_nomad.active > .nav-link {
    background: linear-gradient(135deg, #00516f 0%, #003f59 100%);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff !important;
    box-shadow: 0 3px 9px rgba(0, 50, 71, 0.28);
}

#menu_item_nomad.active > .nav-link .product-nav-icon {
    color: #ffffff !important;
}

#menu_item_visa.active > .nav-link {
    background: linear-gradient(135deg, #0f8064 0%, #0a624d 100%);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff !important;
    box-shadow: 0 3px 9px rgba(7, 77, 61, 0.26);
}

#menu_item_visa.active > .nav-link .product-nav-icon {
    color: #ffffff !important;
}

#menu li:not(.active) a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}
#login_nav_item,
#auth_nav_item {
    position: static !important;
    display: block;
    margin-right: 0 !important;
}

#login_nav_item .nav-link,
#auth_nav_item .nav-link {
    white-space: nowrap;
}

#authDropdown.auth-user-icon-only #user_display_name {
    display: none !important;
}

#authDropdown.auth-user-icon-only {
    padding-left: 8px;
    padding-right: 8px;
}

@media (max-width: 767.98px) {
    #authDropdown #user_display_name,
    #authDropdown::after {
        display: none !important;
    }

    #authDropdown {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

#auth_nav_list .dropdown-menu {
    border-radius: 14px !important;
    border: 1px solid rgba(11, 46, 60, 0.06) !important;
    box-shadow: 0 12px 36px rgba(12, 50, 63, 0.12) !important;
    padding: 8px 0 !important;
}

#auth_nav_list .dropdown-item-text,
#auth_nav_list .dropdown-item-text#user_email_text,
#auth_nav_list .dropdown-item {
    font-family: Jost, Arial, sans-serif;
    font-size: 13px !important;
    line-height: 1.35 !important;
    padding: 8px 20px !important;
}

#auth_nav_list .dropdown-item-text,
#auth_nav_list .dropdown-item-text#user_email_text {
    color: #80908c !important;
}

#auth_nav_list .dropdown-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    transition: background-color 0.2s, color 0.2s !important;
}

#auth_nav_list .dropdown-item:hover,
#auth_nav_list .dropdown-item:focus {
    background-color: #F4F9FA !important;
}

#auth_nav_list .dropdown-item#signOutBtn {
    color: #c93636 !important;
}

#auth_nav_list .dropdown-item#signOutBtn:hover {
    background-color: rgba(201, 54, 54, 0.05) !important;
}

#auth_nav_list .dropdown-divider {
    border-top: 1px solid rgba(11, 46, 60, 0.05) !important;
    margin: 6px 0 !important;
}

@media (max-width: 991.98px) {
    #top {
        position: relative;
    }

    .navbar-collapse {
        background: rgba(0, 63, 89, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        position: absolute;
        top: 100%;
        left: -15px;
        right: -15px;
        z-index: 1000;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #navbar_list {
        flex-direction: column;
        padding-right: 0;
    }

    #menu li {
        margin-right: 0;
        margin-bottom: 5px;
    }

    #menu a {
        padding: 12px 20px;
        display: block;
    }

    #login_nav_item,
    #auth_nav_item {
        position: static !important;
    }
}


#scf-form-id-contactForm .form-control {
    border: none;
    border-bottom: 1px solid #c0c0c0;
    border-radius: 0;
}

/*active menu items */
body#home .homeMenu a,
body#faw .fawMenu a,
body#itineraryList .itinerariesMenu a,
body#stats-flight_information .flightStatsMenu a,
body#stats-destinations_main .flightStatsMenu a,
body#stats-destination .flightStatsMenu a,
body#stats-airports_main .flightStatsMenu a,
body#stats-airport .flightStatsMenu a,
body#stats-airlines_main .flightStatsMenu a,
body#stats-airline .flightStatsMenu a {
    border: rgba(255, 255, 255, 0.24) 1px solid;
}


#wishlist h1 {
    font-size: 1.5rem;
}

#wishlist #page {
    margin-top: 30px;
}

#wishlist .nav .flag {
    width: 22px;
    height: 15px;
    margin-top: 4.5px;
    float: left;
    margin-right: 5px;
}

.calendarMonth .badge-info {
    background: none;
    font-weight: 300;
    color: inherit;
}

#cheapFlightsFromAirports {
    color: #28a745;
}

#cheapFlightstoAirports {
    color: #00b8ff;
}


#wishlistExplanation {
    margin-top: 22px;
    text-align: center;
    margin-bottom: 34px;
}

#st-1 {
    margin-top: 10px;
}


.infoPanel {
    background: #73AABB;
    padding: 20px;
    border-radius: 10px;
    /* box-shadow: 0 2px 5px rgb(189,191,191); */
    text-align: center;
    color: white;
    margin-top: 31px;
}

.infoPanel a {
    color: white;
    text-decoration: underline;
}


#faq h2 {
    margin-bottom: 20px;
    margin-top: 30px;
    background: #005B7A;
    padding: 10px;
    color: white;
    text-align: center;
    border-radius: 7px;
}

.page-faq-link-row {
    padding: 8px 0 4px;
}

.page-faq-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #005B7A !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.page-faq-link:hover {
    color: #003F59 !important;
    text-decoration: underline;
}

.page-faq-link i {
    font-size: 16px;
    text-decoration: none;
}

#faq #flyAnyWeekendFAW {
    background: #0e8bab;
}

#blog-post td {
    text-align: center;
}

#blog-post th {
    text-align: center;
}

body#blog-post img {
    max-width: 100%;
}

.aboutSection .fas,
.averageTemperatures .fas {
    font-size: 1em;
}

ul.pagination {
    margin-top: 10px;
}

ul.pagination li {
    display: inline;
    font-size: 12px;
    font-weight: 300;
    margin-top: 13px;
}

ul.pagination li a {

    color: black;
    padding: 8px 8px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 4px;
}

ul.pagination li a.active {
    background-color: #4CAF50;
    padding: 8px 8px;
    margin: 4px;
    color: white;
    border: 1px solid #4CAF50;
}

ul.pagination li.active {
    /*background-color: #4CAF50;*/
    background-color: #687282;
    padding: 8px 8px;
    margin: 4px;
    color: white;
    border: 1px solid #4CAF50;
}

/*ul.pagination li a:hover:not(.active) {background-color: #ddd;}*/
ul.pagination li a:hover {
    background-color: #999999;
}

ul.pagination li.disabled {
    /*background-color: #cccccc;*/
    color: #ddd;
    padding: 8px 8px;
    border: 1px solid #ddd;
    margin: 4px;
}

.dataTables_paginate ul.pagination li.disabled,
.dataTables_paginate ul.pagination li.active {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
}

.dataTables_paginate ul.pagination li {
    margin-top: 0;
}



.dataTables_length label,
.dataTables_filter label {
    display: flex;
}

/* .dataTables_length label select {
    margin: -3px 5px;
} */

.dataTables_filter,
.dataTables_length {
    width: 50%;
}

.eveningFlight {
    /* color: rgb(255,0,0); */
    padding: 3px;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    display: none;
    background: rgba(255, 0, 0, 0.3);
    margin-top: 10px;
    border-radius: 3px;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.searchResultItineraryButton {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.34);
    border-color: rgba(115, 115, 115, 0.38);
}

.anywhereIcon {
    position: absolute;
    color: #000;
    bottom: 6px;
    left: 22px;
}

.nice-select {
    color: #000;
}


#faw .nice-select {
    line-height: 30px;
    width: 100%;
}



.timeType {
    margin-top: 8px;
    width: 100%;
    line-height: 40px !important;
}

body#home .timeContainer,
body#faw .timeContainer {
    display: none;
}

body#home select {
    display: none;
}

/* 
.form .fas, .item.row .fas {
    font-size: 0.8em;
}
 */

#eveningOnlyNotification,
#tempFilterNotification,
#directFlightsOnly {
    margin: auto;
    margin-left: -15px;
    margin-top: 3px;
}

#page th,
#page td {
    text-align: center;
}

.infoStatsBox {
    background-color: #fdf6f6;
}

.viewSection {
    text-align: center;
}

.showMore {
    color: #9a9696;
    background-color: #ecefef;
    border-color: #e8e8e8;
}

#stats-airports_main ul.pagination li.active {
    background: none;
    border: none;
    margin: 0px;
    padding: 0px;
}

ul.pagination li {
    font-weight: 300;
}

ul.pagination li a:hover {
    background-color: #e9ecef;
}

.dataTables_info {
    margin-bottom: 15px;
    font-size: small;
    float: right;
}

.dataTables_length {
    float: right;
    width: 100px;
}

input.form-control.form-control-sm,
select.custom-select.custom-select-sm.form-control.form-control-sm {
    border: 1px solid rgba(206, 212, 218, 0.52);
}

.form-control:focus {
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.12);
}

#locale-picker-top .nice-select.form-control {
    background: none;
    border: none;
    color: white;
}

#stats-flight_information .form-control {
    height: calc(1.5em + 1.5rem + 3px);
}

#stats-destination h3,
#stats-destination h2 {
    margin-top: 50px;
    margin-bottom: 28px;
    border-top: rgba(0, 0, 0, 0.21) 1px solid;
    padding-top: 39px;
}

#stats-destination h1 {
    border-bottom: rgba(0, 0, 0, 0.21) 1px solid;
    padding-bottom: 10px;
    margin-left: 10px;
    margin-bottom: 28px;
    margin-top: 28px;
}

.statsPage h1 {
    border-bottom: rgba(0, 0, 0, 0.21) 1px solid;
    padding-bottom: 10px;
    margin-left: 10px;
    margin-bottom: 28px;
    margin-top: 28px;
}

.statsPage h2,
.statsPage h3 {
    margin-top: 33px;
    margin-bottom: 28px;
    border-top: rgba(0, 0, 0, 0.21) 1px solid;
    padding-top: 39px;
}

#stats-destination h1 {
    border-bottom: rgba(0, 0, 0, 0.21) 1px solid;
    padding-bottom: 10px;
    margin-left: 10px;
    margin-bottom: 28px;
    margin-top: 28px;
}

.destImage {
    margin: 0 auto;
    width: 605px;
    margin: auto;
}

.destImageFlight {
    margin: 0 auto;
    width: 820px;
    margin: auto;
}

.greenResult {
    background: #ebfeeb;
    color: green;
    border: 1px solid #c6e7c6;
}

.blueResult {
    background: #d6f4ff;
    color: #005180;
    border: 1px solid #baddf1;
}

.yellowResult {
    background: #fafbe5;
    color: #ad9b46;
    border: 1px solid #e8e493;
}

.redResult {
    background: #fbe5e5;
    color: #dc8383;
    border: 1px solid #f1cfcf;
}

#stats-flight_information #searchBar {
    background: rgba(0, 91, 122, 0.85);
    text-align: center;
}

#stats-flight_information #searchBar .title {
    font-size: 2.5em;
}

#stats-flight_information h3 {
    font-size: 1.5rem;
    color: #ffffff;
}

#flightBack {
    margin-bottom: 20px;
}

#flightBack a {
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

.table-bordered td,
.table-bordered th {
    border: none;
    border-top: 1px solid #dee2e6;
}

.col-pixel-width-120 {
    flex: 0 0 120px;
}

.statsSearchBar {
    background: rgb(20, 105, 84);
    padding: 20px;
    border-radius: 4px;
}

#autoCompleteResults {
    width: 97%;
    position: absolute;
    background: #fff;
    border: 1px solid #c0c0c0;
    z-index: 10;
    display: none;
    border-radius: 5px;
}

#autoCompleteResults ul {
    list-style: none;
    margin-bottom: 0;
    padding: 0;
}

#autoCompleteResults a:hover {
    background: #dadada;
}

#autoCompleteResults a {
    text-decoration: none;
    display: block;
    width: 100%;
    padding: 10px;
    color: #005B7A;
    font-weight: 300;
    ;
}

img.airlineLogo {
    width: 29px;
}

.form-airport-message {
    color: red;
    margin-top: 11px;
    float: left;
}



@media (max-width: 1268px) {

    #itinerary #left,
    #itinerary #right {
        width: 50%;
    }

    body#itinerary #footer {
        width: 50%;
    }


}

@media (max-width: 768px) {
    .dataTable .country {
        display: none;
    }

    .dataTable .flag {
        float: none !important;
    }

    .dataTables_filter,
    .dataTables_length {
        width: 100%;
    }

    /*	
	#searchBar {
    background-image: linear-gradient(rgba(0, 0, 0, 0.52),rgba(88,88,88,0.69)),url(https://lh3.googleusercontent.com/proxy/44HML2_5bgID8O9irKH9HMxYE3idxNfXaigV9tWvqcC6nOx9fvNBCWRw3CCVGM_fZ6lrumd4ydGxezxPMJ4nx37d8GVAWUp6Q7mmrT8amnnVG_xedCUyNQ_0fqM2q1kfDRxTPryxqkBUhvWbmMBB4kiFf5tw0hNv2ag2D7--oXOepFrJpsJbzy_7TbejZVfUukU);
    background-size: 100%;	
	}
*/

    #searchBar .title {
        font-size: 1.8em;
    }

    #searchBar .form {
        padding: 3%;
        padding-top: 13px;
        padding-bottom: 3.5%;
    }

    #itinerary #left {
        width: 100%;
    }

    #itinerary #right {
        left: 100%;
        width: 100%;
    }

    #itinerary #right.opened {
        left: 0%;
    }

    #itinerary #right #shadow {
        display: none;
    }

    body#itinerary #showMap {
        display: block;
    }

    #topFB {
        display: none !important;
    }

    #itinerary .thumb {
        width: 170px;
    }

    body#itinerary #footer {
        width: 100%;
    }

    #itinerary .header img.contHelper {
        width: 60%;
    }

    #itinerary .itemRow {
        padding-left: 0px;
        margin-left: 0;
    }

    #itinerary .tags span {
        white-space: normal;
    }

    img#fawExampleImg {
        width: 359px;
    }

    #homeText .item img {
        width: 100px !important;
        height: 100px !important;
    }

    #mainSearch {
        width: 100%;
        margin-top: 10px;
        position: static;
        right: auto;
        bottom: auto;
    }

    #recentSearchesBtn {
        position: static;
        left: auto;
        bottom: auto;
        width: auto;
        margin-top: 14px;
        margin-right: 10px;
    }

    #mainSearch.search-suppressed {
        pointer-events: none;
    }



    .logoSmaller {
        width: 21px;
    }

    .stats-image,
    .destImage {
        width: 100%;
        margin-bottom: 10px;
    }

    .stats_h2,
    .stats_h3 {
        margin-top: 23px;
    }

    .destImageFlight {
        width: 100%;
    }

    .statsPage td {
        padding-bottom: 4px;
    }

    .mobileWidth2x {
        width: 184%;
    }

    .mobile-text-center {
        text-align: center;
    }

    .flagMobile {
        margin-left: 0.7rem;
        margin-bottom: 0.2rem;
    }

    button#mainNomadSearch {
        width: 100%;
        margin-top: 14px;
        /* margin: auto; */
    }

    input#whenNomadStop {
        margin-bottom: 15px;
    }
}

#locale-picker-top .list {
    /* color: black; */
    background: rgb(0 0 0 / 40%);
}

#locale-picker-top .nice-select .option.selected.focus,
#locale-picker-top .nice-select .option.selected:hover {
    background: none;
}

#locale-picker-top .nice-select .option:hover {
    background: rgb(255 255 255 / 8%);
}

input#mindays,
input#maxdays {
    width: 91px;
    text-align: center;
    padding: 25px;
    font-size: 1.3rem;
}

/* input#flyto {
    padding: 25px;
    font-size: 1.3rem; 
} */

input#whenNomadStop {
    width: 174px;
    text-align: center;
    padding: 25px;
    font-size: 1.3rem;
}

input#whenEndNomadStop {
    width: 174px;
    text-align: center;
    padding: 25px;
    font-size: 1.3rem;
}

td.summaryStayover,
td.summaryStayoverSc,
td.summaryStayoverFl {
    padding: 11px;
}

body#nomadstop tr.summary {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body#nomadstop tr.summary:hover {
    transform: translateY(-1px);
}

body#nomadstop tr.summary td.summaryStayover,
body#nomadstop tr.summary td.summaryStayoverSc,
body#nomadstop tr.summary td.summaryStayoverFl {
    background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
    background-blend-mode: screen;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 22px rgba(0, 0, 0, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

body#nomadstop tr.summary td.summaryStayover:hover,
body#nomadstop tr.summary td.summaryStayoverSc:hover,
body#nomadstop tr.summary td.summaryStayoverFl:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 14px 28px rgba(0, 0, 0, 0.12);
}

body#nomadstop tr.summary td.summaryStayover p.comparePrice,
body#nomadstop tr.summary td.summaryStayoverSc p.comparePrice,
body#nomadstop tr.summary td.summaryStayoverFl p.comparePrice {
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

td.summaryLayOver {
    font-size: 10px;
}

.table td,
.table th {
    vertical-align: middle;
}

tr.route-fight-tr.route-fight-tr-summary {
    background: #E8F1F5;
}

tr.route-fight-tr.route-fight-tr-depart,
tr.route-fight-tr.route-fight-tr-from {
    background: #F7FAFC;
}

tr.route-fight-tr.route-fight-tr-depart {
    border-bottom: 22px #f1f1f1 solid;
}

b,
strong {
    color: #978d8d;
}

#cheapestCtoBFlights .flag {
    width: 19px;
    height: 11px;
}

.blankButton {
    background: none;
    color: #00719C;
    border-color: #9BC5D3;
}

.stopover-badge {
    min-width: 70px;
    color: #ffffff;
    background: #00719C;
    border-color: #00719C;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.stopover-badge:hover {
    background: #005B7A;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

#dateRange.blankButton,
#fixedDate.blankButton {
    background: none;
    color: #c7cdcb;
}

#fixedDate,
#dateRange {
    font-size: 11px;
    padding: 6px;
    padding-left: 17px;
    padding-right: 17px;
    margin-bottom: 15px;
    margin-top: 7px;
    box-shadow: none;
    border: none;
}

.smallerButton {
    font-size: 12px;
}

/*temp fix*/

strong.font-size-14.giveUsALike {
    color: white;
}

#nomadstop #topFB {
    display: none !important;
}


#home .onlyOnFnl {
    display: none;
}

#nomadstop .hideOnFnl {
    display: none;
}

div#cheapestCtoBFlights {
    margin-bottom: -39px;
}

/* ============================================================
   Nomadstop date inputs  —  override #searchBar .form color:#fff
   ============================================================ */
input#whenNomadStop,
input#whenEndNomadStop {
    color: #333 !important;
    background-color: #ffffff !important;
}

/* ============================================================
   Flatpickr calendar  —  full visual override
   ============================================================ */
.flatpickr-calendar {
    background: #ffffff !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14) !important;
    font-family: inherit !important;
}

/* Brand green header strip — must target .flatpickr-months not just .flatpickr-month
   so the nav arrows are also on the green background */
.flatpickr-months {
    background: #005B7A !important;
    border-radius: 11px 11px 0 0 !important;
    padding: 2px 0 !important;
}

.flatpickr-month {
    background: transparent !important;
    color: #ffffff !important;
    height: 42px !important;
}

.flatpickr-current-month {
    color: #ffffff !important;
    font-weight: 300 !important;
    font-size: 15px !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 300 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option {
    background: #003F59 !important;
    color: #ffffff !important;
}

.flatpickr-current-month .numInputWrapper input.cur-year {
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 300 !important;
    font-size: 15px !important;
}

/* Nav arrows — white on brand green */
.flatpickr-prev-month,
.flatpickr-next-month {
    color: #ffffff !important;
    fill: #ffffff !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: #ffffff !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #ffffff !important;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: #ffffff !important;
}

/* Weekday row */
.flatpickr-weekdays {
    background: #EEF6F9 !important;
    padding: 4px 0 !important;
}

span.flatpickr-weekday {
    background: transparent !important;
    color: #005B7A !important;
    font-weight: 300 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
}

/* Day grid */
.flatpickr-days,
.dayContainer {
    background: #ffffff !important;
}

.flatpickr-day {
    color: #333333 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 6px !important;
    font-weight: 300 !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 14px !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.flatpickr-disabled {
    color: #c0c0c0 !important;
    background: transparent !important;
}

.flatpickr-day:hover:not(.prevMonthDay):not(.nextMonthDay):not(.flatpickr-disabled) {
    background: #E0EDF2 !important;
    color: #00719C !important;
    border-color: #00719C !important;
}

.flatpickr-day.today {
    border: 2px solid #00719C !important;
    color: #00719C !important;
    background: transparent !important;
    font-weight: 300 !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #00719C !important;
    color: #ffffff !important;
    border-color: #00719C !important;
    font-weight: 300 !important;
}

.flatpickr-day.today.selected {
    background: #00719C !important;
    color: #ffffff !important;
    border-color: #00719C !important;
}

/* Range mode — days between the two selected dates */
.flatpickr-day.inRange {
    background: #D4E8EF !important;
    color: #006789 !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Range start cap */
.flatpickr-day.startRange,
.flatpickr-day.startRange:hover {
    background: #00719C !important;
    color: #ffffff !important;
    border-color: #00719C !important;
    border-radius: 6px 0 0 6px !important;
}

/* Range end cap */
.flatpickr-day.endRange,
.flatpickr-day.endRange:hover {
    background: #00719C !important;
    color: #ffffff !important;
    border-color: #00719C !important;
    border-radius: 0 6px 6px 0 !important;
}

/* When start and end are the same day */
.flatpickr-day.startRange.endRange {
    border-radius: 6px !important;
}

/* Today inside a range — override orange with brand green highlight */
.flatpickr-day.today.inRange,
.flatpickr-day.today.startRange,
.flatpickr-day.today.endRange {
    background: #00719C !important;
    color: #ffffff !important;
    border-color: #00719C !important;
}

/* Remove flatpickr's default box-shadow pipe separators between range days */
.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:focus,
.flatpickr-day.nextMonthDay:focus {
    box-shadow: none !important;
}

/* ==========================================================================
   FOOTER STYLING (MATCHING PRODUCTION)
   ========================================================================== */
.footer-area {
    background-color: #003247;
    color: #ffffff;
    padding: 80px 0 30px;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-area .container {
    width: 90%;
    max-width: 1096px;
    margin: auto;
}

.footer-col {
    margin-bottom: 40px;
}

.footer-logo {
    background: url('../assets/images/logo_small.png') no-repeat;
    background-size: contain;
    width: 180px;
    height: 48px;
    margin-bottom: 20px;
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 14px;
    font-weight: 300;
}

.footer-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #00719C;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 300;
}

.footer-links a:hover {
    color: #008FBE !important;
    padding-left: 5px;
}

.footer-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.footer-social .social-icon:hover {
    background: #00719C;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom .copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
}

/* ==========================================================================
   PRODUCT PROMO CARDS STYLING
   ========================================================================== */
.product-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 91, 122, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease !important;
}

.product-card:hover {
    transform: translateY(-5px);
    background: #ffffff !important;
    border-color: #005B7A !important;
    box-shadow: 0 12px 35px rgba(0, 91, 122, 0.12) !important;
}

.product-card .card-body {
    padding: 24px !important;
}

.product-card .card-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #005B7A !important;
}

.product-card .card-title i {
    font-size: 20px;
    color: #005B7A !important;
}

/* Keep first class icon/title a dark, premium gold for high contrast on white background */
.product-card .card-title[style*="color: #ffcc00"],
.product-card .card-title[style*="color: #ffcc00"] i {
    color: #d4af37 !important;
}

.product-card .card-text {
    color: #4a5568 !important;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 300;
}

/* ==========================================================================
   PRODUCT CARD BUTTON STYLING (THEME MATCHING)
   ========================================================================== */
.product-card-link {
    color: #005B7A !important;
    border-color: #005B7A !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    padding: 6px 16px !important;
}

.product-card-link:hover {
    color: #ffffff !important;
    background-color: #005B7A !important;
    border-color: #005B7A !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 91, 122, 0.2) !important;
}

/* First class button styling: premium gold color & high contrast white text on hover */
#product_link_firstclass {
    color: #d4af37 !important;
    border-color: #d4af37 !important;
    background: transparent !important;
}

#product_link_firstclass:hover {
    color: #ffffff !important; /* Clear white text to avoid yellow-on-yellow */
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2) !important;
}

/* ============================================================
   GF Loading State Animation (from generalflights)
============================================================ */
#preloadCover {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: rgba(8, 17, 31, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#preloadCover > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 320px;
    max-width: 420px;
    width: 90%;
}

.gf-loading-state {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(43, 185, 166, 0.18), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(6, 10, 28, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    position: relative;
}

.gf-loading-state::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.08) 48%, transparent 76%);
    transform: translateX(-120%);
    animation: gfLoadingSheen 2.8s ease-in-out infinite;
    pointer-events: none;
}

.gf-loading-orbit {
    width: 56px;
    height: 56px;
    position: relative;
    flex: 0 0 56px;
}

.gf-loading-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(165, 180, 252, 0.35);
}

.gf-loading-ring-a {
    animation: gfLoadingPulse 1.8s ease-out infinite;
}

.gf-loading-ring-b {
    inset: 8px;
    border-color: rgba(43, 185, 166, 0.45);
    animation: gfLoadingPulse 1.8s ease-out 0.35s infinite;
}

.gf-loading-core {
    position: absolute;
    inset: 13px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(165, 180, 252, 0.95), rgba(43, 185, 166, 0.95));
    color: #08111f;
    box-shadow: 0 8px 18px rgba(43, 185, 166, 0.35);
    animation: gfLoadingFloat 1.6s ease-in-out infinite;
    font-size: 0.7rem;
}

.gf-loading-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.gf-loading-title {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
}

.gf-loading-track {
    display: flex;
    gap: 7px;
}

.gf-loading-track span {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(165, 180, 252, 0.22), rgba(43, 185, 166, 0.85));
    animation: gfLoadingBars 1.4s ease-in-out infinite;
}

.gf-loading-track span:nth-child(1) { width: 42px; }
.gf-loading-track span:nth-child(2) { width: 76px; animation-delay: 0.15s; }
.gf-loading-track span:nth-child(3) { width: 28px; animation-delay: 0.3s; }

.gf-loading-detail {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.87rem;
    font-weight: 300;
    line-height: 1.45;
    margin-top: 8px;
}

@keyframes gfLoadingPulse {
    0%   { transform: scale(0.82); opacity: 0; }
    35%  { opacity: 0.75; }
    100% { transform: scale(1.15); opacity: 0; }
}

@keyframes gfLoadingFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-3px); }
}

@keyframes gfLoadingBars {
    0%, 100% { opacity: 0.4; transform: scaleX(0.92); }
    50%       { opacity: 1;   transform: scaleX(1.08); }
}

@keyframes gfLoadingSheen {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(140%); }
}

/* ===== CUSTOM PREMIUM STYLES (MIGRATED) ===== */

    * {
      font-weight: 300 !important;
    }

    /* Premium visual refinements */
    #logo {
      width: 130px !important;
      min-width: 0 !important;
    }

    #logo div {
      background-image: url('../assets/images/logo-fly-like-a-nomad.png') !important;
      background-size: contain;
      background-repeat: no-repeat;
      height: 45px;
      width: 100%;
    }

    .preloader {
      position: fixed;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      z-index: 999999;
      background: rgba(255, 255, 255, 0.95);
      display: flex;
      justify-content: center;
      align-items: center;
    }

    /* Search result cards */
    #searchResults {
      display: grid;
      gap: 24px;
    }

    #searchResults .item.ftw-result-card {
      position: relative;
      margin-bottom: 0;
      border: 1px solid rgba(11, 46, 60, 0.1);
      border-radius: 28px;
      background: linear-gradient(180deg, #ffffff 0%, #F8FBFC 100%);
      box-shadow: 0 24px 60px rgba(12, 50, 63, 0.12);
      overflow: hidden;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
      font-size: 16px;
      line-height: 1.3;
    }

    #searchResults .item.ftw-result-card h3,
    #searchResults .item.ftw-result-card a,
    #searchResults .item.ftw-result-card span,
    #searchResults .item.ftw-result-card strong,
    #searchResults .item.ftw-result-card small {
      font-size: 16px !important;
      line-height: 1.3 !important;
      letter-spacing: 0 !important;
      text-transform: none !important;
    }

    #searchResults .item.ftw-result-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 30px 70px rgba(12, 50, 63, 0.16);
      border-color: rgba(0, 113, 156, 0.22);
    }

    .ftw-result-shell {
      display: grid;
      grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
      min-height: 100%;
      width: 100%;
    }

    .ftw-result-media {
      position: relative;
      min-height: 320px;
      overflow: hidden;
      background: #183B47;
    }

    .destinationImage {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1.01);
      transition: transform 0.45s ease;
    }

    #searchResults .item.ftw-result-card:hover .destinationImage {
      transform: scale(1.05);
    }

    .ftw-result-media::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(8, 26, 33, 0.1) 0%, rgba(8, 26, 33, 0.72) 100%),
        linear-gradient(135deg, rgba(0, 113, 156, 0.28) 0%, rgba(255, 209, 102, 0.06) 100%);
    }

    .ftw-result-overlay {
      position: absolute;
      inset: 0;
      z-index: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 24px;
      color: #fff;
    }

    .ftw-result-topline {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
    }

    .ftw-weather-pill,
    .ftw-trip-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 14px;
      border-radius: 999px;
      backdrop-filter: blur(10px);
      background: rgba(10, 34, 43, 0.52);
      border: 1px solid rgba(255, 255, 255, 0.24);
      box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
    }

    .ftw-weather-pill {
      color: #fff;
    }

    .ftw-weather-pill a {
      color: inherit;
      text-decoration: none;
    }

    .ftw-trip-pill {
      color: #ffffff;
    }

    .ftw-trip-pill a {
      color: inherit;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px;
    }

    .ftw-trip-pill i {
      color: #9DE2F3;
    }

    .ftw-trip-pill strong {
      color: #ffffff;
      font-weight: 700;
    }

    .ftw-result-destination {
      display: grid;
      gap: 10px;
      /* align-self: end; */
    }

    .ftw-destination-title {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }

    .ftw-destination-title h3 {
      margin: 0;
      font-weight: 300;
      color: #fff;
    }

    .ftw-country-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(10, 34, 43, 0.52);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: #ffffff;
    }

    .ftw-country-chip .flag {
      width: 20px;
      height: 14px;
      border-radius: 999px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    }

    .ftw-result-subtitle {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      color: rgba(255, 255, 255, 0.92);
    }

    .ftw-result-subtitle span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .ftw-result-content {
      padding: 24px;
      display: grid;
      gap: 18px;
      align-content: start;
      background:
        radial-gradient(circle at top right, rgba(0, 113, 156, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #F8FBFC 100%);
    }

    .ftw-route-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-auto-rows: 1fr;
      gap: 16px;
      align-items: stretch;
      min-width: 0;
    }

    .ftw-leg-card {
      display: grid;
      grid-template-rows: auto 1fr;
      align-self: stretch;
      border: 1px solid rgba(11, 46, 60, 0.08);
      border-radius: 22px;
      background: #fff;
      padding: 18px;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
      min-height: 248px;
      height: 100%;
      min-width: 0;
      overflow: hidden;
    }

    .ftw-leg-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px;
    }

    .ftw-leg-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
      color: #006486;
    }

    .ftw-airline-logo {
      height: 38px;
      width: auto;
      max-width: 52px;
      border-radius: 24px;
      object-fit: contain;
      vertical-align: middle;
      border: 1px solid rgba(0, 0, 0, 0.05);
      background: #fff;
      padding: 1px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .ftw-airline-logo:hover {
      transform: scale(1.1);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    /* Airline info modal styling */
    .ftw-airline-modal-content {
      padding: 1.5rem 1rem;
    }

    .ftw-airline-modal-logo-wrapper {
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      border-radius: 50%;
      width: 100px;
      height: 100px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto;
      transition: transform 0.3s ease;
    }

    .ftw-airline-modal-logo-wrapper:hover {
      transform: scale(1.05);
    }

    .ftw-airline-logo-large {
      max-height: 55px;
      max-width: 55px;
      object-fit: contain;
      border-radius: 12px;
    }

    .ftw-airline-modal-content .airline-name-text {
      color: #111;
      font-size: 26px !important;
      margin-top: 0;
      font-weight: 700 !important;
      letter-spacing: -0.3px;
      text-transform: none;
      white-space: normal;
      overflow: visible;
      text-overflow: unset;
      max-width: none;
      line-height: 1.25;
      text-align: center;
    }

    /* Animation */
    .animated {
      animation-duration: 0.35s;
      animation-fill-mode: both;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: scale(0.95);
      }

      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .fadeIn {
      animation-name: fadeIn;
    }

    .ftw-leg-label i {
      width: 28px;
      height: 28px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: rgba(0, 113, 156, 0.1);
    }

    .ftw-leg-direction-icon-there {
      transform: rotate(135deg);
    }

    .ftw-leg-direction-icon-back {
      transform: rotate(-45deg);
    }

    .ftw-leg-card .times {
      display: grid;
      gap: 16px;
      color: #47616b;
      align-content: start;
    }

    #searchResults .item.ftw-result-card .airportInfo,
    #searchResults .item.ftw-result-card .airportStop {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      margin: 0;
      position: relative;
    }

    #searchResults .item.ftw-result-card .airportInfo .icon,
    #searchResults .item.ftw-result-card .airportStop .icon {
      position: relative;
      width: 16px;
      min-width: 16px;
      height: 48px;
      float: none;
      margin: 0;
    }

    #searchResults .item.ftw-result-card .airportStop .icon {
      height: 30px;
    }

    #searchResults .item.ftw-result-card .airportInfo .icon::before,
    #searchResults .item.ftw-result-card .airportStop .icon::before {
      margin: 0;
      color: #173B49;
    }

    #searchResults .item.ftw-result-card .airportStop .icon::before {
      margin-left: -8px;
      color: #00719C;
      background: #fff;
    }

    #searchResults .item.ftw-result-card .data .times .airportInfo .icon::after,
    #searchResults .item.ftw-result-card .data .times .airportStop .icon::after {
      left: 3px;
      border-left: 1px solid rgba(23, 54, 62, 0.16);
    }

    #searchResults .item.ftw-result-card .data .times .airportInfo:last-child .icon::after {
      height: 8px;
    }

    .ftw-airport-copy {
      display: grid;
      gap: 6px;
      min-width: 0;
      padding-top: 1px;
    }

    .ftw-airport-meta {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      line-height: 1.2;
      min-width: 0;
      width: 100%;
    }

    .ftw-airport-date-line {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 4px 6px;
      min-width: 0;
      width: 100%;
    }

    #searchResults .item.ftw-result-card .time {
      font-size: 16px !important;
      font-weight: 600;
      color: #123D4C;
      padding: 0;
    }

    .ftw-airport-date {
      color: #6c8690;
      font-size: 0.78rem;
      line-height: 1.3;
      white-space: normal;
      word-break: break-word;
      min-width: 0;
    }

    .ftw-airport-copy .airport {
      color: #4c6671;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .ftw-airport-copy .airportCode {
      background: rgba(0, 113, 156, 0.09) !important;
      border: 1px solid rgba(0, 113, 156, 0.12) !important;
      border-radius: 4px !important;
      padding: 2px 9px !important;
      margin: 0 !important;
      color: #005B7A !important;
      font-weight: 700 !important;
    }

    #searchResults .item.ftw-result-card .airportStop {
      margin-left: 1px;
      min-height: 30px;
    }

    #searchResults .item.ftw-result-card .airportStop span {
      margin: 0;
      padding: 6px 12px;
      border-radius: 4px !important;
      background: #EFF5F7 !important;
      border: 1px solid rgba(17, 44, 55, 0.06);
      color: #4d6670 !important;
      font-weight: 600 !important;
    }

    #searchResults .item.ftw-result-card .airportStop span.times {
      background: rgba(0, 113, 156, 0.09) !important;
      color: #005B7A !important;
    }

    .ftw-result-footer {
      display: flex;
      justify-content: space-between;
      align-items: stretch;
      gap: 16px;
      padding-top: 4px;
    }

    .flightPrice {
      margin: 0;
      width: auto;
      min-width: 0;
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 14px 18px;
      border-radius: 18px;
      border: 1px solid rgba(11, 46, 60, 0.08);
      background: linear-gradient(135deg, #ffffff 0%, #EEF6F9 100%);
      color: #173B49;
      font-weight: 500;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
      min-height: 64px;
      flex: 1 1 auto;
    }

    .flightPrice.price-band-profit {
      background: linear-gradient(135deg, #F3FBFE 0%, #DCEFF6 100%);
      border-color: rgba(0, 113, 156, 0.22);
      color: #005B7A;
    }

    .flightPrice.price-band-good {
      background: linear-gradient(135deg, #f3f8ff 0%, #deebff 100%);
      border-color: rgba(46, 109, 214, 0.2);
      color: #1f5fb8;
    }

    .flightPrice.price-band-mid {
      background: linear-gradient(135deg, #fffdf2 0%, #fff0bf 100%);
      border-color: rgba(196, 151, 14, 0.24);
      color: #8f6500;
    }

    .flightPrice.price-band-high {
      background: linear-gradient(135deg, #fff4f4 0%, #ffdede 100%);
      border-color: rgba(201, 54, 54, 0.2);
      color: #b12828;
    }

    .ftw-price-copy {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      white-space: nowrap;
    }

    .ftw-price-copy i {
      width: 30px;
      height: 30px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: rgba(0, 113, 156, 0.1);
      color: #00719C;
    }

    .flightPrice.price-band-good .ftw-price-copy i {
      background: rgba(46, 109, 214, 0.12);
      color: #2e6dd6;
    }

    .flightPrice.price-band-mid .ftw-price-copy i {
      background: rgba(196, 151, 14, 0.12);
      color: #c4970e;
    }

    .flightPrice.price-band-high .ftw-price-copy i {
      background: rgba(201, 54, 54, 0.12);
      color: #c93636;
    }

    .ftw-price-caption {
      color: inherit;
    }

    .ftw-price-value {
      line-height: 1;
      font-weight: 700;
      font-size: 28px !important;
      color: inherit;
      white-space: nowrap;
    }

    .ftw-price-value small {
      font-weight: 700;
      color: inherit;
      margin-left: 6px;
    }

    .select.ftw-select-btn {
      width: 260px;
      min-width: 260px;
      max-width: 260px;
      padding: 14px 22px;
      border-radius: 16px;
      background: #00719C;
      box-shadow: 0 14px 24px rgba(0, 113, 156, 0.24);
      border: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-weight: 600;
      min-height: 64px;
      flex: 0 0 260px;
    }

    .select.ftw-select-btn.price-band-profit {
      background: #00719C;
      box-shadow: 0 14px 24px rgba(0, 113, 156, 0.24);
    }

    .select.ftw-select-btn.price-band-good {
      background: #2e6dd6;
      box-shadow: 0 14px 24px rgba(46, 109, 214, 0.24);
    }

    .select.ftw-select-btn.price-band-mid {
      background: #c4970e;
      box-shadow: 0 14px 24px rgba(196, 151, 14, 0.24);
      color: #fff;
    }

    .select.ftw-select-btn.price-band-high {
      background: #c93636;
      box-shadow: 0 14px 24px rgba(201, 54, 54, 0.24);
    }

    .select.ftw-select-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 18px 28px rgba(0, 113, 156, 0.28);
      color: #fff;
    }

    .select.ftw-select-btn.price-band-good:hover {
      box-shadow: 0 18px 28px rgba(46, 109, 214, 0.28);
    }

    .select.ftw-select-btn.price-band-mid:hover {
      box-shadow: 0 18px 28px rgba(196, 151, 14, 0.28);
    }

    .select.ftw-select-btn.price-band-high:hover {
      box-shadow: 0 18px 28px rgba(201, 54, 54, 0.28);
    }

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

    .weatherDay {
      text-align: center;
      padding: 0;
    }

    @media (max-width: 991.98px) {
      .ftw-result-shell {
        grid-template-columns: 1fr;
      }

      .ftw-result-media {
        min-height: 260px;
      }

      .ftw-route-grid {
        grid-template-columns: 1fr;
      }

      .ftw-result-footer {
        flex-direction: column;
        align-items: stretch;
      }

      .flightPrice {
        width: 100%;
        min-width: 0;
      }

      .select.ftw-select-btn {
        width: 100%;
        min-width: 0;
        max-width: none;
        flex: none;
        min-height: 52px;
        height: auto;
        padding: 12px 20px;
      }
    }

    @media (max-width: 575.98px) {
      #searchResults .item.ftw-result-card {
        border-radius: 22px;
      }

      .ftw-result-overlay,
      .ftw-result-content {
        padding: 18px;
      }

      .ftw-weather-pill,
      .ftw-trip-pill,
      .ftw-country-chip {
        padding: 8px 12px;
      }

      .flightPrice {
        min-width: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
      }

      .ftw-price-value small {
        margin-left: 4px;
      }
    }

    .flagIcon {
      display: inline-block;
      vertical-align: middle;
    }

    .currency-control select,
    .currency-control .nice-select,
    .results-currency-control select,
    .results-currency-control .nice-select {
      width: 100%;
    }

    .currency-control .nice-select,
    .results-currency-control .nice-select {
      float: none;
    }

    .results-currency-control {
      min-width: 100px;
    }

    .results-currency-control .nice-select {
      min-width: 100px;
      border-radius: 6px;
      border: 1px solid #ddd;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    /* ===== AIRPORT SEARCH STYLING ===== */
    .airport-search-group {
      position: relative;
      z-index: 10;
    }

    .airport-search-group:focus-within {
      z-index: 1100 !important;
    }

    .airport-selected-container {
      position: relative;
      margin-top: 8px;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      background: rgba(255, 255, 255, 0.08) !important;
      border: 1px solid rgba(255, 255, 255, 0.15) !important;
      border-radius: 12px !important;
      padding: 4px 12px !important;
      padding-right: 58px !important;
      /* Leave space for absolute clear button */
      min-height: 48px;
      height: auto;
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075) !important;
    }

    .airport-tags-container {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .airport-tags-container:empty {
      display: none;
    }

    /* Active text input styling (outside) */
    #from {
      margin-top: 8px;
    }

    /* Helper + Add more button */
    .airport-add-more-btn {
      background: rgba(255, 255, 255, 0.06);
      border: 1px dashed rgba(255, 255, 255, 0.2);
      color: rgba(255, 255, 255, 0.7);
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 8px;
    }

    .airport-add-more-btn:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.35);
      color: #fff;
    }

    .airport-clear-all-btn {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #ff9f9f;
      padding: 6px;
      border-radius: 4px;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      white-space: nowrap;
      width: 38px;
      height: 38px;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
      z-index: 10;
    }

    .airport-clear-all-btn:hover {
      background: rgba(255, 100, 100, 0.16);
      border-color: rgba(255, 100, 100, 0.35);
      color: #ff6b6b;
    }

    @media (min-width: 992px) {
      .date-time-pickers-col {
        margin-top: 0 !important;
      }
    }

    .airport-show-all-btn {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #fff;
      padding: 6px 12px;
      border-radius: 4px;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
    }

    .airport-show-all-btn:hover {
      background: rgba(255, 255, 255, 0.14);
      border-color: rgba(255, 255, 255, 0.25);
    }

    .airport-tag.hidden-airport-tag {
      display: none;
    }

    .airport-tag {
      display: inline-flex;
      align-items: center;
      background: #005B7A !important;
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 4px !important;
      padding: 6px 12px !important;
      font-size: 14px !important;
      font-weight: 400 !important;
      gap: 8px;
      color: #fff !important;
      transition: all 0.2s ease;
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
      white-space: nowrap;
    }

    .airport-tag:hover {
      background: #004F6C !important;
    }

    .airport-tag-text {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .airport-tag-text strong {
      color: #ffffff;
      font-weight: 500;
    }

    .airport-tag-city {
      color: rgba(255, 255, 255, 0.75);
      font-size: 12px;
      font-weight: 300;
    }

    .airport-tag-remove {
      background: none;
      border: none;
      color: #999;
      cursor: pointer;
      padding: 0;
      font-size: 14px;
      display: flex;
      align-items: center;
      transition: color 0.2s ease;
    }

    .airport-tag-remove:hover {
      color: #e74c3c;
    }

    .airport-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      border: 1px solid #d0d0d0;
      border-top: 2px solid #00719C;
      border-radius: 6px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
      max-height: calc(100vh - 250px);
      overflow-y: auto;
      z-index: 1000;
      margin-top: -2px;
    }

    .airport-results {
      padding: 0;
      margin: 0;
    }

    .airport-section {
      border-bottom: 1px solid #f0f0f0;
    }

    .airport-section:last-child {
      border-bottom: none;
    }

    .airport-city-header {
      padding: 12px 16px;
      background: #f9f9f9;
      font-weight: 600;
      font-size: 12px;
      color: #666;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border-bottom: 1px solid #f0f0f0;
      cursor: pointer;
      user-select: none;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .airport-city-header:hover {
      background: #f0f0f0;
      color: #00719C;
    }

    .airport-add-icon {
      font-size: 14px;
      opacity: 0.5;
      transition: opacity 0.2s ease;
    }

    .airport-city-header:hover .airport-add-icon {
      opacity: 1;
    }

    .airport-radius-option {
      padding: 10px 16px;
      background: #f9f9f9;
      border-bottom: 1px solid #f0f0f0;
      border-left: 3px solid #ffa500;
      font-size: 12px;
      color: #666;
      cursor: pointer;
      user-select: none;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 500;
    }

    .airport-radius-option:hover {
      background: #fff8f0;
      color: #00719C;
      border-left-color: #00719C;
    }

    .airport-radius-option i {
      color: #ffa500;
    }

    .airport-radius-option:hover i {
      color: #00719C;
    }

    .airport-item {
      padding: 12px 16px;
      border-bottom: 1px solid #fafafa;
      cursor: pointer;
      transition: background-color 0.15s ease;
    }

    .airport-item:last-child {
      border-bottom: none;
    }

    .airport-item:hover {
      background-color: #f5f5f5;
    }

    .airport-item.selected {
      background-color: #F0F7FA;
    }

    .airport-item-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
    }

    .airport-info {
      flex: 1;
    }

    .airport-name {
      font-size: 14px;
      font-weight: 500;
      color: #222;
      margin-bottom: 3px;
    }

    .airport-code {
      font-size: 12px;
      color: #999;
      font-weight: 500;
    }

    .airport-check {
      color: #00719C;
      font-size: 16px;
      flex-shrink: 0;
    }

    /* Scrollbar styling */
    .airport-dropdown::-webkit-scrollbar {
      width: 8px;
    }

    .airport-dropdown::-webkit-scrollbar-track {
      background: #f1f1f1;
    }

    .airport-dropdown::-webkit-scrollbar-thumb {
      background: #d0d0d0;
      border-radius: 4px;
    }

    .airport-dropdown::-webkit-scrollbar-thumb:hover {
      background: #999;
    }

    /* Search Results Header Styling */
    .results-meta-wrapper {
      margin-bottom: 25px;
    }

    #resultsMeta {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: flex-start;
      margin-bottom: 12px;
      padding: 0 4px;
      gap: 12px;
      flex-wrap: wrap;
    }

    .ftw-country-toolbar-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0;
      flex-wrap: wrap;
    }

    .stops-filter-group {
      display: flex;
      gap: 8px;
      margin-left: auto;
      flex-wrap: wrap;
    }

    .stops-filter-btn {
      border-radius: 4px !important;
    }

    .ftw-toolbar-label {
      font-size: 13px;
      color: #777;
      white-space: nowrap;
    }

    .ftw-filter-pill-btn {
      position: relative;
      padding: 8px 14px;
      border-radius: 4px;
      border: 1px solid #00719C;
      background: transparent;
      color: #00719C;
      cursor: pointer;
      font-size: 13px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .ftw-filter-pill-btn > i {
      margin-top: 1px;
    }

    .ftw-filter-pill-copy {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 1px;
      line-height: 1.15;
      text-align: left;
    }

    .ftw-filter-pill-meta {
      font-size: 10px;
      font-weight: 600;
      opacity: 0.9;
    }

    .ftw-filter-pill-btn:not(.active) .ftw-filter-pill-meta {
      color: #005B7A;
    }

    .ftw-filter-pill-btn:hover {
      background: rgba(0, 113, 156, 0.08);
    }

    .ftw-filter-pill-btn.active {
      background: #005B7A;
      border-color: #005B7A;
      color: #fff;
    }

    .ftw-filter-pill-btn.active .ftw-filter-pill-meta {
      color: rgba(255, 255, 255, 0.92);
    }

    .favorites-modal-panel {
      padding: 2px 0;
    }

    .favorites-modal-intro {
      font-size: 14px;
      color: #666;
      margin: 0 0 14px;
    }

    .favorites-list-container {
      max-height: 320px;
      overflow-y: auto;
      margin-bottom: 16px;
    }

    .favorite-country-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 4px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .favorites-list-empty {
      text-align: center;
      color: #777;
      padding: 24px 12px;
      margin: 0;
      font-size: 14px;
    }

    .favorites-only-toggle-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 0;
      border-top: 1px solid rgba(0, 0, 0, 0.08);
      margin-bottom: 8px;
    }

    .favorites-only-toggle-row label {
      margin: 0;
      font-size: 14px;
      color: #333;
      font-weight: 500;
    }

    .favorites-manage-link {
      padding: 0;
      font-size: 13px;
      color: #00719C !important;
      text-decoration: none !important;
    }

    .favorites-manage-link:hover {
      color: #005B7A !important;
      text-decoration: underline !important;
    }

    .ftw-flight-meta-badges {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
      width: 100%;
    }

    .luggage-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.75rem;
      font-weight: 500;
      padding: 3px 8px;
      border-radius: 4px;
      background: rgba(46, 204, 113, 0.15);
      color: #1e8e5a;
      white-space: nowrap;
    }

    .luggage-badge i {
      font-size: 0.72rem;
    }

    .baggage-extra-cost {
      display: block;
      font-size: 11px;
      color: #777;
      margin-top: 2px;
      font-weight: 400;
    }

    .country-filters-toolbar {
      display: flex;
      gap: 10px;
      margin-bottom: 15px;
      align-items: center;
      flex-wrap: wrap;
    }

    .country-search-wrapper {
      flex: 1;
      min-width: 180px;
      position: relative;
    }

    .country-search-wrapper .country-search-input {
      height: 42px;
      padding-right: 42px;
    }

    .country-search-clear {
      position: absolute;
      right: 10px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: #999;
      cursor: pointer;
      padding: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .country-toolbar-btn {
      background: #EEF6F9;
      border: 1px solid rgba(0, 113, 156, 0.3);
      color: #00719C;
      border-radius: 8px;
      padding: 0 12px;
      cursor: pointer;
      white-space: nowrap;
      font-size: 0.85rem;
      height: 42px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .country-list-container {
      max-height: 400px;
      overflow-y: auto;
    }

    .country-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 4px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .country-info {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      font-size: 14px;
      color: #333;
    }

    .country-actions {
      display: flex;
      gap: 8px;
      flex-shrink: 0;
    }

    .country-actions .action-btn {
      border: 1px solid rgba(0, 0, 0, 0.12);
      background: #f8f9fa;
      color: #555;
      border-radius: 16px;
      padding: 5px 10px;
      font-size: 12px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .country-actions .action-btn.active-hide {
      background: rgba(231, 76, 60, 0.1);
      border-color: rgba(231, 76, 60, 0.35);
      color: #c0392b;
    }

    .country-actions .action-btn.active-fav {
      background: rgba(241, 196, 15, 0.15);
      border-color: rgba(241, 196, 15, 0.4);
      color: #b7950b;
    }

    .country-list-empty {
      text-align: center;
      color: #777;
      padding: 24px 12px;
      margin: 0;
    }

    .baggage-settings-panel {
      padding: 4px 0;
    }

    .baggage-settings-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
    }

    .baggage-settings-row label {
      margin: 0;
      font-weight: 500;
      color: #333;
    }

    .baggage-settings-field {
      margin-bottom: 16px;
    }

    .baggage-settings-field label {
      display: block;
      color: #666;
      margin-bottom: 8px;
      font-size: 14px;
    }

    .baggage-settings-note {
      font-size: 12px;
      color: #777;
      margin: 0 0 16px;
    }

    @media (max-width: 768px) {
      .country-actions .action-btn .label {
        display: none;
      }

      .ftw-country-toolbar-row {
        width: auto;
        flex: 1 1 auto;
      }

      .stops-filter-group {
        margin-left: 0;
        width: 100%;
      }
    }

    #resultCount {
      font-size: 14px;
      color: #777;
      margin-bottom: 0 !important;
      display: flex;
      align-items: center;
      white-space: nowrap;
      gap: 15px;
    }

    #resultCount strong {
      color: #111;
      font-size: 20px;
    }

    .meta-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      padding: 0 4px;
      margin-bottom: 4px;
    }

    #directFlightsOnly {
      margin-bottom: 0 !important;
      padding: 6px 16px !important;
      border-radius: 6px !important;
      font-size: 12px !important;
      font-weight: 700 !important;
      background: #EEF6F9 !important;
      color: #005B7A !important;
      border: 1px solid rgba(0, 113, 156, 0.15) !important;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    #directFlightsOnly i {
      font-size: 14px;
    }

    #resultsFilterHeader {
      display: none !important;
    }

    .gap-3 {
      gap: 12px !important;
    }

    .hide-destination-btn .flag {
      width: 20px !important;
      height: 14px !important;
      border-radius: 2px !important;
      margin-left: 8px !important;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
      display: inline-block;
      vertical-align: middle;
    }

    .hide-destination-btn {
      border-radius: 4px !important;
      padding: 6px 14px !important;
      font-size: 12px !important;
      font-weight: 500 !important;
      text-transform: none !important;
      border: 1px solid rgba(0, 0, 0, 0.1) !important;
      transition: all 0.2s ease !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 8px !important;
      color: #666 !important;
      background: #fff !important;
      cursor: pointer;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
      outline: none !important;
    }

    .hide-destination-btn.btn-hide {
      color: #666 !important;
      border-color: #eee !important;
      background: #fff !important;
    }

    .hide-destination-btn.btn-hide:hover {
      background: #fdf2f2 !important;
      border-color: #d93025 !important;
      color: #d93025 !important;
    }

    .hide-destination-btn.btn-show {
      color: #00719C !important;
      border-color: #E6F1F5 !important;
      background: #F0F7FA !important;
    }

    .hide-destination-btn.btn-show:hover {
      background: #E6F1F5 !important;
      border-color: #00719C !important;
    }

    .btn-sort {
      background: white;
      border: 1px solid #ddd;
      border-radius: 6px;
      padding: 8px 16px;
      font-size: 13px;
      font-weight: 600;
      color: #444;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .btn-sort:hover {
      background: #f8f9fa;
      border-color: #ccc;
      transform: translateY(-1px);
    }

    .btn-sort i {
      color: #005B7A;
      font-size: 14px;
    }

    .hide-destination-btn .flag {
      width: 18px !important;
      height: 12px !important;
      border-radius: 1px !important;
      margin: 0 !important;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
      order: 2;
      /* Ensure it stays after the text if flex-ordered, but manual placement is safer */
    }

    .airportStop span {
      background: #f1f3f3 !important;
      border-radius: 6px !important;
      padding: 2px 10px !important;
      margin-right: 8px !important;
      font-size: 11px !important;
      font-weight: 600 !important;
      color: #555 !important;
      display: inline-flex !important;
      align-items: center !important;
      border: 1px solid rgba(0, 0, 0, 0.03) !important;
    }

    #searchResults .item .airportStop span.times {
      background: #f1f3f3 !important;
      color: #005B7A !important;
    }

    .airportCode {
      background: rgba(0, 113, 156, 0.08) !important;
      color: #005B7A !important;
      padding: 2px 6px !important;
      border-radius: 4px !important;
      /* font-weight: 600 !important; */
      font-size: 11px !important;
      margin-left: 4px !important;
      border: 1px solid rgba(0, 113, 156, 0.1) !important;
    }

    /* Hide flights to filtered destination countries */
    .hidden-destination-flight {
      display: none !important;
    }

    /* ===== WEEKEND SELECTOR WIDGET ===== */
    .weekend-selector {
      display: inline-flex;
      align-items: center;
      justify-content: space-between;
      border: 1px solid rgba(255, 255, 255, 0.15) !important;
      border-radius: 12px;
      padding: 6px 12px;
      height: 48px;
      width: 100%;
      max-width: 240px;
      margin-left: auto;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      box-sizing: border-box;
    }

    .weekend-arrow {
      position: static !important;
      float: none !important;
      margin: 0 !important;
      padding: 0 !important;
      width: 36px !important;
      height: 36px !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      border-radius: 8px !important;
      border: none !important;
      background: transparent !important;
      color: #ffffff !important;
      font-size: 16px !important;
      box-shadow: none !important;
      transition: all 0.2s ease !important;
      text-decoration: none !important;
    }

    .weekend-arrow:hover {
      background: rgba(255, 255, 255, 0.12) !important;
      color: #008FBE !important;
    }

    .weekend-arrow.disabled {
      opacity: 0.25 !important;
      pointer-events: none !important;
      cursor: not-allowed !important;
    }

    .weekend-label {
      color: #ffffff !important;
      font-size: 13px !important;
      font-weight: 600 !important;
      letter-spacing: 1px !important;
      text-transform: uppercase !important;
      user-select: none !important;
      text-align: center;
      flex-grow: 1;
    }

    @media (max-width: 991.98px) {
      .weekend-selector {
        margin: 10px 0;
        max-width: 100%;
      }

      /* Style and position menu button on mobile (left side) */
      #navbar_toggle_btn {
        display: block !important;
        position: absolute !important;
        left: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        outline: none !important;
        box-shadow: none !important;
      }

      #navbar_toggle_icon {
        color: #ffffff !important;
        font-size: 22px !important;
      }

      /* Make header less high on mobile */
      #main_header {
        height: auto !important;
        min-height: 0 !important;
      }

      #top {
        position: relative !important;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
      }

      #menu {
        position: static !important;
      }

      #logo {
        height: 46px !important;
        width: 90px !important;
        margin-top: 4px !important;
        margin-bottom: 4px !important;
      }

      #logo div {
        height: 30px !important;
      }
    }

    /* ===== VIEW TOGGLER SYSTEM ===== */
    .view-toggle-container {
      display: inline-flex;
      background: #f1f3f3;
      padding: 3px;
      border-radius: 10px;
      border: 1px solid rgba(0, 0, 0, 0.04);
      margin-left: 8px;
    }

    @media (max-width: 768px) {
      .view-toggle-container:not(.group-by-toggle-container) .btn-view-toggle[data-view="card"] {
        display: none !important;
      }

      .view-toggle-container:not(.group-by-toggle-container) {
        margin-left: 0;
      }

      .view-toggle-container:not(.group-by-toggle-container) .btn-view-toggle {
        padding: 6px 10px;
        font-size: 12px;
      }
    }

    .btn-view-toggle {
      background: transparent;
      border: none;
      padding: 6px 14px;
      font-size: 13px;
      font-weight: 600;
      color: #666;
      border-radius: 8px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
    }

    .btn-view-toggle.active {
      background: #ffffff;
      color: #005B7A;
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    }

    .btn-view-toggle:hover:not(.active) {
      color: #111;
      background: rgba(255, 255, 255, 0.4);
    }

    /* ===== MICRO ROW LAYOUT ===== */
    #searchResults.view-micro {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    #searchResults.view-micro .ftw-unified-group-card {
      margin-top: 6px;
      margin-bottom: 6px;
      border-radius: 8px;
      border-left-width: 3px;
      box-shadow: 0 1px 4px rgba(12, 50, 63, 0.04);
    }

    #searchResults.view-micro .ftw-unified-group-card.ftw-micro-group {
      padding: 0;
    }

    #searchResults.view-micro .ftw-unified-group-card:hover {
      box-shadow: 0 2px 8px rgba(12, 50, 63, 0.08);
    }

    #searchResults.view-micro .stopover-group-header {
      display: none !important;
    }

    #searchResults.view-micro .ftw-unified-group-card .item.ftw-micro-row {
      margin: 0;
      border: none;
      border-radius: 0;
      box-shadow: none;
      background: transparent;
    }

    #searchResults.view-micro .ftw-unified-group-card .item.ftw-micro-row + .item.ftw-micro-row,
    #searchResults.view-micro .stopover-additional-container .item.ftw-micro-row {
      border-top: 1px solid rgba(11, 46, 60, 0.06);
    }

    .ftw-micro-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 12px;
      min-height: 36px;
      width: 100%;
      box-sizing: border-box;
      flex-wrap: nowrap;
    }

    .ftw-micro-row:hover {
      background: rgba(0, 113, 156, 0.04);
    }

    .ftw-micro-airline {
      width: 18px;
      height: 18px;
      object-fit: contain;
      flex-shrink: 0;
      border-radius: 2px;
    }

    .ftw-micro-route {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
      min-width: 0;
    }

    .ftw-micro-endpoint {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
    }

    .ftw-micro-flag {
      display: inline-block !important;
      width: 12px !important;
      height: 9px !important;
      vertical-align: middle;
      flex-shrink: 0;
      background-size: cover !important;
    }

    .ftw-micro-stopover-city {
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .ftw-micro-stopover-flag {
      margin-left: 0;
    }

    .ftw-micro-flights-toggle {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 8px;
      border-radius: 4px;
      border: 1px solid rgba(0, 113, 156, 0.2);
      background: #fff;
      color: #004B66;
      font-size: 11px;
      font-weight: 500;
      line-height: 1.3;
      cursor: pointer;
      white-space: nowrap;
      flex-shrink: 0;
      box-shadow: none;
    }

    .ftw-micro-flights-toggle:hover,
    .ftw-micro-flights-toggle.active {
      background: #f0f7fa;
      border-color: #00719C;
      color: #004B66;
      box-shadow: none;
    }

    .ftw-micro-flights-toggle .toggle-chevron {
      font-size: 9px;
      transition: transform 0.2s ease;
    }

    .ftw-micro-flights-toggle.active .toggle-chevron {
      transform: rotate(180deg);
    }

    /* Override global toggle-stopover-flights-btn sizing inside micro rows */
    #searchResults.view-micro .ftw-micro-flights-toggle.toggle-stopover-flights-btn {
      padding: 2px 8px !important;
      font-size: 11px !important;
      font-weight: 500 !important;
      gap: 4px !important;
      line-height: 1.3 !important;
      border-radius: 4px !important;
      border: 1px solid rgba(0, 113, 156, 0.2) !important;
      background: #fff !important;
      color: #004B66 !important;
      box-shadow: none !important;
      min-height: 0 !important;
      height: auto !important;
    }

    #searchResults.view-micro .ftw-micro-flights-toggle.toggle-stopover-flights-btn:hover,
    #searchResults.view-micro .ftw-micro-flights-toggle.toggle-stopover-flights-btn.active {
      background: #f0f7fa !important;
      border-color: #00719C !important;
      color: #004B66 !important;
      box-shadow: none !important;
    }

    #searchResults.view-micro .ftw-micro-flights-toggle .toggle-chevron {
      font-size: 9px !important;
    }

    .ftw-micro-code {
      font-size: 12px;
      font-weight: 600;
      color: #111;
      letter-spacing: 0.2px;
    }

    .ftw-micro-time {
      font-size: 12px;
      font-weight: 500;
      color: #333;
      font-variant-numeric: tabular-nums;
    }

    .ftw-micro-arrow {
      color: #9aa3a8;
      font-size: 11px;
      flex-shrink: 0;
    }

    .ftw-micro-day-offset {
      font-size: 9px;
      color: #00719C;
      font-weight: 600;
      margin-left: 1px;
    }

    .ftw-micro-meta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex: 1 1 auto;
      min-width: 0;
      overflow: hidden;
    }

    .ftw-micro-stopover-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      max-width: 100%;
      padding: 2px 8px;
      border-radius: 4px;
      border: 1px solid rgba(0, 113, 156, 0.2);
      background: #f0f7fa;
      color: #004B66;
      font-size: 11px;
      font-weight: 500;
      line-height: 1.3;
      cursor: pointer;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: background 0.15s ease, border-color 0.15s ease;
    }

    .ftw-micro-stopover-btn:hover {
      background: #e3f1f6;
      border-color: #00719C;
    }

    .ftw-micro-stopover-btn i {
      color: #00719C;
      font-size: 10px;
      flex-shrink: 0;
    }

    .ftw-micro-direct {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 11px;
      font-weight: 500;
      color: #666;
      white-space: nowrap;
    }

    .ftw-micro-direct .fa-bolt {
      color: #f1c40f;
      font-size: 10px;
    }

    .ftw-micro-date,
    .ftw-micro-duration {
      font-size: 11px;
      color: #6b757c;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .ftw-micro-duration {
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }

    .ftw-micro-flights-short {
      display: none;
    }

    .ftw-micro-price {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 64px;
      margin-left: auto;
      padding: 4px 8px;
      border-radius: 4px;
      background: #00719C;
      color: #fff !important;
      font-size: 12px;
      font-weight: 600;
      text-decoration: none !important;
      white-space: nowrap;
      line-height: 1.2;
      flex-shrink: 0;
    }

    .ftw-micro-price:hover {
      background: #005B7A;
      color: #fff !important;
    }

    .ftw-micro-price.price-band-profit { background: #005B7A; }
    .ftw-micro-price.price-band-good { background: #00719C; }
    .ftw-micro-price.price-band-mid { background: #d97706; }
    .ftw-micro-price.price-band-high { background: #b42318; }

    #searchResults.view-micro .ftw-micro-row .baggage-extra-cost {
      font-size: 10px;
      white-space: nowrap;
      flex-shrink: 0;
    }

    #searchResults.view-micro .ftw-micro-row .ftw-micro-stayover {
      margin: 0;
      max-width: 160px;
      flex-shrink: 0;
    }

    #searchResults.view-micro .ftw-micro-row .stayover-badge {
      font-size: 10px !important;
      padding: 3px 6px;
      gap: 3px;
      max-width: 160px;
    }

    #searchResults.view-micro .ftw-micro-row .stayover-badge-cta {
      display: none;
    }

    #searchResults.view-micro .ftw-micro-row .stayover-retry-btn {
      min-width: 26px;
      padding: 2px 6px;
      margin-left: 0;
      font-size: 10px;
    }

    #searchResults.view-micro .ftw-micro-row .stayover-badge.stayover-none {
      font-size: 10px !important;
      padding: 2px 6px;
    }

    .micro-modal-stopover {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 8px;
      background: #f0f7fa;
      color: #004B66;
      font-size: 13px;
      border: 1px solid rgba(0, 113, 156, 0.15);
    }

    .micro-modal-stopover i {
      color: #00719C;
    }

    /* Mobile-only micro layout — desktop single-row unchanged */
    @media (max-width: 767.98px) {
      #searchResults.view-micro .ftw-micro-row {
        display: grid;
        grid-template-columns: 18px minmax(0, 1fr) auto;
        grid-template-areas:
          "airline route price"
          "meta meta meta";
        align-items: center;
        column-gap: 8px;
        row-gap: 6px;
        padding: 10px 12px;
        min-height: 0;
        flex-wrap: unset;
      }

      #searchResults.view-micro .ftw-micro-airline {
        grid-area: airline;
      }

      #searchResults.view-micro .ftw-micro-route {
        grid-area: route;
        min-width: 0;
      }

      #searchResults.view-micro .ftw-micro-meta {
        grid-area: meta;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        flex: none;
        width: 100%;
        min-width: 0;
        overflow: visible;
      }

      #searchResults.view-micro .ftw-micro-price {
        grid-area: price;
        margin-left: 0;
        justify-self: end;
      }

      #searchResults.view-micro .ftw-micro-row .baggage-extra-cost,
      #searchResults.view-micro .ftw-micro-row .ftw-micro-stayover:not(:empty) {
        grid-column: 1 / -1;
        max-width: none;
        width: 100%;
        justify-content: flex-start;
      }

      #searchResults.view-micro .ftw-micro-row .ftw-micro-stayover:empty {
        display: none;
      }

      #searchResults.view-micro .ftw-micro-date {
        display: none;
      }

      #searchResults.view-micro .ftw-micro-stopover-btn {
        max-width: none;
        overflow: visible;
        text-overflow: unset;
        flex: 0 1 auto;
      }

      #searchResults.view-micro .ftw-micro-flights-full {
        display: none;
      }

      #searchResults.view-micro .ftw-micro-flights-short {
        display: inline;
      }

      #searchResults.view-micro .ftw-micro-flights-toggle.toggle-stopover-flights-btn {
        flex: 0 0 auto;
        width: auto !important;
        max-width: none;
      }

      #searchResults.view-micro .ftw-micro-row .stayover-badge {
        max-width: none;
      }

      #searchResults.view-micro .ftw-unified-group-card {
        margin-top: 8px;
        margin-bottom: 8px;
      }
    }

    /* ===== FLAT TABLE LAYOUT ===== */
    #searchResults.view-flat, .stayover-modal-body .ftw-flat-view-scope {
      --ftw-flat-grid: minmax(0, 1fr) 242px;
      --ftw-flat-action-width: 220px;
      --ftw-flat-gap: 12px;
      --ftw-flat-pad-x: 24px;
      --ftw-flat-leg-text-offset: 68px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .ftw-flat-header {
      display: grid;
      grid-template-columns: var(--ftw-flat-grid);
      gap: var(--ftw-flat-gap);
      padding: 10px var(--ftw-flat-pad-x);
      font-size: 13px;
      font-weight: 300 !important;
      color: #888;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      margin-bottom: 4px;
    }

    .ftw-flat-header .ftw-header-col {
      display: flex;
      align-items: center;
    }

    .ftw-flat-header .col-outbound {
      padding-left: var(--ftw-flat-leg-text-offset);
    }

    .ftw-flat-header .col-price {
      justify-content: center;
    }

    .ftw-flat-row {
      position: relative;
      display: grid;
      grid-template-columns: var(--ftw-flat-grid);
      gap: var(--ftw-flat-gap);
      align-items: stretch;
      background: #ffffff;
      border: 1px solid rgba(11, 46, 60, 0.07);
      border-radius: 16px;
      padding: 12px var(--ftw-flat-pad-x);
      transition: all 0.25s ease;
      box-shadow: 0 4px 12px rgba(12, 50, 63, 0.03);
    }

    .ftw-card-menu {
      position: absolute;
      top: 8px;
      right: 5px;
      z-index: 5;
    }

    .ftw-flat-row .ftw-card-menu {
      top: 10px;
      right: 10px;
    }

    .ftw-card-menu-toggle {
      align-items: center;
      background: rgba(255, 255, 255, 0.94);
      border: 1px solid rgba(11, 46, 60, 0.1);
      border-radius: 4px;
      /* box-shadow: 0 6px 16px rgba(12, 50, 63, 0.1); */
      color: #173D4C;
      cursor: pointer;
      display: inline-flex;
      height: 34px;
      justify-content: center;
      padding: 0;
      transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
      width: 34px;
    }

    .ftw-card-menu-toggle:hover,
    .ftw-card-menu.open .ftw-card-menu-toggle {
      background: #00719C;
      border-color: #00719C;
      color: #fff;
      box-shadow: 0 8px 20px rgba(0, 113, 156, 0.24);
    }

    .ftw-card-menu-panel {
      background: #fff;
      border: 1px solid rgba(11, 46, 60, 0.1);
      border-radius: 10px;
      box-shadow: 0 16px 35px rgba(12, 50, 63, 0.16);
      display: none;
      flex-direction: column;
      gap: 4px;
      min-width: 230px;
      overflow: hidden;
      padding: 6px;
      position: absolute;
      right: 0;
      top: calc(100% + 8px);
    }

    .ftw-card-menu.open .ftw-card-menu-panel {
      display: flex;
    }

    .ftw-card-menu-item {
      align-items: center;
      background: transparent !important;
      border: 0 !important;
      border-radius: 8px !important;
      color: #173D4C !important;
      cursor: pointer;
      display: flex !important;
      font-family: 'Jost';
      font-size: 13px !important;
      gap: 9px;
      justify-content: flex-start;
      line-height: 1.2;
      margin: 0 !important;
      padding: 10px 11px !important;
      text-align: left;
      text-decoration: none !important;
      white-space: nowrap;
      width: 100%;
    }

    .ftw-card-menu-item i {
      flex-shrink: 0;
      font-size: 14px;
      text-align: center;
      width: 16px;
    }

    .ftw-card-menu-item:hover {
      background: rgba(0, 113, 156, 0.08) !important;
      color: #005B7A !important;
      box-shadow: none !important;
      transform: none !important;
    }

    .ftw-flat-row:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(12, 50, 63, 0.08);
      border-color: rgba(0, 113, 156, 0.2);
    }

    .ftw-flat-cell {
      display: flex;
      align-items: center;
      min-width: 0;
    }

    /* Cell: Flight Legs */
    .cell-leg {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 0;
      min-width: 0;
      border-left: none;
      padding-left: 0;
      width: 100%;
      align-self: stretch;
    }

    .ftw-flat-flight-alerts {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 6px;
      width: 100%;
    }

    .ftw-flat-flight-alerts:has(> *:not(:empty)) {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .ftw-flat-flight-alerts .ftw-flight-meta-badges {
      margin-top: 0;
      width: auto;
      gap: 6px;
    }

    .ftw-flat-flight-alerts .anytime-price-container,
    .ftw-flat-flight-alerts .return-comparison-container {
      width: auto;
      margin: 0;
    }

    .ftw-flat-destination-badge {
      display: flex;
      align-items: center;
      gap: 6px;
      font-weight: 600;
      color: #00719C;
      font-size: 14px;
      margin-bottom: 8px;
      width: 100%;
    }

    .ftw-flat-flag-wrapper {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: #F8FBFC;
      border: 1px solid rgba(0, 113, 156, 0.15);
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
      overflow: hidden;
      flex-shrink: 0;
    }

    .ftw-flat-flag-wrapper .flag {
      width: 24px !important;
      height: 16px !important;
      object-fit: cover;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
      border-radius: 2px;
    }

    .ftw-flat-city {
      font-size: 17px !important;
      font-weight: 300 !important;
      color: #111;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .ftw-flat-weather-badge {
      font-size: 11px !important;
      font-weight: 300 !important;
      color: #005B7A;
      background: rgba(0, 113, 156, 0.08);
      padding: 1px 6px;
      border-radius: 4px;
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }

    .ftw-flat-weather-badge i {
      font-size: 10px;
    }

    .ftw-flat-route-codes {
      font-size: 13px !important;
      color: #777;
      font-weight: 300 !important;
      margin-top: 2px;
    }

    .ftw-flat-route-codes i {
      font-size: 10px;
      margin: 0 2px;
      color: #ccc;
    }

    #searchResults.view-flat .ftw-flat-legs-row-wrapper, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-legs-row-wrapper {
      width: 100%;
    }

    #searchResults.view-flat .ftw-flat-legs-row, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-legs-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 10px 40px;
      width: 100%;
    }

    #searchResults.view-flat .ftw-flat-legs-row--direct, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-legs-row--direct {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      align-items: center;
      gap: 10px 14px;
    }

    #searchResults.view-flat .ftw-flat-legs-row--direct .ftw-flat-leg-item, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-legs-row--direct .ftw-flat-leg-item {
      grid-column: 1;
    }

    #searchResults.view-flat .ftw-flat-legs-row--direct .ftw-flat-leg-badge-separator, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-legs-row--direct .ftw-flat-leg-badge-separator {
      grid-column: 2;
      justify-self: center;
    }

    #searchResults.view-flat .ftw-flat-leg-spacer, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-leg-spacer {
      grid-column: 3;
      min-height: 1px;
    }

    #searchResults.view-flat .ftw-flat-leg-item, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-leg-item {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      gap: 10px;
      flex: 0 1 auto;
      min-width: 0;
      max-width: 100%;
      margin-top: 9px;
    }

    #searchResults.view-flat .ftw-flat-leg-separator, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-leg-separator {
      color: #B8C7CC;
      font-size: 13px;
      font-weight: 600;
      flex-shrink: 0;
      padding: 0 2px;
      align-self: center;
    }

    .ftw-flat-airline {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 36px;
      flex-shrink: 0;
      margin-top: 0;
      align-self: center;
    }

    #searchResults.view-flat .ftw-flat-leg-badge-separator, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-leg-badge-separator {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }

    .ftw-flat-nonstop-badge {
      background: rgba(0, 113, 156, 0.12);
      color: #005B7A;
      border: 1px solid rgba(0, 113, 156, 0.2);
      font-weight: 600;
    }

    .ftw-flat-show-more-legs-btn {
      align-self: center;
      flex-shrink: 0;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      background: rgba(0, 113, 156, 0.1);
      border: 1px solid rgba(0, 113, 156, 0.2);
      color: #005B7A;
      font-family: inherit;
      font-size: 0.75rem;
      font-weight: 600;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 4px;
      white-space: nowrap;
      transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .ftw-flat-show-more-legs-btn:hover {
      background: rgba(0, 113, 156, 0.18);
      border-color: rgba(0, 113, 156, 0.32);
      color: #004C68;
    }

    .ftw-flat-show-more-legs-btn i {
      font-size: 0.72rem;
    }

    .ftw-flat-extra-legs {
      display: none;
      width: 100%;
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid rgba(0, 0, 0, 0.05);
      flex-wrap: wrap;
      align-items: center;
      gap: 10px 14px;
    }

    .ftw-flat-extra-legs.is-open {
      display: flex;
    }

    .ftw-airline-logo,
    .ftw-flat-airline-logo {
      border-radius: 100px !important;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.25s ease !important;
      background-color: #ffffff;
      padding: 2px;
      border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .ftw-airline-logo:hover,
    .ftw-flat-airline-logo:hover {
      transform: scale(1.2) !important;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
      z-index: 10;
    }

    .ftw-flat-airline-logo {
      height: 28px;
      width: 28px;
      max-width: 28px;
      object-fit: contain;
      filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }

    #searchResults.view-flat .ftw-flat-airline .airline-name-text, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-airline .airline-name-text {
      font-size: 9px !important;
      font-weight: 300 !important;
      color: #999;
      margin-top: 3px;
      text-transform: uppercase;
      letter-spacing: 0.3px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 42px;
      text-align: center;
    }

    .ftw-flat-leg-details {
      display: flex;
      flex-direction: column;
      min-width: 0;
      gap: 4px;
      flex: 1;
    }

    .ftw-flat-leg-route {
      font-size: 11px !important;
      font-weight: 300 !important;
      color: #777;
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: nowrap;
      white-space: nowrap;
      margin-bottom: 2px;
    }

    .ftw-flat-leg-route .leg-route-arrow {
      font-size: 12px;
      color: rgba(0, 91, 122, 0.65);
      line-height: 1;
    }

    .ftw-flat-leg-schedule {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: nowrap;
      white-space: nowrap;
      min-width: 0;
    }

    .ftw-flat-leg-time {
      font-size: 14px !important;
      font-weight: 300 !important;
      color: #222;
      flex-shrink: 0;
    }

    #searchResults.view-flat .ftw-flat-leg-route .airportCode, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-leg-route .airportCode {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 12px !important;
      font-weight: 700 !important;
      letter-spacing: 0.2px;
      margin-left: 0 !important;
      color: #004C68 !important;
      background: rgba(0, 113, 156, 0.1) !important;
      border: 1px solid rgba(0, 113, 156, 0.18) !important;
      padding: 2px 6px !important;
      border-radius: 4px !important;
    }

    #searchResults.view-flat .ftw-flat-leg-route .ftw-flat-route-flag, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-leg-route .ftw-flat-route-flag {
      width: 14px;
      height: 10px;
      flex-shrink: 0;
      border-radius: 2px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    }

    .leg-day-badge {
      font-size: 10px !important;
      font-weight: 600 !important;
      color: #005B7A;
      background: rgba(0, 113, 156, 0.12);
      padding: 2px 6px;
      border-radius: 4px;
      margin-left: 6px;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .ftw-flat-leg-meta {
      font-size: 13px !important;
      color: #444;
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px 12px;
      min-width: 0;
    }

    .leg-date {
      font-size: 0.875rem;
      line-height: 1.3;
      color: #6c8690;
      word-break: break-word;
      min-width: 0;
    }

    .leg-duration {
      font-size: 12px !important;
      color: #888;
      font-weight: 300 !important;
      white-space: nowrap;
    }

    .leg-duration i {
      font-size: 10px;
      margin-right: 3px;
      opacity: 0.75;
    }

    /* Cell: Price */
    .cell-price {
      justify-content: center;
      border-left: 1px solid rgba(0, 0, 0, 0.04);
      padding-left: 16px;
    }

    .cell-price .price-container {
      display: flex;
      flex-direction: column;
    }

    .cell-price .price-val {
      font-size: 22px !important;
      font-weight: 300 !important;
      color: #111;
      display: flex;
      align-items: baseline;
    }

    .cell-price .price-val small {
      font-size: 13px !important;
      font-weight: 300 !important;
      color: #888;
      margin-left: 2px;
    }

    /* Price Bands */
    .price-band-profit .price-val {
      color: #005B7A !important;
    }

    .price-band-good .price-val {
      color: #00719C !important;
    }

    .price-band-mid .price-val {
      color: #d97706 !important;
    }

    .price-band-high .price-val {
      color: #dc2626 !important;
    }

    /* Cell: Action */
    .cell-action {
      justify-content: center;
      align-items: center;
      align-self: stretch;
      border-left: 1px solid rgba(0, 0, 0, 0.05);
      padding: 10px 0 10px 14px;
    }

    .ftw-flat-action-stack {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: center;
      gap: 10px;
      width: var(--ftw-flat-action-width);
      max-width: 100%;
      flex: 0 1 auto;
      margin: 0 auto;
      padding: 0 34px 0 0;
    }

    .ftw-flat-price-block {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
      width: 100%;
      flex: 0 0 auto;
    }

    .ftw-flat-action-stack .stayover-comparison-container {
      margin: 0;
      justify-content: center;
      width: 100%;
      flex-shrink: 0;
      flex-wrap: nowrap;
      gap: 8px;
    }

    .ftw-flat-action-stack .stayover-badge {
      width: 100%;
      max-width: none;
      align-self: stretch;
      justify-content: center;
      flex-direction: row;
      flex-wrap: nowrap;
      gap: 5px;
      font-size: 12px !important;
      /* font-weight: 700 !important; */
      padding: 9px 10px;
      white-space: nowrap;
      text-align: center;
      line-height: 1.35;
      border-radius: 4px;
      box-shadow: none;
      border: 1.5px solid transparent;
      overflow: visible;
    }

    .ftw-flat-action-stack .stayover-badge.stayover-cheaper {
      background: #E6F4F8;
      border-color: #8FCFE3;
      color: #004B66;
    }

    .ftw-flat-action-stack .stayover-badge.stayover-expensive {
      background: #fdf2f2;
      border-color: #f5b4b4;
      color: #b42318;
    }

    .ftw-flat-action-stack .stayover-badge:hover {
      transform: none;
      box-shadow: 0 2px 8px rgba(12, 50, 63, 0.1);
    }

    .ftw-flat-action-stack .stayover-badge-cta {
      display: inline;
      /* font-weight: 700 !important; */
      text-decoration: none;
      flex-shrink: 0;
      color: inherit;
    }

    .ftw-flat-action-stack .stayover-badge-detail {
      font-weight: 500 !important;
      /* flex-shrink: 0; */
      /* opacity: 1; */
      /* color: inherit; */
    }

    .ftw-flat-action-stack .stayover-badge-icon {
      flex-shrink: 0;
      margin-left: 0;
      opacity: 1;
      font-size: 11px !important;
      color: inherit;
    }

    .ftw-flat-action-stack .stayover-badge.stayover-none {
      font-size: 12px !important;
      /* font-weight: 600 !important; */
      font-style: normal;
      color: #555;
      background: #f3f5f5;
      border-color: #d5dad8;
      width: auto;
      flex: 1 1 auto;
    }

    .ftw-flat-action-stack .baggage-extra-cost {
      text-align: center;
      width: 100%;
    }

    .ftw-flat-action-stack .manual-stayover-check-btn,
    .ftw-flat-action-stack .stayover-retry-btn {
      align-self: stretch;
      width: 100%;
      border-radius: 4px !important;
      font-size: 13px !important;
      /* font-weight: 600 !important; */
      padding: 9px 12px !important;
      line-height: 1.3 !important;
      color: #004B66 !important;
      border: 1.5px solid #00719C !important;
      background: #ffffff !important;
      cursor: pointer;
      white-space: nowrap;
    }

    .ftw-flat-action-stack .stayover-retry-btn {
      width: auto;
      flex: 0 0 auto;
      min-width: 38px;
      padding: 9px 11px !important;
    }

    .ftw-flat-action-stack .manual-stayover-check-btn:hover,
    .ftw-flat-action-stack .stayover-retry-btn:hover {
      background: #E6F4F8 !important;
      color: #004C68 !important;
      border-color: #005B7A !important;
    }

    /* Price + rocket button */
    .ftw-flat-btn {
      width: 100%;
      max-width: none;
      min-height: 42px;
      border-radius: 4px;
      display: inline-flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 13px !important;
      font-weight: 300 !important;
      color: #ffffff !important;
      transition: all 0.2s ease;
      text-decoration: none !important;
      border: none !important;
      box-shadow: 0 3px 8px rgba(0, 91, 122, 0.14);
      padding: 6px 12px;
    }

    .ftw-btn-price-val {
      font-size: 20px;
      font-weight: 300;
      line-height: 1;
      color: #fff;
    }

    .ftw-btn-rocket {
      font-size: 20px !important;
      opacity: 0.75;
      margin: 0 !important;
      flex-shrink: 0;
      transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .ftw-flat-btn:hover .ftw-btn-rocket {
      transform: translateY(-3px) rotate(-45deg);
      opacity: 1;
    }

    .ftw-flat-btn.price-band-profit {
      background: #005B7A !important;
    }

    .ftw-flat-btn.price-band-profit:hover {
      background: #00455F !important;
      box-shadow: 0 6px 15px rgba(0, 91, 122, 0.25);
    }

    .ftw-flat-btn.price-band-good {
      background: #00719C !important;
    }

    .ftw-flat-btn.price-band-good:hover {
      background: #006587 !important;
    }

    .ftw-flat-btn.price-band-mid {
      background: #d97706 !important;
      box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15);
    }

    .ftw-flat-btn.price-band-mid:hover {
      background: #b45309 !important;
    }

    .ftw-flat-btn.price-band-high {
      background: #dc2626 !important;
      box-shadow: 0 4px 10px rgba(220, 38, 38, 0.15);
    }

    .ftw-flat-btn.price-band-high:hover {
      background: #b91c1c !important;
    }

    /* ===== RESPONSIVENESS ===== */
    @media (max-width: 991.98px) {
      #searchResults.view-flat, .stayover-modal-body .ftw-flat-view-scope {
        --ftw-flat-grid: minmax(0, 1fr) 150px;
      }

      .ftw-flat-header .col-action {
        display: none;
      }

      .ftw-flat-row {
        padding: 12px 16px;
      }

      .ftw-flat-row .cell-action {
        grid-column: 1 / -1;
        margin-top: 10px;
        border-left: none;
        padding: 0;
      }

      .ftw-flat-row .ftw-flat-action-stack {
        padding: 0;
        width: 100%;
        max-width: 280px;
      }
    }

    @media (max-width: 767.98px) {
      .ftw-flat-header {
        display: none !important;
      }

      .ftw-flat-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        align-items: center;
      }

      .ftw-flat-row .cell-outbound,
      .ftw-flat-row .cell-return {
        grid-column: 1 / -1;
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding-top: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .ftw-flat-row .cell-return {
        margin-bottom: 4px;
      }

      .ftw-flat-row .cell-action {
        grid-column: 1 / -1;
        margin-top: 6px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        border-left: none;
        padding: 0;
      }

      .ftw-flat-row .ftw-flat-action-stack {
        transform: none !important;
        align-items: stretch !important;
        justify-content: center !important;
        width: 100%;
        max-width: 100%;
        padding: 0;
        flex: none;
        gap: 10px;
      }

      .ftw-flat-row .ftw-flat-price-block {
        flex: none;
        align-items: stretch;
      }

      .ftw-flat-row .ftw-flat-action-stack .stayover-badge {
        flex-direction: row;
        white-space: nowrap;
        font-size: 14px !important;
        padding: 9px 10px;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
      }

      .ftw-flat-row .ftw-flat-action-stack .stayover-badge-cta {
        display: inline;
      }

      .ftw-flat-row .ftw-flat-btn {
        width: 100% !important;
        min-width: 0;
        max-width: none;
        margin: 0;
        justify-content: center;
        gap: 12px;
      }

      .ftw-flat-row .baggage-extra-cost {
        text-align: center;
        width: 100%;
      }

      .ftw-flat-row .stayover-comparison-container {
        justify-content: center;
        width: 100%;
      }

      #searchResults.view-flat .ftw-flat-legs-row, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-legs-row {
        justify-content: center;
      }

      #searchResults.view-flat .ftw-flat-legs-row--direct, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-legs-row--direct {
        display: flex;
        flex-direction: column;
      }

      #searchResults.view-flat .ftw-flat-leg-spacer, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-leg-spacer {
        display: none;
      }

      #searchResults.view-flat .ftw-flat-leg-item, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-leg-item {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex: 0 1 auto;
        gap: 12px;
      }

      .ftw-flat-row .ftw-flat-airline {
        margin-top: 0;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .ftw-flat-row .ftw-flat-leg-details {
        align-items: flex-start;
        text-align: left;
      }

      .ftw-flat-row .ftw-flat-leg-meta {
        justify-content: flex-start;
      }

      .ftw-flat-row .ftw-flat-leg-schedule {
        justify-content: flex-start;
      }

      .ftw-flat-row .ftw-flat-destination-badge {
        justify-content: center;
      }

      .cell-leg {
        gap: 12px;
      }

      .ftw-flat-airline {
        width: 48px;
      }
    }

    /* Upcoming Calendar Modal Styles */
    .calendar-grid-container {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 24px;
      justify-content: center;
    }

    .calendar-month-box {
      background: #ffffff;
      border: 1px solid rgba(0, 0, 0, 0.05);
      border-radius: 18px;
      padding: 16px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    }

    .calendar-month-header {
      font-size: 16px;
      font-weight: 600 !important;
      color: #111;
      text-align: center;
      margin-bottom: 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 4px;
    }

    .calendar-month-temp {
      font-size: 12px;
      color: #005B7A;
      font-weight: 500 !important;
      background: rgba(0, 113, 156, 0.08);
      padding: 2px 8px;
      border-radius: 6px;
    }

    .calendar-days-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr) 52px;
      gap: 4px;
      align-items: center;
    }

    .calendar-day-label {
      font-size: 11px;
      font-weight: 600 !important;
      color: #888;
      text-align: center;
      padding: 4px 0;
    }

    .calendar-day-cell {
      font-size: 12px;
      height: 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      color: #444;
      user-select: none;
    }

    .calendar-day-cell.blank {
      visibility: hidden;
    }

    /* Highlighted Weekends */
    .weekend-cell-cheap {
      background-color: #00719C !important;
      color: #ffffff !important;
      font-weight: 600 !important;
    }

    .weekend-cell-medium {
      background-color: #2e6dd6 !important;
      color: #ffffff !important;
      font-weight: 600 !important;
    }

    .weekend-cell-expensive {
      background-color: #ffa500 !important;
      color: #ffffff !important;
      font-weight: 600 !important;
    }

    .calendar-price-label {
      font-size: 12px;
      font-weight: 700 !important;
      padding-left: 6px;
      white-space: nowrap;
      text-align: right;
    }

    .calendar-price-label.cheap {
      color: #00719C;
    }

    .calendar-price-label.medium {
      color: #2e6dd6;
    }

    .calendar-price-label.expensive {
      color: #ffa500;
    }

    .calendar-btn-container {
      margin-top: 8px;
      display: flex;
      gap: 8px;
    }

    .show-more-stopover-btn {
      color: #00719C !important;
      border-color: #00719C !important;
      font-weight: 300 !important;
      font-size: 0.9rem !important;
      padding: 6px 20px !important;
      border-radius: 4px !important;
      background: transparent !important;
      transition: all 0.2s ease !important;
    }

    .show-more-stopover-btn:hover {
      background: #00719C !important;
      color: #ffffff !important;
    }

    /* Stayover Comparison Badges */
    .stayover-comparison-container {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin: 0;
        width: auto;
        max-width: 100%;
    }

    .stayover-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
        padding: 6px 12px;
        border-radius: 4px;
        font-size: 0.82rem;
        text-align: left;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        white-space: nowrap;
        cursor: pointer;
        font-family: inherit;
        line-height: 1.35;
    }

    button.stayover-badge {
        appearance: none;
        -webkit-appearance: none;
    }

    .stayover-badge:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .stayover-badge-cta {
        font-weight: 600;
        text-decoration: none;
    }

    .stayover-badge-detail {
        color: inherit;
        opacity: 0.92;
    }

    .stayover-badge-icon {
        font-size: 0.72rem;
        opacity: 0.85;
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }

    .stayover-badge:hover .stayover-badge-icon {
        transform: translateX(2px);
    }

    .stayover-badge.stayover-cheaper:hover {
        border-color: #6bc49a;
    }

    .stayover-badge.stayover-expensive:hover {
        border-color: #e57373;
    }

    .stayover-badge.stayover-cheaper {
        background-color: #E6F4F8;
        color: #005B7A;
        border: 1px solid #A3D8E8;
    }

    .stayover-badge.stayover-expensive {
        background-color: #fdf2f2;
        color: #c93636;
        border: 1px solid #fbc4c4;
    }

    .stayover-badge.stayover-none {
        background-color: #f5f6f7;
        color: #777;
        border: 1px solid #e1e3e5;
        font-style: italic;
    }

    .stopover-review-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        font-weight: 600;
        padding: 2px 6px;
        border-radius: 4px;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .stopover-review-badge i {
        font-size: 10px;
    }

    .stopover-review-risky {
        background: rgba(231, 76, 60, 0.1) !important;
        color: #c0392b !important;
        border: 1px solid rgba(231, 76, 60, 0.22) !important;
    }

    .stopover-review-night {
        background: rgba(99, 102, 241, 0.1) !important;
        color: #4f46e5 !important;
        border: 1px solid rgba(99, 102, 241, 0.22) !important;
    }

    .stopover-duration-green {
        background: rgba(0, 113, 156, 0.1) !important;
        color: #005B7A !important;
        border: 1px solid rgba(0, 113, 156, 0.18) !important;
    }

    .stopover-duration-blue {
        background: rgba(59, 130, 246, 0.1) !important;
        color: #2563eb !important;
        border: 1px solid rgba(59, 130, 246, 0.22) !important;
    }

    .stopover-duration-purple {
        background: rgba(147, 51, 234, 0.1) !important;
        color: #7c3aed !important;
        border: 1px solid rgba(147, 51, 234, 0.22) !important;
    }

    .stayover-retry-btn {
        font-size: 11px;
        padding: 3px 9px;
        border-radius: 4px;
        margin-left: 6px;
        vertical-align: middle;
        border-color: #00719C;
        color: #00719C;
        background: transparent;
        white-space: nowrap;
        min-width: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .direct-flight-summary {
        display: flex;
        align-items: center;
        margin: 0 0 16px;
        padding: 0 4px;
    }

    .direct-flight-summary .stayover-badge {
        font-size: 13px;
        font-weight: 400;
        padding: 8px 14px;
    }

    button.direct-flight-summary-btn {
        cursor: pointer;
        border: 1px solid #d5dad8;
        gap: 8px;
        transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    }

    button.direct-flight-summary-btn:hover {
        background: #eef2f2;
        border-color: #c5ccca;
        box-shadow: 0 2px 8px rgba(12, 50, 63, 0.08);
    }

    .direct-flight-bolt-icon {
        color: #f1c40f;
        flex-shrink: 0;
    }

    .direct-flight-duration {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .direct-flight-duration i {
        color: #7a858c;
    }

    .direct-flight-highlight {
        outline: 2px solid #00719C;
        outline-offset: 2px;
        transition: outline-color 0.3s ease;
    }

    /* Stayover options modal */
    #ftw_calendar_modal .stayover-modal-dialog {
        max-width: 920px;
    }

    #calendar_modal_body.stayover-modal-body {
        padding: 20px !important;
        background: #f8fafb !important;
    }

    .stayover-modal-intro {
        margin: 0 0 14px;
        color: #666;
        font-size: 14px;
        line-height: 1.5;
    }

    .stayover-modal-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .stayover-modal-body .ftw-flat-view-scope .stayover-option-legs-row,
    .stayover-modal-body .ftw-flat-view-scope .stayover-flight-flat-legs .ftw-flat-legs-row {
      margin: 2px 0 6px;
      gap: 6px 10px;
      justify-content: flex-start;
    }

    .stayover-modal-body .ftw-flat-view-scope .stayover-flight-card .ftw-flat-leg-item {
      flex: 0 1 auto;
      margin-top: 0;
      gap: 8px;
    }

    .stayover-modal-body .ftw-flat-view-scope .stayover-flight-card .ftw-flat-legs-row--direct {
      display: flex;
      flex-wrap: wrap;
    }

    .stayover-modal-body .ftw-flat-view-scope .stayover-flight-card .ftw-flat-leg-spacer {
      display: none;
    }

    .stayover-flight-card .stayover-flight-flat-legs {
      width: 100%;
    }

    .stayover-package-city-badge {
      background: rgba(0, 113, 156, 0.12);
      color: #005B7A;
      border: 1px solid rgba(0, 113, 156, 0.2);
      font-weight: 600;
      gap: 5px;
    }

    .stayover-option-leg-prices {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 16px;
      margin: 0 0 12px;
      font-size: 13px;
      color: #555;
    }

    .stayover-leg-price-tag strong {
      color: #111;
      font-weight: 600;
    }

    .stayover-empty-message {
        text-align: center;
        color: #777;
        padding: 24px 12px;
    }

    .stayover-option-item {
        border: 1px solid rgba(11, 46, 60, 0.07);
        border-left: 4px solid #00719C;
        border-radius: 16px;
        padding: 14px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(12, 50, 63, 0.03);
    }

    .stayover-option-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 12px;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #edf1f3;
    }

    .stayover-option-number {
        display: inline-flex;
        align-items: center;
        width: fit-content;
        background: #00719C;
        color: #fff;
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        justify-self: start;
    }

    .stayover-option-summary {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 15px;
        line-height: 1.4;
        color: #1f2933;
        text-align: center;
        min-width: 0;
    }

    .stayover-days-badge {
        display: inline-flex;
        align-items: center;
        background: #E6F4F8;
        color: #005B7A;
        border: 1px solid #A3D8E8;
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }

    .stayover-city-copy {
        font-weight: 500;
    }

    .stayover-option-summary .flag {
        width: 22px;
        height: 15px;
        flex-shrink: 0;
    }

    .stayover-option-pricing {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: flex-end;
        gap: 6px 10px;
        flex-shrink: 0;
        text-align: right;
        justify-self: end;
    }

    .stayover-total-label {
        font-size: 11px;
        color: #7a8794;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .stayover-total-value {
        font-size: 19px;
        line-height: 1.1;
        color: #111;
        font-weight: 500;
    }

    .stayover-diff-pill {
        display: inline-flex;
        align-items: center;
        padding: 3px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
    }

    .stayover-diff-pill--below {
        background: #E6F4F8;
        color: #005B7A;
        border: 1px solid #A3D8E8;
    }

    .stayover-diff-pill--above {
        background: #fdf2f2;
        color: #c93636;
        border: 1px solid #fbc4c4;
    }

    .stayover-flight-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 12px;
        background: #f9fbfc;
        border: 1px solid #e8edf0;
        border-radius: 12px;
        padding: 10px 12px;
        margin-bottom: 8px;
    }

    .stayover-flight-card:last-of-type {
        margin-bottom: 0;
    }

    .stayover-flight-legs {
        min-width: 0;
    }

    .stayover-flight-action {
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: stretch;
        border-left: 1px solid rgba(0, 0, 0, 0.05);
        padding: 4px 0 4px 12px;
    }

    .stayover-flight-action-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 138px;
        max-width: 100%;
    }

    .stayover-flight-label {
        display: inline-flex;
        align-items: center;
        background: #eef2f6;
        color: #5b6770;
        padding: 3px 8px;
        border-radius: 4px;
        border: 1px solid #dde4ea;
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
    }

    .stayover-flight-price {
        text-align: center;
        line-height: 1.2;
        color: #111;
    }

    .stayover-flight-price-val {
        font-size: 18px;
        font-weight: 500;
        letter-spacing: -0.2px;
    }

    .stayover-flight-book-btn,
    .stayover-book-both-btn,
    .stayover-save-package-btn {
        font-size: 12px;
        font-weight: 500;
        padding: 7px 12px;
        border-radius: 8px;
        white-space: nowrap;
        text-align: center;
    }

    .stayover-flight-book-btn,
    .stayover-book-both-btn {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        background: #00719C !important;
        border-color: #00719C !important;
        color: #fff !important;
        box-shadow: none !important;
    }

    .stayover-flight-book-btn:hover,
    .stayover-book-both-btn:hover {
        background: #005B7A !important;
        border-color: #005B7A !important;
        color: #fff !important;
    }

    .stayover-book-both-btn {
        width: 138px;
    }

    .stayover-save-package-btn {
        width: auto;
        min-width: 132px;
    }

    .stayover-flight-route {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        font-size: 16px;
        line-height: 1.35;
        color: #111;
    }

    .stayover-flight-route .flag {
        width: 22px;
        height: 15px;
        flex-shrink: 0;
    }

    .stayover-airport-code {
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .stayover-route-arrow {
        color: #00719C;
        font-weight: 600;
    }

    .stayover-flight-date {
        font-size: 13px;
        line-height: 1.35;
        color: #4b5963;
    }

    .stayover-option-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding-top: 10px;
        margin-top: 4px;
        border-top: 1px dashed #e3e8ec;
    }

    .stayover-flight-status {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .stayover-leg-status {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        line-height: 1.3;
    }

    .stayover-leg-status--direct {
        background: #eef2f6;
        color: #475569;
        border: 1px solid #dbe3ea;
    }

    .stayover-leg-status--stopover {
        background: #fffbeb;
        color: #b45309;
        border: 1px solid #fde68a;
    }

    .stayover-via-label {
        font-weight: 600;
        margin-right: 2px;
    }

    .stayover-via-item {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .stayover-via-country {
        font-weight: 500;
        color: #92400e;
    }

    .stayover-via-separator {
        margin: 0 4px;
        color: #d97706;
    }

    .stayover-leg-status .flag {
        width: 18px;
        height: 12px;
    }

    .stayover-save-package-btn.active {
        background: rgba(0, 113, 156, 0.1);
        border-color: #00719C;
        color: #00719C;
    }

    .saved-package-badge {
        background: rgba(0, 113, 156, 0.12);
        color: #00719C;
        border: 1px solid rgba(0, 113, 156, 0.25);
    }

    @media (max-width: 767.98px) {
        #ftw_calendar_modal .stayover-modal-dialog {
            max-width: calc(100vw - 12px) !important;
            margin: 8px auto;
        }

        #ftw_calendar_modal .modal-content {
            border-radius: 18px !important;
        }

        #ftw_calendar_modal .modal-header {
            padding: 16px 18px !important;
        }

        #ftw_calendar_modal .modal-title {
            font-size: 18px !important;
            line-height: 1.3;
            padding-right: 28px;
        }

        #calendar_modal_body.stayover-modal-body {
            padding: 14px !important;
            max-height: calc(100vh - 110px);
            overflow-y: auto;
        }

        .stayover-option-header {
            grid-template-columns: 1fr;
            justify-items: center;
            text-align: center;
        }

        .stayover-option-number {
            justify-self: center;
        }

        .stayover-option-pricing {
            align-items: center;
            justify-content: center;
            justify-self: center;
            text-align: center;
            gap: 8px;
        }

        .stayover-total-value {
            font-size: 20px;
        }

        .stayover-flight-route {
            font-size: 15px;
        }

        .stayover-flight-card {
            grid-template-columns: 1fr;
        }

        .stayover-flight-action {
            border-left: none;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            padding: 8px 0 0;
        }

        .stayover-flight-action-stack {
            width: 100%;
            max-width: 220px;
        }
    }

    .ftw-airline-logo, .ftw-flat-airline-logo {
        border-radius: 999px !important;
        object-fit: cover !important;
    }

    #searchResults.view-flat .ftw-flat-airline-logo, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-airline-logo {
        height: 28px !important;
        width: 28px !important;
        max-width: 28px !important;
        object-fit: contain !important;
        background-color: #ffffff;
        padding: 2px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
    }

    #ftw_modal {
        z-index: 1070 !important;
    }
    
    .modal-backdrop + .modal-backdrop {
        z-index: 1060 !important;
    }

/* Antigravity Custom Styles for Saved Flights & Routes */
#ftw_saved_modal {
    --saved-ink: #173b49;
    --saved-primary: #00719C;
    --saved-primary-deep: #005B7A;
    --saved-line: rgba(20, 76, 96, 0.11);
}

#ftw_saved_modal .modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #fbfdfe 58%, #f4f9fb 100%);
    box-shadow: 0 32px 90px rgba(6, 44, 58, 0.22), 0 8px 24px rgba(0, 113, 156, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
    overflow: hidden;
}

#ftw_saved_modal .modal-header {
    background: radial-gradient(circle at 12% 0%, rgba(42, 166, 204, 0.10), transparent 34%), linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 253, 0.96));
    border-bottom-color: var(--saved-line) !important;
    box-shadow: inset 0 3px 0 rgba(0, 113, 156, 0.72), 0 1px 0 rgba(255, 255, 255, 0.9);
}

#ftw_saved_modal .modal-title {
    color: var(--saved-ink) !important;
    text-shadow: 0 1px 0 #ffffff;
}

#ftw_saved_modal .modal-title i {
    filter: drop-shadow(0 3px 5px rgba(0, 113, 156, 0.20));
}

#ftw_saved_modal .close {
    color: #446672;
    opacity: 0.62;
    text-shadow: 0 1px 0 #ffffff;
    transition: color 0.2s ease, opacity 0.2s ease, text-shadow 0.2s ease;
}

#ftw_saved_modal .close:hover,
#ftw_saved_modal .close:focus {
    color: var(--saved-primary-deep);
    opacity: 1;
    text-shadow: 0 0 12px rgba(0, 113, 156, 0.25);
}

#saved_modal_body {
    background: radial-gradient(circle at 92% 5%, rgba(0, 113, 156, 0.06), transparent 24%), radial-gradient(circle at 4% 94%, rgba(54, 179, 148, 0.05), transparent 26%), #f8fbfc !important;
    scrollbar-color: rgba(37, 91, 109, 0.52) rgba(0, 113, 156, 0.05);
}

#ftw_saved_modal #saved-tabs .nav-link {
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 3px 10px rgba(0, 83, 111, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 0 #ffffff;
}

#ftw_saved_modal #saved-tabs .nav-link.active {
    background: linear-gradient(135deg, #087da8 0%, #00698f 58%, #005b7a 100%) !important;
    box-shadow: 0 7px 18px rgba(0, 91, 122, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.26);
    text-shadow: 0 1px 2px rgba(0, 45, 62, 0.28);
}

#ftw_saved_modal #saved-tabs .nav-link:not(.active):hover {
    border-color: var(--saved-primary-deep);
    box-shadow: 0 6px 15px rgba(0, 83, 111, 0.10), inset 0 0 0 1px rgba(0, 113, 156, 0.04);
}

#ftw_saved_modal .saved-flight-card,
#ftw_saved_modal .saved-route-card {
    background: radial-gradient(circle at 100% 0%, rgba(0, 113, 156, 0.055), transparent 26%), linear-gradient(145deg, #ffffff 0%, #fbfdfe 100%) !important;
    border-color: rgba(14, 76, 98, 0.12) !important;
    box-shadow: 0 10px 30px rgba(15, 66, 83, 0.065), 0 2px 7px rgba(0, 113, 156, 0.04), inset 0 1px 0 #ffffff !important;
}

#ftw_saved_modal .saved-flight-card:hover,
#ftw_saved_modal .saved-route-card:hover {
    transform: none;
    border-color: rgba(0, 113, 156, 0.24) !important;
    box-shadow: 0 15px 36px rgba(11, 65, 84, 0.10), 0 3px 10px rgba(0, 113, 156, 0.07), inset 0 1px 0 #ffffff !important;
}

#ftw_saved_modal .saved-flight-header,
#ftw_saved_modal .saved-route-header {
    border-bottom-color: rgba(0, 113, 156, 0.14);
}

#ftw_saved_modal .saved-flight-title {
    color: var(--saved-ink);
    text-shadow: 0 1px 0 #ffffff;
}

#ftw_saved_modal .saved-flight-date {
    color: #526d78;
    background: linear-gradient(135deg, rgba(238, 245, 247, 0.95), rgba(247, 250, 251, 0.98));
    box-shadow: inset 0 0 0 1px rgba(23, 85, 105, 0.05), 0 2px 8px rgba(16, 67, 84, 0.05);
}

#ftw_saved_modal .saved-flight-date i,
#ftw_saved_modal .saved-flight-price-val {
    color: var(--saved-primary);
    filter: drop-shadow(0 2px 3px rgba(0, 113, 156, 0.12));
}

#ftw_saved_modal .saved-flight-leg {
    background: linear-gradient(100deg, rgba(0, 113, 156, 0.055), rgba(255, 255, 255, 0.76)) !important;
    border-left-color: #0780ac !important;
    box-shadow: inset 0 0 0 1px rgba(0, 113, 156, 0.035), 0 3px 9px rgba(16, 68, 85, 0.035);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

#ftw_saved_modal .saved-flight-leg:hover {
    background: linear-gradient(100deg, rgba(0, 113, 156, 0.085), rgba(255, 255, 255, 0.9)) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 113, 156, 0.07), 0 5px 13px rgba(16, 68, 85, 0.055);
}

#ftw_saved_modal .saved-source-badge {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 2px 6px rgba(22, 69, 84, 0.07);
}

#ftw_saved_modal .saved-source-account {
    background: linear-gradient(135deg, #e5f5eb, #dff1e7);
    color: #167044;
}

#ftw_saved_modal .saved-source-local {
    background: linear-gradient(135deg, #edf2f4, #e5ecef);
    color: #526872;
}

#ftw_saved_modal .check-price-btn,
#ftw_saved_modal .price-history-btn,
#ftw_saved_modal .view-deal-btn,
#ftw_saved_modal .delete-saved-btn {
    box-shadow: 0 3px 9px rgba(12, 69, 88, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#ftw_saved_modal .check-price-btn,
#ftw_saved_modal .view-deal-btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 253, 0.96));
}

#ftw_saved_modal .price-history-btn {
    background: linear-gradient(180deg, #ffffff, #f7f9fa);
}

#ftw_saved_modal .check-price-btn:hover,
#ftw_saved_modal .view-deal-btn:hover {
    background: linear-gradient(135deg, #087da8, #005f82);
    border-color: #005f82;
    box-shadow: 0 7px 16px rgba(0, 91, 122, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

#ftw_saved_modal .price-history-btn:hover {
    background: linear-gradient(135deg, #6f7f86, #596970);
    border-color: #596970;
    box-shadow: 0 7px 16px rgba(63, 79, 86, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

#ftw_saved_modal .delete-saved-btn {
    background: linear-gradient(180deg, rgba(255, 249, 249, 0.98), rgba(255, 239, 239, 0.96));
}

#ftw_saved_modal .delete-saved-btn:hover {
    background: linear-gradient(180deg, #fff3f3, #ffe5e5);
    box-shadow: 0 7px 15px rgba(219, 78, 78, 0.13), inset 0 1px 0 #ffffff;
}

#ftw_saved_modal .check-price-btn:focus,
#ftw_saved_modal .price-history-btn:focus,
#ftw_saved_modal .view-deal-btn:focus,
#ftw_saved_modal .delete-saved-btn:focus,
#ftw_saved_modal #saved-tabs .nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 156, 0.16), 0 5px 14px rgba(8, 65, 84, 0.10);
}

#ftw_saved_modal .price-history-panel {
    background: radial-gradient(circle at 100% 0%, rgba(0, 113, 156, 0.05), transparent 30%), linear-gradient(145deg, rgba(244, 249, 250, 0.96), rgba(250, 252, 252, 0.98)) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 113, 156, 0.055), 0 5px 16px rgba(12, 61, 77, 0.04);
}

#ftw_saved_modal .price-history-panel li {
    transition: background 0.18s ease;
}

#ftw_saved_modal .price-history-panel li:hover {
    background: rgba(255, 255, 255, 0.7);
}
#ftw_saved_modal .saved-route-card {
    box-shadow: 0 12px 32px rgba(13, 72, 91, 0.08), 0 2px 8px rgba(0, 113, 156, 0.05), inset 3px 0 0 rgba(0, 113, 156, 0.72), inset 0 1px 0 #ffffff !important;
}

#ftw_saved_modal .saved-route-card:hover {
    box-shadow: 0 16px 38px rgba(13, 72, 91, 0.12), 0 3px 10px rgba(0, 113, 156, 0.07), inset 3px 0 0 #00719C, inset 0 1px 0 #ffffff !important;
}

#ftw_saved_modal .route-from,
#ftw_saved_modal .route-to {
    background: linear-gradient(90deg, rgba(0, 113, 156, 0.035), transparent 72%);
    border-radius: 8px;
    text-shadow: 0 1px 0 #ffffff;
}

#ftw_saved_modal .route-from > span:first-child,
#ftw_saved_modal .route-to > span:first-child {
    color: #58717b !important;
    background: linear-gradient(135deg, #edf5f7, #e6f0f3);
    border-radius: 999px;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(0, 113, 156, 0.08), 0 2px 6px rgba(12, 69, 88, 0.05);
}

#ftw_saved_modal .route-from > span:last-child,
#ftw_saved_modal .route-to > span:last-child {
    color: #274c5a;
}

#ftw_saved_modal .saved-route-item .flag {
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(18, 57, 70, 0.18), 0 0 0 1px rgba(19, 71, 88, 0.08);
}

#ftw_saved_modal .route-meta-row {
    border-top-color: rgba(0, 113, 156, 0.13) !important;
}

#ftw_saved_modal .route-dates,
#ftw_saved_modal .route-stopover,
#ftw_saved_modal .route-stops {
    background: linear-gradient(135deg, rgba(239, 247, 249, 0.98), rgba(250, 253, 253, 0.98));
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(0, 113, 156, 0.10), 0 3px 8px rgba(14, 68, 85, 0.055);
    text-shadow: 0 1px 0 #ffffff;
}

#ftw_saved_modal .route-dates > span:first-child,
#ftw_saved_modal .route-stopover > span:first-child,
#ftw_saved_modal .route-stops > span:first-child {
    color: #69808a !important;
    text-align: center;
}

#ftw_saved_modal .route-dates > span:last-child,
#ftw_saved_modal .route-stopover > span:last-child,
#ftw_saved_modal .route-stops > span:last-child {
    color: #385964;
}

#ftw_saved_modal .route-dates i,
#ftw_saved_modal .route-stopover i,
#ftw_saved_modal .route-stops i {
    color: #007aa7 !important;
    filter: drop-shadow(0 2px 3px rgba(0, 113, 156, 0.16));
}

#ftw_saved_modal .delete-saved-route {
    border-radius: 999px;
    box-shadow: 0 5px 14px rgba(219, 78, 78, 0.10), inset 0 1px 0 #ffffff;
}


#saved-tabs .nav-link {
    font-weight: 500;
    padding: 8px 20px;
    color: #00719C;
    border: 1.5px solid #00719C;
    border-radius: 6px;
    background: transparent;
    transition: all 0.3s ease;
}
#saved-tabs .nav-link.active {
    background-color: #00719C !important;
    color: #fff !important;
    border-color: #00719C !important;
}
#saved-tabs .nav-link:not(.active):hover {
    background-color: rgba(0, 113, 156, 0.08);
}
.saved-flight-card, .saved-route-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.saved-flight-card:hover, .saved-route-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.saved-flight-header, .saved-route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.saved-flight-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}
.saved-flight-date {
    font-size: 0.85rem;
    color: #666;
    background: #f1f3f5;
    padding: 4px 10px;
    border-radius: 12px;
}
.saved-flight-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.saved-flight-price-info {
    font-size: 0.9rem;
    color: #555;
}
.saved-flight-price-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00719C;
}
.saved-flight-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.delete-saved-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 6px;
    background: rgba(255, 100, 100, 0.08);
    border: 1px solid rgba(255, 100, 100, 0.2);
    color: #ff7b7b;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 100, 100, 0.04);
}
.delete-saved-btn:hover {
    background: rgba(255, 100, 100, 0.16);
    border-color: rgba(255, 100, 100, 0.35);
    color: #ff5252;
}
.check-price-btn {
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #00719C;
    background: transparent;
    color: #00719C;
    cursor: pointer;
    transition: all 0.2s;
}
.check-price-btn:hover {
    background: #00719C;
    color: #fff;
}

.price-history-btn {
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #6c757d;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}
.price-history-btn:hover {
    background: #6c757d;
    color: #fff;
}

.price-history-panel {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    margin-top: 12px;
    padding: 12px 16px;
}

.price-diff-below {
    color: #28a745;
    font-weight: 500;
    font-size: 0.8rem;
}
.price-diff-above {
    color: #dc3545;
    font-weight: 500;
    font-size: 0.8rem;
}
.price-diff-same {
    color: #6c757d;
    font-size: 0.8rem;
}
.price-diff-saved {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* Make "View Deal" match the pill-outline actions */
.view-deal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #00719C;
    background: transparent;
    color: #00719C;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
    white-space: nowrap;
}
.view-deal-btn:hover {
    background: #00719C;
    color: #fff !important;
    text-decoration: none !important;
}
.view-deal-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 156, 0.18);
}
.price-checked-info {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 8px;
    display: inline-block;
}
.price-checked-cheaper {
    background-color: #E6F4F8;
    color: #005B7A;
    font-weight: 500;
}
.price-checked-expensive {
    background-color: #fdf2f2;
    color: #c93636;
}
.price-checked-same {
    background-color: #f5f6f7;
    color: #555;
}
.save-flight-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid #00719C;
    background: rgba(0, 113, 156, 0.05);
    color: #00719C;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    padding: 0;
}
.save-flight-btn:hover {
    transform: translateY(-2px);
    background: #00719C;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 113, 156, 0.35);
}
.save-flight-btn.active {
    background: #00719C;
    color: #fff !important;
    border-color: #00719C;
}
.save-flight-btn.active:hover {
    background-color: #005B7A !important;
    border-color: #005B7A !important;
}

.ftw-flat-cell .save-flight-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 0.9rem;
    border-width: 1.5px;
    border-color: #00719C;
    color: #00719C;
    background: rgba(0, 113, 156, 0.05);
}
.ftw-flat-cell .save-flight-btn:hover {
    transform: none;
    box-shadow: none;
    background: #00719C;
    color: #fff !important;
}
.ftw-flat-cell .save-flight-btn.active {
    background: #00719C;
    color: #fff !important;
    border-color: #00719C;
}

/* Mobile optimizations for Saved Flights modal */
@media (max-width: 576px) {
    #ftw_saved_modal .modal-dialog {
        max-width: 100% !important;
        margin: 10px !important;
    }

    #ftw_saved_modal .modal-content {
        border-radius: 18px !important;
    }

    #ftw_saved_modal .modal-header {
        padding: 14px 16px !important;
    }

    #ftw_saved_modal .modal-title {
        font-size: 18px !important;
        line-height: 1.2;
    }

    #saved_modal_body {
        padding: 16px !important;
        max-height: 78vh !important;
    }

    #saved-tabs {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px !important;
        padding-bottom: 6px;
        margin-bottom: 10px !important;
    }

    #saved-tabs .nav-link {
        white-space: nowrap;
        padding: 7px 14px !important;
        border-radius: 4px !important;
        font-size: 14px;
    }

    .saved-flight-card,
    .saved-route-card {
        padding: 14px 14px;
        border-radius: 14px;
    }

    .saved-flight-header,
    .saved-route-header {
        align-items: flex-start;
        gap: 10px;
    }

    .saved-flight-header {
        flex-direction: column;
    }

    .saved-flight-title {
        font-size: 1rem;
        flex-wrap: wrap;
        line-height: 1.25;
    }

    .saved-flight-date {
        align-self: flex-start;
        font-size: 0.8rem;
    }

    .saved-flight-body {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .saved-flight-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .check-price-btn,
    .price-history-btn,
    .view-deal-btn {
        flex: 1 1 auto;
        justify-content: center;
        padding: 8px 12px;
        border-radius: 6px;
    }

    .delete-saved-btn {
        margin-left: auto;
    }

    /* Compress the leg rows a bit on small screens */
    .saved-flight-leg {
        padding: 10px 12px !important;
        font-size: 0.82rem !important;
    }
}

.cheapest-anytime-btn {
    font-weight: 500;
}
.cheapest-anytime-btn:hover {
    color: #005B7A !important;
}

.saved-route-item {
    cursor: pointer;
}

/* Saved List and Save Route Search Form Action Buttons */
#showSavedBtn {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 1000 !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 24px rgba(0, 113, 156, 0.4) !important;
    border: none !important;
    background: #00719C !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    padding: 0 !important;
    margin: 0 !important;
}

#showSavedBtn:hover {
    transform: scale(1.1) translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(0, 113, 156, 0.6) !important;
    background: #005B7A !important;
}

#saveRouteActionRow {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

#saveRouteActionRow #saveRouteBtn,
#saveRouteActionRow .btn-track-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: auto;
    padding: 10px 22px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(0, 113, 156, 0.08) 0%, rgba(0, 113, 156, 0.14) 100%);
    border: 1.5px solid #00719C;
    color: #00719C;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 113, 156, 0.15);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#saveRouteActionRow #saveRouteBtn i,
#saveRouteActionRow .btn-track-search i {
    font-size: 1.05rem;
}

#saveRouteActionRow #saveRouteBtn:hover,
#saveRouteActionRow .btn-track-search:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #008FBE 0%, #00719C 100%);
    border-color: #00719C;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 113, 156, 0.3);
}

#trackSearchPanel {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    flex: 0 1 760px;
    justify-content: flex-end;
}

#trackSearchForm {
    align-items: stretch;
    background: #F7FAFB;
    border: 1px solid rgba(0, 113, 156, 0.16);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(12, 50, 63, 0.07);
    display: flex;
    flex: 0 0 100%;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    max-width: 760px;
    width: 100%;
}

.track-search-fields {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

#trackSearchForm .form-control {
    background: #fff !important;
    border: 1px solid rgba(11, 46, 60, 0.13) !important;
    box-shadow: none !important;
    color: #173D4C !important;
    flex: 0 0 170px;
    height: 42px;
    max-width: 170px;
    min-width: 150px;
    border-radius: 8px;
    font-size: 14px;
    padding: 8px 12px;
}

#trackSearchForm .form-control:focus {
    border-color: #00719C !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 156, 0.12) !important;
}

.track-search-badges {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.track-search-badge {
    align-items: center;
    background: #EEF6F9;
    border: 1px solid rgba(0, 113, 156, 0.17);
    border-radius: 4px;
    color: #005B7A;
    display: inline-flex;
    font-size: 12px;
    font-weight: 500;
    gap: 6px;
    line-height: 1.35;
    max-width: 100%;
    padding: 6px 10px;
}

.track-search-badge i {
    font-size: 13px;
}

.track-search-message,
.track-search-account {
    font-size: 13px;
}

.track-search-account,
.track-search-message.success {
    color: #005B7A;
    font-weight: 600;
}

.track-search-message.error {
    color: #b42318;
    font-weight: 600;
}

.track-search-save-btn {
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 113, 156, 0.08) 0%, rgba(0, 113, 156, 0.14) 100%);
    border: 1.5px solid #00719C;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 113, 156, 0.15);
    color: #00719C;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
    height: 42px;
    padding: 8px 20px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
}

.track-search-save-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #008FBE 0%, #00719C 100%);
    border-color: #00719C;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 113, 156, 0.3);
}

@media (max-width: 767.98px) {
    #mainSearch {
        width: 100% !important;
        margin-top: 15px !important;
        display: block !important;
        vertical-align: middle !important;
        position: static !important;
        right: auto !important;
        bottom: auto !important;
    }

    #recentSearchesBtn {
        position: static !important;
        left: auto !important;
        bottom: auto !important;
        width: 100% !important;
        justify-content: center;
        margin-top: 14px !important;
        margin-right: 0 !important;
    }

    #searchBar .form {
        padding-bottom: 3.5%;
    }
}

/* Anytime search result pill badges */
.btn-cheapest-anytime {
    background: rgba(0, 113, 156, 0.06);
    border: 1.5px solid rgba(0, 113, 156, 0.2) !important;
    color: #00719C !important;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Jost';
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}
.btn-cheapest-anytime:hover {
    background: #00719C !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 113, 156, 0.25);
    transform: translateY(-1px);
}

.ftw-card-menu .btn-cheapest-anytime,
.ftw-card-menu .btn-cheapest-anytime:hover,
.ftw-card-menu .btn-compare-return,
.ftw-card-menu .btn-compare-return:hover,
.ftw-card-menu .btn-save-flight-menu,
.ftw-card-menu .btn-save-flight-menu:hover {
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 11px !important;
    transform: none !important;
    width: 100% !important;
}

.ftw-card-menu .btn-cheapest-anytime,
.ftw-card-menu .btn-compare-return,
.ftw-card-menu .btn-save-flight-menu {
    background: transparent !important;
    color: #173D4C !important;
    display: flex !important;
    justify-content: flex-start !important;
}

.ftw-card-menu .btn-save-flight-menu {
    font-weight: 600 !important;
}

.ftw-card-menu .btn-cheapest-anytime:hover,
.ftw-card-menu .btn-compare-return:hover,
.ftw-card-menu .btn-save-flight-menu:hover {
    background: rgba(0, 113, 156, 0.08) !important;
    color: #005B7A !important;
}

.ftw-card-menu .btn-save-flight-menu.active {
    background: transparent !important;
    border: 0 !important;
    color: #173D4C !important;
}

.ftw-card-menu .btn-save-flight-menu.active:hover {
    background: rgba(0, 113, 156, 0.08) !important;
    color: #005B7A !important;
}

.return-comparison-badge {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #c9d7f2 !important;
    background-color: #eef4ff !important;
    color: #1f4f8f !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.return-badge-more,
.return-badge-cheaper {
    display: inline-block;
    margin-left: 2px;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.return-badge-more {
    background: #fde8e8;
    color: #b0292b;
}

.return-badge-cheaper {
    background: #d4edda;
    color: #1a7a4a;
}

.anytime-badge {
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.anytime-badge-direct {
    background-color: #E6F4F8 !important;
    color: #005B7A !important;
    border-color: #A3D8E8 !important;
}

.anytime-badge-stop {
    background-color: #e3f2fd !important;
    color: #1565c0 !important;
    border-color: #90caf9 !important;
}

/* Save Options & Google Auth Styles */
.save-option-card {
    border: 2px solid #eaeaea;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.save-option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
#saveOptionLocalStorage:hover {
    border-color: #666;
}
#saveOptionAccount:hover {
    border-color: #00719C;
    background-color: rgba(0, 113, 156, 0.02) !important;
}

/* User Saved Badges inside List */
.saved-source-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    display: inline-block;
}
.saved-source-local {
    background-color: #e9ecef;
    color: #495057;
}
.saved-source-account {
    background-color: #e6f4ea;
    color: #137333;
}

#searchResults .stopover-city-list {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

#searchResults .ftw-unified-group-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(11, 46, 60, 0.08);
    border-left: 4px solid #00719C;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(12, 50, 63, 0.04);
    margin-top: 24px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    width: 100%;
}

#searchResults .ftw-unified-group-card:hover {
    box-shadow: 0 8px 30px rgba(12, 50, 63, 0.09);
    border-color: rgba(11, 46, 60, 0.15);
}

#searchResults .ftw-unified-group-card.favorite-stopover-group {
    border-color: rgba(241, 196, 15, 0.25);
}

#searchResults .ftw-unified-group-card.price-band-profit {
    border-left: 4px solid #005B7A !important;
}

#searchResults .ftw-unified-group-card.price-band-good {
    border-left: 4px solid #00719C !important;
}

#searchResults .ftw-unified-group-card.price-band-mid {
    border-left: 4px solid #d97706 !important;
}

#searchResults .ftw-unified-group-card.price-band-high {
    border-left: 4px solid #dc2626 !important;
}

#searchResults .ftw-unified-group-card.favorite-stopover-group:hover {
    border-color: rgba(241, 196, 15, 0.45);
}

#searchResults .ftw-unified-group-card .stopover-group-header {
    background: linear-gradient(135deg, rgba(0, 113, 156, 0.04) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: none;
    border-bottom: 1px solid rgba(0, 113, 156, 0.08);
    border-radius: 0;
    padding: 14px 20px;
    margin: 0;
    box-shadow: none;
    box-sizing: border-box;
    width: 100%;
}

#searchResults .ftw-unified-group-card.favorite-stopover-group .stopover-group-header {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.06) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-bottom: 1px solid rgba(241, 196, 15, 0.15);
}

/* Remove borders, radii, shadow, margins from nested flight cards */
#searchResults .ftw-unified-group-card .item.ftw-flat-row,
#searchResults .ftw-unified-group-card .item.ftw-result-card {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

/* Hover state for nested flight cards */
#searchResults .ftw-unified-group-card .item.ftw-flat-row:hover,
#searchResults .ftw-unified-group-card .item.ftw-result-card:hover {
    background: rgba(0, 113, 156, 0.015);
}

/* Add separation between flights inside the unified card */
#searchResults .ftw-unified-group-card .item.ftw-flat-row + .item.ftw-flat-row,
#searchResults .ftw-unified-group-card .stopover-additional-container .item.ftw-flat-row {
    border-top: 1px dashed rgba(11, 46, 60, 0.08) !important;
}

#searchResults .stopover-group-header h3 {
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    line-height: 1.4;
}

#searchResults .stopover-group-header.favorite-stopover-group h3 {
    color: #9a7b0a;
}

#searchResults .route-stopover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
}

#searchResults .route-stopover-route {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
}

#searchResults .route-icon {
    color: #00719C;
    font-size: 0.95rem;
    opacity: 0.85;
    display: inline-block;
    transition: transform 0.2s ease;
}

#searchResults .route-icon--departure {
    transform: rotate(0deg);
}

#searchResults .route-icon--arrival {
    transform: rotate(90deg);
}

#searchResults .route-label-prefix {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 500;
}

#searchResults .route-city {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 3px 12px;
    font-size: 0.88rem;
    color: #475569;
    font-weight: 600;
    transition: all 0.2s ease;
}

#searchResults .route-city:hover {
    background: #e2e8f0;
    color: #1e293b;
}

#searchResults .route-connection-arrow {
    display: inline-flex;
    align-items: center;
    color: #94a3b8;
    margin: 0 4px;
    font-size: 0.8rem;
}

#searchResults .route-stopover-divider {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin: 0 4px;
}

#searchResults .route-stopover-stop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
}

#searchResults .stopover-icon {
    color: #0284c7;
    font-size: 0.95rem;
    opacity: 0.85;
}

#searchResults .stopover-group-header.favorite-stopover-group .stopover-icon {
    color: #d4a017;
}

#searchResults .stopover-label-prefix {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 500;
}

#searchResults .stopover-city-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 3px 12px;
    font-size: 0.88rem;
    color: #475569;
    font-weight: 600;
    transition: all 0.2s ease;
}

#searchResults .stopover-city-chip:hover {
    background: #e2e8f0;
    color: #1e293b;
}

#searchResults .stopover-city-chip--direct {
    background: rgba(0, 113, 156, 0.08);
    border-color: rgba(0, 113, 156, 0.2);
    color: #00719C;
}

#searchResults .stopover-city-chip.favorite-stopover-chip {
    background: rgba(241, 196, 15, 0.12);
    border: 1px solid rgba(241, 196, 15, 0.4);
    color: #9a7b0a;
}

#searchResults .favorite-stopover-star {
    color: #d4a017;
    font-size: 11px;
    flex-shrink: 0;
}

#searchResults .toggle-stopover-flights-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 113, 156, 0.25);
    border-radius: 4px;
    color: #00719C;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 113, 156, 0.05);
    line-height: 1.4;
    outline: none;
}

#searchResults .stopover-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

#searchResults .stopover-header-actions .ftw-card-menu {
    position: relative;
    top: auto;
    right: auto;
    z-index: 6;
}

#searchResults .stopover-header-actions .ftw-card-menu-toggle {
    height: 32px;
    width: 32px;
    background: #ffffff;
    border: 1px solid rgba(0, 113, 156, 0.25);
    color: #00719C;
    box-shadow: 0 2px 6px rgba(0, 113, 156, 0.05);
}

#searchResults .stopover-header-actions .ftw-card-menu-toggle:hover,
#searchResults .stopover-header-actions .ftw-card-menu.open .ftw-card-menu-toggle {
    background: #00719C;
    border-color: #00719C;
    color: #fff;
}

#searchResults .item .ftw-saved-heart-indicator {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #16a34a;
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
}

#searchResults .item .ftw-saved-heart-indicator i {
    color: #16a34a;
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900 !important;
    font-style: normal;
}

#searchResults .item .ftw-saved-heart-indicator.is-visible {
    display: inline-flex;
}

#searchResults .item.ftw-flat-row .ftw-saved-heart-indicator {
    right: 12px;
    bottom: 10px;
}

#searchResults .toggle-stopover-flights-btn:hover {
    background: #00719C;
    color: #ffffff;
    border-color: #00719C;
    box-shadow: 0 4px 12px rgba(0, 113, 156, 0.18);
}

#searchResults .toggle-chevron {
    font-size: 0.72rem;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#searchResults .toggle-stopover-flights-btn.active .toggle-chevron {
    transform: rotate(180deg);
}

#searchResults .static-flights-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
}

#searchResults .single-group-header-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
}

#searchResults .header-mode-icon {
    font-size: 0.95rem;
    color: #00719C;
}

#searchResults .mode-label-prefix {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 500;
}

#searchResults .mode-label-value {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.1rem;
}

#searchResults .item.has-favorite-stopover.ftw-flat-row {
    border-color: rgba(241, 196, 15, 0.55);
    background: linear-gradient(180deg, #fffdf5 0%, #fff9e8 100%);
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.12);
}

#searchResults .item.has-favorite-stopover.ftw-result-card {
    border-color: rgba(241, 196, 15, 0.5);
    background: linear-gradient(180deg, #fffdf5 0%, #fff9e8 100%);
    box-shadow: 0 24px 60px rgba(212, 160, 23, 0.14);
}

#searchResults .favorite-stopover-badge {
    background: rgba(241, 196, 15, 0.18);
    border-color: rgba(241, 196, 15, 0.45);
    color: #9a7b0a;
}

#searchResults .stopover-city-separator {
    margin-right: 4px;
}

#searchResults .stopover-header-desktop {
    display: inline;
}

#searchResults .stopover-header-mobile {
    display: none;
}

@media (max-width: 575.98px) {
    #searchResults {
        box-sizing: border-box;
        width: calc(100vw - 16px) !important;
        max-width: none !important;
        margin-left: calc(50% - 50vw + 8px) !important;
        margin-right: calc(50% - 50vw + 8px) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #searchResults .calendar-bar-chart,
    #searchResults .ftw-unified-group-card,
    #searchResults .stopover-additional-container,
    #searchResults .item.ftw-flat-row,
    #searchResults .item.ftw-result-card {
        box-sizing: border-box;
        width: 100% !important;
        max-width: none !important;
    }

    #searchResults .calendar-bar-chart {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .ftw-flat-row .cell-outbound,
    .ftw-flat-row .cell-return {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }

    .ftw-flat-row .cell-action {
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    #searchResults.view-flat .ftw-flat-legs-row, 
    .stayover-modal-body .ftw-flat-view-scope .ftw-flat-legs-row {
        justify-content: center !important;
        gap: 16px 14px !important;
    }

    #searchResults.view-flat .ftw-flat-leg-item, 
    .stayover-modal-body .ftw-flat-view-scope .ftw-flat-leg-item {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex: 1 1 100% !important;
        gap: 16px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }

    #searchResults.view-flat .ftw-flat-leg-badge-separator, 
    .stayover-modal-body .ftw-flat-view-scope .ftw-flat-leg-badge-separator {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }

    .ftw-flat-row .ftw-flat-leg-details {
        gap: 6px !important;
    }
}

@media (max-width: 767.98px) {
    #searchResults .ftw-unified-group-card {
        margin-top: 16px;
        margin-bottom: 16px;
        border-radius: 12px;
    }

    #searchResults .stopover-group-header h3 {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    #searchResults .stopover-group-header--multi h3 {
        display: flex;
    }

    #searchResults .stopover-header-desktop {
        display: none;
    }

    #searchResults .stopover-header-mobile {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    #searchResults .stopover-header-row {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        width: 100%;
        flex-wrap: wrap;
    }

    #searchResults .stopover-header-label {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #64748b;
        font-weight: 500;
        white-space: nowrap;
    }

    #searchResults .stopover-header-label--spacer {
        display: none !important;
    }

    #searchResults .stopover-header-value {
        display: inline-flex;
        align-items: center;
    }

    #searchResults .stopover-header-value .stopover-city-chip {
        white-space: nowrap;
    }

    #searchResults .stopover-header-flights-row {
        margin-top: 4px;
        width: 100%;
    }

    #searchResults .stopover-header-flights-row .stopover-header-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
    }

    #searchResults .stopover-header-flights-row .stopover-flights-pill {
        width: auto;
        flex: 1 1 auto;
    }

    #searchResults .stopover-flights-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 14px;
        border-radius: 4px;
        border: 1px solid rgba(0, 113, 156, 0.25);
        background: #ffffff;
        color: #00719C;
        font-size: 0.82rem;
        font-weight: 600;
        width: 100%;
        box-sizing: border-box;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    #searchResults .stopover-flights-pill:hover {
        background: #00719C;
        color: #ffffff;
        border-color: #00719C;
    }

    #searchResults .stopover-flights-pill i {
        font-size: 0.72rem;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #searchResults .stopover-flights-pill.active i {
        transform: rotate(180deg);
    }

    #searchResults .stopover-flights-pill--static {
        cursor: default;
        border-color: #e2e8f0;
        background: #f8fafc;
        color: #64748b;
        font-weight: 500;
    }

    #searchResults .stopover-flights-pill--static:hover {
        background: #f8fafc;
        border-color: #e2e8f0;
    }

    #searchResults .stopover-city-list {
        display: inline-flex;
        flex-wrap: nowrap;
        align-items: center;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #searchResults .stopover-city-list::-webkit-scrollbar {
        display: none;
    }

    #searchResults .stopover-city-chip {
        white-space: nowrap;
        flex-shrink: 0;
    }

    #searchResults .route-stopover-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        text-align: left;
    }

    #searchResults .route-stopover-divider {
        display: none !important;
    }

    #searchResults .route-stopover-route,
    #searchResults .route-stopover-stop {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
    }

    #searchResults .route-connection-arrow {
        margin: 0 2px;
    }

    #searchResults .stopover-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-left: 0;
        margin-top: 6px;
    }

    #searchResults .toggle-stopover-flights-btn,
    #searchResults .static-flights-badge {
        align-self: center;
        width: auto;
        flex: 1 1 auto;
        justify-content: center;
        margin-top: 0;
        box-sizing: border-box;
    }

    #searchResults .stopover-header-actions .toggle-stopover-flights-btn,
    #searchResults .stopover-header-actions .static-flights-badge {
        width: auto;
        flex: 1 1 auto;
    }

    #searchResults .stopover-header-actions .ftw-card-menu {
        flex-shrink: 0;
    }

    #searchResults.view-flat .ftw-flat-leg-separator, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-leg-separator {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 8px 0;
        padding: 0;
    }

    #searchResults.view-flat .ftw-flat-leg-separator:not(.ftw-flat-leg-badge-separator), .stayover-modal-body .ftw-flat-view-scope .ftw-flat-leg-separator:not(.ftw-flat-leg-badge-separator) {
        transform: rotate(90deg);
        margin: 4px 0;
    }

    #searchResults.view-flat .ftw-flat-leg-badge-separator, .stayover-modal-body .ftw-flat-view-scope .ftw-flat-leg-badge-separator {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}

@media (max-width: 767.98px) {
    #saveRouteActionRow {
        justify-content: center;
        width: 100%;
    }
    #trackSearchPanel {
        display: contents;
    }
    #saveRouteActionRow .btn-track-search {
        order: 1;
        flex: 1 1 0px;
        min-width: 0;
        justify-content: center;
        padding: 10px 8px;
        font-size: 13px;
    }
    #saveRouteActionRow #saveRouteBtn {
        order: 2;
        flex: 1 1 0px;
        min-width: 0;
        justify-content: center;
        padding: 10px 8px;
        font-size: 13px;
    }
    #saveRouteActionRow #saveRouteBtn span,
    #saveRouteActionRow .btn-track-search span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    #trackSearchForm {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
    }
}

/* Custom styles for the leg flight duration pill */
.ftw-leg-duration-row {
    margin-top: 0px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.ftw-duration-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* padding: 6px 12px; */
    border-radius: 4px !important;
    /* background: rgba(0, 113, 156, 0.09) !important; */
    /* border: 1px solid rgba(0, 113, 156, 0.15) !important; */
    color: #005B7A !important;
    font-size: 14px !important;
    font-weight: 300 !important;
}

.ftw-duration-pill i {
    font-size: 14px;
}

/* Connect first child airportInfo icon down to second child icon in card view */
.ftw-leg-card .times .airportInfo:first-child .icon::after {
    height: calc(100% + 16px) !important;
}

/* Hide line going down from the last airportInfo icon since it's the bottom connection */
.ftw-leg-card .times .airportInfo:last-child .icon::after {
    display: none !important;
}

/* Spacing override specifically for card view to keep pill separated from times grid */
.ftw-leg-card .ftw-leg-duration-row {
    margin-top: 8px;
}

/* Styling for date tags/pills to match airport tags */
.date-selected-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px !important;
    margin-bottom: 12px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.date-selected-container:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.date-tags-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.date-tag {
    display: inline-flex;
    align-items: center;
    /* background: #005B7A !important; */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #fff !important;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    cursor: pointer;
}

.date-tag:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.date-tag-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-separator {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

/* Date search group wrapper positioning */
.date-search-group {
    position: relative;
    width: 100%;
}

.date-search-group.has-tags #depart {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

.date-selected-container {
    position: relative;
    z-index: 2; /* Keep tags on top for hover states */
}

.lang-switcher {
  display: block;
  width: 100%;
  background-color: #053b2f;
  padding: 14px 12px 20px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.lang-switcher a {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.lang-switcher a:hover {
  color: #17b08b;
  text-decoration: underline;
}


