.carte-liste-agences{
  display: grid;
  grid-template-columns: 1fr;
  
  .carte{
    width: 100%;
    height: 100vw;
    max-height: 500px;
    .views-element-container{
      width: 100%;
      height: 100%;
      .view{
        width: 100%;
        height: 100%;
        .view-content{
          width: 100%;
          height: 100%;
        }
      }
    }
  }
  .liste{
    background-color: var(--color-primary--4);
    padding-top: 32px;
    padding-bottom: 32px;
    padding-left: var(--px160-percent);
    padding-right: var(--px160-percent);

    .views-element-container{
      height: 100%;
      scrollbar-color: var(--color-primary--1) var(--color-primary--3);
    }
  }
}



@media all and (min-width: 900px) {
  .carte-liste-agences{
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 880px;
    .carte{
      width: 100%;
      height: 100%;
      max-height: none;
    }
    .liste{
      background-color: var(--color-primary--4);
      padding: 64px;
      padding-right: var(--px160-percent);
      overflow: hidden;

      .views-element-container{
        overflow-y: scroll;
        scrollbar-width: thin;
        padding-right: 32px;
      }
    }
  }
}





details.view-region{
  border: none;
  summary{
    background-color: var(--color-primary--3);
    padding: 16px 32px;
    font-family: var(--font-title);
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%; /* 30.8px */

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;

    &::marker{
      content: '';
      display: none;
    }
    &::after{
      transition: all 0.2s;
      content:url('../../images/faq/chevron_down.svg');
    }
  }
  .region-text{
    padding: 16px 96px 16px 32px;
  }
  &[open]{
    summary{
      &::after{
        transform: rotateZ(180deg);
      }
    }
  }
}



/* lien vers page agence */
.agence{
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-primary--3);
  padding: 8px 32px;
  transition: all 0.1s;

  .wrapper{
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
  &::after{
    flex-shrink: 0;
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background-color: var(--color-primary--1);
    background-image: url("../../images/actualite/arrow-white.svg");
    background-repeat: no-repeat;
    background-size: 15px 15px;
    background-position: center;
  }
  .ville{
    font-weight: 700;
  }
  .ville, .departement{
    margin:0;
  }
  &:hover{
    background-color: var(--color-primary--3);
  }
}


/* ajoute les parentaises */
.departement{
  &::before{
    content: "(";
  }
  &::after{
    content: ")";
  }
}



/* 
MARK:marker cluster
*/

.marker-cluster-small{
  background-color: rgba(252, 97, 0, 0.6);
  div{
    background-color: rgba(252, 97, 0, 0.8);

    span{
      font-size: 16px;
      font-family: var(--font-text);
      /* color: var(--color-white); */
      color: var(--color-primary--1);
    }
  }
}


/* 
MARK: POPUP
*/
.leaflet-popup{
  .leaflet-popup-close-button{
    margin-top: 8px;
    margin-right: 8px;
    width: 18px !important;
    height: 18px !important;

    &::before{
      content: '';
      position: relative;
      display: block;
      background-image: url(../../images/carbon_close-outline.svg);
      width: 18px;
      height: 18px;
      background-repeat: no-repeat;
      background-size: cover;
    }
    span{
      display: none;
    }
  }
  .leaflet-popup-content-wrapper{
    padding: 26px 8px 16px 16px;
    border-radius: 0;

    .leaflet-popup-content{
      margin:0;
    }
  }
}

.agency--popup{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;

  p {
    margin:0;
    padding: 0;
    font-size: 16px;
    font-family: Roboto;
    font-weight: 400;
    line-height: 150%; /* 24px */
  }

  .title{
    font-style: normal;
    font-weight: 700;
  }
  .content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 8px;
  }

  .wrapper{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;

    .phone{
      position:relative;
      font-weight: 700;
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 4px;

      &::before{
        content: '';
        position: relative;
        width: 18px;
        height: 18px;
        background-repeat: no-repeat;
        background-size: contain;
        background-image: url('../../images/ic_baseline-phone-orange.svg');
        background-position: center;
      }
    }
    .hours{
      position:relative;
      display: flex;
      flex-direction: row;
      gap: 4px;

      &::before{
        content: '';
        position: relative;
        width: 18px;
        height: 18px;
        background-repeat: no-repeat;
        background-size: contain;
        background-image: url('../../images/clock-hour-orange.svg');
        background-position: center;
        margin-top: 2px;
      }
    }
  }
  .cta{
      padding: 12px;
      color: var(--color-white);
      text-align: center;
      font-family: Roboto;
      font-size: 16px;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
    }
}








