1import{j as e,Y as c,q as x}from"./app-Dpdn6RkY.js";import{a as n}from"./primary-button-Cc1Q7518.js";import{m as l}from"./proxy-Bef8oLZF.js";import{M as m}from"./main-layout-DueMfrwV.js";import{I as u}from"./image-CzJRggyT.js";import{M as p}from"./map-pin-BSCRR-_c.js";/* empty css */import"./single-value-DUybrRiC.js";import"./index-H3WrPmOw.js";import"./index-Dr1PzIeU.js";function h({categories:o,activeSlug:s}){const a=o.slice(0,4),t=o.slice(4);return e.jsx("section",{className:"bg-background border-border border-t py-20",children:e.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"mx-auto mb-12 max-w-3xl space-y-4 text-center",children:[e.jsx("h2",{className:"text-foreground text-3xl font-bold sm:text-4xl",children:"Explorar Outras Categorias"}),e.jsx("p",{className:"text-muted-foreground text-lg",children:"Mude de categoria para ver todos os monumentos associados a cada universo arquitetónico."})]}),e.jsxs("div",{className:"space-y-6",children:[e.jsx("div",{className:"grid grid-cols-1 gap-5 sm:grid-cols-2 xl:grid-cols-4",children:a.map((r,i)=>e.jsx(d,{category:r,isActive:r.slug===s,index:i},r.slug))}),e.jsx("div",{className:"grid grid-cols-1 gap-5 sm:grid-cols-2 xl:mx-auto xl:max-w-5xl xl:grid-cols-3",children:t.map((r,i)=>e.jsx(d,{category:r,isActive:r.slug===s,index:a.length+i},r.slug))})]})]})})}function d({category:o,isActive:s,index:a}){return e.jsx(l.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.2},transition:{duration:.45,delay:a*.05},children:e.jsxs(c,{href:o.url,className:n("group flex h-full min-h-[220px] cursor-pointer flex-col items-center justify-center rounded-[2rem] border p-8 text-center transition-all duration-300",s?"border-primary bg-primary text-primary-foreground shadow-primary/20 shadow-xl":"border-border bg-muted/30 hover:border-primary/40 hover:bg-[#231F20] hover:text-white hover:shadow-xl"),children:[e.jsx("div",{className:"mb-6 flex h-24 items-center justify-center",children:e.jsx("img",{src:o.image,alt:o.shortLabel,className:n("max-h-24 w-auto object-contain transition-all duration-300",s?"brightness-0 invert":"brightness-0 group-hover:brightness-100"),loading:"lazy"})}),e.jsx("span",{className:n("text-xl font-bold tracking-wide uppercase transition-colors duration-300",s?"text-primary-foreground":"text-foreground group-hover:text-white"),children:o.shortLabel})]})})}function I({categories:o,activeCategory:s,monuments:a}){const{seo:t}=x().props;return e.jsxs(m,{title:(t==null?void 0:t.title)??`${s.shortLabel} - Monumentos`,description:(t==null?void 0:t.description)??`Explore todos os monumentos da categoria ${s.shortLabel} nas Novas 7 Maravilhas de Portugal®.`,keywords:(t==null?void 0:t.keywords)??`${s.shortLabel}, monumentos, património, arquitetura, 7 maravilhas de portugal`,children:[e.jsx("section",{className:"bg-background border-border border-b py-16 sm:py-20",children:e.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"mx-auto max-w-4xl space-y-6 text-center",children:[e.jsx(l.h1,{className:"text-foreground text-4xl font-bold sm:text-5xl lg:text-6xl",initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,delay:.1},children:s.shortLabel}),e.jsx(l.p,{className:"text-muted-foreground text-lg leading-relaxed sm:text-xl",initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,delay:.2},children:s.label}),e.jsxs(l.p,{className:"text-muted-foreground text-sm tracking-[0.25em] uppercase",initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.7,delay:.3},children:[s.monuments_count," monumentos nesta categoria"]})]})})}),e.jsx("section",{className:"bg-muted/20 py-16 sm:py-20",children:e.jsx("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:a.length>0?e.jsx("div",{className:"grid grid-cols-1 gap-8 md:grid-cols-2 xl:grid-cols-3",children:a.map((r,i)=>e.jsx(l.div,{className:"group",initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.15},transition:{duration:.45,delay:i*.04},children:e.jsxs(c,{href:route("monuments.show",{monument:r.slug}),className:"block cursor-pointer",children:[e.jsx("div",{className:"bg-muted relative aspect-[4/3] overflow-hidden rounded-[2rem]
1shadow-sm transition-shadow duration-300 group-hover:shadow-xl",children:r.image_url?e.jsx("img",{src:r.image_url,alt:r.name,className:"h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]",loading:"lazy"}):e.jsx("div",{className:"bg-muted/60 text-muted-foreground flex h-full items-center justify-center",children:e.jsx(u,{className:"h-10 w-10"})})}),e.jsxs("div",{className:"space-y-2 pt-4",children:[e.jsx("h2",{className:"text-foreground group-hover:text-primary text-xl leading-tight font-bold transition-colors duration-300",children:r.name}),e.jsxs("div",{className:"text-muted-foreground flex items-center gap-2 text-sm",children:[e.jsx(p,{className:"text-primary h-4 w-4"}),e.jsx("span",{children:[r.municipality,r.district].filter(Boolean).join(", ")})]})]})]})},r.id))}):e.jsxs("div",{className:"border-border bg-background rounded-[2rem] border border-dashed p-12 text-center",children:[e.jsx("h2",{className:"text-foreground text-2xl font-semibold",children:"Ainda não existem monumentos nesta categoria."}),e.jsx("p",{className:"text-muted-foreground mt-3",children:"Quando houver novos registos, eles vão aparecer aqui."})]})})}),e.jsx(h,{categories:o,activeSlug:s.slug})]})}
1export{I as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.