A ballot measure that would allow an upscale retail and dining center to be built along the shore of the Agua Hedionda Lagoon in Carlsbad trailed by 186 votes early Wednesday, but approximately 7,100 mail and provisional ballots remained to be counted.