* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

#btn-filtro {
  z-index: 1050;
  background-color: #fff;
  border: none;
  color: #000;
}

#btn-filtro:hover {
  background-color: #0e2127;
  color: #fff;
}

#btn-buscar {
  z-index: 1050;
  background-color: #0e2127;
  border: none;
  color: #fff;
}

#btn-buscar:hover {
  background-color: #000;
}

label {
  margin: 10px;
  font-size: 16px;
}

input,
select {
  padding: 3px 10px;
  border-radius: 20px;
  border: 2px solid #000000;
}

.btn-buscar {
  background-color: #fff;
  padding: 3px 10px;
  border: none;
  border-radius: 20px;
  transition: 0.3s;
  font-size: 16px;
}

.btn-buscar:hover {
  cursor: pointer;
  background-color: #004C78;
  color: #fff;
}

#map {
  height: 100vh;
  width: 100%;
}

#loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#loading-modal .modal-content {
    width: 200px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

img {
  width: 12%;
  position: absolute;
  top: 89%;
  left: 5px;
  z-index: 1001;
}

.btn-tabela {
  position: absolute;
  top: 78%;
  left: 5px;
  z-index: 1001;
  background-color: #fff;
  border: none;
  padding: 5px 8px;
  border-radius: 3px;
  transition: 0.3s;
}

.btn-tabela:hover {
  cursor: pointer;
  background-color: #0e2127;
  color: #fff;
}

#dash-btn {
  position: absolute;
  top: 73%;
  left: 5px;
  z-index: 1001;
  background-color: #fff;
  border: none;
  padding: 5px 8px;
  border-radius: 3px;
  transition: 0.3s;
}

#dash-btn:hover {
  cursor: pointer;
  background-color: #0e2127;
  color: #fff;
}

#toggle-legend {
  position: absolute;
  top: 83%;
  left: 5px;
  z-index: 1001;
  background-color: #fff;
  border: none;
  padding: 5px 8px;
  border-radius: 3px;
  transition: 0.3s;
}

#toggle-legend:hover {
  cursor: pointer;
  background-color: #0e2127;
  color: #fff;
}

.map-legend {
  position: absolute;
  top: 20%;
  left: 6%;
  background: rgb(255, 255, 255);
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  z-index: 1001;
  width: 280px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.map-legend.hidden {
  display: none;
}

.map-legend ul {
  list-style: none;
  padding: 0;
  margin-top: 2px;
}

.map-legend li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.map-legend span {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 1px solid #999;
  border-radius: 3px;
}

.map-btn {
  display: flex;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1001;
}

#map-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1001;
  display: flex;
}

#map-controls button {
  cursor: pointer;
  padding: 1px 15px;
  border: none;
  border-left: solid 1px rgb(198, 198, 198);
  background-color: #fff;
  transition: 0.3s;
}

#map-controls button:hover,
#map-controls button.active {
  background: #0e2127;
  color: #fff;
}

.table-hidden {
  display: none;
}

.table-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none;
}

.table-modal.show {
  display: flex;
}

.table-modal-content {
  background: #fff;
  padding: 20px;
  max-height: 70vh;
  width: 80%;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

.table-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}

.table-result {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Outfit', sans-serif;
}

.table-result th,
.table-result td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
}

.table-result th {
  background-color: #0e2127;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
}

.table-result tr:nth-child(even) {
  background-color: #f9f9f9;
}

.table-result tr:hover {
  background-color: #0e21274a;
  cursor: pointer;
}

.table-modal h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  color: #333;
}


.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid #ccc;
  border-top: 5px solid #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.btn-shape {
  border: none;
  margin: 5px 0;
  background-color: #fff;
}

.btn-shape:hover {
  cursor: pointer;
  text-decoration: underline;
}

.btn-kmz {
  border: none;
  margin: 5px 0;
  background-color: #fff;
  margin-left: 15px;
}

.btn-kmz:hover {
  cursor: pointer;
  text-decoration: underline;
}