* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

h1 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  z-index: 900;
  font-size: 22px;
}

#map {
  width: 100%;
  height: 100vh;
}

#addBtn {
  position: fixed;
  bottom: 25px;
  right: 20px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: none;
  background: #2e7d32;
  color: white;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 1000;
}

#addBtn:hover {
  background: #1b5e20;
}

#contador {
  position: fixed;
  top: 65px;
  right: 15px;
  z-index: 1000;
  background: white;
  padding: 10px 15px;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  font-size: 15px;
  font-weight: bold;
  color: #333;
  max-width: 80%;
}

.popup-cabra {
  text-align: center;
  font-size: 15px;
}

.popup-cabra b {
  color: #5b8c29;
}

.leaflet-popup-content {
  font-size: 16px;
  min-width: 180px;
}

@media (max-width: 600px) {
  h1 {
    height: 45px;
    font-size: 18px;
  }

  #contador {
    top: 55px;
    right: 10px;
    font-size: 14px;
    padding: 8px 12px;
  }

  #addBtn {
    width: 70px;
    height: 70px;
    font-size: 38px;
    bottom: 25px;
    right: 20px;
  }

  .leaflet-control-zoom {
    transform: scale(1.2);
    transform-origin: top left;
  }
}