/* Always set the map height explicitly to define the size of the div
       * element that contains the map. */
       #map {
        height: 100%;
        width: 100%;
      }

      /* Optional: Makes the sample page fill the window. */
      html,
      body {
        height: 100%;
        margin: 0;
        padding: 0;
      }

/* ------------------------------------------------------------------
   Panel flotante del area de interes (poligonos dibujados en el mapa)
   ------------------------------------------------------------------ */

#mapWrapper {
    position: relative;
    height: 100%;
    width: 100%;
}

#panelPoligonos {
    position: absolute;
    left: 10px;
    bottom: 25px;
    z-index: 5;
    width: 290px;
    max-height: 45%;
    overflow-y: auto;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    font-family: sans-serif;
    font-size: 13px;
}

.panel-poligonos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.panel-poligonos-vacio {
    margin: 0;
    font-size: 12px;
    color: #555;
}

.panel-poligonos-lista {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
}

.panel-poligonos-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 4px;
    border-top: 1px solid #e4e4e4;
}

.panel-poligonos-activo {
    background: #fff8e1;
}

.panel-poligonos-datos {
    display: flex;
    flex-direction: column;
}

.panel-poligonos-nombre {
    font-weight: bold;
}

.panel-poligonos-detalle {
    font-size: 11px;
    color: #666;
}

.panel-poligonos-acciones {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.panel-poligonos-acciones .btn {
    font-size: 11px;
    padding: 2px 6px;
}

.panel-poligonos-pie {
    display: flex;
    gap: 6px;
}
