﻿.membersMap{
  display: flex;
  flex-direction: column;
  gap:0;
  border-radius: 1.5rem;
  overflow: hidden;
  border:solid 2px #1D7595;
  background-color: #FFFFFF;
  @media screen and (min-width: 768px) {
    flex-direction: row;
  }
  .membersMap__map, .membersMap__content{
    width: 100%;
    @media screen and (min-width: 768px) {
      width: 50%;
      height: 33.5rem;
    }
  }
  .membersMap__map{
    height: 13rem;
    z-index: 1;
    @media screen and (min-width: 768px) {
      height: auto;
    }
    img{
      border-radius: 0;
    }
    .leaflet-tile-pane {
      /* filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%); */
      /* filter: hue-rotate(180deg) brightness(95%) contrast(90%); */
    }
  }
  .membersMap__content{
    display: flex;
    flex-direction: column;
    gap:0;
    .membersMap__content__header{
      height: 3rem;
      background-color: #1D7595;
      color:#FFFFFF;
      display: flex;
      border-top: solid 2px #1D7595;
      border-bottom: solid 2px #1D7595;
      position: relative;
      @media screen and (min-width: 768px) {
        border-top: none;
      }
      .membersMap__content__header__title{
        display: flex;
        align-items: center;
        gap:.5rem;
        margin:0;
        padding:.5rem 1rem;
        font-weight: 700;
        &:before{
          content:"";
          display: inline-block;
          width: 14px;
          height: 18px;
          background-image: url('../img/pin_white.png');
          background-size: contain;
          background-position: center;
          background-repeat: no-repeat;
        }
      }
      .membersMap__content__header__filterToggle{
        display: flex;
        align-items: center;
        margin-left:auto;
        background-color: #FFFFFF;
        cursor: pointer;
        border:none;
        border-radius: 0;
        width: 3rem;
        background-image: url('../img/settings.svg');
        background-size: 1.25rem auto;
        background-position: center;
        background-repeat: no-repeat;
        transition:.3s;
        &:hover, &:focus-visible{
          background-color: #E0F1F5;
        }
      }
      .membersMap__content__header__filters{
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        translate: 0 -10px;
        transition:.1s;
        position: absolute;
        top:100%;
        left:0;
        width: calc(100% + 2px);
        padding: 1.5rem .75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #E0F1F5;
        border-bottom-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
        border: solid 2px #1D7595;
        z-index: 20;
        &.active{
          translate: 0 0;
          opacity: 1;
          visibility: visible;
          pointer-events: all;
        }
        form{
          display: grid;
          grid-template-columns: 1fr;
          align-items: start;
          justify-content: center;
          gap: .5rem;
          width: 100%;
          max-width: 32rem;
          @media screen and (min-width: 768px) {
            grid-template-columns: repeat(2, minmax(0, 1fr));
          }
          .membersMap__content__header__filters__selectContainer{
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            &:after{
              content:"";
              display: block;
              position: absolute;
              top:45%;
              right:1rem;
              pointer-events: none;
              width: .5rem;
              height: .5rem;
              border-left:solid 2px #1D7595;
              border-bottom:solid 2px #1D7595;
              rotate:-45deg;
              z-index: 10;
              translate:0 -50%;
            }
          }
          select{
            border: solid 2px #1D7595;
            color: #1D7595;
            font-size: 1rem;
            font-weight: 600;
            border-radius: .5rem;
            padding-right: 2rem;
            cursor: pointer;
            width: 100%;
            -webkit-appearance: none;
            appearance: none;
          }
          .membersMap__content__header__filters__reset{
            position: relative;
            width: auto;
            min-height: 2rem;
            display: inline-flex;
            align-items: center;
            justify-self: center;
            border:none;
            background-color: transparent;
            color: #1D7595;
            font-size: .9rem;
            font-weight: 600;
            line-height: 1.2;
            cursor: pointer;
            padding: .25rem .5rem .25rem 1.75rem;
            @media screen and (min-width: 768px) {
              grid-column: 1 / -1;
            }
            &:hover, &:focus-visible{
              text-decoration: underline;
            }
            &:before, &:after{
              content:'';
              width: .75rem;
              height: 2px;
              background-color: #1D7595;
              border-radius: 1px;
              pointer-events: none;
              position: absolute;
              top:50%;
              left:.75rem;
              translate:0 -50%;
            }
            &:before{
              rotate:-45deg;
            }
            &:after{
              rotate:45deg;
            }
          }
        }
      }
    }
    .membersMap__content__container{
      height: calc(100% - 3rem);
      padding:1rem 1rem 0;
      .membersMap__content__container__wrapper{
        height: 100%;
        overflow-y: auto;
        scrollbar-color: #1D7595 #E0F1F5;
        scrollbar-width: auto;
      }
      .membersMap__content__container__list{
        width: 100%;
        padding-bottom: 1rem;
        @media screen and (min-width: 768px) {
          padding-right: .5rem;
        }

        &.filter-active {
          padding-top: 96px;
        }
        /* Firefox only */
        @-moz-document url-prefix() {
          @media screen and (min-width: 768px) {
            padding-right: 1.5rem;
          }
        }

        .membersMap__member{
          display: flex;
          flex-direction: column;
          gap:.25rem;
          cursor: pointer;
          padding-block:1rem;
          padding-inline:1rem 3.25rem;
          position: relative;
          transition: .3s;
          border:solid 1px transparent;
          &.hidden{
            display: none;
          }
          &:hover, &:focus-visible{
            border-color: #1D7595;
            border-radius: .5rem;
          }
          &:nth-child(2n){
            background-color: #E0F1F5;
          }
          &:after{
            content:"";
            position: absolute;
            top:50%;
            right:1rem;
            translate:0 -50%;
            width: 1.25rem;
            aspect-ratio: 1 / 1;
            background-image: url('../img/arrow.svg');
            background-size: contain;
            background-position: center;
            background-repeat: no-repeat;
          }
          &>p{
            margin:0;
          }
          .membersMap__member__name{
            font-weight: 700;
            color:#1D7595;
            font-size: 1rem;
            display: flex;
            gap:.5rem;
            &:before{
              content:"";
              display: inline-block;
              width: 14px;
              height: 18px;
              background-image: url('../img/pin_red.png');
              background-size: contain;
              background-position: center;
              background-repeat: no-repeat;
            }
          }
          .membersMap__member__details{
            color:#505A58;
            font-size: 1rem;
            b{
              font-weight: 700;
            }
          }
        }
      }
    }
  }

}
.membersMap__popup{
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  inset:0;
  z-index: 10000;
  background-color: rgba(0,0,0,.8);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
  &.active{
    visibility: visible;
    opacity: 1;
    pointer-events: all;
  }
  .elementor.membre .close{
    cursor: pointer;
  }
}