import{j as e}from"./ui-vendor-Cn57k9R1.js";import{r as d,L as x}from"./react-vendor-B9tfxWGs.js";import{aE as u,aT as f,aU as g,aG as y,aH as j,aI as N,aJ as m,L as v,aV as b,aW as w,i as T}from"./index-DT-X9ySe.js";import"./query-vendor-BGnEs3s8.js";import"./charts-vendor-DecUTkfU.js";import"./editor-vendor-BA3QzDsK.js";const C=({member:t,onClick:o,shortName:r})=>e.jsxs("div",{className:"group cursor-pointer",onClick:o,children:[e.jsxs("div",{className:"relative rounded-2xl overflow-hidden mb-4 warm-shadow",children:[e.jsx("div",{className:"aspect-[3/4] overflow-hidden bg-muted",children:e.jsx("img",{src:t.img,alt:`${t.name} - ${t.title} at ${r}`,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-700"})}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-secondary via-secondary/50 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),e.jsx("span",{className:"absolute top-3 right-3 font-body text-[10px] bg-primary text-primary-foreground px-2.5 py-1 rounded-full shadow-md uppercase tracking-wider",children:t.badge}),t.email&&e.jsx("div",{className:"absolute bottom-4 left-4 right-4 opacity-0 group-hover:opacity-100 translate-y-4 group-hover:translate-y-0 transition-all duration-500",children:e.jsxs("span",{className:"flex items-center gap-2 text-white text-xs font-body",children:[e.jsx(T,{size:13})," ",t.email]})})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("p",{className:"font-display font-bold text-secondary text-base group-hover:text-primary transition-colors",children:t.name}),e.jsx("p",{className:"font-body italic text-muted-foreground text-[13px] mb-2",children:t.title}),e.jsx("div",{className:"flex flex-wrap justify-center gap-1.5",children:t.tags.map(s=>e.jsx("span",{className:"font-body text-[10px] bg-primary/10 text-primary px-2.5 py-1 rounded-full",children:s},s))})]})]}),$=()=>{const t=u(),[o,r]=d.useState(null),[s,n]=d.useState(!1),{data:i,isLoading:p}=f({per_page:50}),l=(i==null?void 0:i.items)??[],h=a=>{r(a),n(!0)};return e.jsxs("div",{children:[e.jsx(g,{title:`Our Team — ${t.shortName}`,description:`Meet the ${t.shortName} team — the professionals dedicated to your real estate success.`}),e.jsxs("section",{className:"relative h-[45vh] flex items-center justify-center overflow-hidden bg-secondary",children:[e.jsx(y,{color:"232,146,26",nodeCount:30}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-secondary/60 to-secondary/80"}),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(x,{to:"/",className:"hover:text-primary transition-colors",children:"Home"})," /"," ",e.jsx(x,{to:"/about",className:"hover:text-primary transition-colors",children:"About"})," ","/ Team"]}),e.jsx("h1",{className:"font-display text-4xl md:text-5xl font-bold mt-4 text-white",children:"Our Team"}),e.jsxs("p",{className:"font-body text-base text-white/70 mt-3 max-w-xl mx-auto",children:["Meet the people behind ",t.shortName," — passionate professionals dedicated to your real estate success."]})]})]}),e.jsxs(j,{className:"py-20 bg-card relative overflow-hidden",stagger:!0,children:[e.jsx(N,{color:"232,146,26",count:12}),e.jsxs("div",{className:"container mx-auto px-6 md:px-12 lg:px-16 relative z-10",children:[e.jsxs(m,{className:"text-center mb-12",children:[e.jsx("p",{className:"font-body text-xs text-primary uppercase tracking-[0.2em] font-medium",children:"Leadership & Operations"}),e.jsxs("h2",{className:"font-display text-3xl md:text-4xl font-bold text-secondary mt-3",children:["The People Behind ",t.shortName]}),e.jsxs("p",{className:"font-body text-base text-muted-foreground max-w-xl mx-auto mt-4",children:["Experienced professionals steering ",t.shortName," towards excellence in every aspect of real estate."]})]}),p&&l.length===0?e.jsx("div",{className:"flex justify-center py-16",children:e.jsx(v,{className:"w-10 h-10 animate-spin text-muted-foreground"})}):e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8",children:l.map(a=>{const c=b(a);return e.jsx(m,{children:e.jsx(C,{member:c,shortName:t.shortName,onClick:()=>h(c)})},a.id)})})]})]}),e.jsx(w,{member:o,open:s,onOpenChange:n})]})};export{$ as default};
