@font-face {
  font-family: 'Montserrat';
  src: url(../fonts/Montserrat-VariableFont_wght.woff2); 
}

@font-face {
  font-family: 'Montserrat Italic';
  src: url(../fonts/Montserrat-Italic-VariableFont_wght.woff2); 
}


*,*::before,*::after {
    box-sizing: border-box;
    margin: 0;
}

:root{
    background-color: oklch(0.9961 0.0034 325.6);
    font-family: Montserrat, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;

    --sblue: oklch(83.567% 0.07981 255.616);
}

body{
    margin: 0;
}

.container{
    max-width: 80rem; /* 1280 px */
    margin: 0 auto;
    padding: 0 1rem;
}

a{
        color: inherit;
        text-decoration: none;
        transition: opacity 0.3s ease-in-out;
}

header nav > ul{
    display: flex;
    flex-wrap: nowrap;

    background-color: oklch(100% 0.00011 271.152);
    margin: 0;
    overflow: auto;
    white-space: nowrap;

}

nav li{
        list-style: none;
    a{
        display: inline-block;
        padding: 1.25rem 1rem;
        transition: all 120ms ease-in-out;
    }

}

nav:not(.nav-bottom){
    position: fixed;
    z-index: 950;
    top: 0;
    width: 100%;
    box-shadow: 0 0 2rem oklch(0% 0 0 / 0.3);

    overflow: auto;
    white-space: nowrap;
}

header{
    background-image: url(../images/background-header.jpg);
    background-size: cover;
    height: 80vh;
    object-fit: fill ;
}

header:not(nav){
    display: flex;
    flex-direction: column;
    justify-content: center;

    h1, p{
        text-shadow: oklch(0 0 0 / 0.49) 0 0 1rem;
    }
}

h1{
    text-align: center ;
    color: white ;
}

header p{
    text-align: center ;
    color: white ;
    margin: 0 auto;

}

nav:not(.nav-bottom) li a:hover{
    background-color: var(--sblue);
    color: oklch(100% 0.00011 271.152);
    height: 100%;
}

section{
    margin-block-start: 5vh;
}

.flex-card-nb{
    img{
        max-width: 12.5rem;
    }
    padding: 0;
    margin-block-start: 5vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 5vh 1rem;
    
    li{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    li img{
        order: -1;
        border-radius: 0.75rem;
    }

}

.flex-card-large:not(.favorite-form){
    padding: 0;
    margin-block-start: 5vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 5vh 1rem;

    h3{
        z-index: 10;
        position: relative;
    }
    a:hover{
        text-decoration: none;
    }


    li{
        max-width: fit-content;
        background-color: oklch(0.979 0 89.876);
        box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.3);
        border-radius: 1rem;
        padding: 0 0 1.1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 0 0 40%;
        gap: 1rem;
        position: relative;

        transition: transform  150ms ease-in-out;
    }

    img:not(.favorite-form img){
        order: -1;
        z-index: 2;
        border-radius: 1rem 1rem 0 0;
        width: 18.75rem;
        max-height: 10rem;
        min-height: 10rem;
        object-fit: cover;
    }


    li:hover{
        transform: scale(1.05);
    }

    .overlay-link{
        position: absolute;
        z-index: 2;
        margin: 0 auto;
        text-indent: -9999px;
        width: 100%;
        height: 100%;

    }

    a{
        text-decoration: underline;
        display: block ;
    }

}


ul.info-ul{
    margin-block-start: 1rem;

    li{
        &:not(:last-child){
            margin-block-end: 1rem;
        }

        max-width: 50rem;

        a{
            text-decoration: underline;
            font-weight: bold;
        }
    }
}


.p{
    max-width: 50rem;
}

footer{
    border-top: oklch(0 0 0) 1px solid;
    padding: 7vh 2vw;
    margin-block-start: 12vh;

    a{
        text-decoration: underline;
        font-weight: bold;
    }

    p:not(:last-child){
        margin-block-end: 2rem;
    }

}

#cookie-banner {
    position: fixed;
        align-content: center;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: oklch(0 0 0 / 0.44);
    text-align: center;
    z-index: 1000;

    div{
        filter: blur(4rem);
    }

    p{
        display: block;
        color: white;
        padding: 1rem;
        margin: 2rem 0;
        background-color: oklch(0% 0 0);


        
    }

    button{
        border: 2px solid oklch(0 0 0);
        border-radius: 8px;
        width: 6rem;
        height: 3rem;
    }
}

#map {
    & a{
        text-decoration: underline;
    }
    margin: 2rem 0 auto;
    width: 100%;
    height: 50rem;
}

button#route-btn{
    margin-block-start: 0.5rem;
    padding: 0.8rem;
}

.mapbox-map {
    margin-block-start: 5rem;
    border: 2px oklch(0% 0 0);
}

.closed-bubble{
    color: oklch(56.569% 0.18416 25.282);
}
.open-bubble{
    color: oklch(0.525 0.139 151.828);
}

.parking-list{
    margin-block-start: 1rem;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;

    h3{
        text-decoration: underline;
    }

    li{
        padding-left: 1rem;
    }
}

.parking-card{
    border-left: 1rem solid;
}

.parking-bl-default{
    border-color: oklch(0.683 0 89.876);
}

.parking-bl-green{
    border-color: oklch(0.525 0.139 151.828);
}

.parking-bl-orange{
    border-color: oklch(0.744 0.16 59.761);
}

.parking-bl-red{
    border-color: oklch(56.569% 0.18416 25.282);
}

.visually-hidden{
    width: 0;
    height: 0;
    overflow: hidden;
    position: absolute;
}

.login-container {
    width: 100% ;
    max-width: 20rem ;
    padding: 1rem ;
    display: flex;
    margin: 0 auto;
    align-items: center;
    height: 100vh;
}

.login-card {
    background-color: oklch(0.478 0.177 266.767);
    color: oklch(1 0 89.876);
    padding: 2rem ;
    border-radius: 1rem ;
    box-shadow: 0 1rem 1rem oklch(0 0 0 / 0.25);

    & h2 {
        text-align: center ;
        margin-block-end: 1.5rem ;
    }
}

label {
    display: block ;
    margin-block-end: 1rem ;
    font-size: 0.9rem ;
}

input {
    width: 100% ;
    padding: 0.6rem ;
    margin-block-start: 0.3rem ;
    border-radius: 1rem ;
    border: none ;
}

input:focus {
    outline: 0.125rem solid oklch(0.494 0.178 266.249);
}

.btn-primary {
    padding: 0.7rem ;
    margin-block-start: 1rem ;
    background-color: oklch(0.283 0.108 266.433);
    border: none ;
    color: oklch(1 0 89.876);
    border-radius: 0.6rem;
    cursor: pointer;
    width: 100%;

    &:hover {
        background-color: oklch(0.331 0.132 265.43);
    }

    &:disabled{
        background-color: oklch(0.538 0 89.876);
    }
}

.logout{
    margin-block-start: 1rem;
    button{
        background-color: oklch(0.408 0.147 26.751);

        &:hover {
            background-color: oklch(0.357 0.126 26.429);
        }
    }
}

.link-secondary {
    display: block ;
    text-align: center ;
    margin-block-start: 1rem ;
    color: #fff ;
    text-decoration: underline ;

    &:hover {
        color: oklch(0.843 0.078 275.799);
        text-decoration: none;
    }
}

.error-message {
    color: oklch(0.406 0.167 29.234);
    padding: 0.75rem ;
    border-radius: 1rem ;
    margin-block-end: 1rem ;
    text-align: center ;
}

.contact-form {
    max-width: 40rem;
    margin: 10vh auto;
    background-color: oklch(0.979 0 89.876);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 2rem oklch(0 0 0 / 0.15);
}

.contact-form h2 {
    text-align: center;
    margin-block-end: 2rem;
}

.form-group {
    margin-block-end: 1.5rem;
}

.form-group label {
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border-radius: 0.75rem;
    border: 1px solid oklch(0.8 0 0);
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-block-start: 0.5rem;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}


.message {
    padding: 1rem;
    border-radius: 1rem;
    margin-block-end: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.message.success {
    background-color: oklch(75.108% 0.20932 139.525 / 0.15);
    color: oklch(75.108% 0.20932 139.525);
}

.message.error {
    background-color: oklch(56.569% 0.18416 25.282 / 0.15);
    color: oklch(56.569% 0.18416 25.282);
}

.checkbox-container{
    position: relative;
    z-index: 100;

    label, input[type="checkbox"]{
        z-index: 100;
    }
}

.checkbox-container input {
    display: none;
}


.flex-card-large li form label{
    position: absolute;
    top: 1rem;
    right: 2rem;

    & img{
        object-fit: initial;
        min-height: initial;
        max-height: initial;
        height: 2.2rem;
        width: 2.2rem;
        background-color: rgba(0, 0, 0, 0.4);
        padding: 0.2rem 0.2rem 0;
        border-radius: 100rem;
    }
    width: 1rem;
    height: 1rem;
}

.checkbox-container, .checkbox-container img{
    transition: scale 120ms ease-in-out;
}

.checkbox-container:hover, .checkbox-container img{
    scale: 1.12;
    cursor: pointer;
}

@media screen and (max-width: 992px) {
    .flex-card-nb{
        justify-content: center;
        align-items: flex-start;
        div{
            margin-block-start: -0.5rem;
        }
        li{
            flex-direction: column;
        }
    }
}

