* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

#mapa-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #f5f5f5;
  cursor: grab;
}

#mapa-container svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

/* Estados de los lotes */
.lote {
  cursor: pointer;
  fill-opacity: 0.15;
  stroke-width: 1.2;
  transition: fill-opacity 0.2s;
}

.lote:hover { fill-opacity: 0.45; }

.lote.disponible { fill: #22c55e; stroke: #16a34a; }
.lote.apartado   { fill: #f97316; stroke: #ea580c; }
.lote.vendido    { fill: #ef4444; stroke: #dc2626; cursor: default; pointer-events: none; }

/* Zoom controls */
#zoom-controls {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  z-index: 500;
}

#zoom-controls button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  font-size: 1.2rem;
  cursor: pointer;
}

#zoom-controls button:hover { background: #f0f0f0; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden { display: none; }

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 420px;
  position: relative;
}

.modal-cerrar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-content input {
  display: block;
  width: 100%;
  margin: .6rem 0;
  padding: .6rem .8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.modal-estado-msg {
  margin-bottom: 1rem;
  font-weight: bold;
}

#btn-apartar {
  width: 100%;
  margin-top: 1rem;
  padding: .75rem;
  background: #22c55e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

#btn-apartar:hover { background: #16a34a; }