:root{
  --bg-color: #ffffff;
  --color: #000000;
  --highlight: #0000ff;
  --panel-height: 200px;
  --default-font-family: "Authentic Sans", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body,
html {
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  font-family: var(--default-font-family);
  line-height: 1.3em;
  font-weight: 600;
  background-color: var(--bg-color);
  overflow-x: hidden;
  color: var(--color);
}
body{
  min-height: -webkit-fill-available;
}
* {
  box-sizing: border-box;
}
h1,
h2,
h3 {
  font-weight: 600;
  font-size: 1em;
  line-height: 1.3em;
  padding: 0;
  margin: 0;
  margin-bottom: 0.2em;
  margin-top: 0.2em;
}
h1{
  font-size: 2em;
}
h2{
  font-size: 1.5em;
}
a{
  color: var(--color);
  text-decoration: none;
  border-bottom: 1px solid var(--color);
}
a:hover{
  border-bottom: 1px dotted var(--color);
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="submit"],
button
{
  width: 100%;
  line-height: 1em;
  font-weight: 600;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid var(--color);
  border-radius: 100px; 
}
dl {
  display: grid;
  grid-template-columns: max-content auto;
}
dt {
  grid-column-start: 1;
  font-weight: 900;
}

dd {
  grid-column-start: 2;
}

table {
  width: 100%;
  border-collapse: collapse;
}
thead{
  position: sticky;
}
tr{
  padding: 0 40px;
  border-bottom: 1px solid var(--color);
}
td, th{
  text-align: left;
  padding: 10px 20px;
}
tr:hover{
  background-color: rgba(0,0,0,.05);
}

#listView, #overlayView{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  padding: 40px;
  background-color: rgba(0,0,0,.5);
}
#listViewButton{
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  padding: 10px 20px;
  background-color: var(--highlight-color);
  color: var(--color);
  border-radius: 100px;
  font-size: 1.2em;
  cursor: pointer;
}
#listViewButton:hover{
  background-color: var(--color);
  color: var(--bg-color);
}
#listViewBody, #overlayViewBody{
  background-color: var(--bg-color);
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,.5);
  background-repeat: no-repeat;
  background-size: 400px;
  padding-bottom: 400px;

}
#overlayView strong {
  font-family: var(--default-font-family)!important;
  line-height: 1.3em!important;
  font-weight: 600!important;
  margin-left:4.4em!important;
}

#overlayView h2 {
  font-family: var(--default-font-family)!important;
  font-size: 1.1em!important;
  padding-bottom:10px!important;
  text-decoration: underline !important;
  text-decoration-color: black !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 1em !important;
  display:inline-block!important;
  margin-left:4em!important;
  padding-top: .8em!important;
}

#overlayView em {
  opacity:.3!important;
  font-size:.8em!important;
}

#listViewClose, #overlayViewClose{
  position: fixed;
  top: 10px;
  right: 10px;
}
#overlayButton{
  position: fixed;
  bottom: 20px;
  right: 180px;
  z-index: 9999;
  padding: 10px 20px;
  background-color: var(--highlight-color);
  color: var(--bg-color);
  border-radius: 100px;
  font-size: 1.2em;
  cursor: pointer;
}
#overlayViewBody{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}
#overlayViewMenu{
  position: sticky;
  top: 0;
  width: 480px;
  padding: 20px;
  max-width: 480px;
  flex-grow: 0;
}
.overlayViewMenuItem {
  position: relative!important;
  display: block!important;
  padding-bottom: 1em!important;
  padding-top: 1em!important;
}

.overlayViewMenuItem.active {
  padding-left:4em!important;
}

.overlayViewMenuItem::after {
  content: ""!important;
  position: absolute!important;
  left: 0!important;
  bottom: 0!important;
  height: 2px!important;
  width: 100%!important;
  background: black!important;
  transition: background-color .2s ease!important;
}

.overlayViewMenuItem:hover::after {
  background: #ab833b;
}

.overlayViewMenuItem.active::after {
  background: black;
}

.overlayViewMenuItem:hover {
  color:#ab833b !important;
  font-weight: 600 !important;
}
#overlayViewMenuMobile{
  display: none;
}
#overlayViewMenuMobileSelect{
  width: 100%;
  max-width: 100%;
  padding: 10px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg-color);
  color: var(--color);
  border: 1px solid var(--color);
  border-radius: 100px;
  font-family: var(--default-font-family);
  font-weight: 600;
}

#overlayViewContent{
  flex-grow: 1;
  padding: 20px;
  max-width: 800px;
}
#overlayViewContent img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
#overlayViewContent::after{
  content: "";
  display: block;
  height: 200px;
}


.loader{
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
    
  padding: 25px;
  
  background-color: var(--bg-color);
  color: var(--color);
  
  font-size: 32px;
  line-height: 44px;
  
  transition: opacity 1s, transform 1s;
  transition-delay: 1s;

}
  .loaderFadeOut{
    opacity: 0;
    transform: translateY(-20px);
  }
.center{
  text-align: center;
}
.title{
  font-size: 6vw;
  text-align: center;
  letter-spacing: -.04em;
}
.favButton{
  float: right;
  font-size: .8em;
}
#map {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100vw - 480px);
  height: 100vh;
  transition: width .5s, height .5s;
}

  #filter {
    position: absolute;
    left: 15px;
    top: 15px;
    z-index: 99;
    width: calc(100vw - 480px - 30px);
  }
  #logo{
    position: fixed;
    bottom: 20px;
    left: 10px;
    height: 180px;
    width: 100%;
    max-width: 480px;
    font-size: 3em;
    z-index: 98;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
  }
    #logo img{
      width: 100%;
      height: auto;
    }

  .marker {
    background-size: cover;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 32px;
    text-align: center;
    transition: font-size .2s;
  }
  .marker > img{
    width: 32px;
    height: auto;
  }

  .marker_active {
    position: relative;
    width: 120px;
    height: 120px;
    font-size: 80px !important;
    z-index: 99;
  }
  .marker_favorite{

  }
  .marker_favorite:after{
    content: "❤️";
    font-size: 12px;
    position: absolute;
    right: 0;
    top: -15px;
  }
  .marker_active.marker_favorite:after{
     font-size: 36px;
     right: 10px;
 }
.marker:hover{
  font-size: 40px;
}

#panel {
  position: absolute;
  right: 0;
  bottom: 0;
  flex-grow: 0;
  width: 100vw;
  max-width: 480px;
  height: 100vh;
  background-color: var(--bg-color);
  transition: height .5s;
  overflow-x: hidden;
  z-index: 999;
}
#topbar{
  position: fixed;
  display: flex;
  flex-direction: row;
  align-content: stretch;
  height: 44px;
  width: 100%;
  border-bottom: 1px solid var(--color);
  z-index: 3;
  overflow: hidden;
  width: 480px;
}

  #topbar > div{
    height: 44px;
    line-height: 44px;
    padding: 0 16px;
    flex: 1 1 0;
    width: 0;
  }
#topmenu{
  display: flex;
  flex-direction: vertical;
  align-items: center;
  justify-content: flex-end;
  height: 100%; 
  gap: 4px;
  
}
  #language-selector select{
    display: none;
      
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    height: 32px;

    background-color: white;
    border: none;
    
    padding: 5px 15px 5px 15px;
    border-radius: 20px;

    color: var(--color);
    border-radius: 100px;
    text-align: center;
  }

  #menu-toggle{
   
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    

    text-align: center;
    /* background-color: white; */
    border: none;
    
    height: 32px;

    color: var(--color);
    
    padding: 5px 15px 5px 15px;
    border-radius: 20px;
  }

.arrow{
  display: flex;
  flex-direction: vertical;
  align-items: center;
  justify-content: flex-start;
  height: 100%; 
  transition: transform .25s;
}
.arrow svg{
  width: 24px;
  height: 24px;
}
.arrow:hover{
  transform: scale(1.1);
}

#title{
  transition: all .5s;
  overflow: visible;
  white-space: nowrap;
}

#list{
  position: absolute;
  left: 0;
  top: 44px;
  transition: left .5s;
  padding: 10px 10px 80px 10px;
  width: 100%;
  background-color: var(--bg-color);

}
#info{
  position: absolute;
  left: 100%;
  top: 44px;
  width: 100%;
  transition: left .5s;
  padding: 16px;
  background-color: var(--bg-color);
  overflow-x: hidden;
  overflow-y: scroll;
}

#menu{
  position: absolute;
  left: 100%;
  top: 44px;
  width: 100%;
  min-height: 100%;
  transition: left .5s;
  padding: 0px;
  background-color: var(--bg-color);
  overflow-x: hidden;
  overflow-y: scroll;
}

#menu > ul, 
#menu > li{
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
}
  #menu li{
    border-bottom: 1px solid var(--color);
    padding: 10px;
  }

  #favorites{
    margin: 0 -10px;
  }

  #menu h2{
    margin-bottom: 0;
  }
  #menu li > div{
    margin-top: 1em;
    display: none;

  }
  #menu li input:checked ~ div{
    display: block;
  }
  #menu input[type="checkbox"]{
    display: none;
  }
  
  #favorites p{
    text-align: center;
    opacity: .5;
  }
  #favorites li{
    border-bottom: none;
    border-top: 1px solid var(--color);
  }
  .remove-favorite{
    float: right;
    width: 32px;
    text-align: center;
  }


.listItem{
  float: left;
  width: 50%;
  min-width: 100px;
  padding: 8px;
}
  .listItemImg{
    width: 100%;
    padding-top: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: none;
    background-color: #00000011;
  }
  .listItem h3{
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
  }
#info > .header{ 
  display: flex;
  flex-direction: column;
  justify-items: space-between;
}

#info .header > img {
  width: 100%;
  height: auto;
  transition: all .5s;
}
#info .header > img ~ span {
  text-align: center;
  line-height: 1.8em;
}



#info .header > h1 {
  transition: all .5s;
}
.tags{
  opacity: .5;
}
.tags > span[lang]{
  border-radius: 100px;
  padding: 5px 12px 5px 12px;
  margin: 0 .2em .2em 0;
}
.tag > img{
  width: auto;
  height: 24px;
  margin-right: 8px;
}

.button{
  display: block;
  line-height: 48px;
  padding: 0 16px;
  height: 48px;
  border-radius: 24px;
  margin: 0 1em 1em 0;
  background-color: transparent;
  color: var(--color);
  text-decoration: none;
  border: 1px solid var(--color);
  text-align: center;
}
.button:hover{
  background-color: var(--color);
  color: var(--bg-color);
}

.tag {
  font-family: var(--default-font-family);
  font-weight: 600;
  text-transform: capitalize;
  font-size: 1.2em !important;
  letter-spacing: 0px;
  display: inline-flex;
  padding: 5px 15px 5px 15px;
  border-radius: 100px;
  line-height: 1.5em;
  margin: 0 .3em .3em 0;
  background-color: white;
  color: var(--color);
  opacity: .4;
  transition: all .25s;
}
.tag-desktop{
  border: none;
}
.tag-desktop:before{
  display: inline-block;
  margin-right: 12px;
}
.tagReset{
  background-color: var(--bg-color);
/*   outline: 1px solid var(--color); */
  outline-offset: -1px;
  color: var(--color);
  opacity: 0.8;
}
#filter .tag:hover{
  transform: scale(1.1);
}
#info .tag{
  border: 1px solid var(--color);
}

.tagLbl input[type=checkbox]{
  display: none;
}
.tagLbl input:checked ~ .tag {
  background-color: var(--highlight-color);
  color: var(--color);
  opacity: 0.8;
}

#showUserLocation{
  margin: 10px 10px;
  line-height: 40px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--color);
  border-radius: 20px;
}

#toggle{
  display: none;
  visibility: hidden;
}

/* body[data-panel="up"]{}
body[data-panel="down"] {}
body[data-state="list"]{}
body[data-state="info"]{} */

body[data-state="list"] #list{
  left: 0;
}
body[data-state="list"] #info{
  left: 100%;
}
body[data-state="list"] #close{
  visibility: hidden;
  display: none;
}
body[data-state="info"] #list{
  left: -100%;
}
body[data-state="info"] #info{
  left: 0;
}
body[data-state="info"] #close{
  visibility: visible;
  display: flex;
}
body[data-state="menu"] #menu{
  left: 0;
}
body[data-state="menu"] #list{
  left: -100%;
}
body[data-state="menu"] #close{
  visibility: visible;
  display: flex;
}

body[data-state="menu"] #title,
body[data-state="info"] #title{
  margin-left: -240px;
  opacity: 0;
/*   flex-grow: 0; */
/*   width: 0; */
}



body[data-panel="up"] .toggle-up{
  display: none; 
}

body[data-panel="up"] .toggle-down{
  display: flex; 
}

body[data-panel="down"] .toggle-up{
  display: flex; 
}

body[data-panel="down"] .toggle-down{
  display: none;
}

#info[data-image="0"] .header img:nth-of-type(1),
#info[data-image="0"] .header span.photoIndex:nth-of-type(1){
  display: block;
}
#info[data-image="1"] .header img:nth-of-type(2),
#info[data-image="1"] .header span.photoIndex:nth-of-type(2){
  display: block;
}
#info[data-image="2"] .header img:nth-of-type(3),
#info[data-image="2"] .header span.photoIndex:nth-of-type(3){
  display: block;
}
#info[data-image="3"] .header img:nth-of-type(4),
#info[data-image="3"] .header span.photoIndex:nth-of-type(4){
  display: block;
}
#info[data-image="4"] .header img:nth-of-type(5),
#info[data-image="4"] .header span.photoIndex:nth-of-type(5){
  display: block;
}
#info[data-image="5"] .header img:nth-of-type(6),
#info[data-image="5"] .header span.photoIndex:nth-of-type(6){
  display: block;
}
#info[data-image="6"] .header img:nth-of-type(7),
#info[data-image="6"] .header span.photoIndex:nth-of-type(7){
  display: block;
}
#info[data-image="7"] .header img:nth-of-type(8),
#info[data-image="7"] .header span.photoIndex:nth-of-type(8){
  display: block;
}
#info[data-imagecarousel="true"] .header > img,
#info[data-imagecarousel="true"] .header > span.photoIndex{
 display: none;
}




@media only screen and (max-width: 768px) {
  /* For mobile phones: */
  body {
    font-size: 16px;
  }
  #filter {
    position: absolute;
    left: 15px;
    top: 15px;
    z-index: 99;
    width: calc(100vw - 30px);
  }
  .loader{
    font-size: 18px;
  }
  #toggle{
    display: block;
    visibility: visible;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #listViewButton{
    display: none;
  }
  #title{
    color: transparent;
  }
  .tag{
    font-size: 1em !important;
  }
  
  .tag-mobile{
    display: inline-block;
  }
  .tag-desktop{
    display: none;
  }
  #logo{
    left: 10px;
    bottom: 200px;
    width: calc(100% - 20px);
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .listItem{
    width: 33%;
    padding: 8px;
  }
  
  #map{
    position: fixed;
    top: 0;
    left: 0;
    height: calc(100vh - var(--panel-height));
    width: 100vw;
  }

  
  #panel{
    border-top: 1px solid var(--color);
    height: var(--panel-height);
    width: 100vw;
    max-width: none;
  }
  #topbar{
    width: 100vw;
  }
  #topbar > div{
  }
  
  body[data-panel="up"] #map{
    height: var(--panel-height);
  }
  
  body[data-panel="up"] #panel{
    height: calc(100vh - var(--panel-height));
  }
  
  
  body[data-panel="down"] #info .header{
    flex-direction: row;
    justify-content: space-between;
    height: 120px;
    align-items: top;
  }
  body[data-panel="down"] #info .header ~ *{
    display: none;
  }
  
  body[data-panel="down"] #info .header > img{
    width: 120px;
  }  
  body[data-panel="down"] #info .header > img:not(:first-of-type),
  body[data-panel="down"] #info .header > span{
    display: none;
  }
  body[data-panel="down"] #info .header > h1{
    font-size: 1.5em;
  }
  body[data-panel="down"] #info h1:after{
    content: " ";
    clear: both;
    width: 100%;
  }
  
  body[data-state="menu"] #title,
  body[data-state="info"] #title{
    margin-left: -33vw;
/*     flex-grow: 0;
    width: 0; */
  }
  #overlayView{
    padding: 20px;
    height: 100vh;
    box-sizing: border-box;
  }
  #overlayButton{
    right: 20px;
  }
  #overlayViewBody{
    display: flex;
    flex-direction: column;
    max-width: 800px;
  }
  #overlayViewMenuMobile{
    display: block;
    position: sticky;
    top: 0;
    height: auto;
    width: 100%;
    border-bottom: 1px solid var(--color);
    min-width: auto;
    padding: 20px;
    background-color: var(--bg-color);
  }

  #overlayViewMenu{
    display: none;
  }
  #overlayViewContent{
    padding: 20px;
    min-height: 100vh;
    flex-grow: 2;
  }

}
  
