import{e as n,f as i,j as e,w as o}from"./index-CEqTxpJr.js";import{u as c,p as d}from"./project-images-KLAg7gY6.js";import{L as m}from"./lead-form-9BJSacHi.js";function j(){const{slug:l}=n.useParams(),{data:s}=c(i(l));return e.jsxs("article",{children:[e.jsx("div",{className:"relative aspect-[21/9] w-full overflow-hidden bg-navy/5",children:e.jsx("img",{src:d(s.slug,s.cover_image),alt:s.name,width:1920,height:820,className:"size-full object-cover"})}),e.jsxs("div",{className:"mx-auto grid max-w-7xl gap-12 px-6 py-16 lg:grid-cols-[1fr_400px]",children:[e.jsxs("div",{children:[e.jsx("span",{className:"eyebrow",children:s.property_type}),e.jsx("h1",{className:"mt-3 font-display text-4xl font-bold tracking-tight md:text-5xl",children:s.name}),e.jsx("p",{className:"mt-2 text-sm uppercase tracking-wider text-navy/50",children:s.location}),e.jsxs("div",{className:"mt-8 grid grid-cols-2 gap-y-4 border-y border-navy/10 py-6 text-sm md:grid-cols-4",children:[e.jsx(t,{label:"Starting Price",value:s.starting_price}),e.jsx(t,{label:"Bedrooms",value:s.bedrooms}),e.jsx(t,{label:"Payment Plan",value:s.payment_plan}),e.jsx(t,{label:"Handover",value:s.handover_status})]}),e.jsxs("section",{className:"mt-12",children:[e.jsx("h2",{className:"mb-4 font-display text-2xl font-bold",children:"Overview"}),e.jsx("p",{className:"text-navy/80",children:s.overview||s.short_description})]}),s.amenities?.length?e.jsxs("section",{className:"mt-12",children:[e.jsx("h2",{className:"mb-4 font-display text-2xl font-bold",children:"Amenities"}),e.jsx("ul",{className:"grid grid-cols-2 gap-3 text-sm sm:grid-cols-3",children:s.amenities.map(a=>e.jsx("li",{className:"border-l-2 border-gold pl-3 text-navy/80",children:a},a))})]}):null,e.jsxs("section",{className:"mt-12",children:[e.jsx("h2",{className:"mb-4 font-display text-2xl font-bold",children:"Frequently Asked"}),e.jsx("div",{className:"space-y-4",children:[["Can foreigners buy in this community?","Yes — Dubai allows foreign ownership in designated freehold areas including this project."],["Is a payment plan available?",`Yes. This project offers a ${s.payment_plan}.`],["When is the expected handover?",`Handover is expected ${s.handover_status}.`]].map(([a,r])=>e.jsxs("details",{className:"border-b border-navy/10 pb-4",children:[e.jsx("summary",{className:"cursor-pointer font-medium",children:a}),e.jsx("p",{className:"mt-2 text-sm text-navy/70",children:r})]},a))})]}),e.jsx("a",{href:o(`Hi, I'd like more information about ${s.name} (${s.location}).`),target:"_blank",rel:"noopener noreferrer",className:"mt-10 inline-block bg-[#25D366] px-6 py-3 text-[10px] font-bold uppercase tracking-widest text-white",children:"WhatsApp Advisor"})]}),e.jsx("aside",{className:"lg:sticky lg:top-24 lg:h-fit",children:e.jsxs("div",{className:"bg-white p-6 shadow-[var(--shadow-card)] ring-1 ring-navy/5",children:[e.jsxs("p",{className:"mb-4 font-display text-lg font-bold",children:["Download ",s.name," Brochure"]}),e.jsx("p",{className:"mb-4 text-sm text-navy/70",children:"Brochure, floor plans & payment plan sent instantly to your WhatsApp."}),e.jsx(m,{sourcePage:`/projects/${s.slug}`,prefilledInterest:s.property_type,projectName:s.name,variant:"full",ctaLabel:"Download Brochure"})]})})]})]})}function t({label:l,value:s}){return e.jsxs("div",{children:[e.jsx("div",{className:"text-[10px] uppercase tracking-widest text-navy/40",children:l}),e.jsx("div",{className:"mt-1 font-medium",children:s})]})}export{j as component};
