import{j as e,m as o}from"./ui-vendor-Cn57k9R1.js";import{L as l}from"./react-vendor-B9tfxWGs.js";import{j as i,aS as d,m as n,aG as c,aH as x,aI as m,aJ as u,aN as p,aP as f}from"./index-DT-X9ySe.js";import"./query-vendor-BGnEs3s8.js";import"./charts-vendor-DecUTkfU.js";import"./editor-vendor-BA3QzDsK.js";const N=()=>{const{data:t}=i({per_page:100,sort_by:"name",sort_direction:"asc"}),r=((t==null?void 0:t.items)??[]).map(s=>({property:d(s),imageUrl:n(s)}));return e.jsxs("div",{children:[e.jsxs("section",{className:"relative h-[45vh] 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(c,{color:"232,146,26",nodeCount:30}),e.jsxs("div",{className:"relative z-10 container mx-auto px-6 md:px-12 lg:px-16 text-center",children:[e.jsx("h1",{className:"font-display text-4xl md:text-5xl font-bold text-white",children:"Our Estates. Built to Last."}),e.jsx("p",{className:"font-body text-base text-white/70 mt-3",children:"Explore our portfolio of verified, strategically located estates."})]})]}),e.jsxs(x,{className:"py-20 bg-surface relative overflow-hidden",stagger:!0,children:[e.jsx(m,{color:"232,146,26",count:15}),e.jsx("div",{className:"container mx-auto px-6 md:px-12 lg:px-16 relative z-10",children:e.jsx("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:r.map(({property:s,imageUrl:a})=>e.jsx(u,{children:e.jsxs(o.div,{whileHover:{y:-4},transition:{duration:.25},className:"bg-card rounded-2xl border border-border overflow-hidden warm-shadow hover:warm-shadow-hover transition-shadow",children:[e.jsxs("div",{className:"relative aspect-video overflow-hidden",children:[a?e.jsx("img",{src:a,alt:`${s.name} estate`,className:`w-full h-full object-cover transition-all duration-300 ${s.status==="Sold Out"?"grayscale opacity-70":""}`,loading:"lazy"}):e.jsx("div",{className:"w-full h-full bg-muted flex items-center justify-center",children:e.jsxs("span",{className:"font-body text-sm text-muted-foreground",children:["[",s.name," Estate Image]"]})}),s.status!=="Sold Out"&&e.jsx("span",{className:`absolute top-3 left-3 px-3 py-1 rounded-full text-xs font-body font-semibold shadow-md ${s.status==="Selling Fast"?"bg-primary text-primary-foreground":"bg-success text-success-foreground"}`,children:s.status}),s.status==="Sold Out"&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"absolute inset-0 bg-secondary/30","aria-hidden":"true"}),e.jsx("div",{className:"absolute top-0 left-0 w-32 h-32 overflow-hidden pointer-events-none",children:e.jsx("div",{className:"absolute top-6 -left-10 w-44 rotate-[-45deg] bg-destructive text-destructive-foreground text-center font-body font-bold text-xs tracking-widest py-1 shadow-lg uppercase",children:"Sold Out"})}),e.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none",children:e.jsx("span",{className:"font-display font-extrabold text-3xl md:text-4xl uppercase tracking-[0.25em] text-destructive border-[3px] border-destructive rounded-md px-5 py-2 rotate-[-8deg] bg-background/85 shadow-xl",children:"Sold Out"})})]})]}),e.jsxs("div",{className:"p-6 md:p-8",children:[e.jsx("h3",{className:"font-display text-2xl font-bold text-secondary",children:s.name}),e.jsxs("p",{className:"font-body text-sm text-primary mt-1 inline-flex items-center gap-1",children:[e.jsx(p,{size:14})," ",s.location,", ",s.state," State"]}),e.jsx("p",{className:"font-body text-sm text-muted-foreground mt-3 leading-relaxed",children:s.description}),e.jsxs("div",{className:"flex flex-wrap gap-4 md:gap-6 mt-4 font-body text-sm",children:[e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Plots:"})," ",e.jsx("span",{className:"font-semibold text-secondary",children:s.status==="Sold Out"?"Sold Out":s.status==="Selling Fast"?"Limited":"Available"})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Sizes:"})," ",e.jsx("span",{className:"font-semibold text-secondary",children:s.sizes||"300sqm, 500sqm"})]}),e.jsxs("div",{children:[e.jsx("span",{className:"text-muted-foreground",children:"Title:"})," ",e.jsx("span",{className:"font-semibold text-secondary",children:s.titleType})]})]}),e.jsxs(l,{to:`/properties/${s.slug}`,className:"inline-flex items-center gap-2 mt-6 px-6 py-2.5 bg-primary text-primary-foreground font-body font-semibold text-sm rounded-lg hover:bg-primary-dark transition-colors",children:["View Estate ",e.jsx(f,{size:14})]})]})]})},s.slug))})})]})]})};export{N as default};
