:root {
    /* Colors */
    --primary-color: #4A85DD;
    --secondary-color: #EEF1F4;
    --text-color: #222222;
    --label-color: #5F5E5E;
    --white-color: #FFFFFF;
    --black-color: #000000;
    --light-blue-border: #C0DBF2;
    --light-gray: #E2E8ED;
    --header-bg-color: #EFF4F9;
    --disabled-bg-color: #f0f0f0;
    --disabled-color: #a0a0a0;

    /* Fonts */
    --font-family: 'Gilroy', sans-serif;
    --font-size-xs: 14px;
    --font-size-sm: 16px;
    --font-size-md: 18px;
    --font-size-lg: 20px;
    --font-size-xl: 22px;

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extra-bold: 900;

    /* Spacing */
    --gap-xs: 4px;
    --gap-sm: 6px;
    --gap-md: 8px;
    --gap-lg: 12px;
    --gap-xl: 16px;
    --gap-xxl: 20px;
    --gap-xxxl: 22px;
    --gap-header: 65px;
    --gap-page-side: 80px;
    --margin-footer-top: 74px;

    /* Sizes */
    --border-radius: 4px;
    --box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    --line-height-xs: 16px;
    --line-height-sm: 19px;
    --line-height-md: 20px;
    --line-height-lg: 24px;
    --header-height: 72px;
    --input-height: 72px;
    --input-width: 176px;
    --input-width-passengers: 256px;
    --footer-height: 54px;
    --footer-gap: 200px;
    --card-height: 178px;
    --card-border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}

.page_body {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-size: cover;
}

.hero_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: -1;
    pointer-events: none;
}

/* Footer */
.footer_home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--gap-xl) var(--gap-page-side);
    gap: var(--footer-gap);
    /* position: absolute; */
    width: 100%;
    height: var(--footer-height);
    background: var(--white-color);
    bottom: 0;
    z-index: 2;
    margin-top: var(--margin-footer-top);
}

.footer_home .legal {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-sm);
    color: var(--black-color);
}

.footer_home .logos {
    display: flex;
    align-items: center;
    gap: var(--gap-xxxl);
}

.footer_home .logos .logo {
    width: 35px;
    height: auto;
}

.footer_home .logos .logo:first-child {
    width: 66px;
}

.footer_home .socials {
    display: flex;
    align-items: center;
    gap: var(--gap-xxxl);
}

/* Suggestions Section */
.suggestions_home {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 32px auto 0;
    width: 100%;
    max-width: 1280px;
    z-index: 2;
    position: relative;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-xxl);
    width: 100%;
    margin-top: var(--gap-xl);
}

.card {
    position: relative;
    width: 100%;
    height: var(--card-height);
    border-radius: var(--card-border-radius);
    overflow: hidden;
    background: #d9d9d9;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .overlay {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--black-color) 100%);
    pointer-events: none;
    z-index: 1;
}

.card .content {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 var(--gap-lg);
    z-index: 2;
}

.card .info {
    display: flex;
    flex-direction: column;
    color: var(--white-color);
    font-family: var(--font-family);
}

.card .info .city {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-lg);
    margin-bottom: var(--gap-xs);
    text-transform: capitalize;
}

.card .info .date {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-xs);
    text-transform: capitalize;
}

.card .price {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    color: var(--white-color);
    white-space: nowrap;
}

/* Slider Control */
.slider_control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--gap-md);
    margin-top: 32px;
}

.slider_button {
    width: 20px;
    height: 20px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    background-image: url('images/control_rectangle_empty.svg');
}

.slider_button.active {
    background-image: url('images/control_rectangle.svg');
}

/* Search Box Section */
.search_box_home {
    position: relative;
    margin-top: calc(var(--header-height) + 48px);
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    z-index: 6;
    width: 100%;
    max-width: 1280px;
}

.search_box_home_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-xs);
    background: transparent;
    width: 100%;
}

.inputs {
    display: flex;
    flex-direction: column;
    gap: var(--gap-xs);
}

.single_input {
    display: flex;
    flex-direction: column;
    padding: var(--gap-md) var(--gap-lg);
    width: var(--input-width);
    height: var(--input-height);
    background: var(--white-color);
    border: 0.5px solid var(--light-blue-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.single_input_passengers {
    width: var(--input-width-passengers);
}

.single_input .label {
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--label-color);
    text-transform: uppercase;
    margin-bottom: var(--gap-md);
}

.dynamic-label {
    visibility: hidden;
    opacity: 0;
}

.single_input input:focus ~ .dynamic-label,
.single_input input:not(:placeholder-shown) ~ .dynamic-label {
    visibility: visible;
    opacity: 1;
}

.single_input .user_input {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    border: none;
    outline: none;
    color: var(--text-color);
    background: none;
}

.single_input .user_input:disabled {
    background-color: var(--disabled-bg-color);
    color: var(--disabled-bg-color);
    cursor: not-allowed;
}

/* Search Button */
.search_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white-color);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    width: 200px;
    height: var(--input-height);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    position: relative;
    gap: 6px;
    white-space: nowrap;
}

/* .search_button::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: var(--font-weight-extra-bold);
    font-size: var(--font-size-sm);
} */

.search_button:hover {
    background: #3A6CBC;
}

/* Filters */
.filter_box {
    display: flex;
    align-items: center;
    gap: var(--gap-xl);
    margin-top: var(--gap-xs);
}

.airline_filter, .direct_checkbox {
    display: flex;
    align-items: center;
    padding: var(--gap-sm) var(--gap-xl) var(--gap-sm) var(--gap-lg);
    gap: var(--gap-xl);
    background: var(--secondary-color);
    border-radius: calc(var(--border-radius) * 2);
    cursor: pointer;
}

.airline_filter {
    width: 460px;
    height: 44px;
}

.direct_checkbox {
    width: 186px;
    height: 44px;
}

.icon-airline, .icon-direct {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.airline-text, .checkbox-container .label {
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-md);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--label-color);
    flex-grow: 1;
}

.icon-dropdown {
    width: 13px;
    height: 20px;
    object-fit: contain;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    position: relative;
    cursor: pointer;
}

.checkbox-input {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--label-color);
    border-radius: var(--border-radius);
    background-color: transparent;
    display: inline-block;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.checkbox-input:checked + .checkbox-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 6px;
    height: 12px;
    border: solid var(--white-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Round Options */
.round_options {
    display: flex;
    justify-content: flex-start;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-sm);
}

.round_options button {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    cursor: pointer;
}

.selected_option {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.unselected_option {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.4), var(--light-gray));
    color: var(--label-color);
}

/* Header */
.header_home {
    position: fixed;
    width: 100%;
    height: var(--header-height);
    top: 0;
    left: 0;
    background: var(--header-bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: var(--gap-page-side);
    padding-right: 15px;
    z-index: 10;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
}

.logo img {
    width: 166px;
    height: 52px;
}

.top_text_group {
    display: flex;
    gap: var(--gap-header);
}

.top_text_group a {
    font-family: var(--font-family);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    color: var(--text-color);
    text-decoration: none;
}

.top_text_group a:hover {
    color: var(--primary-color);
}

.header_right {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
}

.langs {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    margin-right: 22px;
}

.langs span {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
}

.login {
    padding: 10px 15px;
    background: var(--primary-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--white-color);
    text-transform: capitalize;
    cursor: pointer;
    white-space: nowrap;
}

.login:hover {
    background: #3A6CBC;
}

.icon {
    width: 16px;
    height: auto;
    margin-right: var(--gap-md);
    display: inline-block;
}

/* Ensure dropdown is hidden when empty */
.autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--white-color);
    border: 1px solid var(--light-blue-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 9999 !important;
    list-style: none;
    padding: var(--gap-xs) 0;
    margin: 0;
    display: none;
}

/* Show dropdown when populated */
.autocomplete-list.visible {
    display: block;
}

/* Dropdown items */
.autocomplete-item {
    padding: var(--gap-sm) var(--gap-md);
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.autocomplete-item span:first-child {
    font-weight: var(--font-weight-semibold); 
}

.autocomplete-item span:last-child {
    font-style: italic;
    font-size: var(--font-size-xs);
    color: var(--label-color);
}

.autocomplete-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.single_input.relative {
    position: relative;
}



/* Campaign Container */
.top_campaign {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    gap: 8px;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0;
    background: linear-gradient(90.63deg, #0B4EFB -3.1%, #5EC6F1 51.56%, #BEE7F9 81.99%);
    border-radius: 12px;
    isolation: isolate;
    z-index: 2;
    box-shadow: var(--box-shadow);
}

/* Container within .top_campaign */
.campaign_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 64px;
    width: 95%;
    max-width: 952px;
    height: 58px;
}

/* Text styles within .top_campaign */
.campaign_text h2 {
    font-family: 'Inter Variable', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 32px;
    margin: 0;
    text-align: center;
}

.campaign_text p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
    line-height: 20px;
    margin: 0;
    text-align: center;
}

/* Button within .top_campaign */
.campaign_button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 22px;
    gap: 4px;
    width: 167px;
    height: 48px;
    background: #2058BB;
    border-radius: 10px;
    font-family: 'Inter Variable', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.campaign_button:hover {
    background: #17478F;
}


/* Dropdown Input */

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

.dropdown-button {
    width: 100%;
    /* padding: var(--gap-md) var(--gap-lg); */
    background: var(--white-color);
    border: none;
    text-align: left;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    color: var(--text-color);
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -8%;
    width: 116%;
    right: 0;
    background: var(--white-color);
    border: 1px solid var(--light-blue-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    padding: var(--gap-xs);
}

.dropdown-menu .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--gap-xs) var(--gap-md);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
}

.dropdown-menu .dropdown-item input {
    width: 50px;
    text-align: center;
    font-size: var(--font-size-sm);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.multi_trip_row {
    display: flex;
    justify-content: flex-start;
    gap: var(--gap-xs);
    width: 100%;
    align-items: center;
    z-index: 1;
}

.departInput {
    pointer-events: auto;
}

.remove_trip_button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: var(--font-size-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove_trip_button:hover {
    background-color: #3A6CBC;
}


#staticInputs {
    display: flex;
    gap: var(--gap-xs);
    flex-wrap: wrap;
    align-items: flex-start;
}

#additionalTripsContainer {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    z-index: 2;
}

.add-trip-button-container {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 16px;
}

.add_trip_button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add_trip_button:hover {
    background-color: #3A6CBC;
}

.logo_header{
    margin-right: 48px;
    top: 50%;
    transform: translateY(8%);
}


/* Modal Overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.modal.visible {
    visibility: visible;
    opacity: 1;
}

.modal_content {
    position: relative;
    width: 80%;
    max-width: 800px;
    height: 80%;
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}

.close_button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

.modal_content iframe {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    border: none;
}


/* Coming Soon Modal */
#comingSoonModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

#comingSoonModal.visible {
    visibility: visible;
    opacity: 1;
}

#comingSoonModal .modal_content {
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: var(--gap-xl);
    width: 90%;
    max-width: 400px;
    max-height: 200px; /* Limit the modal's height */
    text-align: center;
    box-shadow: var(--box-shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the content vertically */
    overflow: hidden; /* Prevent content from overflowing */
}


#comingSoonModal .close_button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: var(--font-size-lg);
    cursor: pointer;
    color: var(--text-color);
    font-weight: var(--font-weight-bold);
}

#comingSoonModal p {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    margin-top: var(--gap-lg);
}


input[type="date"] {
    -webkit-appearance: none;
    background-color: transparent;
}