PageSourceSearch

https://www.lajollapropertygroup.com/assets/neighborhoods.index-CVNahcjl.js

js lajollapropertygroup.com collected 2026-10-09 22:03:10 UTC 9,160 bytes, 1 lines download raw bytes

1import{D as f,u as y,m as S,r as E,g as k,E as i,j as e,a as N,L as u}from"./index-Dujz2bhb.js";import{D as O}from"./data-currency-TICchvwT.js";import{S as $}from"./SiteHeader-DVtW8TDB.js";import{u as R}from"./useSuspenseQuery-C1oJIGNi.js";import{P as T}from"./PropertyTypeToggle-C6kGIQWv.js";import"./logo-lockup-white-CAiQggnz.js";import"./createLucideIcon-Bkv8Jmfi.js";import"./useBaseQuery-IbUUNVkG.js";const a=r=>r<=0?"—":r>=1e9?`$${(r/1e9).toFixed(1)}B`:`$${(r/1e6).toFixed(r>=1e7?1:2)}M`,A=r=>`$${Math.round(r/1e3).toLocaleString()}K`;function _(){const{type:r="sfr"}=f.useSearch(),b=y({from:"/neighborhoods/"}),j=s=>b({search:{type:s},replace:!0}),{data:h}=R(S),v=E.useMemo(()=>k(r,h),[r,h]).BY_YEAR[i],l=r==="condo",{overall:x,neighborhoods:o,sales:g}=v,n=g.reduce((s,d)=>!s||d.price>s.price?d:s,null),p=Math.round(o.reduce((s,d)=>s+(d.ppsf_median??0),0)/Math.max(1,o.filter(s=>s.ppsf_median).length));return e.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[e.jsx($,{}),e.jsx("section",{className:"border-b border-border",children:e.jsxs("div",{className:"max-w-[1400px] mx-auto px-6 lg:px-10 py-16 lg:py-20",children:[e.jsxs("p",{className:"text-[11px] tracking-[0.22em] text-gold mb-4",children:[i," · 92037 · ",l?"CONDO & TOWNHOUSE":"SINGLE FAMILY RESIDENTIAL"]}),e.jsxs("h1",{className:"font-display text-5xl lg:text-7xl leading-[1.02] tracking-tight max-w-4xl",children:["La Jolla, broken down ",e.jsx("em",{className:"text-gold font-normal",children:"neighborhood by neighborhood."})]}),e.jsx("p",{className:"mt-6 max-w-2xl text-muted-foreground leading-relaxed",children:l?`Where La Jolla's attached residential is trading right now, sorted by neighborhood. Click any one for the map, the ${i} sales, and twelve years of history. Single-family lives one toggle away — different market, different buyers.`:`Where 92037 is trading right now, sorted into the micro-markets that actually behave as distinct neighborhoods. Click any neighborhood for the map, the ${i} sales, and twelve years of history. Condo and townhouse data lives one toggle away — kept strictly separate.`}),e.jsxs("div",{className:"mt-8",children:[e.jsx("div",{className:"text-[10px] tracking-[0.22em] text-muted-foreground mb-2",children:"PROPERTY TYPE"}),e.jsx(T,{value:r,onChange:j})]}),e.jsx("div",{className:"mt-12 grid grid-cols-2 lg:grid-cols-4 gap-px bg-border",children:[["Median Sale",a(x.median),`across 92037 in ${i}`],["$/SQFT",p?`$${p.toLocaleString()}`:"—","neighborhood-weighted median"],["Volume YTD",a(x.total_volume),`transacted in ${i}`],["Top Sale",a(n?n.price:x.max),n?n.neighborhood:"92037"]].map(([s,d,c])=>e.jsxs("div",{className:"bg-background p-6 lg:p-8",children:[e.jsx("div",{className:"text-[10px] tracking-[0.22em] text-muted-foreground mb-3",children:s.toUpperCase()}),e.jsx("div",{className:"font-display text-3xl lg:text-5xl",children:d}),e.jsx("div",{className:"text-xs text-gold mt-2 tracking-wide",children:c})]},s))})]})}),e.jsx("section",{className:"border-b border-border",children:e.jsxs("div",{className:"max-w-[1400px] mx-auto px-6 lg:px-10 py-16",children:[e.jsx("h2",{className:"font-display text-3xl lg:text-4xl mb-2",children:o.length===0?`No ${l?"condo / townhouse":"single-family"} activity recorded yet for ${i}.`:`The ${o.length} ${o.length===1?"neighborhood":"neighborhoods"}, ranked by ${i} ${l?"condo / townhouse":"single-family"} activity`}),e.jsx("p",{className:"text-muted-foreground text-sm mb-8",children:"Click any neighborhood for its map, current closings, and twelve years of history."}),o.length>0&&e.jsxs("div",{className:"border border-border",children:[e.jsxs("div",{className:"hidden md:grid grid-cols-12 gap-4 px-5 py-3 bg-card text-[10px] tracking-[0.22em] text-muted-foreground border-b border-border",children:[e.jsx("div",{className:"col-span-3",children:"NEIGHBORHOOD"}),e.jsx("div",{className:"col-span-1 text-right",children:"SALES"}),e.jsx("div",{className:"col-span-2 text-right",children:"MEDIAN"}),e.jsx("div",{className:"col-span-2 text-right",children:"AVG"}),e.jsx("div",{className:"col-span-2 text-right",children:"RANGE"}),e.jsx("div",{className:"col-span-2 text-right",children:"$/SQFT"})]}),o.map(s=>{const d=N(s.name);return e.jsxs(u,{to:"/neighborhoods/$slug",params:{slug:d},search:{type:r},className:"block border-b border-border last:border-0 hover:bg-card transition-colors",children:[e.jsxs("div",{className:"hidden md:grid grid-cols-12 gap-4 px-5 py-4 items-center",children:[e.jsxs("div",{className:"col-span-3 font-display text-lg",children:[s.name," ",e.jsx("span",{className:"text-gold/70 text-xs ml-1",children:"→"})]}),e.jsx("div",{className:"col-span-1 text-right font-medium",children:s.count}),e.jsx("div",{className:"col-span-2 text-right text-gold font-medium",children:a(s.median)}),e.jsx("div",{className:"col-span-2 text-right text-cream/80",children:a(s.avg)}),e.jsxs("div",{className:"col-span-2 text-right text-xs text-muted-foreground",children:[a(s.min)," – ",a(s.max)]}),e.jsx("div",{className:"col-span-2 text-right text-cream/80",children:s.ppsf_median?`$${Math.round(s.ppsf_median).toLocaleStr
1ing()}`:"—"})]}),e.jsxs("div",{className:"md:hidden px-5 py-4",children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-3 mb-3",children:[e.jsxs("div",{className:"font-display text-lg min-w-0 truncate",children:[s.name," ",e.jsx("span",{className:"text-gold/70 text-xs ml-1",children:"→"})]}),e.jsxs("div",{className:"text-[10px] tracking-[0.22em] text-muted-foreground shrink-0",children:[s.count," SALES"]})]}),e.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-2 text-sm",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-[10px] tracking-[0.18em] text-muted-foreground",children:"MEDIAN"}),e.jsx("div",{className:"text-gold font-medium",children:a(s.median)})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-[10px] tracking-[0.18em] text-muted-foreground",children:"AVG"}),e.jsx("div",{className:"text-cream/80",children:a(s.avg)})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-[10px] tracking-[0.18em] text-muted-foreground",children:"$/SQFT"}),e.jsx("div",{className:"text-cream/80",children:s.ppsf_median?`$${Math.round(s.ppsf_median).toLocaleString()}`:"—"})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-[10px] tracking-[0.18em] text-muted-foreground",children:"RANGE"}),e.jsxs("div",{className:"text-xs text-muted-foreground",children:[a(s.min)," – ",a(s.max)]})]})]})]})]},s.name)})]})]})}),e.jsx("section",{children:e.jsx("div",{className:"max-w-[1400px] mx-auto px-6 lg:px-10 py-16 space-y-16",children:o.map(s=>{const d=g.filter(t=>t.neighborhood===s.name).sort((t,m)=>m.price-t.price),c=N(s.name);return e.jsxs("div",{id:c,className:"scroll-mt-20",children:[e.jsxs("div",{className:"flex items-end justify-between flex-wrap gap-3 mb-6 pb-4 border-b border-border",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"text-[10px] tracking-[0.22em] text-gold mb-2",children:["NEIGHBORHOOD · ",l?"CONDO / TOWNHOUSE":"SFR"," · ",i]}),e.jsx("h3",{className:"font-display text-3xl lg:text-4xl",children:s.name})]}),e.jsxs("div",{className:"flex gap-8 text-right items-end",children:[e.jsxs("div",{children:[e.jsx("div",{className:"text-[10px] tracking-[0.22em] text-muted-foreground",children:"MEDIAN"}),e.jsx("div",{className:"font-display text-2xl text-gold",children:a(s.median)})]}),e.jsxs("div",{children:[e.jsx("div",{className:"text-[10px] tracking-[0.22em] text-muted-foreground",children:"$/SQFT"}),e.jsx("div",{className:"font-display text-2xl",children:s.ppsf_median?`$${Math.round(s.ppsf_median).toLocaleString()}`:"—"})]}),e.jsx(u,{to:"/neighborhoods/$slug",params:{slug:c},search:{type:r},className:"text-[10px] tracking-[0.22em] text-gold border-b border-gold/40 hover:border-gold pb-1",children:"MAP + 12-YR HISTORY →"})]})]}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-px bg-border",children:d.map((t,m)=>e.jsxs("div",{className:"bg-background p-5 hover:bg-card transition-colors",children:[e.jsxs("div",{className:"flex items-baseline justify-between mb-2",children:[e.jsx("div",{className:"font-display text-lg",children:t.price>=1e6?a(t.price):A(t.price)}),e.jsx("div",{className:"text-[10px] tracking-[0.18em] text-muted-foreground",children:t.date})]}),e.jsx("div",{className:"text-sm text-cream/85",children:t.address}),e.jsxs("div",{className:"text-xs text-muted-foreground mt-2",children:[t.beds>0&&e.jsxs("span",{children:[t.beds," bd · "]}),t.baths>0&&e.jsxs("span",{children:[t.baths," ba · "]}),t.sqft>0&&e.jsxs("span",{children:[t.sqft.toLocaleString()," sqft"]}),t.year>0&&e.jsxs("span",{children:[" · built ",t.year]})]})]},m))})]},s.name)})})}),e.jsx("footer",{className:"border-t border-border py-10 px-6 lg:px-10",children:e.jsxs("div",{className:"max-w-[1400px] mx-auto text-[11px] tracking-[0.18em] text-muted-foreground",children:["DATA CURRENT THROUGH ",O.toUpperCase()," · ",i," RECORDED ",l?"CONDO & TOWNHOUSE":"SINGLE-FAMILY"," CLOSINGS · ZIP 92037 · SAN DIEGO COUNTY ASSESSOR · TWELVE YEARS OF HISTORY ON EACH NEIGHBORHOOD PAGE"]})})]})}export{_ as component};

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.