import{n as e,t}from"./Seo-DIwHowcX.js";import{B as n,G as r,S as i,c as a,j as o,q as s,t as c}from"./index-BaX9Wv38.js";var l=e();function u(){let{slug:e}=s(),u=n(i),d=n(o);if(!u)return(0,l.jsx)(`div`,{className:`min-h-screen`});let f=u.find(t=>t.slug===e);if(!f)return(0,l.jsxs)(`div`,{className:`wrap py-40 text-center`,children:[(0,l.jsx)(`h1`,{className:`sec-title`,children:`Post not found`}),(0,l.jsx)(r,{to:`/blog`,className:`btn-primary mt-4`,children:`Back to Blog`})]});let p=new Date(f.published_at).toLocaleDateString(`en-US`,{day:`numeric`,month:`long`,year:`numeric`}),m=u.filter(t=>t.slug!==e).slice(0,2);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t,{title:`${f.title} — ${d?.company_name??`Touch Therapies Antigua`}`,description:f.excerpt,image:f.image}),(0,l.jsxs)(`article`,{children:[(0,l.jsxs)(`header`,{className:`relative overflow-hidden bg-forest-700 pt-36 pb-20 text-white`,children:[(0,l.jsx)(`div`,{className:`absolute inset-0 bg-cover bg-center opacity-30`,style:{backgroundImage:`url(${f.image})`},"aria-hidden":!0}),(0,l.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-b from-forest-700/60 to-forest-700/90`,"aria-hidden":!0}),(0,l.jsxs)(`div`,{className:`wrap relative z-10 max-w-3xl`,children:[(0,l.jsxs)(`p`,{className:`mb-4 text-[0.78rem] font-semibold tracking-[0.3em] uppercase text-palm-200`,children:[f.category,` · `,p]}),(0,l.jsx)(`h1`,{className:`text-[clamp(2rem,4.6vw,3.2rem)] font-semibold`,children:f.title})]})]}),(0,l.jsx)(`div`,{className:`wrap max-w-3xl py-16`,children:(0,l.jsxs)(a,{children:[(0,l.jsx)(`img`,{src:f.image,alt:f.title,className:`mb-10 aspect-[16/8] w-full rounded-3xl object-cover shadow-soft`}),(0,l.jsx)(`div`,{className:`prose-ocean [&_h2]:sec-title [&_h2]:!text-[1.5rem] [&_h2]:mt-8 [&_p]:mb-4 [&_p]:text-muted [&_em]:italic [&_img]:my-6 [&_img]:max-w-full [&_img]:rounded-2xl`,dangerouslySetInnerHTML:{__html:f.body}}),f.tags.length>0&&(0,l.jsx)(`div`,{className:`mt-10 flex flex-wrap gap-2`,children:f.tags.map(e=>(0,l.jsxs)(`span`,{className:`rounded-full bg-sand px-4 py-1.5 text-[0.8rem] font-semibold text-forest-700`,children:[`#`,e]},e))})]})}),m.length>0&&(0,l.jsx)(`section`,{className:`bg-gradient-to-b from-sand to-cream py-16`,children:(0,l.jsxs)(`div`,{className:`wrap`,children:[(0,l.jsx)(`h2`,{className:`sec-title mb-8 text-center !text-[1.7rem]`,children:`Keep Reading`}),(0,l.jsx)(`div`,{className:`grid gap-6 md:grid-cols-2`,children:m.map(e=>(0,l.jsx)(c,{p:e},e.id))})]})})]})]})}export{u as default};