:root {
  --color-accent: #d0d9e2;
}
body{
	position:absolute;
	top:0;
	left:0;
	right:0;
	bottom:0;
	border: none;
	margin: 0;
	padding: 0;
	display: flex;
	font-family: arial;
	height: 100%;
	overflow: hidden;
}
h1{
	font-size: 20px;
	background-color: white;
	filter: drop-shadow(0px 0 3px #AAAAAA);
	color: #444466;
	padding: 0.5em;
	position: absolute;
	z-index: 2;
}
#titoloMappa{
	left: 1em;
	border-radius: 10px;
}
#infoboxButton{
	right: 1em;
	border-radius: 50%;
	aspect-ratio: 1/1;	
	height: 20px;
	text-align: center;
	cursor: pointer;
}
.istruzioniMobile{
	display: none;
}
select{
	width: 100%;
    margin-top: 0.2em;
    margin-bottom: 0.5em;
}
#map{
	width:100%;
	height: 100%;
}
.mapboxgl-popup {
	font: 12px/14px 'Helvetica Neue', Arial, Helvetica, sans-serif;
}
.boxText{
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}
.boxText>a>svg{
	border: 2px var(--color-accent) solid;
	border-radius: 5px;
}
.boxText>a>svg:hover{
	background-color: var(--color-accent);
}
[tipo_scuola]{
	display: none;
}
.popupTitle{
	font-weight: bold;
}
#mapSelectorDiv{
	font-weight: bold;
	margin-bottom: 0.2em;
}
#elenco p{
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}
#elenco p:not([id=nessunRisultato]){
	cursor: pointer;
}
#elenco p[id=nessunRisultato]{
	cursor: not-allowed;
}
.mapboxgl-canvas{
	width: 100%;
	height: 100%;
}
#filterDiv > div, #elenco {
    border-top: 2px var(--color-accent) solid;
    padding: 0.2em;
    margin-bottom: 0.2em;
}
#filterDiv > div:first-child {
    border-top: none;
}
#filterDiv, #elenco{
	border: 2px var(--color-accent) solid;
	border-radius: 5px;
}
#elenco{
	background-color: #FFFFEE;
	overflow-y: scroll;
	min-height: 200px;
}
#searchBarContainer{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin-top: 1em;
}
#searchBar{	
	border: 2px var(--color-accent) solid;
	border-radius: 5px;
	margin-right: 5px;
	height: 2em;
}
#infobox{
	z-index: 4;
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	text-align: center;
	background: rgba(0,0,0,0.5);
	height: 100%;
	width: 100%;
	display: none;
}
#infobox.open{
	display: block;
}
.infoboxText{
	position: relative;
	top: 50%;
	transform: translate(0, -50%);
	background-color: white;
	width: 90%;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	border-radius: 10px;
	padding: 1em;
	overflow-y: auto;
}
#infoboxXButton{
	position: absolute;
	font-weight: bold;
	font-style: italic;
	cursor: pointer;
	right: 0;
	margin-right: 1em;
	color: gray;
}
#pannelloLaterale {
	display: flex;
	width: 30%;
	padding-left: 0.5em;
	padding-right: 0.5em;
	padding-bottom: 1em;
	padding-top: 1em;
	border-left: 5px var(--color-accent) solid;
	background-color: white;
	overflow-y: auto;
	overflow-x: hidden;
	flex-direction: column;
}
#resultsHeader{
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin-bottom: 0.5em;
	margin-top: 1em;
}
#apriPannello{
	display: none;
	cursor: pointer;
   -moz-user-select: -moz-none;
   -khtml-user-select: none;
   -webkit-user-select: none;
   -ms-user-select: none;
   user-select: none;
}
svg#Capa_1{
	-moz-user-select: -moz-none;
   -khtml-user-select: none;
   -webkit-user-select: none;
   -ms-user-select: none;
   user-select: none;
	transition: transform 0.5s;
	transform: rotate(180deg);
}
@media screen and (min-width: 601px){
	#pannelloLaterale {
		display: flex;
	}
	.mapboxgl-popup {
		min-width: 400px;
	}
	#elenco{
		height: 100%;
	}
	#searchBar{
		width: 100%;
	  }
}
@media screen and (max-width: 600px){
  .mapboxgl-popup {
	font: 14px/16px 'Helvetica Neue', Arial, Helvetica, sans-serif;
	min-width: 400px;
  }
  .mapboxgl-popup-close-button {
	font: 24px/24px 'Helvetica Neue', Arial, Helvetica, sans-serif;
  }
  #pannelloLaterale {
	position: fixed;
	width: 100%;
	top: 0;
	bottom: 0;
	z-index: 2;
	padding-top: 3em;
	border: none;
	transform: translateY(100%);
	transition: transform 0.5s;
  }
  #pannelloLaterale.open{
	transform: translateY(0);
  }
  #searchBar{
	width: 100%;
  }
  #apriPannello{
	display: block;
	position: fixed;
	background-color: white;
	border-radius: 5px;
	filter: drop-shadow(0px 0 3px #AAAAAA);
	z-index: 3;
	bottom: -5px;
	transform: translate(-50%, 0);
	margin: 0;
	left: 50%;
	padding: 0.5em;
	width: 3em;
	transition: bottom 0.5s, background 0.5s, filter 0.5s;
  }
  #apriPannello.open{
	bottom: calc(100% - 3em);
	background: none;
	filter: none;
  }
  .open>svg#Capa_1{
	transform: rotate(0);
  }
  #elenco{
	height: 100%;
  }
  #mapSelectorDiv,#filterDiv,#elenco,#searchBarContainer, #resultsHeader{
	  margin-right: 1em;
  }
  .istruzioniMobile{
		display: inline;
	}
}