#page-content {
	position: relative;
	height: 100%;
	width: 100%;
	overflow: hidden;
}

.page {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.page.active {
	display: block;
}

html,
body,
#page {
	height: 100%;
	margin: 0;
	padding: 0;
}

#map {
	width: 100% !important;
	height: calc(100% - 60px) !important;
	/* Subtrai a altura da barra de ferramentas */
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	z-index: 1 !important;
	margin-bottom: 60px;
	/* Altura da barra de ferramentas */
	background: #7b7d3a;
}

.leaflet-control-container {
	display: none !important;
}

.palco-tooltip-marker {
	display: flex;
	justify-content: center;
}

.modal-slide {
	position: fixed;
	left: 0;
	right: 0;
	bottom: -100%;
	width: 100%;
	height: 85%;
	background: white;
	border-radius: 12px 12px 0 0;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
	z-index: 1000;
	transition: bottom 0.4s ease;
}

.modal-slide.show {
	bottom: 0;
}

.modal-content {
	padding: 20px;
}

.modal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 24px;
	cursor: pointer;
}

.palco-tooltip {
	display: inline-block;
	background-color: #f1f1f1;
	color: #333;
	font-size: 14px;
	font-weight: 500;
	padding: 8px 16px;
	border-radius: 25px;
	border: 1px solid #ddd;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	user-select: none;
	cursor: pointer;
	white-space: normal;
	/* Permite quebra de linha */
	text-align: center;
	transition: all 0.2s ease;
	margin-bottom: 20px;
	/* Aumente este valor se necessário */
	z-index: 1;
	min-width: 40px;
	/* Largura mínima */
	max-width: 200px;
	/* Largura máxima */
	word-wrap: break-word;
	line-height: 1.4;
	/* Espaçamento entre linhas */
}

/* Seta ajustada para balão com múltiplas linhas */
.palco-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid #f1f1f1;
	transition: all 0.2s ease;
}

/* Ajuste para Leaflet DivIcon */
.leaflet-div-icon {
	background: transparent !important;
	border: none !important;
}

#logo-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1001;
  transition: all 1s ease-in-out;
}

#menuToggle {
  width: 100px;
  height: 100px;
  transition: all 1s ease-in-out;
}

#loading-text {
  color: #fff;
  font-size: 24px;
  text-shadow:
    0 0 5px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(0, 0, 0, 0.2);
}


/* Animação de rotação */
@keyframes girar {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.girando #menuToggle {
  animation: girar 1.5s linear infinite;
}

/* Estado final no canto */
#logo-container.fixo {
  top: 15px;
  left: 15px;
  transform: none;
}

@media (max-width: 768px) {
  #logo-container.fixo {
    margin-left: -15%;
    top: 15px;
    left: 15px;
    transform: none;
  }
}

#logo-container.fixo #menuToggle {
  width: 50px;
  height: 50px;
  animation: none;
}

#logo-container.fixo #loading-text {
  opacity: 0;
  pointer-events: none;
}

.static-marker {
	will-change: transform;
	backface-visibility: hidden;
	transform: translate3d(0, 0, 0);
	image-rendering: pixelated;
	transition: none !important;
	animation: none !important;
	opacity: 1 !important;
}

.arrow {
	width: 40px;
	height: 40px;
	position: relative;
	clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.arrow::before,
.arrow::after {
	content: "";
	position: absolute;
	bottom: 0;
	width: 50%;
	height: 100%;
	clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.arrow::before {
	left: 0;
	background-color: #8ec9ff;
}

.arrow::after {
	right: 0;
	background-color: #008cff;
	transform: scaleX(-1);
}

/* Evita que o ícone desapareça durante atualizações */
.leaflet-marker-icon {
    opacity: 1 !important;
    transition: transform 0.3s ease, opacity 0.01s !important;
}

/* Desativa animações de fade do Leaflet */
.leaflet-fade-anim .leaflet-popup, 
.leaflet-fade-anim .leaflet-marker-icon, 
.leaflet-fade-anim .leaflet-marker-shadow {
    transition: none !important;
}

.search-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 1000;
  }
  
  .search-bar input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
  }
  
  .search-bar button {
    background:#0f6fc6!important;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
  }
  
  .search-bar button:hover {
    background: #0056b3;
  }
  
  .search-bar.active {
    transform: translateY(0);
  }
  
  #clear-all {
    position: fixed;
    bottom: 60px;
    left: 45%;
    transform: translateX(-50%);
    z-index: 1000; /* garante que fique acima dos outros elementos */
    padding: 10px 20px;
  }

	.evento-item {
		cursor: pointer;
		transition: background-color 0.2s;
	}

	.evento-item:hover {
		background-color: rgba(0,0,0,0.03);
	}

	/* Adicionar no seu CSS */
	.leaflet-tooltip.navigation-tooltip {
		background-color: rgba(0, 0, 0, 0.7);
		color: white;
		border: none;
		box-shadow: none;
		font-size: 14px;
		padding: 6px 10px;
		border-radius: 4px;
	}

	.user-marker {
		filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
	}