NAVARRE BEACH — A dog trapped in a hot truck was so thankful for his rescue by a sheriff's deputy that he gave her a big hug after she got him out.

According to the Santa Rosa County Sheriff's Office, on Saturday a man and his wife who live on Navarre Beach heard a dog "yelping" nearby as they carried groceries into their house. The man followed the sound of the barks and found a medium-sized black dog locked inside a gold Ford F-150 truck. The truck wasn't turned on, no people were inside it or nearby and all the windows were rolled up, according to the report.

The man called for help and SRSO Deputy Anna Jones responded to the scene. She found the dog "hunkered down in the rear floorboard," panting and shaking uncontrollably. The dog had thick slobber hanging from its chin and had no water available to it anywhere inside the truck.

At one point, Jones wrote in her report, the dog got spooked and ran to the front of the floorboard, "urinating in spots along the way."

The temperature outside at the time was about 85 degrees, but the temperature inside the car was climbing to as much as 30 degrees warmer. The deputy said the dog had been in the car for at least 45 minutes to an hour.

The quick-thinking deputy managed to get inside the car through the read sliding glass window, opened the door and got the dog to safety. She immediately gave the pup water and called an animal control officer to evaluate it.

While the deputy was talking to the animal control officer, the owner of the dog, Brian Hickey, 50, from Citrus, walked up with his adult son and began getting angry. He said he had only gone to the beach to swim for 20 minutes and his dog was fine. According to the report, both Hickey and his son "thought there was nothing wrong with leaving the dog in the truck."

The pup was so thankful to be rescued from the car that he snuggled up to Jones as she held him and posed for a picture, which was adorably captured and shared on the sheriff's office Facebook page.

The officer determined the dog did not need veterinary care, and SRSO spokesman Rich Aloy said the dog is "doing fine" but is still in the care of Hickey's son.

Hickey was arrested and charged with animal cruelty. He's being held on $500 bond.