:root{
  --color-highlight: #D0ED30;
  --color-primmary_default: #24400C;
  --color-passado_light: #E2D1E8;
  --color-presente_light: #F9D2BE;
  --color-futuro_light: #F8CDCB;
  --color-economia_light: #CDE8ED;
  --color-politica_light: #D7E8D3;
}

#map {
  width: 100%;
  height: 800px;
  background-color: #E6EAE3;
  padding: 5px;
  margin: 0 auto;
}

.info {
  padding: 6px 8px;
  font: 12px/14px Arial, Helvetica, sans-serif;
  color: white;
  background: rgba(52,58,64,0.8);
  border-radius: 5px;
  text-align: left;
}

/* Estilo para as divs de abertura dos popups */
.open-marker {
    display: inline-block;
    padding: 15px 0 0 0;
    background-color: #3498db;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    width: 100%;
    margin: 2px auto;
    font-size: 12pt;
}

.open-marker:hover {
    background-color: #2980b9;
}

.leaflet-pane{
  z-index: 0;
}

.leaflet-container{
  background-color: #FFF;  
}

/* Popup */
.leaflet-popup-content-wrapper{
  border: solid 2px #24400C;
  border-radius: 0;
  box-shadow: none;
  background-color: #FFF;
}

.leaflet-popup-tip-container{
  display: none;
}

/* Temp */

/* Estilo para o marker personalizado */
.chapter-label{
  background-color: #162607;
  color: white;
  padding: 12px 24px;
  font-family: 'DM Sans';
  font-weight: 600;
  font-size: 14px;
  border: 2px solid #162607;
  border-radius: 2px;
  text-align: left;
}

.chapter-label-mobile{
  display: none;
  width: 40px;
  padding: 12px;
  font-size: 10px;
  text-align: center;
}

.chapter-label:hover{
  background-color: var(--color-highlight);
  color: var(--color-primmary_default);
}

.bindpoup-chapter-label-mobile{
  font-family: 'DM Sans';
  font-weight: 600;
  font-size: 18px;
  display:none;
}

/* Estilo para o popup personalizado */
.map-popup {
  font-family: 'DM Sans';
  width: 305px;
  padding: 24px 0px;
}

.map-popup .tag {
  font-size: 12px;
  color: var(--color-primmary_default);
  text-transform: uppercase;
  float: left;
  width: 100%;
  font-weight: 600;
  font-family: 'DM Sans';
}

.map-popup .tag-passado,
.map-popup .tag-presente,
.map-popup .tag-economia,
.map-popup .tag-politica,
.map-popup .tag-futuro{
  padding: 5px 10px;
  border-radius: 200px;

}

.map-popup .tag-passado{
  background-color: var(--color-passado_light);
}

.map-popup .tag-presente{
  background-color: var(--color-presente_light);
}

.map-popup .tag-futuro{
  background-color: var(--color-futuro_light);
}

.map-popup .tag-economia{
  background-color: var(--color-economia_light);
}

.map-popup .tag-politica{
  background-color: var(--color-politica_light);
}

.map-popup .text{
  font-size: 16px;
  line-height: 24px;
  color: var(--color-primmary_default);
  width: 100%;
  padding-top: 40px;
}

.map-popup .btn-read-more {
  margin: 20px 0 0;
  font-size: 14px;
  text-align:  center;
  font-weight: 600;
  color: var(--color-primmary_default);
}

.map-popup .btn-read-more a{
  font-family: var(--e-global-typography-bcdce21-font-family), Sans-serif !important;
  font-size: var(--e-global-typography-bcdce21-font-size) !important;
  font-weight: var(--e-global-typography-bcdce21-font-weight) !important;
  line-height: var(--e-global-typography-bcdce21-line-height) !important;
  margin-right: 12px;
}

#map .chapter-label{
	font-family: var(--e-global-typography-bcdce21-font-family), Sans-serif !important;
	font-size: var(--e-global-typography-bcdce21-font-size) !important;
	font-weight: var(--e-global-typography-bcdce21-font-weight)!important;
	line-height: var(--e-global-typography-bcdce21-line-height)!important;
}

#map .tag span{
	font-family: "DM Sans", Sans-serif !important;
	font-size: 12px !important;
	font-weight: 600 !important;
}

#map .text{
	font-family: "DM Sans", Sans-serif !important;
	font-size: var(--e-global-typography-1ed6c1f-font-size) !important;
	font-weight: var(--e-global-typography-1ed6c1f-font-weight)  !important;
	line-height: var(--e-global-typography-1ed6c1f-line-height)  !important;
}

.leaflet-popup-close-button{
	margin: 12px 24px 0 0;
}

.leaflet-container a.leaflet-popup-close-button{
  color: var(--color-primmary_default);
  font-size: 24px;
  font-weight: 600;
}

#map-footer-popup{
  display: none;
}

.map-popup .text a{
  text-decoration: none;
  color: var(--color-primmary_default);
}


/* Zoom buttons */
.leaflet-right .leaflet-control {
  margin-right: 24px;
}

.leaflet-bottom .leaflet-control{
  margin-bottom: 24px;
}

.leaflet-bar a, .leaflet-bar a:hover{
  background-color: #E6EAE3;
}

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar{
  border: 2px solid var(--color-primmary_default);
  border-radius: 2px;
}

.leaflet-touch .leaflet-bar a{
  width: 40px;
  height: 40px;
  line-height: 40px;
}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out{
  font-size: 40px;
}

.leaflet-bar a, .leaflet-bar a:hover{
  color: var(--color-primmary_default);
}

.leaflet-bar .leaflet-control-zoom-in,
.leaflet-bar a.leaflet-control-zoom-in:hover{
  border-bottom:  2px solid var(--color-primmary_default);
}

.map-popup .btn-read-more a {
	color: var(--color-primmary_default);
}




/* Mobile */
@media (max-width: 768px) {

  #map {
    height: 600px;
  }

  #map-footer-popup{
    display: none;
    border: solid 2px #24400C;
    border-radius: 1px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px;
    z-index: 1000;
  }

  #map-footer-popup-close{
    float: right;
    cursor: pointer;
    transform: scale(1);
  }

  #map-footer-popup-content .map-popup{
    width: 100%;
  }

  .bindpoup-chapter-label-mobile{
    display: block;
  }

}