@import url('https://fonts.cdnfonts.com/css/sigmar');
@import url('https://fonts.cdnfonts.com/css/roboto');
@import url('https://fonts.cdnfonts.com/css/geomanist');

:root {
    --blue-color: #43afcf;
    --yellow-color: #f0bd1a;
    --green-color: #80cc28;
    --light-green-color: #C9E8C9;
    --dark-text-color: #484848;
    --dark-text-color2: #023c2a;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Geomanist', sans-serif;
    color: var(--dark-text-color);
}

/* Headings using Sigmar */
h1 {
    font-family: 'Sigmar', cursive;
    color: var(--dark-text-color2);
}

h2 {
    font-family: 'Sigmar', cursive;
    color: var(--dark-text-color);
}

h3,
h4,
h5,
h6 {
    font-family: 'Geomanist', sans-serif;
    color: var(--dark-text-color);
}

/* Paragraphs and other text using Roboto */
p,
button,
.btn,
.navbar a,
.footer p,
.footer a,
label {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-text-color);
}

header {
    background-color: white;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

.logo a img {
    height: 60px;
    /* Adjust this value based on your logo size */
    width: auto;
}

.nav-links {
    display: flex;
    z-index: 999;
}

.nav-links ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links ul li {
    margin-left: 20px;
    position: relative;
}

.nav-links ul li a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 12px;
    transition: background 0.3s;
}

.nav-links ul li a:hover {
    background-color: var(--yellow-color);
    border-radius: 4px;
}

.nav-btn .btn {
    background-color: var(--yellow-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.nav-btn .btn:hover {
    background-color: var(--yellow-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {
    height: 4px;
    width: 25px;
    background: var(--yellow-color);
    margin-bottom: 4px;
    border-radius: 2px;
}

/*section 1*/

#home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-h1 {
    font-weight: 900;
    font-size: 2.4rem;
    margin-top: 60px;
    margin-bottom: 5px;
}

.home-h3 {
    margin-top: 0;
}

#trip-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 600px;
    margin: 0 auto;
}



.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#city-group {
    margin-top: 40px;
}

#date-group {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: 100%;
    margin-top: 0;
}

#start-date {
    color: var(--dark-text-color);
}


#start-date-container,
#end-date-container {
    flex: 1;
}

.form-group input[type="text"],
.form-group input[type="date"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group div label {
    margin-left: 2px;
}

.form-group.button-group {
    display: flex;
    justify-content: center;
    /* Center the button horizontally */
    align-items: center;
    margin-top: 20px;
    margin-bottom: 50px;
}

.form-group button {
    padding: 10px 20px;
    width: 350px;
    background-color: var(--yellow-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
}

.form-group button:hover {
    background-color: var(--green-color);
}

#itinerarySummary h1 {
    display: flex;
    justify-content: center;
}

 #itinerary-container {
    display: flex;
    flex-wrap: wrap;  /* Allow items to wrap to the next line */
    gap: 20px;  /* Add some space between the items */
    justify-content: flex-start; 
    padding: 40px;
}

.itinerary-section {
    flex: 0 0 250px;  /* Set a fixed width of 250px for each itinerary section */
    box-sizing: border-box;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;  /* Ensure there's space between rows */
}

.itinerary-section img {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    margin-bottom: 10px; /* Add space between the image and the list */
}

.itinerary-section ul {
    list-style: none; /* Remove bullets */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}

.delete-button {
    margin-top: 15px;
    padding: 0 auto;
    width: fit-content;
    height: 30px;
    background-color: var(--yellow-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    

    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2px;
}

.delete-button:hover {
    background-color: var(--green-color);
}


#upcomingTrip {
    background-color: #f3f2c9;
}

#upcomingTrip h1 {
    padding: 50px;
    display: flex;
    justify-content: center;
    font-size: 2rem;
}

#myMap {
    margin: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 70px;
}

#myMap h1{
    color: var(--dark-text-color2);
    font-size: 2rem;
}


#mapArea {
    display: flex;
    flex-direction: row;
    width: 90%;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2)
}

#map {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

#searchTheMapContainer {
    display: flex;
    flex-direction: column;
    width: 40%;
    background-color: var(--light-green-color);
    
}

#searchBoxContainer { 
    background-color: var(--light-green-color);
    height: 40px;
    margin: 0 10px;
    z-index: 999;
    width: 90%;
    border-radius: 5px;  
}

#placeDetailsContainer {
    margin-top: 30px;
    height: 400px;
    width: 90%;
    margin-left: 10px;
    text-wrap: wrap;
}

#placeDetailsContainer * {
    margin: 5px 0;  /* 5px top and bottom, 0px left and right */
    color: var(--dark-text-color);
}

#placeDetailsContainer h4 {
    font-family: 'Sigmar', cursive;
    color: var(--dark-text-color2);
}





/*css for the generated api searchbox by tomtom*/

.tt-search-box {
    width: 100%;
    border-radius: 5px;
}

.tt-search-box-input-container {
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 5px;
    background-color: white; 
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

.tt-search-box-input {
    
    flex-grow: 1;
    padding: 8px;
    border: none;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
}

.tt-search-box-close-icon {
    margin-left: 5px;
    cursor: pointer;
}


/* Style for the container that holds the suggestions*/

.tt-search-box-result-list-container {
    background-color: white;
    border: 1px solid var(--yellow-color) ;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.tt-search-box-result-list {
    background-color: white;
    padding: 10px;
    border-bottom: 1px solid var(--yellow-color);
    cursor: pointer;
}

.tt-search-box-result-list:hover {
    background-color: var(--green-color);
}

.tt-search-box-result-list-text-content {
    color: var(--dark-text-color);
    font-size: 14px;
}

.tt-search-box-result-list-bold {
    font-weight: bold;
    color: var(--dark-text-color);
}


@media (max-width: 1100px) {
    .nav-links {
        display: none;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: white;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
    }

    .nav-links ul {
        flex-direction: column;
    }

    .nav-links ul li {
        margin: 10px 0;
    }

    .nav-btn {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active+.nav-links {
        display: flex;
    }

    .home-h1 {
        text-align: center;
        width: 100%;
    }

    .trip-form {
        width: 500px;
    }



}

@media (max-width: 600px) {
    #trip-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 300px;
        margin: 10px auto;
    }

    #date-group {
        display: flex;
        flex-direction: column;
        gap: 40px;
        width: 100%;
        margin-top: 0;
    }

    #start-date-container,
    #end-date-container {
        width: 100%;
    }

    #mapArea {
        flex-direction: column;
        width: 90%;
    }

    #searchTheMapContainer {
        width: 100%;
    }

    #placeDetailsContainer {
        height: auto;
        margin-bottom: 20px;
    }

    #budgetDurationContainer {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    #trip-form {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 300px;
        margin: 10px auto;
    }

    #date-group {
        display: flex;
        flex-direction: column;
        gap: 40px;
        width: 100%;
        margin-top: 0;
    }

    #start-date-container,
    #end-date-container {
        width: 100%;
    }

    #mapArea {
        flex-direction: column;
        width: 90%;
    }

    #searchTheMapContainer {
        width: 100%;
    }

    #placeDetailsContainer {
        height: auto;
    }
}