1import{n as h,b as x,D as p,t as y,j as e,N as l,L as i,k as c,q as u,p as j}from"./index-Bbu4tOeM.js";import{r as S}from"./vendor-3d-RYns6xqu.js";import{P as N}from"./index-jW7dfXVK.js";import{A as b}from"./arrow-left-I7fR_NSH.js";import"./vendor-maps-NzX78dS6.js";import"./vendor-supabase-Dg-T7_kj.js";function R(){const{slug:a}=h(),d=x(),o=a?p(a):void 0;if(S.useEffect(()=>{o&&y("region_page_viewed",{slug:o.slug,name:o.region})},[o]),!o)return e.jsxs("div",{style:{minHeight:"100vh",background:"#f6fafd"},children:[e.jsx(l,{}),e.jsxs("main",{style:{maxWidth:720,margin:"0 auto",padding:"120px 24px",textAlign:"center"},children:[e.jsx("h1",{className:"font-headline",style:{fontSize:32,fontWeight:800,color:"#181c1f",marginBottom:16},children:"Region not found"}),e.jsx("p",{style:{color:"#3f484e",marginBottom:32},children:"We don't have a page for that region yet."}),e.jsx(i,{to:"/country",style:{color:"#006482",fontWeight:600,fontSize:15},children:"All countries"})]}),e.jsx(c,{})]});const s=u.filter(t=>t.region===o.region).sort((t,n)=>t.name.localeCompare(n.name)),m=new Set(s.map(t=>t.name.toLowerCase())),g=o.region.toLowerCase(),r=N.filter(t=>{const n=`${t.title} ${t.excerpt}`.toLowerCase();if(n.includes(g))return!0;for(const f of m)if(n.includes(f))return!0;return!1}).slice(0,8);return e.jsxs("div",{style:{minHeight:"100vh",background:"#f6fafd"},children:[e.jsx(l,{}),e.jsxs("main",{style:{maxWidth:960,margin:"0 auto",padding:"0 24px"},children:[e.jsx("div",{style:{paddingTop:40,marginBottom:32},children:e.jsxs(i,{to:"/country",className:"flex items-center gap-2",style:{color:"#006482",fontWeight:600,fontSize:14,textDecoration:"none"},children:[e.jsx(b,{size:16}),"All countries"]})}),e.jsxs("header",{style:{marginBottom:48,maxWidth:720},children:[e.jsx("p",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.12em",color:"#006482",marginBottom:12},children:"Region"}),e.jsx("h1",{className:"font-headline",style:{fontSize:"clamp(36px, 6vw, 56px)",fontWeight:800,color:"#181c1f",letterSpacing:"-0.02em",lineHeight:1.1,marginBottom:20},children:o.displayName}),e.jsxs("p",{className:"font-body",style:{fontSize:18,color:"#3f484e",lineHeight:1.7},children:[o.tagline,"."]})]}),e.jsx("section",{style:{marginBottom:56,maxWidth:720},children:o.intro.map((t,n)=>e.jsx("p",{className:"font-body",style:{fontSize:17,color:"#2a2f33",lineHeight:1.8,marginBottom:20},children:t},n))}),e.jsxs("section",{style:{marginBottom:56},children:[e.jsxs("h2",{className:"font-headline",style:{fontSize:22,fontWeight:800,color:"#181c1f",marginBottom:20,letterSpacing:"-0.01em"},children:["Countries in ",o.displayName,e.jsx("span",{style:{fontSize:14,color:"#3f484e",fontWeight:500,marginLeft:12},children:s.length})]}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(220px, 1fr))",gap:12},children:s.map(t=>e.jsxs(i,{to:`/country/${t.slug}`,style:{display:"flex",alignItems:"center",gap:12,padding:"14px 16px",background:"#ffffff",border:"1px solid rgba(190,200,206,0.3)",borderRadius:12,color:"#181c1f",textDecoration:"none",transition:"border-color 120ms ease"},children:[e.jsx("span",{style:{fontSize:28,lineHeight:1},"aria-hidden":"true",children:t.flag}),e.jsx("span",{className:"font-headline",style:{fontSize:15,fontWeight:700},children:t.name})]},t.slug))})]}),e.jsxs("section",{className:"editorial-gradient",style:{borderRadius:16,padding:"48px 36px",textAlign:"center",margin:"0 0 56px",maxWidth:720},children:[e.jsxs("h2",{className:"font-headline",style:{fontSize:28,fontWeight:800,color:"#ffffff",marginBottom:12},children:["Test your ",o.displayName," knowledge"]}),e.jsxs("p",{className:"font-body",style:{fontSize:15,color:"rgba(255,255,255,0.8)",marginBottom:24,lineHeight:1.7},children:["Play satellite-imagery locations from across ",o.displayName," on a 3D globe."]}),e.jsxs("button",{onClick:()=>d("/game-select"),className:"font-headline",style:{display:"inline-flex",alignItems:"center",gap:8,background:"#ffffff",color:"#006482",fontWeight:700,fontSize:15,padding:"14px 32px",borderRadius:999,border:"none",cursor:"pointer"},children:["Play now",e.jsx(j,{size:18})]})]}),r.length>0&&e.jsxs("section",{style:{borderTop:"1px solid rgba(190,200,206,0.2)",padding:"36px 0 64px",maxWidth:720},children:[e.jsxs("div",{style:{marginBottom:20},children:[e.jsxs("span",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.1em",color:"#006482"},children:["More about ",o.displayName]}),e.jsx("h2",{className:"font-headline",style:{fontSize:22,fontWeight:800,color:"#181c1f",marginTop:8,letterSpacing:"-0.01em"},children:"From the blog"})]}),e.jsx("ul",{style:{listStyle:"none",padding:0,margin:0},children:r.map(t=>e.jsx("li",{style:{marginBottom:12},children:e.jsx(i,{to:`/blog/${t.slug}`,className:"font-headline",style:{fontSize:16,fontWeight:700,color:"#181c1f",textDecoration:"none"},children:t.title})},t.id))})]})]}),e.jsx(c,{})]})}
1export{R as default}; 2//# sourceMappingURL=RegionPage-Cv-zkFgj.js.map
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.