/* =========== FONTS =========== */
@font-face {
    font-family: 'SFPro_R';
    src: url('./fonts/SF-Pro-Display-Regular.otf') format('truetype');
}
@font-face {
    font-family: 'SFPro_B';
    src: url('./fonts/SF-Pro-Display-Heavy.otf') format('truetype');
}
@font-face {
    font-family: 'SFPro_L';
    src: url('./fonts/SF-Pro-Display-Thin.otf') format('truetype');
}
/* ============================= */

::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

*{
    font-family: 'SFPro_R', sans-serif;
}
html{
    height: 100%;
    width: 100vw;
}
body{
    display: flex;
    background-color: #e5e5e5;
    /*background-color: #F8F9FA;*/
    width: 99vw;
    margin: 0;
    gap: 10px;
    height: 100%;
}
input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: black;
}

.containerLeft{
    flex: 3;
    gap: 10px;
    height: 100%;
    margin-left: 15px;
    &>div{
        margin: 10px;
    }
}

#search{
    display: flex;
    gap: 10px;
    height: 6%;
    &>div{
        display: flex;
        align-items: center;
        height: 25px;
    }
    & img#pointer{
        width: 25px;
        height: 25px;
        &:hover{
            cursor: pointer;
        }
    }
}
#map {
    background-position: center;
    background-repeat: no-repeat;
    height: 67%;
    border-radius:10px;
    display: flex;
}
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

#loader img {
    width: 100px;
    height: 100px;
}
#filters {
    display: flex;
    gap: 15px;
    border-radius: 10px;
}

#range {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    &>div:first-child{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.range-title, .activity-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.slider {
    accent-color: #DD2E44;
    border: none;
    outline: none;
    height: 8px;
}


.slider:hover {
    background: #d0d0d0;
}

.transport-icons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    &>div{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        &>div {
            background-color: #F8F9FA;
            border-radius: 10px;
            height: 55px;
            display: flex;
            justify-content: center;
            align-items: center;
            &:hover{
                cursor: pointer;
                background-color: #f5f5f5;
            }
        }
        & img {
            width: 40px;
            padding: 6px 12px;
        }
    }
}

.activity-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y:scroll;
    margin: 0 -7px;
    height: 100px;
}

.activity-item {
    background-color: #fbdada;
    padding: 3px 10px;
    border-radius: 10px;
    margin-right: 4px;
    /*font-size: 12px;*/
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.activity-item:hover {
    background-color: #f8bdbd;
}

.activity-item[data-selected="true"] {
    background-color: #ff7a7a;
    color: #ffffff;
}
#listActivities li {
    font-size: 12px !important;
}
.white{
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    width: fit-content;
}
#searchInput{
    width: 30vw;
    padding: 0;
    outline: none;
    border: none;
    font-size: 18px;
}

/* ==================================== DEBUT CONTAINER RIGHT ==================================== */
.containerRight {
    flex: 1;
}

.activities > div:first-child {
    display: flex;
    justify-content: center;
}
.activities h2 {
    color: #555555;
}
.listActivities {
    margin-top: 6px;
    padding: 1px 10px 10px;
    border-radius: 10px;
    background-color: #fff;
    height: 85vh;
    overflow-y: scroll;
}
.arrow-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.accordion-item.open .arrow-icon {
    transform: rotate(180deg);
}
.accordion-item {
    margin: 10px 0;
    overflow: hidden;
    border-bottom: solid 0px #ddd;
}
.accordion-header, .accordion-subheader {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ddd;
}
.accordion-subheader {
    justify-content: space-between;
}
.accordion-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}
.accordion-title {
    flex-grow: 1;
    font-size: 16px;
    font-weight: bold;
}
.accordion-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}
.accordion-content {
    overflow-y: scroll;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}
.accordion-item.open .accordion-content {
    max-height: 40vh;
}
.accordion-subitem {
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}
.accordion-subcontent {
    overflow: hidden;
    max-height: 0;
    padding: 0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.accordion-subitem.open .accordion-subcontent {
    max-height: 40vh;
}
.activity {
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}
.activity:hover {
    background-color: #d0d0d0;
    cursor: pointer;
}
.activity_title {
    font-size: 16px;
    font-weight: bold;
}
.activity_place {
    font-size: 14px;
    color: #555;
}
.activity_description {
    font-size: 14px;
    margin: 10px 0;
    color: #666;
}
.activity_distance {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.search-bar>input {
    width: 94%;
    padding: 10px;
    border-radius: 10px;
    font-size: 1rem;
    border: none;
    outline: none;
}

/* ==================================== FIN CONTAINER RIGHT ==================================== */
/* Liste des types d'activites */
.parentTypeActivite{
    background-color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.listTypeActivities {
    background-color: #ffffff;
    display: flex;
}
#nbActivites {
    background-color: #ffebeb;
    margin-top: 6px;
    padding: 5px;
    border-radius: 6px;
}
.activity-column {
    display: inline-block;
    vertical-align: top;
    width: 48%;
    margin-right: 4%;
}

.activity-column:last-child {
    margin-right: 0;
}

.activity-checkbox {
    margin-bottom: 10px;
}

#equipment-button {
    margin-top: 20px;
    padding: 10px 15px;
    font-size: 14px;
    background-color: white;
    color: black;
    border: solid black 1px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    width: fit-content;
    justify-content: space-between;
    align-items: center;
    & img{
        width: 20px;
        height: 20px;
        margin-left: 10px;
    }
}

#equipment-button:hover {
    border: solid black 2px;
    font-weight: bold;
}

/* Modal */
#modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}
#modal> div:nth-child(2){
    display: flex;
    justify-content: space-between;
    & > div{
        width: 25px;
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid #ccc;
        border-radius: 7px;
        font-size: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
        &:hover{
            cursor: pointer;
            background-color: #f5f5f5;
        }
        & > img{
            width: 18px;
            height: 18px;
            border-radius: 4px;
        }
    }
}

#modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#modal-close {
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    color: #444;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#search-bar {
    width: 300px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 1rem;
}

#equipment-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
}

#equipment-list div {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}