/* Carte Intéractive */
html, body {
    overflow: auto !important;
}

.ci-container {
    height: 100vh;
}

.ci-container-inner, .ci-map-container {
    height: 100%;
}

.ci-container-inner {
    position: relative;
}

.ci-map {
    height: 100%;
}

.ci-menu-container {
    position: absolute;
    right: 10px;
    top: 50px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.ci-site-icon {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 1000;
    height: 50px;
    width: 50px;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ci-site-icon img {
    max-width: 100%;
}

.ci-menu, .ci-menu-search {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.ci-reglages-btn {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ci-menu i, .ci-reglages-btn i, .ci-menu-search i {
    color: #fff;
    font-size: 16px;
    pointer-events: none;
}

.ci-sidebar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    border-radius: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 5px rgb(0 0 0 / 20%);
    z-index: 10000;
    height: 80vh;
    overflow-y: scroll;
}
.ci-sidebar::-webkit-scrollbar {
    display: none;
}
@media screen and (max-width: 768px) {
    .ci-sidebar {
        display: block;
    }
    .ci-sidebar-header {
        display: flex;
    }
    .ci-menu-search {
        display: none;
    }
}

.ci-sidebar.is-visible {
    display: block;
}

.ci-sidebar-header {
    align-items: center;
    height: 60px;
    color: #fff;
    background-color: var(--color-primary);
    /* display: none; */
}

.ci-sidebar-header .btn {
    padding: 1rem;
}

.ci-sidebar-header .btn i {
    font-size: 1.1rem;
    top: 1.5px;
    position: relative;
    margin-right: 0.3rem;
}

.ci-sidebar-header .btn span {
    font-weight: 500;
}

.ci-sidebar-header input {
    border: 0;
    margin: 0 0.5rem;
    padding: 0.8rem 3rem;
    background: rgba(255, 255, 255, 0.3) no-repeat 13px center;
    background-image: url('https://ice.artifica.fr/www/views/map/img/search.svg');
    background-size: auto 1.4rem;
    font-size: 1.1rem;
    color: #fff;
    width: 100%;
    height: 100%;
    background-color: unset;
}

.ci-sidebar-header input::placeholder {
    color: #fff;
}

.ci-sidebar-header input:focus {
    background-image: url('https://ice.artifica.fr/www/views/map/img/search-focus.svg');
    color: var(--color-form);
    transition: color 5000s ease-in-out 0s;
}

.ci-sidebar-header input:focus::placeholder {
    color: #333 !important;
}

.ci-sidebar-header input:-webkit-autofill,
.ci-sidebar-header input:-webkit-autofill:hover,
.ci-sidebar-header input:-webkit-autofill:focus {
    background-color: #fff !important;
    -webkit-text-fill-color: #333 !important;
    background-image: url('https://ice.artifica.fr/www/views/map/img/search-focus.svg') !important;
    color: var(--color-form);
    transition: background-color 5000s ease-in-out 0s, color .3s;
    padding: 0.8rem 1rem;
}
/************ LOGO **************/
.ci-sidebar-top {
    padding: 10px;
    display: none;
}
.ci-sidebar-top img{
    height: 100px!important;
}
.ci-sidebar-header form {
    width: 100%;
}

.ci-item-address {
    display: flex;
    align-items: center;
}

.ci-item-address address {
    margin-bottom: 0;
}

.ci-item-phone a {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
}

.ci-item-coordonnees {
    padding: 10px 0;
}

.ci-panel-switch {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px 0 8px 0;
    text-decoration: none;
    color: var(--color-primary);
}

.ci-panel-switch:hover {
    background-color: #d5e3ec;
    text-decoration: none;
}




/* Accordions */
.ci-sidebar-content.is-hidden {
    display: none;
}
.ci-sidebar-content::-webkit-scrollbar {
    display: none;
}
.accordion-button{
    height: 5vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: grey;
    font-weight: bold;
}
.accordion-button.cats{
    color: black;
}
.accordion-button, .accordion-button:hover {
    z-index: 9999 !important;
}

.accordion-header {
    padding-bottom: 0;
}

.accordion-body {
    padding: 0 !important;
}

.accordion-body .item:not(:last-child) {
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .13);
}

.accordion-body .item {
    align-items: start;
    padding: 1rem 1.25rem;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.accordion-body .item .title {
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1;
}

.badge {
    margin-right: 10px;
    font-weight: 600 !important;
}

.heading {
    background: #fff;
    border-bottom: 1px solid #eee;
    height: 60px;
    line-height: 60px;
    padding: 0 10px;
}
.ci-point{
    display: flex;
    flex-direction: row;
}
.ci-point .ci-points-text{
    width: 80%;
}
.ci-point .ci-points-img{
    width: 20%;
}
/* Marker tweaks */

.mapboxgl-popup-close-button {
    display: none;
}

.mapboxgl-popup-content {
    padding: 0 !important;
    width: 100%;
}

.mapboxgl-popup-content-wrapper {
    padding: 1%;
}

.mapboxgl-popup-content h3 {
    margin: 0;
    display: block;
    padding: 10px;
    border-radius: 3px 3px 0 0;
    font-weight: 700;
    font-size: 1em;
    color: #fff;
}

.mapboxgl-popup-content h4 {
    margin: 0;
    display: block;
    padding: 10px;
    font-weight: 400;
    font-size: 16px;
}

.mapboxgl-popup-content div {
    padding: 10px;
}

.mapboxgl-container .leaflet-marker-icon {
    cursor: pointer;
}

.mapboxgl-popup-anchor-top > .mapboxgl-popup-tip {
    border-bottom-color: #91c949;
}


.marker {
    background-size: 25px 25px;
    background-position: center;
    background-repeat: no-repeat;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    top: 25px !important;
}

.marker-ci-associations {
    /*background-image: url(../img/associations.svg);*/
    background-color: var(--color-primary);
}

.marker-ci-commerces {
    /*background-image: url(../img/commerces.svg);*/
    background-color: var(--color-primary);
}

.marker-ci-sante {
    /*background-image: url(../img/sante.svg);*/
    background-color: var(--color-primary);
}

.marker-ci-point-interet {
    /*background-image: url(../img/poi.svg);*/
    background-color: var(--color-primary);
}

.sidebar-g-content {
    overflow-y: hidden;
    height: 145px;
}
.sidebar-g-content::-webkit-scrollbar{
    display: none;
}

@media screen and (min-width: 768px) {
    .ci-sidebar .btt {
        display: none;
    }

    .ci-site-icon {
        display: none;
    }

    /* Menu */
    .ci-menu, .ci-menu-search {
        display: none;
    }

    .ci-sidebar {
        top: 0;
        left: 20px;
        bottom: inherit;
        width: 360px;
        display: block;
        padding-bottom: 0;
    }

    .ci-sidebar-top {
        display: flex;
        justify-content: center;
    }

    .ci-panel-switch {
        display: flex;
    }

    .ci-sidebar-header {
        display: flex;
    }

    .sidebar-g-content {
        overflow-y: scroll;
        height: 650px;
    }

    .ci-sidebar-content {
        overflow-y: scroll;
    }
}

.ci-points .ci-point:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.ci-points-img img {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.ci-point-une-img img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.ci-point-une-text span {
    text-align: center;
    display: block;
    line-height: 1;
}

.ci-sidebar .btt {
    text-align: center;
    font-size: 22px;
    transition: 0.8s;
    cursor: pointer;
}

.btt:hover {
    transform: translateY(-5px);
    transition: 0.8s;
}

.detail-header {
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .13);
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.8rem;
    font-size: 1.5rem;
}

.detail-header img {
    height: 60px;
}

.details-item {
    display: flex;
    justify-content: space-around;
    height: 50px;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .13);
}

.details-item a {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #313131;

}

.details-item a > i {
    font-size: 1.2rem;
}

.detail-address, .detail-web, .detail-fax {
    display: flex;
    align-items: start;
    padding: 16px 10px;
    line-height: 1.5;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .13);
    word-break: break-word;
}

.detail-address i, .detail-web i, .detail-fax i {
    position: relative;
    top: 1px;
    min-width: 45px;
    color: #999;
    font-size: 1.5rem;
}

.detail-web a, .detail-fax a {
    text-decoration: none;
    color: var(--color-primary);
}
.detail-web a:hover, .detail-fax a:hover{
    color: var(--color-secondary);
}

.detail-address address {
    line-height: 1.70;
    font-size: 1rem;
    margin-bottom: 0;
}

.detail-desc {
    padding: 16px 10px;
}

.detail-desc p {
    font-size: 1rem !important;
}

.detail-img img {
    width: 100%;
}

.active-search {
    display: flex;
    flex-flow: column;
}

.active-search .item {
    align-items: start;
    padding: 1rem 1.25rem;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.active-search .item:not(:last-child) {
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .13);
}

.ci-points-text a {
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1;
}

.ci-point img {
    width: 50px;
}

.ci-popup {
    min-width: 200px;
}

.popup-picto {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly
}

.popup-picto .fa,
.popup-picto .fas,
.popup-picto .fa-solid {
    font-size: 25px;
    color: var(--color-primary);
    transition: 0.3s ease-in;
}
.popup-picto .fa:hover,
.popup-picto .fas:hover,
.popup-picto .fa-solid:hover {
    color: var(--color-secondary);
}



/************** BUTTON RETURN ************/
.btn-return{
    height: 100%;
    border-radius: 0 10% 10% 0;
}
.btn-return:hover{
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.5s;
}