html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.tab-content {
  flex: 1;
  display: none;
  position: relative;
}
.tab-content.active {
  display: block;
}

#mapView, #addMap {
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-bar {
  display: flex;
  justify-content: space-around;
  background: #f0f0f0;
  border-top: 1px solid #ccc;
  padding: 10px 0 30px;
  gap: 10px;
  height: 64px;
}

.tab-bar button {
  flex: 1;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-bar button.active {
  color: #007bff;
}
.tab-bar button i[data-lucide] {
  width: 32px;
  height: 32px;
  display: block;
  margin-bottom: 6px;
}

.locate-button {
  position: absolute;
  bottom: 30px;
  right: 40px;
  z-index: 1000;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  width: 70px;
  height: 70px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.locate-button img {
  width: 28px;
  height: 28px;
}

.search-input {
  position: absolute;
  top: 50px;
  left: 12px;
  right: 12px;
  z-index: 1000;
  padding: 18px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  background: white;
  outline: none;
}

.form {
  padding: 16px;
  box-sizing: border-box;
}
.form input,
.form textarea,
.form button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.form textarea {
  resize: vertical;
  min-height: 80px;
}

#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #007bff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 500;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
#splash-screen img {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

#spot-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 8px;
  z-index: 999;
  pointer-events: none;
}

.leaflet-control-container {
  display: none !important;
}

.form select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.chip {
  margin-top: 10px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  background-color: #007bff;
  color: white;
}

.chip.active {
  background-color: #007bff;
  color: white;
}

#map-legend {
  position: absolute;
  bottom: 80px; /* justo encima del botón de ubicación */
  right: 10px;
  background: white;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  font-size: 14px;
  line-height: 1.6;
  z-index: 1000;
  font-family: sans-serif;
  width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#map-legend.active {
  opacity: 1;
  visibility: visible;
}

