.flights-page-bg {
    background-image: url('/images/flights-page-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    position: relative;
}

.flights-page-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, #FFFFFF 86%);
    z-index: 0;
}

.flights-page-bg > * {
    position: relative;
    z-index: 2;
}

#flights-search-form .search-bar{
    border: 1px solid #FFFFFFE5;
    backdrop-filter: blur(6px);
    box-shadow: 0px 20px 40px 0px #0000001A;    
    padding:10px;  
    display: flex;
    gap:2px;
    z-index: 10;
    position: relative;
    border-radius: 15px !important;
}

.origin-destination-wrapper {
    flex: 2;
}

.origin-destination-wrapper .form-group {
    flex: 1;
    min-width: 200px;
}

.origin-destination-wrapper .form-group:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.origin-destination-wrapper .form-group:last-child {
}

#flights-search-form .search-bar .form-group:nth-last-child(2) {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

#flights-search-form .btn-search-hotel {
    width: 100%;
    font-size: 14px;
    margin: 0 !important;
    height: 100%;
}
#flights-search-form .submit-button-wrapper {
    display:flex;  background: transparent;
      padding: 0px 10px;
}

.sync-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;    
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    
}

#destination-f, #origin{
    border:0;
    font-size: 14px;
}

#searchbar-departure-date, #searchbar-display-date-return {
    cursor: pointer;
    z-index: 20;
    position: relative;
}

/* Better range styling for flight calendars */
.flatpickr-day.inRange {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: transparent;
    box-shadow: -5px 0 0 rgba(59, 130, 246, 0.15), 5px 0 0 rgba(59, 130, 246, 0.15);
}

/* Hover preview styling - lighter shade */
.flatpickr-day.hover-preview.inRange {
    background: rgba(59, 130, 246, 0.1) !important;
    box-shadow: -5px 0 0 rgba(59, 130, 246, 0.1), 5px 0 0 rgba(59, 130, 246, 0.1);
}

.flatpickr-day.hover-preview.startRange,
.flatpickr-day.hover-preview.endRange {
    background: rgba(59, 130, 246, 0.5) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #3b82f6 !important;
    color: white !important;
    border-radius: 50%;
}

.flatpickr-day.startRange.inRange {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.flatpickr-day.endRange.inRange {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#origin-search-results,#destination-search-results{
    position: absolute;
    top: 100%;
    left: 0;
    max-height: 350px;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0px 8px 40px 0px #00000014;
    border: 1px solid #D2D2D233;
    width: 320px;
    list-style: none;
    z-index: 1000;
    margin-top: 5px;
}

/* Specific positioning for destination search results */
#destination-search-results {    
    left: auto;
}

.search-location-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-location-item:hover {
    background-color: #f8f9fa;
}

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

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

.country-airport-item {
    padding-left: 24px;
}

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

.location-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #36A4FB;
}

.location-info {
    flex: 1;
}

.location-main {
    font-weight: 600;
    color: #09253C;
    font-size: 14px;
    line-height: 1.4;
}

.location-subtitle {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    margin-top: 2px;
}

.country-header, .city-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
    font-size: 13px;
    cursor: default;
}

.country-icon, .city-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: #6c757d;
}

.country-name {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.city-name {
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
}

.city-country {
    font-size: 11px;
    color: #6c757d;
    font-weight: 400;
    margin-top: 1px;
}

.city-airport-item {
    padding-left: 24px;
}

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

.no-results, .error-message {
    padding: 16px;
    text-align: center;
    color: #666;
    font-style: italic;
}


.calendar-dom-departure-date .flatpickr-calendar, .calendar-dom-return-date .flatpickr-calendar{
    top:90px !important;    
    left:auto !important
}

.flatpickr-flex-select {
    font-family: Inter, sans-serif;
    font-weight: 600;
}

.flatpickr-flex-select option[value="0"] {
    background: #36A4FB14;
    border: 1px solid #36A4FB1F;
    color: #36A4FB;
    font-family: Inter, sans-serif;
    font-weight: 600;
}

.flex-dropdown {
    position: relative;
    width: 100%;
}

.flex-dropdown-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #36A4FB14;
    border: 1px solid #36A4FB1F;
    color: #36A4FB;
    border-radius: 6px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
}

.flex-dropdown-selected:hover {
    background: #36A4FB20;
}

.flex-dropdown-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    filter: invert(44%) sepia(51%) saturate(1234%) hue-rotate(196deg) brightness(98%) contrast(95%);
}

.flex-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    margin-top: 4px;
}

.flex-date-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.flex-date-option:last-child {
    border-bottom: none;
}

.flex-date-option:hover {
    background-color: #f5f5f5;
}

.flex-date-option input[type="radio"] {
    margin-left: 8px;
    accent-color: #36A4FB;
}

#passengers-dropdown{
    padding-top:16px;
    padding-bottom: 16px;
}
#passengers-dropdown .selector{
    margin-bottom: 16px;
}
#passengers-dropdown .label{
    font-family: "Inter";
font-weight: 400;

font-size: 1.1rem;
line-height: 24px;
letter-spacing: 0%;
color: #000;
margin-left:10px
}
#passengers-dropdown .passenger-count{
    font-family: "Inter";
font-weight: 600;
font-size: 1.2rem;
line-height: 24px;
letter-spacing: 0%;
text-align: center;
color: #36A4FB;
}
#passengers-dropdown img{
    width: 24px;
    height: 24px;
}

/* Hide border for select within passengers dropdown */
#passengers-dropdown select {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Style hr within passengers dropdown */
#passengers-dropdown hr {
    border: 0;
    border-top: 1px solid #e9ecef;
    margin: 16px 0;
    opacity: 0.5;
}

/* Style chevron icons for dropdown to be blue */
#passengers-dropdown select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2336A4FB' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

#flights-search-form #passengers-dropdown{
top:80% !important;
left:unset !important;
right:unset !important;
}

/* Modal z-index fix */
.modal-backdrop {
    z-index: 1040 !important;
}



#flightDetailsModal {
    z-index: 1050 !important;
}

#flightDetailsModal.show {
    z-index: 1050 !important;
}

#flightDetailsModal .modal-dialog {
    z-index: 1050 !important;
}

body.modal-open #flightDetailsModal {
    z-index: 1050 !important;
}

/* Flight Details Modal Styling */
.flight-details-modal {
    border-radius: 12px;
    border: none;
    overflow: hidden;
}

.flight-modal-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
    gap: 10px;
}

.flight-tab-btn {
    background: transparent;
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    flex: 1;
    text-align: center;
    font-size: 14px;
}

.flight-tab-btn:hover {
    background: #f8f9fa;
    border-color: #36A4FB;
    color: #36A4FB;
}

.flight-tab-btn.active {
    background: #36A4FB;
    color: white;
    border-color: #36A4FB;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(54, 164, 251, 0.3);
}

.flight-tab-content {
    min-height: 300px;
}

.tab-panel {
    display: none;
}

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

.flight-segment {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
}

.flight-segment-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f8f9fa;
}

.airline-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.flight-info h6 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.flight-info .flight-meta {
    color: #6c757d;
    font-size: 13px;
    margin-top: 2px;
}

.flight-times {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.time-location {
    text-align: center;
    flex: 1;
}

.time {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.location {
    color: #6c757d;
    font-size: 13px;
    margin-top: 2px;
}

.flight-duration {
    text-align: center;
    flex: 1;
    position: relative;
}

.duration-line {
    height: 2px;
    background: #e9ecef;
    position: relative;
    margin: 10px 20px;
}

.duration-line::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -3px;
    width: 8px;
    height: 8px;
    background: #6c757d;
    border-radius: 50%;
}

.duration-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.flight-details-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f8f9fa;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.detail-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 13px;
    color: #2c3e50;
    font-weight: 500;
}

.stopover-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    color: #1976d2;
    font-size: 13px;
}

.baggage-item, .co2-item {
    padding: 10px 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 14px;
}

.baggage-item:last-child, .co2-item:last-child {
    border-bottom: none;
}

.airline-name {
    width: 64px;
    height: 64px;
    border: 1px solid #ECECED;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flight-airport {
    color: #36A4FB;
    font-family: Inter, sans-serif;
    font-weight: 400;
      font-size: 0.8rem;
}

.arrow-line {
    

       width: 100%;
    border-top: 1px solid #898989;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.arrow-line i {
    position: absolute;
    top: -7px;
    right: 0;
    font-size: 14px;
    color: #898989;
}

.flight-duration {
    color: #898989;
    font-family: Inter, sans-serif;
    font-weight: 400;
}

.flight-stops {
    color: #898989;
    font-family: Inter, sans-serif;
    font-weight: 400;
}

.flights-trip-type .trip-type-container{
    padding: 0;
}

.flights-trip-type .form-group{
    background: transparent !important;
}

/* Multi-destination styles */
.destination-row:not([data-index="0"]) {
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
    padding-top: 10px;
}

.remove-destination-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.remove-destination-btn {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#multi-destination-controls {
    padding: 10px 0;
    text-align: center;
    width: 100%;
}

.date-passengers-search-row {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    background: transparent !important;
    padding: 0 !important;
    margin-top: 0;
    align-items: stretch;
}

.date-passengers-search-row .form-group {
    flex: 1;
    min-width: 200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Fix flight destinations container alignment */
#flight-destinations-container {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-content: end;
}

#flights-search-form .search-bar {
    align-items: stretch;
}

.destination-row {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.destination-row .origin-destination-wrapper {
    align-items: stretch;
    height: 100%;
}

.destination-row .form-group {
    background: #fff;
    padding: 10px 20px;
    margin-right: 2px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

#add-destination-btn {
    background: transparent;
    border: 2px dashed #36A4FB;
    color: #36A4FB;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

#add-destination-btn:hover {
    background: #36A4FB;
    color: white;
    border-color: #36A4FB;
}

/* Multi-destination search results styling */
.origin-search-results[data-index],
.destination-search-results[data-index] {
    position: absolute;
    top: 100%;
    left: 0;
    max-height: 350px;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0px 8px 40px 0px #00000014;
    border: 1px solid #D2D2D233;
    width: 320px;
    list-style: none;
    z-index: 1000;
    margin-top: 5px;
}

/* Date field styling for multi-destination */
.departure-date-field {
    cursor: pointer;
}

/* Responsive adjustments for multi-destination */
@media (max-width: 768px) {
    .destination-row .origin-destination-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .sync-icon {
        display: none;
    }

    .remove-destination-wrapper {
        order: -1;
        justify-content: flex-end;
        padding: 0 0 10px 0;
    }
}

.flight-passenger-class{
    padding: 0 !important;
}

.pt-20{
    padding-top:20px
}

.total-flight-search-count{
font-family: "Quicksand",serif;
font-weight: 700;
font-style: Bold;
line-height: 40px;
letter-spacing: 0px;
color: #36A4FB;
margin-bottom: 15px;
font-size: 1.8rem;
}
.total-flight-search-count span{
    color: #09253C;
}

/* Flight Filter Options Styling - Based on Hotel Filter */
.flight-filter-options {
   margin-bottom: 10px;
}

.flight-filter-options label {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0;
    margin-right: 15px;
    font-size: 0.8rem;
}

.flight-filter-options .sort-by-dropdown {
    position: relative;
    min-width: 300px;
}

.flight-filter-options .sort-by-placeholder {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.flight-filter-options .sort-by-placeholder:hover {
    background: #e9ecef;
    border-color: #36A4FB;
}

.flight-filter-options .selected-option {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.flight-filter-options .click-arrow-direction img {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.flight-filter-options .sort-by-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 4px;
    padding: 8px;
}

.flight-filter-options .sort-by-dropdown-options label {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    margin: 0;
    font-weight: 500;
}

.flight-filter-options .sort-by-dropdown-options label:hover {
    background-color: #f8f9fa;
}

.flight-filter-options .sort-by-dropdown-options input[type="radio"] {
    margin-right: 12px;
    accent-color: #36A4FB;
}

.flight-filter-options .sort-by-dropdown-options div {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #2c3e50;
}

/* Enhanced Flight Details Modal Styles */
.flight-segment .journey-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    margin-bottom: 15px;
}

.airline-logo-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #36A4FB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(54, 164, 251, 0.3);
    flex-shrink: 0;
}

.airline-name-large {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 2px;
}

.flight-number-badge {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    white-space: nowrap;
}

.flight-segment .badge {
    font-size: 11px;
    padding: 4px 8px;
    font-weight: 500;
}

.modal-dialog.modal-lg {
    max-width: 900px;
}

#flightDetailsModal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

#flightDetailsModal .modal-header {
    background: white;
    color: #2c3e50;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
}

#flightDetailsModal .modal-header .btn-close {
    opacity: 0.5;
}

#flightDetailsModal .modal-header .btn-close:hover {
    opacity: 1;
}

#flightDetailsModal .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

#flightDetailsModal .modal-title i {
    color: #36A4FB;
}

.baggage-item {
    transition: all 0.2s ease;
}

.baggage-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-orange-select {
    background: #FB7136;
    color: white;
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-orange-select:hover {
    background: #e55d28;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 113, 54, 0.4);
}

/* Flight Segment Detail Styles */
.flight-segment-detail {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.airline-name-box {
    width: 64px;
    height: 64px;
    border: 1px solid #ECECED;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    background: white;
}

.flight-date-day {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
}

.flight-airline-info {
    font-size: 12px;
    color: #2c3e50;
}

.flight-route-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.flight-route-list li {
    font-size: 12px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 4px;
}

.flight-route-list .route-label {
    color: #6c757d;
    font-size: 11px;
}

.flight-route-list strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Stopover Break Styles */
.stopover-break {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    padding: 10px 0;
}

.stopover-line {
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

.stopover-info-text {
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
    font-weight: 500;
}

.stopover-info-text i {
    color: #36A4FB;
}