"use client"; import { motion } from "framer-motion"; import { resortData } from "@/src/data/resort"; import Image from "next/image"; import Link from "next/link"; import { notFound, useParams } from "next/navigation"; const getCloudinaryUrl = (publicId: string) => { return `https://res.cloudinary.com/du7xohbct/image/upload/q_auto,f_auto,w_2000/${publicId}`; }; export default function RoomDetailsPage() { const params = useParams(); const slug = params.slug as string; const lang = "tr"; // Mocked locale const room = resortData.rooms.find((r) => r.slug === slug); if (!room) { notFound(); } return (
{/* Hero Header */}
{room.name[lang]}
{room.size} — {room.capacity} {room.name[lang]}
{/* Content Section */}
{/* Left: Description & Details */}

ODA HAKKINDA

{room.description[lang]}

{room.features.map((f) => { const feat = resortData.featureIcons[f]; return feat ? (
{feat.icon}
{feat.label[lang]}
) : null; })}
{/* Right: Sticky Sidebar / Call to Action */}

KONAKLAMA TİPİ

{room.capacity}

ODA BÜYÜKLÜĞÜ

{room.size}

ŞİMDİ REZERVASYON YAP

* En iyi fiyat garantisi ve resmi web sitesi avantajları ile yerinizi ayırtın.

{/* Gallery Highlight */}
{room.galleryImageIds.slice(0, 3).map((id, i) => (
{`${room.name[lang]}
))}
GERİ DÖN
); }