/* General CSS */
@font-face {
  font-family: Paris2024;
  src: url(./fonts/Paris2024.woff2);
}

h1, h2, h3, h4, h5, h6 {
  margin:0;
}

body {
  margin:0px;
  width: 100vw;
  overflow: hidden;
}

.app {
  width: 100vw;
  height: 100vh;
}

.app-header {
  height: 70px;
  background-color: white;
  display: flex;
  justify-content: space-between;
}

#map {
  width:100vw;
  height: calc(100vh - 70px);
  position: fixed;
}

@media screen and (max-width: 420px) {
  #map {
    height: calc(100vh - 95px);
  }
}

/****** ENTRY POPUP *******/

#popup {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: #2b2b2b75;
  z-index: 1000;
}

.popup-main {
  position: fixed;
  width: 400px;
  padding: 20px;
  background: white;
  z-index: 1001;
  top:20%;
  left: 50%;
  transform: translate(-50%, 0);
  border-radius: 20px;
}

.popup-main>h2, .popup-text, .popup-text2, .popup-sub, #reset, #list-toggle, .listing {
  font-family: 'Paris2024';
}

.popup-text {
  font-size: 16px;
  color: #868686;
}

.popup-text2,.popup-sub {
  font-size: 14px;
  color: #868686;
}

.popup-exit {
  font-weight: 400;
  position: absolute;
  top: 15px;
  right:15px;
  font-family: sans-serif;
  color: #868686;
  cursor: pointer;
}


/****** HEADER *******/

.logo>a>img {
  width: 120px;
  height: 70px;
  margin: 0px 80px 0px 20px ;
}
.toggle-buttons {
  display: flex;
  cursor: pointer;
}
.toggler {
  width: 80px;
  text-align: center;
  margin:12px 0 10px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}
.toggler:hover{
  transform: scale(1.05);
}

.toggler>img {
  width: 30px;
}

.toggler-title {
  margin:0;
  font-family: "Paris2024";
  color: #D5D5D5;
}

.highlight {
  color:#00004D;
}


/* Other Buttons */

#geolocation {
  width: 50px;
  height:50px;
  background-color: white;
  border-radius: 50%;
  z-index: 1000;
  position: fixed;
  bottom: 20px;
  right: 20px;
  border:0;
  box-shadow: 0px 0px 5px #d7d7d7;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

#geocenter {
  width: 50px;
  height:50px;
  background-color: white;
  border-radius: 50%;
  z-index: 1000;
  position: fixed;
  bottom: 80px;
  right: 20px;
  border:0;
  box-shadow: 0px 0px 5px #d7d7d7;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

#geolocation:hover, #geocenter:hover, #reset:hover, #list-toggle:hover {
  transform: scale(1.05);
}
#geocenter>img {
  width: 30px;
  position: relative;
  top: 2px;
  left: 0.5px;
}
#geolocation>img {
  width: 24px;
  position: relative;
  top: 3px;
}

/****** POP UP GLOBAL *******/
.leaflet-popup-tip {
  display: none;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip, .popup-main {
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #F1ABC9, #2393CD) border-box;
  border-radius: 16px;
  border: 3px solid transparent;
}

.leaflet-popup-close-button {
  margin:10px 10px 0px 0px;
  color:#b5B5B5!important;
  font-size:22px!important;
  font-weight: 300!important;
}


/****** HOUSES POP UP *******/

.houses-popup {
  display: flex;
  font-family: "Paris2024";
  justify-content: space-between;
}

.houses-flag {
  width : 15%;
}
.houses-flag>img {
  width:90%;
  height: auto;
  margin-right:10px;
}

.houses-infos {
  display: flex;
  flex-direction: column;
  width:80%;
}
.separator {
  height: 1.5px;
  width: 100%;
  background-color: #dfdfdf;
}
.houses-practical {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.houses-title {
  margin: 0px 0px 5px;
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
  color: #272121;
}

.houses-lieu, .houses-dates, .houses-tarif, .houses-horaires {
  width:45%;
}
.houses-lien {
  width: 90%;
  z-index: 100;
}

.houses-lieu>h4, .houses-dates>h4, .houses-tarif>h4, .houses-horaires>h4 {
  margin: 5px 0px 0px;
  font-size: 16px;
  font-weight: 500;
  color: #bababa;
}

.houses-lieu>p, .houses-dates>p, .houses-tarif>p, .houses-horaires>p {
  margin: 0px;
  font-size: 18px;
  font-weight: 400;
  color: #272121;
  line-height: 1;
}

.houses-lien {
  padding: 10px 0px 0px;
}
.houses-lien>a {
  color:#6EDDD7!important;
  font-size:12px;
}
.citymapper {
  display: flex;
  justify-content: end;
  margin-top: -20px;
}
.citymapper-icon {
  width: 25px;
}

#reset, #list-toggle {
  z-index: 1;
  background: white;
  padding: 6px 12px;
  border-radius: 30px;
  box-shadow: 0px 0px 5px #d7d7d7;
  cursor: pointer;
  border:0;
  transition: 0.2s ease-in-out;
  color: #00004D;
}
#reset {
  position: absolute;
  right: 90px;
  top: 80px;
}
#list-toggle {
  position: absolute;
  right: 10px;
  top: 80px;
}


/****** LISTING POPUP *******/
.listing {
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #F1ABC9, #2393CD) border-box;
    border-radius: 16px;
    border: 3px solid transparent;
    padding:10px;
    width: 380px;
    height:480px;
    position: absolute;
    right: -400px;
    top:120px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease-in-out;
  }

  .listing.active {
    right: 10px;
  }

  .listing>h2 {
    margin-bottom:15px;
  }
.listing-pills {
  display: flex;
  flex-wrap: wrap;
}
.list-pill {
  display: flex;
  border-radius: 20em;
  height: 20px;
  padding: 4px 8px;
  width: auto;
  margin: 0 5px 5px 0;
  color:#D5D5D5;
  border:1.5px solid #D5D5D5;
  cursor: pointer;
}
.list-pill.highlight {
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #F1ABC9, #2393CD) border-box;
  border: 1.5px solid transparent;
  color:#00004D;
}
.list-pill>img {
  width: 20px;
}
.list-title {
  margin:0 10px;
}
#listing-elements {
  margin-top:15px;
  overflow:auto;
  padding-bottom:80px;
}

#listing-elements::-webkit-scrollbar  {
  width:5px;
}
#listing-elements::-webkit-scrollbar-thumb {
  background-color: #D5D5D5;
}
.list-element {
  display: flex;
  justify-content: left;
  flex-direction: row;
  margin-bottom: 5px;
  align-items: center;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  border-radius:5px;
}
.list-element:hover {
  background-color: #f5f5f5;
}
.list-element>img {
  height:30px;
    margin: 0 10px 0 5px;
}
.list-infos {
  width:80%;
}
.list-infos>h3 {
  font-size: 18px;
  font-weight: 600;
      color: #00004e;
}
.list-infos>p {
  margin: 0;
  font-size: 14px;
  color: #909090;
}

.locate {
  width: 13px;
}

.list-close {
  position: absolute;
  right: 15px;
  top: 15px;
  cursor: pointer;
}


/*  */

/****** MEDIA QUERIES *******/
@media screen and (min-width: 420px) {
  .leaflet-popup-content {
    margin:10px;
    width: 400px!important;
  }
}
@media screen and (max-width: 780px) {
  .leaflet-popup-content-wrapper {
    width: 95vw!important;
  }
  .logo {
    position: fixed;
    top: 10px;
    width: 100px;
    right: 10px;
    z-index: 1000;
    background: white;
    border-radius: 5px;
  }
  .logo>a>img {
    width: 80px;
    height: 45px;
    margin-left: 10px;
  }
  .toggler{
    width:14vw;
    height: 35px;
  }
  .toggler>img {
    width: 7.5vw;
  }
  .toggler-title {
    font-size:10px;
  }
  .app-header {
    flex-wrap: wrap;
    height: 95px;
    position: fixed;
    bottom: 0px;
    z-index: 1000;
    width: 100vw;
  }
  #geolocation {
    bottom:120px;
  }
  #geocenter {
      bottom: 120px;
      right: 70px;
  }
  #geocenter, #geolocation {
    width: 40px;
    height: 40px;
  }
 #geocenter>img {
   width: 30px;
   left:-5px;
 }
 #geolocation>img {
    width: 20px;
    top: 2px;
  }
  #reset {
    position: absolute;
    bottom: 120px!important;
    left: 10px!important;
    top: inherit;
    right:inherit;
    font-size: 0.8em;
  }
  #list-toggle {
    position: absolute;
    bottom: 120px!important;
    left: 160px!important;
    top: inherit;
    right:inherit;
    font-size: 0.8em;
  }
  .listing {
    width: 100vw;
    height: 100vh;
    position: absolute;
    right: -105vh;
    top: 0px;
    z-index: 1001;
    transition: 0.2s ease-in-out;
    border:inherit;
    border-radius:inherit;
    padding: 0px;
  }
  .listing.active {
    right: 0px;
  }
  .listing>h2, #listing-elements, .listing-pills {
    padding-left: 15px;
  }
  .listing>h2 {
    margin-top: 20px;
  }
  .popup-main {
    width: 80vw;
}
}
