html, body {
    overflow-x: hidden;
}
/* HEADER AND FOOTER STYLES */
header .container-fluid {
    padding: 10px 30px !important;
}

.navbar .container-fluid {
    align-items: center;
}

.navbar-brand img {
    width: 200px; 
    height: auto;
    display: block;
}

header {
    padding: 10px 30px;
}

.navbar-nav.flex-row .nav-item {
    margin-left: 20px;
}

.navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block;
    flex: 0 0 auto !important;
}

footer {
    margin-top: auto;
    min-height: 60px;
    padding: 10px 30px;
}

.navbar-nav .nav-item {
    margin-left: 15px;
}

.navbar .nav-link {
    font-family: "century-gothic", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-size: 1.2em !important;
    position: relative;
    padding-bottom: 4px;
}

.navbar-nav .nav-link {
    white-space: nowrap;
}

footer .nav-link {
    font-family: "century-gothic", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-size: 0.9em !important;
    position: relative;
    padding-bottom: 4px;
}
.navbar .nav-link::after,
footer .nav-link::after{
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #FF33FF; 
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar .nav-link.active::after, 
.navbar .nav-link:hover::after, 
footer .nav-link:hover::after, 
footer .nav-link:focus::after {
    width: 80%;
}

footer .nav-link {
    position: relative;
    padding-bottom: 4px;
}

footer .nav-link:hover::after,
footer .nav-link.active::after {
    width: 80%;
}

.navbar {
    align-items: center;
}

/* -------------------------- */
/* HTML AND BODY STYLES */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main .contact {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* -------------------------- */
/* CONTACT PAGE STYLES */

button.submitContact {
    font-family: "century-gothic", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    background-color: black;
    color: white;
    outline: none !important;
    border: none !important;
    width: 8%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 0px;
    border-radius: 12px;
    transition-duration: 0.3s;
}

button.submitContact:hover {
    background-color: #FF33FF;
    outline: none !important;
    border: none !important;
}

.pageHeader {
    font-family: "gravesend-sans", sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    font-size: 3em !important;
    padding-bottom: 40px;
    text-align: center;
    margin-top: 50px;
}

.contact {
    font-family: "century-gothic", sans-serif !important;
    font-weight: 400;
    font-style: normal !important;
    font-size: 1.2em;
    width: 100%;
    text-align: center;
}

main.contact .row {
    justify-content: center;
    text-align: center;
    padding: 10px 0;
}

.contactFormContainer {
    width: 65%;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------- */
/* OVERVIEW PAGE STYLES */
main.overview {
    flex: 1;
    padding-top: 50px;
}

.search-button {
    top: 50%;
    right: 25px;
    position: absolute;
    transform: translateY(-50%);
    color: black;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.search-button svg {
    width: 1em !important;
    height: 1em !important;
    vertical-align: middle !important;
}

.overviewHeader {
    font-family: "gravesend-sans", sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    font-size: 3em !important;
    text-align: left;
    margin: 0 !important;
    line-height: 1;
}

.destination-wrapper {
    position: relative;
    width: 650px;
    margin: 0 auto;
}

.destination {
    font-family: "century-gothic", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    width: 650px;
    padding: 10px 50px 10px 10px;
    border-radius: 12px;
}

main.overview .row {
    justify-content: center;
    text-align: center;
    padding: 0px !important;

}
.row .dest {
    margin-bottom: 0px;
}

main.overview .container-fluid {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    gap: 25px;
}

.filter {
    position: relative;
    display: inline-block;
}

.filter-button {
    background: none;
    border: none;
    font-family: "century-gothic", sans-serif !important;
    font-size: 1em !important;
    color: black;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    width: 100%;
    justify-content: space-between;
}

.filter-button .arrow {
    color: #FF33FF;
    font-size: 1em;
    display: inline-block;
    transform: translateY(1px);
}

.filter-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.section-header input[type="date"] {
    width: 150px;
}

.section-header select {
    width: 150px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: "century-gothic", sans-serif !important;
}

.airport-input {
    border-radius: 12px;
    padding: 6px 10px;
}

.airport {
    font-family: "century-gothic", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-size: 0.9em !important;
}

#departAirportInput {
    width: 400px;
}

/*Flights Card*/
.flight-card {
    width: 300px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid black;
    background: white;
    font-family: "century-gothic", sans-serif !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1 1 calc(33.333% - 24px);
}

.flight-route,
.flight-route-depart,
.flight-route-return {
    font-size: 1.2em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.flight-route-depart .arrow,
.flight-route-return .arrow,
.flight-route .arrow {
    color: #FF33FF;
    font-weight: bold;
}

.flight-details {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 4px;
    font-size: 0.95em;
}

.flight-price {
    margin-top: auto;
    font-size: 1.4em;
    font-weight: bold;
    color: #009900;
}

.flight-divider {
    width: 85%;
    height: 2px;
    color: #FF33FF;
    margin: auto;
}

#flightsContainer {
    width: 90%;
    margin-left: auto;
    margin-right: auto;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.flight-airline {
    font-family: "gravesend-sans", sans-serif !important;
    font-size: 1.2em !important;
    font-weight: 400 !important;
}

.flightsPageContainer {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.airport-filters {
    margin: 0px auto 20px auto;
}

.flightTimeAwareness {
    padding-bottom: 40px;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    font-family: "century-gothic", sans-serif !important;
    font-style: italic !important;
    font-weight: 200 !important;
    font-size: 0.85em;
    text-align: center;
}
.flightsPageHeader {
    font-family: "gravesend-sans", sans-serif !important;
    font-weight: 700 !important;
    font-style: normal !important;
    font-size: 3em !important;
    text-align: center;
    margin-top: 50px;
}

.flightTimeAwarenessOverview {
    font-family: "century-gothic", sans-serif !important;
    font-style: italic !important;
    font-weight: 200 !important;
    font-size: 0.85em;
    margin: 0;
    line-height: 1.4;
}

/* Stays Cards */
.stay-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid black;
    background: white;
    font-family: "century-gothic", sans-serif !important;
    width: 100%;
    max-width: 600px;
    align-items: stretch;
    max-height: 280px;
}

.stay-image img {
    width: 400px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.stay-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    min-width: 0;
    overflow: hidden;
    flex: 1;
    gap: 6px;
}

.stay-name,
.stay-distance,
.stay-phone {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stay-name {
    font-size: 1.5em;
    font-weight: 600;
    margin: 0;
    text-wrap: wrap;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stay-rating {
    color: #FF33FF;
    font-size: 1em;
}

.stay-distance, .stay-amenities {
    font-size: 0.9em;
}

.stay-price {
    display: flex;
    flex-direction: column;
    font-weight: bold;
}

.stay-price .nightly {
    font-size: 0.8em;
    color: #009900;
}

.stay-price .total {
    font-size: 0.8em;
    color: #009900;
}

.stay-card-list {
    display: flex;
    gap: 25px;
    margin-top: 20px;
}

/* Restaurant Cards */
.restaurant-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid black;
    background: white;
    font-family: "century-gothic", sans-serif !important;
    width: 100%;
    max-width: 520px;
}

.restaurant-image img {
    width: 160px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
}

.restaurant-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.restaurant-name {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0;
}

.dot {
    font-size: 1em;
    color: #FF33FF;
}

.restaurant-rating {
    color: #FF33FF;
    font-size: 1.2em;
}

.restaurant-hours, 
.restaurant-address, 
.restaurant-phone {
    font-size: 1em;
}

.restaurant-price {
    margin-top: auto;
    font-size: 1.2em;
    font-weight: bold;
    color: #009900;
}

.restaurant-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

/* Activities Cards */
.todo-card {
    width: 480px;
    background: white;
    border: 1px solid black;
    border-radius: 12px;
    overflow: hidden;
    font-family: "century-gothic", sans-serif !important;
    display: flex;
    flex-direction: column;
}

.todo-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.todo-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.todo-name {
    font-size: 1.6em;
    font-weight: 600;
    margin: 0;
}

.todo-time {
    font-size: 1em;
    color: #555;
}

.todo-desc {
    font-size: 1em;
    line-height: 1.4;
    margin: 0;
}

.todo-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.todo-price svg {
    vertical-align: middle;
}

.todo-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3em;
    font-weight: bold;
    top: auto;
}

.todo-layout {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

/* Restaurant Page */
.restaurant-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 20px 0;
}

.restaurant-page-card {
    flex: 1 1 calc(33.333% - 24px);
    max-width: 520px;
}

.restaurantContainer {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
}

.pagination-link {
    padding: 8px 14px;
    border-radius: 6px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.pagination-link:hover {
    background: #FF33FF;
}

.pagination-link.active {
    background: #FF33FF;
    color: white;
}

/*STAY PAGE/STYLES */
.stay-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 20px 0;
}

.stay-page-card {
    flex: 1 1 calc(50% - 24px);
    max-width: 800px;
    min-width: 0;
}

.staysContainer {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.stays-review-button {
    font-size: 1.2em !important;
}

.star {
    font-size: 1.4em;
    color: white;
    position: relative;
    display: inline-block;
}

.star.full {
    color: #FF33FF;
}

.star.half {
    color: white;
}

.star.half::before {
    content: "★";
    color: #FF33FF;
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-number {
    font-size: 1em;
    color: black;
}

/* Activities Page */
.todo-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    padding: 20px 0;
}

.todo-page-card {
    flex: 1 1 calc(33.333% - 24px);
    max-width: 480px;
}

.thingsContainer {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Flights Page */
input[type="date"]::-webkit-datetime-edit {
    color: transparent;
}

input[type="date"].has-value::-webkit-datetime-edit {
    color: #333;
    font-family: "century-gothic", sans-serif;
}

.date-wrapper input:not(.has-value) + .date-placeholder {
    opacity: 1;
}

.date-wrapper input:focus + .date-placeholder,
.date-wrapper input.has-value + .date-placeholder {
    opacity: 0;
}

.date-wrapper {
    position: relative;
    display: inline-block;
}

.date-wrapper input {
    width: 325px;
}

.date-placeholder {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-family: "century-gothic", sans-serif;
}

.dDate,
.rDate {
    font-family: "century-gothic", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    width: 325px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 5px;
    border-radius: 12px;
    margin: 10px auto 0px auto;
}

.date-row .col-auto {
    margin: 0 8px;
}

button.submitAirports {
    font-family: "century-gothic", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    background-color: black;
    color: white;
    outline: none !important;
    border: none !important;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 8px;
    border-radius: 12px;
    transition-duration: 0.3s;
}

button.submitAirports:hover {
    background-color: #FF33FF;
    color: black;
    outline: none !important;
    border: none !important;
}

.formSubmitAirport:disabled {
    background-color: gray;
    cursor: not-allowed;
    opacity: 0.7;
}

.airport {
    font-family: "century-gothic", sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-size: 0.9em !important;
    border-radius: 12px;
    padding: 6px 10px;
    margin: 10px auto 10px auto;
}

.pac-container {
    width: 350px !important;
}

.pac-item:hover {
    background-color: #FF33FF !important;
    color: white !important;
}

.airport-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.airport-dropdown {
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: white !important;
    border: 1px solid black !important;
    border-top: none !important;
    z-index: 1000;
    max-height: 220px;
    padding: 4px 0;
    overflow-y: auto;
    border-radius: 12px !important;
    animation: fadeIn 0.15s ease-out;
    min-width: 100%;
}

.airport-wrapper .airport-dropdown .dropdown-item {
    font-size: 0.9em !important;
    padding: 10px 14px !important;
    font-family: "century-gothic", sans-serif !important;
    cursor: pointer !important;
    border-bottom: 1px solid gray !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.airport-dropdown .dropdown-item:last-child {
    border-bottom: none !important;
}

.airport-dropdown .dropdown-item:hover {
    background-color: #FF33FF !important;
    color: white !important;
}

.airport-dropdown::-webkit-scrollbar {
    width: 8px;
}

.airport-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.airport-dropdown::-webkit-scrollbar-thumb:hover {
    background: #b3b3b3;
}

#destinationAirportInput {
    width: 400px;
}

.class-select {
    border-radius: 12px;
    width: 150px;
    padding: 14px, 14px;
    font-family: "century-gothic", sans-serif !important;
}
/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
 
div.airport-filters {
    display: none !important;
} 


/* RESPONSIVE */
html, body {
    overflow-x: hidden;
}

/* PHONES */
@media only screen and (max-width: 767px) {
    .destination-wrapper {
        width: 325px;
    }

    .destination-wrapper input {
        width: 300px;
    }

    .date-wrapper input {
        width: 225px;
    }

    .search-button {
        position: absolute;
        right: -30px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
    }

    header .container-fluid {
        padding: 10px 10px !important;
    }

    .navbar-brand img {
        width: 150px; 
        height: auto;
        display: block;
    }

    .navbar-toggler {
        background-color: #FF33FF !important;
    }

    .overviewHeader {
        width: 100%;
    }

    .stay-image img {
        display: none;
    }

    .stay-page-card, 
    .todo-page-card,
    .restaurant-page-card,
    .flight-card {
        flex: 0 0 100%;
        width: 100%;
    }

    .restaurant-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .restaurant-image img {
        width: 100%; 
        max-width: 350px;
        max-height: 250px;
        height: auto;
    }

    .restaurant-content {
        width: 100%;    
        margin-top: 10px;
    }

    button.submitContact {
        min-width: 100px;
    }

    .contact {
        font-size: 1em;
        font-weight: 200px;
    }

    .contactFormContainer {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* TABLETS */
@media only screen and (min-width: 768px) and (max-width: 992px) {
    .navbar-toggler {
            background-color: #FF33FF !important;
    }

    .todo-page-card, .restaurant-page-card {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .restaurant-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .restaurant-image img {
        width: 100%; 
        max-width: 350px;
        max-height: 250px;
        height: auto;
    }

    .restaurant-content {
        width: 100%;    
        margin-top: 10px;
    }

    .stay-image img {
        display: none;
    }

    button.submitContact {
        min-width: 150px;
    }

    .contact {
        font-size: 1em;
        font-weight: 200px;
    }

    .contactFormContainer {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}