import{b as f,r as l,j as e,a as m,L as t,H as N,U as b}from"./index-03O7FlLK.js";import{C as c,d as x}from"./card-BCoTIxOl.js";import{a as y}from"./useEstados-CkPdKzrb.js";import{a as $}from"./useCidades-Cg_L3viG.js";import{s as p}from"./prerender-ready-BtFGQ0-H.js";import{F as h}from"./Footer-CpKEhY2n.js";import{M as w}from"./map-pin-C7uVMHt5.js";import{C as o}from"./chevron-right-CNHs_vSY.js";import"./useQuery-BPBYh37X.js";import"./client-DO0WN1kq.js";import"./clock-CzYVv4ox.js";const R=()=>{const{estadoSlug:g}=f(),{data:a,isLoading:n}=y(g||""),{data:r,isLoading:u}=$((a==null?void 0:a.id)||""),i=n||u;if(l.useEffect(()=>{p(!1)},[]),l.useEffect(()=>{i||p(!0)},[i]),!n&&!a)return e.jsxs(e.Fragment,{children:[e.jsx(m,{}),e.jsx("main",{className:"min-h-screen bg-background flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-2xl font-bold text-foreground mb-4",children:"Estado não encontrado"}),e.jsx(t,{to:"/advogado-previdenciario",className:"text-primary hover:underline",children:"Voltar para lista de estados"})]})}),e.jsx(h,{})]});const d=a?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://nathaliabrito.adv.br"},{"@type":"ListItem",position:2,name:"Advogada Previdenciária",item:"https://nathaliabrito.adv.br/advogado-previdenciario"},{"@type":"ListItem",position:3,name:a.nome,item:`https://nathaliabrito.adv.br/advogado-previdenciario/${a.slug}`}]}:null,j=s=>s?s>=1e6?`${(s/1e6).toFixed(1)}M hab.`:s>=1e3?`${(s/1e3).toFixed(0)}k hab.`:`${s} hab.`:null;return e.jsxs(e.Fragment,{children:[e.jsxs(N,{children:[e.jsx("title",{children:a?`Advogada Previdenciária em ${a.nome} (${a.sigla}) | Dra. Nathália Brito`:"Carregando..."}),e.jsx("meta",{name:"description",content:a?`Advogada especialista em INSS e direito previdenciário em ${a.nome}. Atendemos ${(r==null?void 0:r.length)||"todas as"} cidades do estado. Aposentadoria, auxílio-doença, BPC/LOAS.`:""}),e.jsx("meta",{name:"keywords",content:a?`advogada previdenciária ${a.nome}, advogado INSS ${a.sigla}, aposentadoria ${a.nome}, direito previdenciário ${a.nome}`:""}),a&&e.jsx("link",{rel:"canonical",href:`https://nathaliabrito.adv.br/advogado-previdenciario/${a.slug}`}),a&&e.jsxs(e.Fragment,{children:[e.jsx("meta",{property:"og:title",content:`Advogada Previdenciária em ${a.nome} | Dra. Nathália Brito`}),e.jsx("meta",{property:"og:description",content:`Especialista em direito previdenciário em ${a.nome}. Atendimento online.`}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:url",content:`https://nathaliabrito.adv.br/advogado-previdenciario/${a.slug}`}),e.jsx("meta",{property:"og:locale",content:"pt_BR"})]}),d&&e.jsx("script",{type:"application/ld+json",children:JSON.stringify(d)})]}),e.jsx(m,{}),e.jsxs("main",{className:"min-h-screen bg-background",children:[e.jsx("section",{className:"bg-gradient-to-br from-primary via-primary to-secondary py-16",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center",children:[e.jsxs("div",{className:"inline-flex items-center space-x-2 bg-accent/20 text-white px-4 py-2 rounded-full text-sm font-medium mb-6",children:[e.jsx(w,{className:"w-4 h-4"}),e.jsx("span",{children:(a==null?void 0:a.sigla)||"..."})]}),e.jsxs("h1",{className:"text-4xl md:text-5xl font-bold text-white mb-6",children:["Advogada Previdenciária em ",e.jsx("span",{className:"text-accent",children:(a==null?void 0:a.nome)||"..."})]}),e.jsxs("p",{className:"text-xl text-white/90 max-w-3xl mx-auto",children:[r!=null&&r.length?`Atendemos ${r.length} cidades em ${a==null?void 0:a.nome}`:"Carregando cidades...",". Assessoria jurídica especializada em INSS e direito previdenciário."]})]})}),e.jsx("nav",{className:"bg-muted py-3 border-b",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("ol",{className:"flex items-center space-x-2 text-sm flex-wrap",children:[e.jsx("li",{children:e.jsx(t,{to:"/",className:"text-muted-foreground hover:text-primary",children:"Home"})}),e.jsx("li",{children:e.jsx(o,{className:"w-4 h-4 text-muted-foreground"})}),e.jsx("li",{children:e.jsx(t,{to:"/advogado-previdenciario",className:"text-muted-foreground hover:text-primary",children:"Advogada Previdenciária"})}),e.jsx("li",{children:e.jsx(o,{className:"w-4 h-4 text-muted-foreground"})}),e.jsx("li",{className:"text-foreground font-medium",children:(a==null?void 0:a.nome)||"..."})]})})}),e.jsx("section",{className:"py-16",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("h2",{className:"text-3xl font-bold text-foreground mb-8 text-center",children:["Cidades em ",(a==null?void 0:a.nome)||"..."]}),i?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:Array.from({length:12}).map((s,v)=>e.jsx(c,{className:"animate-pulse",children:e.jsxs(x,{className:"p-4",children:[e.jsx("div",{className:"h-6 bg-muted rounded w-full mb-2"}),e.jsx("div",{className:"h-4 bg-muted rounded w-1/2"})]})},v))}):r&&r.length>0?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:r.map(s=>e.jsx(t,{to:`/advogado-previdenciario/${a==null?void 0:a.slug}/${s.slug}`,children:e.jsx(c,{className:"hover:shadow-lg transition-all duration-200 hover:border-primary cursor-pointer group h-full",children:e.jsx(x,{className:"p-4",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx("span",{className:"font-semibold text-foreground group-hover:text-primary transition-colors block",children:s.nome}),s.population&&e.jsxs("span",{className:"text-muted-foreground text-sm flex items-center mt-1",children:[e.jsx(b,{className:"w-3 h-3 mr-1"}),j(s.population)]})]}),e.jsx(o,{className:"w-5 h-5 text-muted-foreground group-hover:text-primary transition-colors flex-shrink-0"})]})})})},s.id))}):e.jsxs("div",{className:"text-center py-12",children:[e.jsx("p",{className:"text-muted-foreground",children:"Nenhuma cidade encontrada para este estado."}),e.jsx(t,{to:"/advogado-previdenciario",className:"text-primary hover:underline mt-4 inline-block",children:"Voltar para lista de estados"})]})]})})]}),e.jsx(h,{})]})};export{R as default};