import{j as e,m as c}from"./ui-vendor-Cn57k9R1.js";import{r as x,L as l}from"./react-vendor-B9tfxWGs.js";import{aE as p,aX as u,aY as d,aU as h,aG as f,aH as g,aJ as y,aI as j}from"./index-DT-X9ySe.js";import"./query-vendor-BGnEs3s8.js";import"./charts-vendor-DecUTkfU.js";import"./editor-vendor-BA3QzDsK.js";const E=()=>{const i=p(),{data:o,isLoading:m}=u({per_page:100}),n=x.useMemo(()=>{const s=(o==null?void 0:o.items)??[];if(!s.length)return d.map((t,r)=>({id:-(r+1),text:t.text,name:t.name,location:t.location,image_path:null,image_url:null,is_featured:!1,created_at:"",updated_at:""}));const a=[...s];for(const t of d)a.some(r=>r.text===t.text&&r.name===t.name)||a.push({id:-a.length-1,text:t.text,name:t.name,location:t.location,image_path:null,image_url:null,is_featured:!1,created_at:"",updated_at:""});return a},[o==null?void 0:o.items]);return e.jsxs("div",{children:[e.jsx(h,{title:`Testimonials — ${i.shortName}`,description:`Read what landowners and investors say about ${i.shortName}.`}),e.jsxs("section",{className:"relative h-[40vh] flex items-center justify-center bg-dark-surface overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-muted/10"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-[rgba(0,0,0,0.6)] to-[rgba(0,0,0,0.5)]"}),e.jsx(f,{color:"232,146,26",nodeCount:25}),e.jsxs("div",{className:"relative z-10 container mx-auto px-6 md:px-12 lg:px-16 text-center",children:[e.jsxs("p",{className:"font-body text-xs text-white/60",children:[e.jsx(l,{to:"/",className:"hover:text-primary transition-colors",children:"Home"})," ","/ Testimonials"]}),e.jsx("h1",{className:"font-display text-4xl md:text-5xl font-bold mt-4 text-white",children:"Testimonials"}),e.jsxs("p",{className:"font-body text-base text-white/70 mt-3 max-w-xl mx-auto",children:["Real stories from real landowners who trusted ",i.shortName,"."]})]})]}),e.jsx(g,{className:"py-16 bg-surface",stagger:!0,children:e.jsx("div",{className:"container mx-auto px-6 md:px-12 lg:px-16",children:m&&n.length===0?e.jsx("p",{className:"text-center font-body text-muted-foreground",children:"Loading testimonials…"}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:n.map((s,a)=>e.jsx(y,{children:e.jsxs(c.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:a*.05},className:"bg-card rounded-2xl border border-border p-8 warm-shadow",children:[e.jsx("span",{className:"font-display text-5xl text-primary/25",children:"“"}),e.jsx("p",{className:"font-body text-secondary leading-relaxed -mt-4",children:s.text}),e.jsx("div",{className:"flex gap-1 mt-4",children:[...Array(5)].map((t,r)=>e.jsx("span",{className:"text-primary",children:"★"},r))}),e.jsx("p",{className:"font-body text-sm font-semibold text-secondary mt-4",children:s.name}),e.jsx("p",{className:"font-body text-xs text-muted-foreground",children:s.location})]})},`${s.id}-${a}`))})})}),e.jsxs("section",{className:"py-16 bg-surface-alt relative overflow-hidden",children:[e.jsx(j,{color:"232,146,26",count:10}),e.jsxs("div",{className:"container mx-auto px-6 md:px-12 lg:px-16 text-center relative z-10",children:[e.jsx("h2",{className:"font-display text-2xl font-bold text-secondary",children:"Ready to Write Your Success Story?"}),e.jsx("p",{className:"font-body text-muted-foreground mt-3 max-w-lg mx-auto",children:"Join thousands of satisfied landowners. Explore our verified estates today."}),e.jsx(l,{to:"/properties",className:"inline-flex items-center gap-2 mt-6 px-6 py-3 bg-primary text-primary-foreground font-body font-semibold rounded-lg hover:bg-primary-dark transition-colors",children:"View Properties"})]})]})]})};export{E as default};
