:root {
  --coridal-laranja: #F89831;
  --coridal-roxo: #B31F8E;
  --coridal-azul: #0E4A9A;
}

/* Wrapper geral */
.coridal-mapa-wrapper {
  width: 100%;
  max-width: 2000px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: "Segoe UI", sans-serif;
  color: #333;
}

/* Cabeçalho */
.coridal-mapa-header {
  text-align: center;
  margin-bottom: 30px;
  animation: fadeInDown 0.6s ease-in-out;
}

.coridal-mapa-header h2 {
  font-size: 2.4rem;
  color: var(--coridal-azul);
  margin-bottom: 20px;
}

/* Filtros */
.coridal-mapa-filtros {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-in-out;
}

/* Input com botão */
.input-com-botao {
  position: relative;
  width: 320px;
  border-radius: 30px;
}

.input-com-botao input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border-radius: 30px;
  border: 2px solid var(--coridal-laranja);
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease;
  font-size: 15px;
}

.input-com-botao input:focus {
  border-color: var(--coridal-roxo);
  outline: none;
}

.input-com-botao button {
  position: absolute;
  right: 6px;
  top: 5px;
  bottom: 5px;
  padding: 0 14px;
  background: var(--coridal-azul);
  color: #fff;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.input-com-botao button:hover {
  background: var(--coridal-roxo);
}

/* Botão localização */
#coridal-btn-localizacao {
  background: var(--coridal-laranja);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

#coridal-btn-localizacao:hover {
  background: var(--coridal-roxo);
}

/* Sugestões */
.sugestoes-lista {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  z-index: 999;
  list-style: none;
  padding: 0;
  margin: 5px 0 0 0;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sugestoes-lista li {
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sugestoes-lista li:hover {
  background-color: #f2f2f2;
}

/* Mapa */
#coridal-mapa {
  width: 100%;
  height: 500px;
  margin: 20px 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-in-out;
}

/* Popups */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  border-left: 6px solid var(--coridal-roxo);
  max-width: 350px !important;
}

.leaflet-popup-content {
  font-size: 15px;
  line-height: 1.5;
  padding: 10px 12px;
  animation: fadeInPopup 0.4s ease-in-out;
}

.leaflet-popup-content h3 {
  font-size: 17px;
  color: var(--coridal-azul);
  margin-bottom: 6px;
}

.leaflet-popup-content a {
  display: inline-block;
  background: var(--coridal-azul);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  margin-top: 8px;
}

.leaflet-popup-content a:hover {
  background: var(--coridal-roxo);
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInPopup {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes dropMarker {
  0% { transform: translateY(-50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes bounceMarker {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.marker-drop {
  animation: dropMarker 0.5s ease-out;
}

.marker-bounce {
  animation: bounceMarker 0.6s ease infinite alternate;
}

/* Responsivo */
@media (max-width: 768px) {
  .coridal-mapa-filtros {
    flex-direction: column;
    align-items: stretch;
  }

  .input-com-botao {
    width: 100%;
  }

  .leaflet-popup-content {
    font-size: 14px;
  }

  .leaflet-popup-content-wrapper {
    max-width: 90vw !important;
  }
}
