import{u as w,b as h,j as e,H as $,a as p,s as l,L as i,P as B}from"./index-BFpjkRLY.js";import{S as C}from"./SEOHead-ChmRU6mV.js";import{S as A}from"./SchemaMarkup-CCGxt7Le.js";import{B as P}from"./Breadcrumb-CVy-FEgr.js";import{Q as D}from"./QuickContactForm-e9H7zVte.js";import{r as g,R as F}from"./reviews-D7vc_vVP.js";import{C as L}from"./CTABanner-BN3di8NS.js";import R from"./NotFound-CWm520XD.js";import{s as k}from"./serviceAreaCombos-D5IjO84R.js";import{g as H}from"./comboLinks-DIa9CXZH.js";import{D as z}from"./dollar-sign-C01oA2zf.js";import{A as n}from"./arrow-right-DphdN3_M.js";import"./check-circle-BfIwUvMB.js";import"./home-CZ-KLTjQ.js";function Y(){const{serviceSlug:v}=w(),a=h.find(s=>s.slug===v);if(!a)return e.jsxs(e.Fragment,{children:[e.jsx($,{children:e.jsx("meta",{name:"robots",content:"noindex, nofollow"})}),e.jsx(R,{})]});const r=g.filter(s=>s.service===a.slug),c=r.length>=2?r.slice(0,2):[...r,...g.filter(s=>s.service!==a.slug&&!r.includes(s))].slice(0,2),m=a.relatedServices.map(s=>h.find(t=>t.slug===s)).filter(Boolean),o=a.relevantAreas.map(s=>p.find(t=>t.slug===s)).filter(Boolean),d=k.filter(s=>s.serviceSlug===a.slug).map(s=>({...s,area:p.find(t=>t.slug===s.areaSlug)})).filter(s=>s.area),j=`${a.name} in Palm Bay, FL | ${l.companyName}`,b=`${a.shortDescription} Serving Palm Bay and all of Brevard County since 2009. Fair pricing, same-day service. Call ${l.phone}.`,x=`${l.domain}/services/${a.slug}`,u={"@context":"https://schema.org","@type":"Service",name:a.name,provider:{"@type":"HomeAndConstructionBusiness",name:l.companyName,telephone:l.phone,areaServed:{"@type":"City",name:"Palm Bay"}},description:a.shortDescription,areaServed:{"@type":"State",name:"Florida"},image:`${l.domain}/images/${a.image}`},f={"@context":"https://schema.org","@type":"FAQPage",mainEntity:a.faqs.map(s=>({"@type":"Question",name:s.question,acceptedAnswer:{"@type":"Answer",text:s.answer}}))},N={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:l.domain},{"@type":"ListItem",position:2,name:"Services",item:`${l.domain}/services`},{"@type":"ListItem",position:3,name:a.name}]};return e.jsxs(e.Fragment,{children:[e.jsx(C,{title:j,metaDescription:b,canonicalUrl:x,ogUrl:x}),e.jsx(A,{schemas:[u,f,N]}),e.jsx("div",{className:"container-custom",children:e.jsx(P,{items:[{label:"Home",path:"/"},{label:"Services",path:"/services"},{label:a.name}]})}),e.jsx("article",{className:"section-padding pt-4",children:e.jsx("div",{className:"container-custom",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-10",children:[e.jsxs("div",{className:"lg:col-span-2",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[a.isEmergency&&e.jsx("span",{className:"bg-coral text-white text-xs font-bold px-2.5 py-1 rounded",children:"24/7 Emergency"}),e.jsx("span",{className:"text-sm text-slate-500",children:a.costRange})]}),e.jsxs("h1",{className:"text-3xl md:text-4xl lg:text-5xl font-bold text-navy mb-6",children:[a.name," in Palm Bay & Brevard County"]}),e.jsx("img",{src:`/images/${a.image}`,alt:`${a.name} in Palm Bay, Florida`,width:800,height:600,loading:"lazy",className:"w-full rounded-xl mb-8 shadow-sm"}),e.jsxs("div",{className:"prose prose-slate max-w-none",children:[e.jsx("p",{className:"text-lg text-slate-700 leading-relaxed mb-8",children:a.content.intro}),a.content.sections.map((s,t)=>e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-navy mb-4",children:s.heading}),s.text.split(`

`).map((y,S)=>e.jsx("p",{className:"text-slate-600 leading-relaxed mb-4",children:y},S))]},t)),e.jsxs("div",{className:"bg-sand rounded-xl p-6 md:p-8 mb-8 border border-sand-300",children:[e.jsxs("h2",{className:"text-2xl font-bold text-navy mb-4 flex items-center gap-2",children:[e.jsx(z,{size:24,className:"text-teal"}),"Pricing: ",a.costRange]}),e.jsx("p",{className:"text-slate-600 leading-relaxed",children:a.costDetails})]}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-navy mb-6",children:"Our Process"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:a.process.map((s,t)=>e.jsxs("div",{className:"flex gap-4 p-4 bg-white rounded-xl border border-gray-100",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-teal-50 text-teal flex items-center justify-center shrink-0 font-bold text-sm",children:t+1}),e.jsxs("div",{children:[e.jsx("h3",{className:"font-bold text-navy text-sm mb-1",children:s.step}),e.jsx("p",{className:"text-sm text-slate-600",children:s.description})]})]},t))})]}),e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-navy mb-6",children:"Frequently Asked Questions"}),e.jsx("div",{className:"space-y-6",children:a.faqs.map((s,t)=>e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-navy mb-2",children:s.question}),e.jsx("p",{className:"text-slate-600 leading-relaxed",children:s.answer})]},t))})]})]}),c.length>0&&e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-2xl font-bold text-navy mb-6",children:"What Customers Say"}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:c.map(s=>e.jsx(F,{review:s},s.id))})]}),m.length>0&&e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-xl font-bold text-navy mb-4",children:"Related Services"}),e.jsx("div",{className:"flex flex-wrap gap-3",children:m.map(s=>e.jsxs(i,{to:`/services/${s.slug}`,className:"inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-teal-50 text-teal text-sm font-medium hover:bg-teal-100 transition-colors",children:[s.name," ",e.jsx(n,{size:14})]},s.slug))})]}),d.length>0&&e.jsxs("div",{className:"mb-8",children:[e.jsx("h2",{className:"text-xl font-bold text-navy mb-4",children:"Detailed Local Pages"}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:d.map(s=>e.jsxs(i,{to:`/services/${s.serviceSlug}/${s.areaSlug}`,className:"flex items-center gap-3 p-3 rounded-xl bg-teal-50 border border-teal-100 hover:border-teal-300 hover:shadow-sm transition-all group",children:[e.jsxs("span",{className:"text-sm font-medium text-navy group-hover:text-teal transition-colors",children:[a.name," in ",s.area.name]}),e.jsx(n,{size:14,className:"text-teal ml-auto"})]},`${s.serviceSlug}-${s.areaSlug}`))})]}),o.length>0&&e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-bold text-navy mb-4",children:"We Serve These Areas"}),e.jsx("div",{className:"flex flex-wrap gap-3",children:o.map(s=>e.jsxs(i,{to:H(a.slug,s.slug),className:"inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-slate-50 text-slate-700 text-sm font-medium hover:bg-slate-100 transition-colors",children:[s.name," ",e.jsx(n,{size:14})]},s.slug))})]})]}),e.jsx("aside",{className:"lg:col-span-1",children:e.jsxs("div",{className:"sticky top-28 space-y-6",children:[e.jsxs("div",{className:"bg-navy rounded-xl p-6 text-center text-white",children:[e.jsx("h3",{className:"font-bold text-lg mb-2 text-white",children:"Need This Service?"}),e.jsx("p",{className:"text-sm text-navy-200 mb-4",children:"Call or text for same-day service across Brevard County."}),e.jsxs("a",{href:l.phoneHref,className:"btn-coral w-full gap-2 mb-3",children:[e.jsx(B,{size:18}),l.phone]}),e.jsx(i,{to:"/contact",className:"block text-sm text-teal-300 hover:text-teal-200 transition-colors",children:"Or request a free estimate online"})]}),e.jsx(D,{})]})})]})})}),e.jsx(L,{})]})}export{Y as default};