import{u as g,a as p,j as e,N as j,b as u,s as l,M as c,P as r,C as o,L as N}from"./index-BEDZZ8Sb.js";import{S as b}from"./SEOHead-BOJZl23s.js";import{S as f}from"./SchemaMarkup-D6BCIW80.js";import{g as v,B as w}from"./Breadcrumb-BPtvhqB5.js";import{C as y}from"./CTABanner-CzVofEX7.js";import{G as C}from"./GoogleMap-xZvVt_tZ.js";import{C as d}from"./check-circle-CuS6EXVu.js";import{A as S}from"./arrow-right-BtftDQBS.js";function R(){const{areaSlug:h}=g(),s=p.find(a=>a.slug===h);if(!s)return e.jsx(j,{to:"/404",replace:!0});const n=[{label:"Service Areas",href:"/areas"},{label:s.name}],t=s.name.includes("Tucson")?"AZ":"Tucson",m=(s.relevantServices||[]).map(a=>u.find(i=>i.slug===a)).filter(Boolean),x=[{"@context":"https://schema.org","@type":"Electrician",name:l.companyName,telephone:l.phoneSchema,url:l.domain,areaServed:{"@type":s.placeType||"Place",name:s.name,geo:{"@type":"GeoCoordinates",latitude:s.mapCenter.lat,longitude:s.mapCenter.lng}},address:{"@type":"PostalAddress",addressLocality:"Tucson",addressRegion:"AZ",postalCode:l.address.zip}},v(n)];return e.jsxs(e.Fragment,{children:[e.jsx(b,{title:`Electrician in ${s.name}, ${t} | Flowing Wells Electric`,description:`${s.shortDescription} Call ${l.phone}.`,canonical:`/areas/${s.slug}`}),e.jsx(f,{schemas:x}),e.jsx("div",{className:"bg-white border-b border-charcoal-100",children:e.jsx("div",{className:"container-custom",children:e.jsx(w,{items:n})})}),e.jsx("section",{className:"bg-charcoal-900 text-white section-padding",children:e.jsx("div",{className:"container-custom",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx(c,{className:"w-6 h-6 text-amber-400"}),e.jsx("span",{className:"text-amber-400 font-semibold text-sm uppercase tracking-wide",children:"Service Area"})]}),e.jsxs("h1",{className:"text-white mb-4",children:["Electrician in ",s.name,", ",t]}),e.jsx("p",{className:"text-charcoal-200 text-lg md:text-xl leading-relaxed mb-6",children:s.isHomeCommunity?`${s.name} is our home community. We live and work right here alongside you, providing reliable, licensed electrical service to every home and business in the neighborhood.`:`Just ${s.driveTime} from our home base in Flowing Wells. Reliable, licensed electrical service for every home and business in ${s.name}.`}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[e.jsxs("a",{href:l.phoneHref,className:"btn-primary text-lg inline-flex items-center gap-2",children:[e.jsx(r,{className:"w-5 h-5"}),"Call ",l.phone]}),!s.isHomeCommunity&&e.jsxs("div",{className:"flex items-center gap-2 text-charcoal-300 text-sm",children:[e.jsx(o,{className:"w-4 h-4"}),e.jsxs("span",{children:[s.driveTime," drive time"]})]}),s.isHomeCommunity&&e.jsxs("div",{className:"flex items-center gap-2 text-charcoal-300 text-sm",children:[e.jsx(c,{className:"w-4 h-4"}),e.jsxs("span",{children:["Your neighbors since ",l.founded]})]})]})]})})}),s.images&&s.images.length>0&&e.jsx("section",{className:"section-padding bg-white",children:e.jsx("div",{className:"container-custom",children:e.jsx("div",{className:`grid gap-6 ${s.images.length===1?"grid-cols-1 max-w-2xl mx-auto":s.images.length===2?"grid-cols-1 md:grid-cols-2":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:s.images.map((a,i)=>e.jsx("div",{className:"rounded-xl overflow-hidden shadow-md",children:e.jsx("img",{src:`/images/${a.src}`,alt:a.alt||`Electrical services in ${s.name}`,width:600,height:400,loading:"lazy",className:"w-full h-64 object-cover"})},i))})})}),s.contentParagraphs&&s.contentParagraphs.length>0&&e.jsx("section",{className:"section-padding bg-cream-100",children:e.jsxs("div",{className:"container-custom max-w-4xl",children:[e.jsxs("h2",{className:"mb-8",children:["About Serving ",s.name]}),s.contentParagraphs.map((a,i)=>e.jsx("p",{className:"text-charcoal-700 text-lg leading-relaxed mb-6 last:mb-0",children:a},i))]})}),s.commonIssues&&s.commonIssues.length>0&&e.jsx("section",{className:"section-padding bg-white",children:e.jsxs("div",{className:"container-custom max-w-4xl",children:[e.jsxs("h2",{className:"mb-8",children:["Common Electrical Issues in ",s.name]}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-4",children:s.commonIssues.map((a,i)=>e.jsxs("div",{className:"flex items-start gap-3 bg-cream-100 rounded-lg p-4",children:[e.jsx(d,{className:"w-5 h-5 text-amber-600 flex-shrink-0 mt-0.5"}),e.jsx("span",{className:"text-charcoal-700 font-medium",children:a})]},i))})]})}),m.length>0&&e.jsx("section",{className:"section-padding bg-cream-100",children:e.jsxs("div",{className:"container-custom",children:[e.jsxs("h2",{className:"text-center mb-12",children:["Our Services in ",s.name]}),e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:m.map(a=>e.jsxs(N,{to:`/services/${a.slug}`,className:"card group p-6 flex flex-col",children:[e.jsx("h3",{className:"text-lg font-bold text-charcoal-900 mb-2 group-hover:text-amber-600 transition-colors",children:a.name}),e.jsx("p",{className:"text-charcoal-600 text-sm leading-relaxed mb-4 flex-1",children:a.shortDescription}),e.jsxs("span",{className:"inline-flex items-center gap-1 text-amber-600 font-semibold text-sm group-hover:gap-2 transition-all",children:["Learn More",e.jsx(S,{className:"w-4 h-4"})]})]},a.slug))})]})}),e.jsx("section",{className:"section-padding bg-white",children:e.jsxs("div",{className:"container-custom max-w-4xl",children:[e.jsxs("h2",{className:"mb-10",children:["Why ",s.name," Residents Choose Us"]}),e.jsxs("div",{className:"grid sm:grid-cols-2 gap-8",children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-full bg-amber-50 flex items-center justify-center",children:e.jsx(o,{className:"w-6 h-6 text-amber-600"})})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-charcoal-900 mb-1",children:"Close Proximity"}),e.jsx("p",{className:"text-charcoal-600 leading-relaxed",children:s.isHomeCommunity?`${s.name} is our home community, so we are always nearby when you need us. No travel delays, no scheduling around long drives.`:`${s.name} is just ${s.driveTime} from our Flowing Wells home base, which means faster arrival times and lower travel overhead.`})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-full bg-amber-50 flex items-center justify-center",children:e.jsx(d,{className:"w-6 h-6 text-amber-600"})})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-charcoal-900 mb-1",children:"Decade of Experience"}),e.jsxs("p",{className:"text-charcoal-600 leading-relaxed",children:["Operating since ",l.founded,", we understand the unique housing stock and electrical challenges across ",s.name,"."]})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-full bg-amber-50 flex items-center justify-center",children:e.jsx(r,{className:"w-6 h-6 text-amber-600"})})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-charcoal-900 mb-1",children:"Quick Response"}),e.jsx("p",{className:"text-charcoal-600 leading-relaxed",children:"We answer the phone seven days a week and schedule most appointments within days, not weeks. Emergency calls get same-day priority."})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex-shrink-0",children:e.jsx("div",{className:"w-12 h-12 rounded-full bg-amber-50 flex items-center justify-center",children:e.jsx(c,{className:"w-6 h-6 text-amber-600"})})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-bold text-charcoal-900 mb-1",children:"Local Trust"}),e.jsxs("p",{className:"text-charcoal-600 leading-relaxed",children:["Fully licensed, insured, and rooted in the Tucson community. Our reputation is built on honest work and transparent pricing for every ",s.name," project."]})]})]})]})]})}),e.jsx("section",{className:"section-padding bg-cream-100",children:e.jsxs("div",{className:"container-custom max-w-4xl",children:[e.jsxs("h2",{className:"text-center mb-8",children:[s.name," Service Area"]}),e.jsx(C,{lat:s.mapCenter.lat,lng:s.mapCenter.lng,title:`Flowing Wells Electric - ${s.name} Service Area`})]})}),e.jsx("section",{className:"bg-charcoal-50 py-12",children:e.jsxs("div",{className:"container-custom text-center",children:[e.jsxs("p",{className:"text-charcoal-700 text-lg mb-4",children:["Ready to talk about your electrical project in ",s.name,"?"]}),e.jsxs("a",{href:l.phoneHref,className:"btn-primary text-lg inline-flex items-center gap-2",children:[e.jsx(r,{className:"w-5 h-5"}),l.phone]})]})}),e.jsx(y,{heading:`Need an Electrician in ${s.name}?`,subtext:s.isHomeCommunity?"Flowing Wells Electric is right here in your neighborhood. Call now for a free estimate on any residential or commercial electrical project.":`Flowing Wells Electric is just ${s.driveTime} away. Call now for a free estimate on any residential or commercial electrical project.`})]})}export{R as default};