#flight-header {
    color: #1A1C1E !important;
    margin: 0px !important;
    letter-spacing: 1.5px !important;
}

/* General form styling */
.styled-form {
    max-width: 80%;
    margin: 0 auto;
    padding: 20px 40px;
    background: #FCFCFD;
    border-radius: 24px;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    margin-bottom: 100px;
}

#flight-header {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

#flight-info-results {
    width: 90%;
    margin: 0 auto;
}

.dataTables_length > label {
    width: 200px;
}

/* Flight input field styling */
.input-container {
    background: #fff !important;
    height: 50px !important;
    display: -ms-flexbox !important;
    display: flex !important;
    width: 100% !important;
    -ms-flex-pack: justify !important;
    justify-content: space-between !important;
    -ms-flex-align: center !important;
    align-items: stretch !important;
    box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15) !important;
    border-radius: 3px !important;
}

.second-wrap {
    -ms-flex-positive: 1 !important;
    flex-grow: 1 !important;
    display: flex;
    flex-direction: row;
}

.third-wrap {
    width: 74px !important;
}

.flight-input {
    height: 100% !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0px !important;
    display: block !important;
    /* width: 67% !important; */
    padding: 10px 32px;
    font-size: 24px !important;
    color: #555 !important;
    margin: 0px !important;
}

.flight-input::placeholder {
    color: #aaa !important; /* Subtle placeholder color */
    font-style: italic !important; /* Optional italic placeholder text */
}

.flight-input:focus {
    border-bottom: 2px solid #BA0C2F !important; /* Highlighted bottom border on focus */
}

.search-button {
    height: 64px;
    width: 64px;
    white-space: nowrap !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 64px !important;
    cursor: pointer !important;
    background: #BA0C2F !important;
    transition: all 0.2s ease-out, color 0.2s ease-out !important;
    margin: 0px !important;
}


.search-button:hover {
    background: #BA0C2F !important; /* Slightly darker green for hover */
    color: #f8f9fa !important; /* Ensures readable text color */
}

.search-button i {
    font-size: 18px; /* Icon size */
}


/* Container styling */
.flight-type-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center !important;
    /* justify-content: center; */
}

/* Radio button wrapper */
.radio-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Hide the native radio button */
.radio-wrapper input[type="radio"] {
    display: none;
}

/* Custom radio content */
.radio-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    background: #ffffff;
    border: 2px solid #ddd;
    color: #000000;
    border-radius: 17px;
    transition: background 0.3s ease, border 0.3s ease;
    letter-spacing: 1.2px;
    margin-right: 10px;
}

.radio-content i {
    font-size: 14px; /* Adjust the icon size */
}

/* Hover effect */
.radio-content:hover {
    background: #BA0C2F;
    border-color: #BA0C2F;
    color: white;
}

/* Selected state */
.radio-wrapper input[type="radio"]:checked + .radio-content {
    background: #BA0C2F;
    border: 2px solid #BA0C2F;
    color: white;
}

/* Add subtle shadow for better visibility */
.radio-content {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


/* Style table headers */
.styled-table thead th {
    border: none; /* Removes the border from header columns */
}


.styled-table thead tr {
    background-color: #2F3490 !important;
    text-align: left;
    font-size: 14px;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
    vertical-align: middle; /* Vertically centers the text */
}

.sorting {
    background-color: #2F3490;
    color: white;
}

#error-div > #error-message {
    color: #BA0C2F !important;
}
.codeshares {
    font-size: 12px;
}

/* .styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #2F3490;
}

.styled-table tbody tr.active-row {
    font-weight: bold;
    color: #2F3490;
} */

select[name="flight-data-table_length"] {
    width: 40% !important;
}

table.dataTable.no-footer {
    border: none;
}


/* Remove conflicting overflow from .styled-table */
.styled-table {
    border-collapse: separate; /* keep separate for border-spacing to work */
    margin: 25px 0;
    font-size: 0.9em;
    min-width: 400px;
    table-layout: auto; /* Allow non-last columns to be dynamic */
    /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); */
    /* border: 1px solid #ddd;
    border-radius: 10px; */
    /* Remove overflow: hidden; */
}

/* Set the row gaps and ensure a transparent background */
#flight-data-table {
    border-collapse: separate !important;
    border-spacing: 0 17px; /* Adds 10px vertical gap between rows */
    width: 100%;
}

/* Override backgrounds for headers, cells, and rows */
#flight-data-table,
#flight-data-table th,
#flight-data-table tr {
    background-color: transparent !important;
}

/* Apply border radius to the first and last cells in each row */
tr td:first-of-type {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

tr td:last-of-type {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.table-row-content {
    padding: 5px;  /* Optional: spacing inside the row */
}




/* Apply border-radius to the first and last cells to match the table’s box shadow */
#flight-data-table tbody tr td:first-child .table-row-content {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

#flight-data-table tbody tr td:last-child .table-row-content {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Add padding to the left (start) and right (end) of the row */
#flight-data-table tbody tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding-left: 30px;/* Left padding */
}

#flight-data-table tbody tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-right: 30px !important; /* Right padding */
}

/* Add padding to the top and bottom of all row cells */
#flight-data-table tbody tr td {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}


:root {
    --dt-row-stripe-alpha: 0 !important;  /* Remove striping */
    --dt-column-ordering: 255, 255, 255 !important;
}

/* Ensure all rows have a solid white background */
/* Apply shadow evenly around the row */
#flight-data-table tbody tr {
    background-color: white !important; /* Ensure full-row white background */
    box-shadow: 0px 0px 50px rgba(177, 187, 205, 0.26); /* Adjusted shadow */
    border-radius: 10px; /* Rounded corners */
    position: relative; /* Ensure shadow visibility */
}


.flight-info {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo and text */
}

.logo-container {
    width: 70px; /* Adjust based on logo size */
    height: 70px;
    background-color: #f0f0f0; /* Optional background */
    border-radius: 50%; /* Makes it circular */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flight-logos {
    width: 80%;
    height: auto;
}

.flight-city > p{
    /* font-size: 18px !important; */
    margin: 0px;
    font-weight: 700;
}

.flight-city > p {
    font-size: 16px;
    color: #6C7278 !important;
}

.flight-details {
    display: flex;
    flex-direction: column;
}

.airline-name {
    color: #000;
    font-weight: bold;
    font-size: 18px;

}

.flight-number {
    color: #000;
    font-weight: bold;
    font-size: 15px;
    margin-top: -10px;
}

.flight-td {
    font-size: 16px;
    font-weight: bold;
    color: #000;
}

.flight-td > p{
    font-size: 14px;
    color: #6C7278;
}

.flight-td {
    background-color: #F5F7FA !important; /* Light gray background */
    padding: 15px 10px !important; /* Adds spacing inside the box */
    border-radius: 5px; /* Optional: adds rounded corners */
}

/* For arrivals: Last 6 columns equal width */
.arrivals-row td:nth-last-child(-n+6) {
    width: 9%; /* Adjust based on your design */
    min-width: 120px; /* Ensures readability */
}

/* For departures: Last 5 columns equal width */
.departures-row td:nth-last-child(-n+5) {
    width: 9%;
    min-width: 120px;
}

/* Ensure div inside flight-td takes full width */
tr td:nth-last-child(-n+6) .flight-td,
tr td:nth-last-child(-n+5) .flight-td {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%; /* Ensures div fills the td */
    background-color: #F5F7FA !important;
    padding: 15px !important;
    border-radius: 5px;
}


.dataTables_wrapper .dataTables_paginate {
    margin-top: 10px;
    text-align: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-block;
    background-color: #2F3490; /* Button background */
    color: white !important; /* Text color */
    border: 1px solid #2F3490;
    border-radius: 4px; /* Rounded corners */
    padding: 6px 12px;
    margin: 0 2px; /* Spacing between buttons */
    font-size: 14px;
    cursor: pointer;
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #4A4E8E; /* Hover background */
    color: white; /* Hover text color */
    border: 1px solid #4A4E8E;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #0056b3; /* Active page background */
    color: white; /* Active page text color */
    border: 1px solid #0056b3;
    font-weight: bold;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    background-color: #e9ecef; /* Disabled background */
    color: #6c757d; /* Disabled text color */
    border: 1px solid #e9ecef;
    cursor: not-allowed;
}

/* Optional: Center align the pagination controls */
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: center;
    align-items: center;
}

#flight-data-table_wrapper {
    width: 100% !important;
}


.loader {
    position: relative;
    width: 150px;
    height: 150px;
  }
  
  .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; /* Adjust to your logo size */
  }
  
  .circle {
    position: absolute;
    top: 10%; /* Adjust to control spacing between circle and logo */
    left: 10%; /* Adjust to control spacing between circle and logo */
    width: 80%; /* Make the circle smaller */
    height: 80%; /* Keep it proportional */
    border: 3px solid transparent;
    border-top: 3px solid #303490; /* Change color if needed */
    border-radius: 50%;
    animation: spin 2s linear infinite;
  }
  
  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
/* Autocomplete dropdown styling */
.ui-menu {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    max-width: 500px;
}

/* Each autocomplete item */
.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.autocomplete-text strong {
    font-size: 18px; /* Make the main text bigger */
    font-weight: bold;
    color: #333;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Airline logo */
.autocomplete-logo {
    width: 60px;
    height: 60px;
    margin-right: 10px;
}

/* Location icon */
.autocomplete-icon {
    font-size: 20px;
    color: #007bff;
    margin-right: 10px;
}

/* Text formatting */
.autocomplete-text {
    display: flex;
    flex-direction: column;
}

/* Type label */
.autocomplete-type {
    font-size: 12px;
    color: #666;
}

.input-div {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}
.query {
    margin-left: 20%;
}

/* codeshare scroll */

.codeshare-marquee {
  overflow: hidden;
  height: 20px;
  position: relative;
  width: 100%;
}

.scrolling-text {
  white-space: nowrap;
  display: inline-block;
  position: absolute;
  animation: scroll-left 12s linear infinite;
  font-size: 13px;
  color: #333;
}

@keyframes scroll-left {
  0% {
    left: 100%;
  }
  100% {
    left: -100%;
  }
}


table.dataTable th.dt-type-numeric, table.dataTable th.dt-type-date, table.dataTable td.dt-type-numeric, table.dataTable td.dt-type-date {
    text-align: left !important;
}

  .details {
    display: none;
  }


@media only screen and (max-width: 768px) {
    /* Styles for tablets and smaller devices */

    #flight-info-results > h3 {
    font-size: 20px;
}

    #flight-data-table th:nth-child(4),
    #flight-data-table td:nth-child(4) {
        display: none;
    }

    col[data-dt-column="3"],
    col[data-dt-column="4"],
    col[data-dt-column="5"],
    col[data-dt-column="6"],
    col[data-dt-column="7"] {
        width: 0 !important;
    }

    .flight-details {
        display: block;
    }

    .details {
        margin-left: 10px !important;
        margin-bottom: 0px !important;
        display: block;
    }
    td:nth-child(3) {
    border-top-right-radius: 5px;  /* Top-right border radius */
    border-bottom-right-radius: 5px;  /* Bottom-right border radius */
    overflow: hidden; /* Ensures the content doesn't overflow the rounded corners */
    }
  }
  
  @media only screen and (max-width: 480px) {
    .styled-form {
        max-width: 100%;
        flex-direction: column;
        padding: 20px;
    }
    .search-button {
        width: 45px;
        height: 45px !important;
    }

    .flight-type-container {
        margin-bottom: 10px;
        flex-direction: column;
    }

    .input-div > .flight-input {
        padding-left: 0px;
    }

    .flight-input::placeholder {
        font-size: 14px; /* Adjust to your preferred size */
    }

    .hide-on-mobile {
        display: none;
    }


    #flight-data-table tbody tr td:first-child {
        padding-left: 10px;
    }

    .vc_column_container>.vc_column-inner {
        padding: 10px !important;
    }

    #flight-info-results {
        width: 100%;
    }

    .search-button i {
        font-size: 13px;
    }

    .mobile-font-size {
        font-size: 14px;
    }


    tr td:nth-last-child(-n+6) .flight-td, tr td:nth-last-child(-n+5) .flight-td {
        padding: 10px !important;
    }

  body div.dt-container div.dt-layout-row:not(.dt-layout-table) {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  body div.dt-container div.dt-layout-cell {
    flex: 1 1 auto;
  }

  }
  
  @media only screen and (max-width: 360px) {
    /* Styles for smaller mobile screens */
  }
  