'use client' import { motion, AnimatePresence } from 'framer-motion' import Image from 'next/image' import { useState } from 'react' const experiences = [ { title: "Infinity Pool", description: "Swim towards the horizon in our stunning heated infinity pool, overlooking the turquoise expanse of the Aegean Sea.", image: "https://images.unsplash.com/photo-1576013551627-0cfde316be70?q=80&w=1974&auto=format&fit=crop" }, { title: "Snorkeling", description: "Discover vibrant marine life, swim through crystal-clear waters, and experience the wonder of ocean.", image: "https://images.unsplash.com/photo-1544551763-46a013bb70d5?q=80&w=2070&auto=format&fit=crop" }, { title: "Paddle boarding", description: "Balance your soul and body while gliding over calm morning waves on our premium paddle boards.", image: "https://images.unsplash.com/photo-1517176641128-052478950337?q=80&w=1974&auto=format&fit=crop" }, { title: "Fishing trips", description: "Join our local experts for an authentic Mediterranean fishing experience at sunrise.", image: "https://images.unsplash.com/photo-1524704652723-21444983944d?q=80&w=1974&auto=format&fit=crop" } ] export default function Experiences() { const [hoveredIdx, setHoveredIdx] = useState(null) return (
Discover experiences
beyond the shore
{experiences.map((exp, idx) => ( setHoveredIdx(idx)} onMouseLeave={() => setHoveredIdx(null)} animate={{ filter: hoveredIdx !== null && hoveredIdx !== idx ? 'blur(4px)' : 'blur(0px)', opacity: hoveredIdx !== null && hoveredIdx !== idx ? 0.5 : 1, scale: hoveredIdx === idx ? 1.02 : 1 }} className="group cursor-pointer flex flex-col relative" >
{exp.title} {/* Overlay Description */} {hoveredIdx === idx && ( {exp.description} )}

{exp.title}

))}
) }