html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

#map {
  width: 100%;
  height: 100%;
}

#info {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 10px;
  border-radius: 4px;
  font-family: sans-serif;
  z-index: 1000;
}

/* Popup estilo básico */
#popup {
  position: absolute;
  background: rgb(255, 255, 255);
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  display: none;
  z-index: 1001;
}

/* Boton estilo básico */
.ol-custom-buttons {
  position: absolute;
  top: 10px;
  right: 10px;  /* Cambiado de left a right */
  z-index: 1000;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.ol-custom-buttons button {
  background-color: white;
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
}

.ol-custom-buttons button:hover {
  background-color: #ffffff;
}

.ol-custom-buttons button.active {
  background-color: #d4eaff;
  border-color: #007bff;
}

/* Estilos control de capas */


#layer-control label {
  display: inline-block;
  width: auto;   /* o un ancho fijo si quieres alinear */
  margin-right: 6px;
  vertical-align: middle;
}
#layer-control input {
  vertical-align: middle;
}

#layer-legend {
  position: absolute;
  top: 120px;
  left: 10px;
  background: rgba(255,255,255,0.95);
  padding: 10px;
  border-radius: 6px;
  font-family: sans-serif;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  z-index: 1100;
  width: 150px;
}

#layer-control-1 {
  position: absolute;
  top: 120px;
  left: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  border-radius: 6px;
  font-family: sans-serif;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  z-index: 1100;
  width: 150px;
}

#layer-control h4 {
  margin: 0 0 5px 0;
  font-size: 25px;
}

.marcado-rojo {
  border: 2px solid red; /* o background: red; según lo que quieras marcar */
  }

#formularioEdicion {
  max-height: 90vh;         /* limita la altura máxima */
  overflow-y: auto;         /* permite scroll vertical */
  overflow-x: hidden;       /* evita scroll horizontal */
  width: 300px;             /* fija el ancho, opcional */
  padding: 10px;
  box-sizing: border-box;
}

.ol-rotate {
  top: 70px !important;   /* posición más baja */
  right: 10px !important;
}

.ol-rotate button {
  background-color: white;
  border: 2px solid black;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  color: black;
}

/* Botón fullscreen arriba izquierda */
.ol-full-screen {
  top: 10px !important;
  left: 50px !important;
  right: auto !important;
  bottom: auto !important;
  position: absolute !important;
  z-index: 1000;
}

#map-container {
  position: relative;
  width: 100%;
  height: 100vh; /* ocupa toda la pantalla al estar en normal */
  display: flex;
}

#map {
  flex: 1; /* el mapa ocupa todo el espacio disponible */
}

#formEscomesa {
  position: absolute;
  right: 0;
  top: 9vh; /* Espacio superior de 2 pulgadas */
  width: 320px;
  height: 90vh; /* Ajusta la altura para que no se salga del viewport */
  background: #f3f8f4;
  border-left: 2px solid #ccc;
  padding: 10px;
  overflow-y: auto;
  z-index: 1000;
}



input, select, textarea {
  width: 100%;
  padding: 6px;
  margin-top: 3px;
  border: 1px solid #ccc;
  border-radius: 4px;
}


.form-actions {
  text-align: center;
  margin-top: 10px;
}

button {
  background: #4CAF50;
  color: rgb(2, 1, 1);
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background: #45a049;
}

.boton-activo {
  background: #4CAF50; /* Verde para activo */
  color: rgb(255, 3, 3);
  border: 2px solid #ff0000;
}

.boton-inactivo {
  background-color: #f9fff9; /* Gris por defecto */
  color: black;
  border: 1px solid #ff0808;
}


/* Checkbox zona style */

#zonaControl {
  position: absolute;
  top: 140px;
  right: 10px;
  background: #ffffff;
  padding: 20px 24px;
  z-index: 1000;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  width: 180px;
}

.zonaTitulo {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
}

.zonaItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px;
  cursor: pointer;
  border-radius: 6px;
}

.zonaItem:hover {
  background-color: #f2f6ff;
}

.zonaItem span {
  font-weight: 500;
}

.zonaCheck {
  transform: scale(1.3);
  cursor: pointer;
}



/* hheckbox form */


#formularioEdicion {
  display: none;
  position: fixed;
  top: 50px;
  right: 40px;
  width: 260px;
  background: #ffffff;
  padding: 20px 22px;
  z-index: 1000;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
}

/* Título */
.formTitulo {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
}

/* Etiquetas */
#formularioEdicion label {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Inputs */
#formularioEdicion input,
#formularioEdicion select,
#formularioEdicion textarea {
  margin-top: 4px;
  padding: 6px 8px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
}

/* Focus */
#formularioEdicion input:focus,
#formularioEdicion select:focus,
#formularioEdicion textarea:focus {
  border-color: #4a7dff;
  box-shadow: 0 0 0 2px rgba(74, 125, 255, 0.2);
}

/* Botones */
#formularioEdicion button {
  margin-top: 10px;
  padding: 8px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

#formularioEdicion .btnGuardar {
  background: #4a7dff;
  color: white;
}

#formularioEdicion .btnCancelar {
  background: #e0e0e0;
}











/*-------------------------------------------------------------*/
