/* override dei css di leaflet */ 
.leaflet-popup-content-wrapper {
  max-height: 400px;
  height: auto;
  overflow-y: auto;
  border-radius: 4px !important; /* questi due valori devono essere uguali */
  clip-path: inset(0 round 4px);
  color: #e8f0fe;
  background: #16213e;
  border: 1px solid #95B4CA !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}


.leaflet-popup-content {
  white-space: nowrap;
  width: auto !important;
  max-width: 450px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 6px 12px;
  color: #e8f0fe;
}


.leaflet-popup-tip {
  width: 14px;
  height: 14px;
  padding: 0;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.15); /* ombra leggera invece di nessuna */
  background: #16213e;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.15);
  border: 1px solid #95B4CA; /* non ha effetto visivo sul tip */
}


/* link nel popup (scarica / copia link): leaflet.css imposta ".leaflet-container a" a blu scuro, illeggibile sul fondo #16213e */
.leaflet-popup-content a {
  color: #cfe5ff;
}

.leaflet-popup-content a:hover {
  color: #ffffff;
}


.leaflet-left .leaflet-control {
    margin-left: 0px !important;
}

.leaflet-right .leaflet-control {
  margin-right: 0px !important;
}

.leaflet-top .leaflet-control {
	height: max-content;
	margin-top: 36px;
	float: left;

}

.leaflet-bottom .leaflet-control {
    margin-bottom: 0px !important;
}

.leaflet-container { 
		width: 10px;
		max-width: 100%;
		max-height: 100%;
 	}

.leaflet-left {
  padding: 10px;
}

.leaflet-right {
  padding: 10px;
}
 
.leaflet-popup-tip-container {
  width: 28px;
  height: 16px;
}

.leaflet-tooltip-top:before, 
.leaflet-tooltip-bottom:before, 
.leaflet-tooltip-left:before, 
.leaflet-tooltip-right:before {
border: none !important;
}

.leaflet-center {
    left: 50%;
    transform: translate(-50%, 0%);
}

/* controlli che stanno comunque in overlay su mappa */ 
/* elementi miei */

li[id^="_luoghiIndagati"] {
  font-style: italic;
}

#titleArea {
margin: 5px;
border:#95B4CA 2px solid;
border-radius: 4px;
padding: 5px;
text-align: center;
white-space: nowrap;
background-color: #16213e;
cursor: pointer;
display: inline-block;
overflow-x: hidden;
overflow-y: auto;
max-height: 220px;
width: auto;
font-size : 16px;
}
/* popup multi-carta: etichetta discreta della carta di origine */
.cardTag {font-size: 11px; font-style: italic; color: #b9d0e8; max-width: 22em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
.cardSeparator {margin: 4px 0;}
.titleRemove {cursor: pointer; margin-left: 8px; font-size: 14px; user-select: none;}
.titleRemove:hover {color: #95B4CA;}


.langToggleDiv, .provToggleDiv, .regToggleDiv, .catToggleDiv {
  cursor: pointer;
  user-select: none;
}

.langSelectorDiv, .provSelectorDiv, .regSelectorDiv, .catSelectorDiv {
  min-width: 120px;
  border: 2px solid;
  border-radius: 4px;
  background: #1e294ded;
  padding: 3px;
}
