/* 🔹 General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #ddd;
    margin: 0;
    padding: 0;
    text-align: center;
}

header {
    background-color: #1E1E1E;
    padding: 20px;
    box-shadow: 0px 2px 10px rgba(255, 255, 255, 0.1);
}

h1 {
    color: #42b983;
    font-size: 2em;
}

/* 🔍 Search Bar with Auto-Suggestions */
.search-container {
    position: relative;
    width: 90%;
    max-width: 400px;
    margin: 15px auto;
}

#searchBar {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    border: 2px solid #42b983;
    outline: none;
}

#suggestions {
    position: absolute;
    width: 100%;
    background: #1E1E1E;
    border-radius: 5px;
    display: none;
    box-shadow: 0px 4px 6px rgba(255, 255, 255, 0.2);
    z-index: 100;
}

#suggestions div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #333;
}

#suggestions div:hover {
    background: #42b983;
    color: #121212;
}

/* 🔹 Progress Bar */
.progress-container {
    width: 90%;
    max-width: 500px;
    margin: 10px auto;
    color: white;
    text-align: center;
}

.progress-bar {
    width: 100%;
    background-color: #333;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 10px;
    background-color: #42b983;
    width: 0%;
    transition: width 0.5s;
}

/* 🔹 Layout */
.content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px;
}

/* 🔹 Trail List - Grid Layout */
#trails-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 75%;
}

/* 🔹 Individual Trail Card */
.trail {
    background-color: #1E1E1E;
    padding: 15px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 2px 2px 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.trail:hover {
    transform: translateY(-5px);
    box-shadow: 3px 3px 15px rgba(66, 185, 131, 0.3);
}

.trail h2 {
    color: #42b983;
    font-size: 1.5em;
}

.trail p {
    margin: 5px 0;
}

/* 🏕️ Voir Plus Button */
.trail button {
    width: 100%;
    padding: 10px;
    border: none;
    background-color: #42b983;
    color: #121212;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
margin-top: 15px;
    transition: background 0.3s;
}

.trail button:hover {
    background-color: #36a76c;
}

.map-container {
    height: 200px;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

/* 🔹 Sidebar - Recent Trails */
aside {
    width: 22%;
    background: #1E1E1E;
    padding: 15px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 2px 2px 10px rgba(255, 255, 255, 0.1);
}

aside h2 {
    text-align: center;
    color: #42b983;
    font-size: 1.5em;
}

/* 🏞️ Improved Recent Trails List */
#recent-trails {
    list-style: none;
    padding: 0;
}

#recent-trails li {
    padding: 10px;
    border-bottom: 1px solid #333;
}

#recent-trails li a {
    text-decoration: none;
    color: #42b983;
    font-size: 1em;
    font-weight: bold;
}

#recent-trails li:hover {
    background: #42b983;
    color: #121212;
}

/* 🔹 Responsive Styles */
@media screen and (max-width: 1024px) {
    .content {
        flex-direction: column;
        align-items: center;
    }

    #trails-container {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }

    aside {
        width: 100%;
        margin-top: 20px;
    }
}

@media screen and (max-width: 768px) {
    #trails-container {
        grid-template-columns: 1fr;
    }

    #searchBar {
        font-size: 14px;
    }

    aside {
        text-align: center;
    }
}

.leaflet-left{
display: none;
}

.leaflet-bottom{
display: none;
}
