A three-story, oceanfront house evoking a giant sandcastle in Sunset Beach recently sold for about $8 million.

The 8,000-square-foot, six-bedroom, limestone mansion boasts parapets, turrets and Gothic arches.

The fanciful house first took shape as a sketch on a napkin.

Homeowner Rick Graham, a retired chiropractor and medical device entrepreneur, said he didn’t set out to build anything resembling a palace.

“I always wanted to build a stone house on the beach,” he said. “I didn’t really think of a castle, I thought of a stone house, a European look.”