var tn=Object.defineProperty;var sn=(t,n,s)=>n in t?tn(t,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[n]=s;var _t=(t,n,s)=>sn(t,typeof n!="symbol"?n+"":n,s);import{r as d,j as e,L as H,b as Q,f as Pe,e as us,u as nn}from"./vendor-react-DgEFbQIi.js";import{u as an}from"./useSeo-eyKuqwK1.js";import{p as rn,c as tt,a as D,X as Ae,S as B,G as Rt,g as ln,b as on,d as cn,e as dn,f as un,h as It,B as $,i as ms,A as oe,C as hs,j as mn,k as hn,H as xs,L as W,I as Ce,l as xn,u as it,w as Ft,E as fn,m as gn,W as pn,n as Tt,o as fs,q as bn,s as vn,r as wn,t as yn,v as Le,x as jn,y as Nn,z as Me,D as kn,F as Sn,J as gs,K as Cn,M as ps,N as Ln,P as Mn,O as En,Q as st,R as Pn,T as An,U as q,V as _n,Y as Rn,Z as Ze}from"./index-DFVuS8SP.js";import{C as In,M as Fn,b as Tn,g as Bn,s as Dn,i as Hn,p as zn,u as Vn,f as $n,c as On,a as Un,d as Gn,E as Wn,R as Bt,U as qn,L as Kn}from"./UnifiedMobileNavbar-BPabqAHd.js";import{u as Yn,a as ce,b as bs,A as Zn,M as Xn}from"./vendor-maps-bOuA10hf.js";import{B as Qn}from"./badge-EX7nx8Gi.js";import{Z as Jn}from"./zap-C_2cuoty.js";import{u as ea,t as ta}from"./useHoverRipple-CBPqdLxA.js";import{L as vs}from"./ListingCard-Cw2aMm7U.js";import{f as sa}from"./vendor-amplify-BBi2B1tW.js";import{P as na}from"./panel-right-close-BZj_5Zsy.js";import{S as aa,a as ra,b as ia,c as la}from"./sheet-BzPTO6EG.js";import{S as oa}from"./star-C0MTo9W6.js";import{t as ca,b as ws,H as Dt}from"./venues-BaWtNBkC.js";import{g as da,M as ua,m as Ht}from"./vendor-motion-CzLrDd6y.js";import"./confetti.module-B5JVzsfH.js";import{S as ma}from"./ScrollableServiceSection-CLba8NGS.js";import{g as lt,i as ys}from"./listing-utils-CICni2H8.js";import{i as Ee}from"./claimRequests-54T7aAUE.js";import{A as ha}from"./arrow-down-CzkyYIhP.js";import{I as xa}from"./ImageWithFallback-C1HTj5IA.js";import{A as fa}from"./arrow-up-sIzvqeFF.js";import{R as ga}from"./rotate-cw-DAqqxJK1.js";import{A as js}from"./arrow-up-right-DCfCiuVV.js";import{M as ot}from"./message-circle-DUsZlt4V.js";import{R as pa}from"./rotate-ccw-NTqAYCRq.js";import{c as ba}from"./badges-B7hHNwsz.js";import{M as Xe}from"./map-D_w1PrhS.js";import"./vendor-radix-kdo0k_bv.js";import"./circle-plus-DGhVgDs7.js";import"./dollar-sign-Cz68EQu2.js";import"./city-coordinates-9wKWO0xx.js";import"./OptimizedImage-BZrGLn_7.js";import"./listingFeeInput-DmvcA6E5.js";import"./listing-B0peEtEB.js";import"./wishlists-NNbira8h.js";import"./authHeaders-C650O0HP.js";import"./badge-check-D5e4IH5i.js";import"./parseISO-C4sM-PC7.js";function Ns(t,n,s,a){const r=(s-t)*Math.PI/180,o=(a-n)*Math.PI/180,c=Math.sin(r/2)*Math.sin(r/2)+Math.cos(t*Math.PI/180)*Math.cos(s*Math.PI/180)*Math.sin(o/2)*Math.sin(o/2);return 3959*(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)))}function va(t,n,s){return t.map(a=>({pos:a,distance:Ns(n.lat,n.lng,a.lat,a.lng)})).filter(a=>a.distance<=s).map(a=>a.pos)}function we(t){return(t==null?void 0:t.trim().toLowerCase())||""}const wa=250;function ya(t,n){const[s,a]=d.useState({}),i=d.useRef(new Set);return d.useEffect(()=>{a(r=>{const o={...r};let c=!1;const h=new Set;return t.forEach(u=>{h.add(u.id);const l=typeof u.latitude=="number"?u.latitude:parseFloat(String(u.latitude??"")),m=typeof u.longitude=="number"?u.longitude:parseFloat(String(u.longitude??""));if(Number.isFinite(l)&&Number.isFinite(m)){const g=o[u.id];(!g||g.lat!==l||g.lng!==m||g.source!=="listing")&&(o[u.id]={lat:l,lng:m,source:"listing",locationLabel:we(u.location)},c=!0)}else{const g=o[u.id];g&&g.source==="geocoded"&&g.locationLabel&&we(u.location)!==g.locationLabel&&we(u.location)&&(delete o[u.id],c=!0)}}),Object.keys(o).forEach(u=>{h.has(u)||(delete o[u],c=!0)}),c?o:r})},[t,n]),d.useEffect(()=>{var l;if(typeof google>"u"||!((l=google.maps)!=null&&l.Geocoder))return;const r=i.current,o=t.filter(m=>{var x;const g=(x=m.location)==null?void 0:x.trim();if(!g||s[m.id])return!1;const p=`${m.id}|${g}`;return r.has(p)?!1:(r.add(p),!0)});if(!o.length)return;const c=new google.maps.Geocoder;let h=!1;return(async()=>{for(const m of o){if(h)return;const g=m.location,p=rn(g),x=p!==void 0?p:await tt(c,g);if(h)return;x&&a(f=>{const b=f[m.id];return b&&b.lat===x.lat&&b.lng===x.lng?f:{...f,[m.id]:{lat:x.lat,lng:x.lng,source:"geocoded",locationLabel:we(g)}}}),p===void 0&&await new Promise(f=>setTimeout(f,wa))}})(),()=>{var m;h=!0;for(const g of o)r.delete(`${g.id}|${(m=g.location)==null?void 0:m.trim()}`)}},[t,s,n]),s}function ja({location:t,query:n,focusBounds:s,searchKey:a}){const[i,r]=d.useState({lat:30.2672,lng:-97.7431}),[o,c]=d.useState(11),[h,u]=d.useState(null),[l,m]=d.useState(null),g=d.useRef(null),p=Yn("places");return d.useEffect(()=>{h&&n?g.current=h.position:n||(g.current=null)},[h,n]),d.useEffect(()=>{if(!s){if(n&&n.trim()&&p&&tt(new google.maps.Geocoder,n.trim()).then(x=>{if(!x)return;const f={lat:x.lat,lng:x.lng},b=x.types||[];b.some(k=>k==="locality"||k==="administrative_area_level_1"||k==="administrative_area_level_2"||k==="postal_code")&&(r(f),c(11),u({position:f,name:x.formattedAddress||n,address:x.formattedAddress||n,photos:[],types:b}),m(null))}),(t==null?void 0:t.toLowerCase())==="nearby"||!t){u(null),!n&&navigator.geolocation&&navigator.geolocation.getCurrentPosition(x=>{r({lat:x.coords.latitude,lng:x.coords.longitude}),m({lat:x.coords.latitude,lng:x.coords.longitude}),c(12)},x=>{x.code!==1&&console.warn("Geolocation error:",x),m(null)});return}t&&p&&(m(null),tt(new google.maps.Geocoder,t).then(x=>{if(!x)return;const f={lat:x.lat,lng:x.lng};if(r(f),u({position:f,name:t,address:x.formattedAddress||t,photos:[],types:x.types||[]}),t.includes("miles from current location")){const b=parseInt(t);b<=5?c(12):b<=10?c(11):c(10)}else c(12)}))}},[t,p,a,s,n]),{center:i,zoom:o,locationMarker:h,userLocation:l,queryLocationRef:g}}const Na=100,ka=50;function Sa({venues:t,resolvedVenuePositions:n,locationMarker:s,userLocation:a,queryLocation:i,focusBounds:r,searchKey:o,onBoundsChange:c,userHasMovedMap:h}){const u=ce();d.useEffect(()=>{var g;if(!u||typeof google>"u"||!((g=google.maps)!=null&&g.LatLngBounds)||r||h&&c)return;const l=t.map(p=>n[p.id]).filter(p=>p!==void 0);if(t.length===0||l.length===0)return;if(l.length===1){const p=l[0];u.setCenter({lat:p.lat,lng:p.lng}),u.setZoom(12);return}const m=new google.maps.LatLngBounds;if(i&&l.length>0){const p=va(l,i,Na);if(p.length>0)p.forEach(x=>{m.extend({lat:x.lat,lng:x.lng})}),m.extend(i);else{m.extend(i);const x=.1;m.extend({lat:i.lat+x,lng:i.lng+x}),m.extend({lat:i.lat-x,lng:i.lng-x})}}else l.forEach(p=>{m.extend({lat:p.lat,lng:p.lng})}),s&&m.extend(s.position);a&&l.length>0?Math.min(...l.map(x=>Ns(a.lat,a.lng,x.lat,x.lng)))<=ka&&m.extend(a):a&&l.length===0&&m.extend(a),u.fitBounds(m,{top:100,right:100,bottom:100,left:100})},[u,t,n,s,a,i,o,c,r,h]),d.useEffect(()=>{var m;if(!u||!r||typeof google>"u"||!((m=google.maps)!=null&&m.LatLngBounds))return;const l=new google.maps.LatLngBounds;l.extend({lat:r.ne.lat,lng:r.ne.lng}),l.extend({lat:r.sw.lat,lng:r.sw.lng}),u.fitBounds(l,{top:80,right:80,bottom:80,left:80})},[u,r])}function Ca({onBoundsChange:t,searchKey:n,onUserMovedMap:s}){const a=ce(),i=d.useRef(!1),r=d.useRef(!1),o=d.useCallback(()=>{r.current=!0,s(!0)},[s]);return d.useEffect(()=>{if(!a||!t||typeof google>"u")return;let c=null;const h=()=>{c&&clearTimeout(c),c=setTimeout(()=>{const f=a.getBounds();if(f){const b=f.getNorthEast(),w=f.getSouthWest();t({ne:{lat:b.lat(),lng:b.lng()},sw:{lat:w.lat(),lng:w.lng()}},{userInitiated:r.current}),r.current=!1,i.current||(i.current=!0)}else t(null)},300)},l=setTimeout(()=>{const f=a.getBounds();if(f&&!i.current){const b=f.getNorthEast(),w=f.getSouthWest();t({ne:{lat:b.lat(),lng:b.lng()},sw:{lat:w.lat(),lng:w.lng()}},{userInitiated:!1}),i.current=!0}},500),m=google.maps.event.addListener(a,"bounds_changed",h),g=google.maps.event.addListener(a,"dragstart",o),p=a.getDiv(),x=["pointerdown","wheel","touchstart","keydown"];return x.forEach(f=>{p.addEventListener(f,o,{passive:!0})}),()=>{m&&google.maps.event.removeListener(m),c&&clearTimeout(c),l&&clearTimeout(l),google.maps.event.removeListener(g),x.forEach(f=>{p.removeEventListener(f,o)})}},[a,o,t]),d.useEffect(()=>{i.current=!1,r.current=!1,s(!1)},[n,s]),{markUserInteraction:o}}function La(t){const n=ce();d.useEffect(()=>{if(!n||!t.current)return;const s=()=>{if(!t.current)return;let l=document.getElementById("map-container-wrapper");if(!l){let x=t.current.parentElement;for(;x&&x!==document.body;){const f=window.getComputedStyle(x);if(f.height&&(f.height.includes("calc")||f.height.includes("vh"))){l=x;break}x=x.parentElement}}if(!l)return;const m=t.current;m.style.height="100%",m.style.minHeight="100%",m.style.maxHeight="100%",m.style.display="flex",m.style.flexDirection="column";const g=m.querySelectorAll("div");let p=!1;g.forEach(x=>{const f=x,b=f.getAttribute("style")||"";if(b.includes("z-index: 3")&&b.includes("position: absolute")){p=!0,f.style.height="100%",f.style.minHeight="100%",f.style.maxHeight="100%",f.style.width="100%",f.style.top="0px",f.style.left="0px",f.style.bottom="0px",f.style.right="0px",f.style.position="absolute",f.style.inset="0px",f.style.boxSizing="border-box";const w=f.querySelector("canvas");w&&(w.style.height="100%",w.style.width="100%")}}),p&&n&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(n){google.maps.event.trigger(n,"resize");const x=n.getDiv();if(x){const f=x.getBoundingClientRect(),b=m.getBoundingClientRect().height;b>0&&f.height<b*.9&&(x.style.height=`${b}px`,x.style.minHeight=`${b}px`,setTimeout(()=>{n&&google.maps.event.trigger(n,"resize")},50))}}})})},a=new ResizeObserver(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{n&&t.current&&(s(),setTimeout(()=>{n&&(google.maps.event.trigger(n,"resize"),setTimeout(()=>{s(),n&&google.maps.event.trigger(n,"resize")},100))},50))})})});a.observe(t.current);const i=document.getElementById("map-container-wrapper");i&&a.observe(i),t.current.parentElement&&a.observe(t.current.parentElement);const r=l=>{setTimeout(()=>{n&&t.current&&(s(),setTimeout(()=>{n&&(google.maps.event.trigger(n,"resize"),setTimeout(()=>{n&&google.maps.event.trigger(n,"resize")},100))},50))},l)};r(50),r(150),r(300),r(600),r(1e3),r(1500);const o=()=>{n&&t.current&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{s(),setTimeout(()=>{n&&(google.maps.event.trigger(n,"resize"),setTimeout(()=>{s()},100))},50)})})};window.addEventListener("resize",o);let c=window.devicePixelRatio;const u=setInterval(()=>{const l=window.devicePixelRatio;Math.abs(l-c)>.1&&(c=l,o())},500);if(n){const l=google.maps.event.addListener(n,"zoom_changed",()=>{setTimeout(()=>{s()},100)});n._zoomListener=l}return()=>{a.disconnect(),window.removeEventListener("resize",o),u&&clearInterval(u);const l=n;l!=null&&l._zoomListener&&google.maps.event.removeListener(l._zoomListener)}},[n,t])}const ks=t=>{const n=/^#([0-9a-f]{6})$/i.exec(t);return n?[Number.parseInt(n[1].slice(0,2),16),Number.parseInt(n[1].slice(2,4),16),Number.parseInt(n[1].slice(4,6),16)]:null},Ma=(t,n)=>{const s=ks(t);if(!s)return"#fff7f5";const a=Math.min(1,Math.max(0,n));return`rgb(${s.map(i=>Math.round(i*a+255*(1-a))).join(", ")})`},Ea=(t,n)=>{const s=ks(t);return s?`rgba(${s.join(", ")}, ${n})`:`rgba(225, 85, 67, ${n})`},se={default:1,highlighted:1e4,hovered:2e4},Pa=({venue:t,position:n,isHighlighted:s,variant:a="default",accentColor:i,onHoverChange:r,onClick:o,formatPrice:c})=>{const[h,u]=d.useState(!1),l=d.useRef(null),m=d.useRef([]),g=d.useRef(null),p=d.useRef(!1),x=d.useRef(s);x.current=s;const f=t.listingKind==="service",b=a==="price",w=c(t),k=i??"#e15543",S=s||h,L=h?se.hovered:s?se.highlighted:se.default,C=S?Ma(k,.1):"#ffffff",A=S?k:"#cfd4dc",I=()=>{p.current||(p.current=!0,u(!0),l.current&&(l.current.zIndex=se.hovered),r==null||r(t.id))},j=()=>{p.current&&(p.current=!1,u(!1),l.current&&(l.current.zIndex=x.current?se.highlighted:se.default),r==null||r(null))},N=y=>{var T;if(l.current===y||(m.current.forEach(O=>{google.maps.event.removeListener(O)}),m.current=[],(T=g.current)==null||T.call(g),g.current=null,l.current=y,!y||typeof google>"u"))return;const R=()=>{o==null||o(t.id)};m.current.push(google.maps.event.addListener(y,"click",R));const _=y.content;_ instanceof HTMLElement&&(_.addEventListener("mouseenter",I),_.addEventListener("mouseleave",j),g.current=()=>{_.removeEventListener("mouseenter",I),_.removeEventListener("mouseleave",j)})};return d.useEffect(()=>()=>{var y;m.current.forEach(R=>{google.maps.event.removeListener(R)}),m.current=[],(y=g.current)==null||y.call(g),g.current=null},[]),e.jsx(bs,{ref:N,position:n,zIndex:L,anchorTop:b?"-50%":void 0,onMouseEnter:I,onMouseLeave:j,clickable:!0,className:"cursor-pointer",style:{cursor:"pointer"},children:e.jsx("div",{className:D("pointer-events-auto transform cursor-pointer select-none rounded-full border font-semibold shadow-lg transition-transform duration-150",b?S?"relative inline-flex scale-110 items-center gap-1.5 rounded-[15px_15px_15px_5px] border-2 px-3 py-1.5 text-sm text-gray-950 shadow-2xl":"relative inline-flex scale-100 items-center gap-1.5 rounded-[14px_14px_14px_5px] border bg-white/95 px-2.5 py-1.5 text-xs text-gray-900 shadow-md backdrop-blur-sm hover:scale-105":S?D("scale-110 border-2 px-3 py-1 text-sm text-white shadow-xl",f?"bg-[#6254f3] border-[#6254f3]":"bg-brand border-brand"):D("scale-100 border-2 bg-white px-3 py-1 text-sm text-gray-900 hover:scale-110",f?"border-[#6254f3]":"border-primary")),style:b?{backgroundColor:C,borderColor:A,boxShadow:S?"none":"0 1px 2px rgba(17, 24, 39, 0.12), 0 4px 12px rgba(17, 24, 39, 0.16)",filter:S?`drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.98)) drop-shadow(0 0 3px ${Ea(k,.48)}) drop-shadow(0 8px 10px rgba(17, 24, 39, 0.28))`:void 0}:void 0,"data-venue-marker-id":t.id,"aria-label":`${t.name}, ${w}`,"aria-current":S?"true":void 0,children:b?e.jsxs(e.Fragment,{children:[e.jsx("span",{children:w}),e.jsxs("svg",{"aria-hidden":"true","data-marker-pointer":!0,viewBox:"0 0 14 9",className:"absolute -bottom-[7px] left-3 h-[9px] w-[14px] overflow-visible",children:[e.jsx("path",{d:"M1 0 L7 8 L13 0 Z",fill:C}),e.jsx("path",{d:"M1 0 L7 8 L13 0",fill:"none",stroke:A,strokeWidth:S?2:1,strokeLinecap:"round",strokeLinejoin:"round"}),e.jsx("path",{d:"M0 0 H14",fill:"none",stroke:C,strokeWidth:S?4:3})]})]}):w})})},zt=(t,n,s)=>Math.min(Math.max(t,n),s);function Aa(t,n){const s=t<560||n<440,a=Math.max(180,t-24);return s?{width:Math.min(256,a),estimatedHeight:104,variant:"compact"}:{width:Math.min(288,a),estimatedHeight:284,variant:"default"}}function _a(t,n,s,a,i,r,o){const u=Math.max(12,t-i-12),l=Math.max(12,n-r-12),m=o??{left:s-52,right:s+52,top:a-38,bottom:a+14},g=(m.left+m.right)/2,p=(m.top+m.bottom)/2,x=zt(g-i/2,12,u),f=zt(p-r/2,12,l),b=[{left:x,top:m.top-r-16},{left:x,top:m.bottom+16},{left:m.right+16,top:f},{left:m.left-i-16,top:f}],w=({top:C,left:A})=>A>=12&&C>=12&&A+i<=t-12&&C+r<=n-12,k=({top:C,left:A})=>A+i+16<=m.left||A>=m.right+16||C+r+16<=m.top||C>=m.bottom+16,S=b.find(C=>w(C)&&k(C));if(S)return S;const L=[{top:12,left:12},{top:12,left:u},{top:l,left:12},{top:l,left:u}];return L.find(k)??L[0]}const Ra=({venue:t,position:n,map:s,onClose:a,searchKey:i,accentColor:r="#e15543"})=>{const o=d.useRef(null),[c,h]=d.useState({position:{top:12,left:12},width:256,variant:"compact"});return d.useEffect(()=>{if(!s||typeof google>"u")return;const u=new google.maps.OverlayView;u.onAdd=()=>{},u.onRemove=()=>{},u.draw=()=>{var R;const x=u.getProjection();if(!x)return;const f=new google.maps.LatLng(n.lat,n.lng),b=x.fromLatLngToContainerPixel(f);if(!b)return;const w=s.getDiv();if(!w)return;const k=w.getBoundingClientRect(),S=Aa(k.width,k.height),L=S.width,C=(R=o.current)==null?void 0:R.getBoundingClientRect().height,A=C&&C>0?C:S.estimatedHeight,I=Array.from(w.querySelectorAll("[data-venue-marker-id]")).find(_=>_.dataset.venueMarkerId===t.id),j=I==null?void 0:I.getBoundingClientRect(),N=j?{left:j.left-k.left,right:j.right-k.left,top:j.top-k.top,bottom:j.bottom-k.top}:void 0,y=_a(k.width,k.height,b.x,b.y,L,A,N);h({position:y,width:S.width,variant:S.variant})},u.setMap(s);const l=google.maps.event.addListener(s,"bounds_changed",()=>u.draw()),m=google.maps.event.addListener(s,"zoom_changed",()=>u.draw()),g=google.maps.event.addListener(s,"resize",()=>u.draw()),p=typeof ResizeObserver<"u"?new ResizeObserver(()=>u.draw()):null;return p==null||p.observe(s.getDiv()),o.current&&(p==null||p.observe(o.current)),()=>{p==null||p.disconnect(),u.setMap(null),google.maps.event.removeListener(l),google.maps.event.removeListener(m),google.maps.event.removeListener(g)}},[s,n.lat,n.lng,t.id]),e.jsx("div",{ref:o,"data-map-listing-overlay":!0,className:"absolute z-50 max-w-[calc(100vw-1.5rem)] transition-[width] duration-200",style:{...c.position,width:c.width},children:e.jsxs("div",{className:"relative rounded-2xl border-2 bg-white shadow-2xl",style:{borderColor:r,boxShadow:`0 0 0 2px rgba(255, 255, 255, 0.96), 0 12px 30px rgba(17, 24, 39, 0.24), 0 0 18px color-mix(in srgb, ${r} 28%, transparent)`},children:[e.jsx("button",{onClick:a,className:"absolute -right-2.5 -top-2.5 z-20 flex h-8 w-8 items-center justify-center rounded-full border-2 bg-white shadow-lg transition-transform hover:scale-105",style:{borderColor:r,color:r},"aria-label":"Close listing",children:e.jsx(Ae,{className:"h-4 w-4"})}),e.jsx("div",{className:"overflow-hidden rounded-[14px]",children:e.jsx(vs,{kind:"map",venue:t,searchQuery:i,variant:c.variant,className:"rounded-[14px] border-0 shadow-none hover:shadow-none"})})]})})},Ia=({onToggleFullscreen:t,isFullscreen:n,onMapInteraction:s})=>{const a=ce(),i=()=>{if(a){const o=a.getZoom();o!==void 0&&(s==null||s(),a.setZoom(o+1))}},r=()=>{if(a){const o=a.getZoom();o!==void 0&&(s==null||s(),a.setZoom(o-1))}};return e.jsxs(e.Fragment,{children:[t&&e.jsx("button",{onClick:t,className:"absolute top-4 right-4 glass glass-overlay rounded-lg p-2.5 z-10",title:n?"Exit fullscreen":"Enter fullscreen",children:n?e.jsx("svg",{className:"w-5 h-5 text-gray-700",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}):e.jsx("svg",{className:"w-5 h-5 text-gray-700",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"})})}),e.jsxs("div",{className:"absolute right-4 flex flex-col gap-2 z-10",style:{bottom:`calc(env(safe-area-inset-bottom, 0px) + ${n?104:96}px)`},children:[e.jsx("button",{onClick:i,className:"glass glass-overlay rounded-lg p-2.5",title:"Zoom in",children:e.jsx("svg",{className:"w-5 h-5 text-gray-700",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})})}),e.jsx("button",{onClick:r,className:"glass glass-overlay rounded-lg p-2.5",title:"Zoom out",children:e.jsx("svg",{className:"w-5 h-5 text-gray-700",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 12H4"})})})]})]})},Fa=({loading:t,boundsLoading:n})=>e.jsxs(e.Fragment,{children:[t&&!n&&e.jsx("div",{className:"absolute inset-0 z-[5]",children:e.jsx("div",{className:"w-full h-full rounded-2xl bg-muted animate-pulse"})}),n&&e.jsxs("div",{className:"absolute top-4 left-1/2 -translate-x-1/2 z-[6] bg-white rounded-full px-4 py-2 shadow-lg border border-gray-200 flex items-center gap-2",children:[e.jsxs("div",{className:"flex gap-1",children:[e.jsx("div",{className:"w-2 h-2 bg-gray-600 rounded-full animate-bounce",style:{animationDelay:"0ms"}}),e.jsx("div",{className:"w-2 h-2 bg-gray-600 rounded-full animate-bounce",style:{animationDelay:"150ms"}}),e.jsx("div",{className:"w-2 h-2 bg-gray-600 rounded-full animate-bounce",style:{animationDelay:"300ms"}})]}),e.jsx(B,{className:"h-4 w-24"})]})]}),Ta=({userLocation:t})=>e.jsx(bs,{position:t,children:e.jsxs("div",{className:"relative flex items-center justify-center",children:[e.jsx("span",{className:"absolute inline-flex h-6 w-6 rounded-full bg-blue-500/30 animate-ping"}),e.jsx("span",{className:"relative inline-flex h-3 w-3 rounded-full bg-blue-600 border-2 border-white shadow"})]})}),Vt="#e15543",Ba=t=>{switch((t||"per_hour").toLowerCase()){case"per_person":case"per-person":case"person":case"guest":return"/person";case"per_person_per_hour":case"person-hour":case"person_hour":return"/person/hr";case"per_event":case"per-event":case"event":case"flat":return"";case"per_day":case"per-day":case"day":return"/day";case"per_hour":case"per-hour":case"hour":case"hourly":default:return"/hr"}},Da=({location:t,venues:n=[],markerVenues:s,focusBounds:a,mapOptions:i,isFullscreen:r=!1,onToggleFullscreen:o,searchKey:c,loading:h=!1,highlightedVenueId:u=null,selectedVenueId:l=null,onMarkerHoverChange:m,onMarkerClick:g,onBoundsChange:p,boundsLoading:x=!1,userLocationOverride:f=null,query:b})=>{const[w,k]=d.useState(!1),S=d.useRef(null),L=ce(),C=s&&s.length>0?s:n,A=d.useMemo(()=>{if(!s||s.length===0)return n;const M=new Map;for(const F of n)M.set(F.id,F);for(const F of s)M.set(F.id,F);return Array.from(M.values())},[n,s]),I=ya(A,c),{center:j,zoom:N,locationMarker:y,userLocation:R,queryLocationRef:_}=ja({location:t,query:b,focusBounds:a,searchKey:c}),T=f??R;Sa({venues:n,resolvedVenuePositions:I,locationMarker:y,userLocation:T,queryLocation:_.current,focusBounds:a,searchKey:c,onBoundsChange:p,userHasMovedMap:w});const{markUserInteraction:O}=Ca({onBoundsChange:p,searchKey:c,onUserMovedMap:k});La(S),d.useEffect(()=>{a||L&&j&&n.length===0&&L.panTo(j)},[L,j,n.length,a]);const de=d.useCallback(M=>M.baseRate!==void 0&&M.baseRate>0?`$${M.baseRate.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}${Ba(M.priceUnit)}`:M.name,[]);return e.jsxs("div",{ref:S,className:"relative w-full h-full",style:{height:"100%",minHeight:"100%",maxHeight:"100%",position:"relative",overflow:"hidden"},children:[e.jsxs(Xn,{mapId:"53e7a282ade2ebddd8c812b0",reuseMaps:!0,defaultCenter:j,defaultZoom:N,gestureHandling:(i==null?void 0:i.gestureHandling)||"greedy",disableDefaultUI:(i==null?void 0:i.disableDefaultUI)??!0,zoomControl:(i==null?void 0:i.zoomControl)??!1,streetViewControl:(i==null?void 0:i.streetViewControl)??!1,mapTypeControl:(i==null?void 0:i.mapTypeControl)??!1,fullscreenControl:(i==null?void 0:i.fullscreenControl)??!1,clickableIcons:(i==null?void 0:i.clickableIcons)??!0,draggableCursor:i==null?void 0:i.draggableCursor,draggingCursor:i==null?void 0:i.draggingCursor,mapTypeId:"roadmap",onClick:()=>{l&&(g==null||g(null))},children:[e.jsx(Fa,{loading:h,boundsLoading:x}),C.map(M=>{const F=I[M.id];if(!F)return null;const J=l===M.id||u===M.id;return e.jsx(Pa,{venue:M,position:{lat:F.lat,lng:F.lng},isHighlighted:J,variant:"price",accentColor:Vt,onHoverChange:m,onClick:g,formatPrice:de},M.id)}),T&&e.jsx(Ta,{userLocation:T})]}),l&&(()=>{const M=A.find(J=>J.id===l);if(!M)return null;const F=I[M.id];return F?e.jsx(Ra,{venue:M,position:{lat:F.lat,lng:F.lng},map:L,onClose:()=>g==null?void 0:g(null),searchKey:c,accentColor:Vt}):null})(),e.jsx(Ia,{onToggleFullscreen:o,isFullscreen:r,onMapInteraction:O})]})},nt=t=>Rt?e.jsx("div",{style:{position:"relative",isolation:"isolate",height:"100%",minHeight:"100%"},className:"w-full h-full",children:e.jsx(Zn,{apiKey:Rt,children:e.jsx(Da,{...t})})}):(console.error("Google Maps is unavailable in this environment because its integration is not enabled."),e.jsx("div",{className:"w-full h-full flex items-center justify-center bg-gray-100 rounded-2xl",children:e.jsxs("div",{className:"text-center p-6",children:[e.jsx("p",{className:"text-gray-600 mb-2",children:"Map preview unavailable"}),e.jsx("p",{className:"text-sm text-gray-500",children:"Search results are still available in the listings panel."})]})})),Ss=[{value:"4.5",label:"4.5+"},{value:"4",label:"4.0+"},{value:"3.5",label:"3.5+"}],Ha={ageRestriction:"",minPrice:"0",maxPrice:"0",venueType:"",amenities:[],capacityMin:void 0,capacityMax:void 0,minRating:void 0,instantBook:!1,confirmedOnly:!1};function za(t){const n=[],s=t.get("location");s&&s.trim()&&n.push({key:"location",label:s.trim()});const a=cn(t.get("date"),t.get("start"));if(a){const o=dn(t.get("start"),t.get("end")),c=un(a,"EEE, MMM d");n.push({key:"date",label:o?`${c} · ${It(o.start)} - ${It(o.end)}`:c})}const i=t.get("guests"),r=i?parseInt(i,10):NaN;return Number.isFinite(r)&&r>0&&n.push({key:"guests",label:`${r} guest${r===1?"":"s"}`}),n}function Cs(t){const n=[],s=t.get("venueType");s&&s!=="all"&&n.push({key:"venueType",label:ln(s)});const a=t.get("amenities");if(a)for(const m of a.split(",")){const g=m.trim();g&&n.push({key:`amenity:${g}`,label:on(g)})}const i=m=>m!==null&&m!==""&&m!=="0",r=t.get("minPrice"),o=t.get("maxPrice");if(i(r)||i(o)){let m;i(r)&&i(o)?m=`$${r} - $${o}`:i(r)?m=`$${r}+`:m=`Up to $${o}`,n.push({key:"price",label:m})}const c=t.get("capacityMin"),h=t.get("capacityMax");if(i(c)||i(h)){let m;i(c)&&i(h)?m=`${c} - ${h} guests`:i(c)?m=`${c}+ guests`:m=`Up to ${h} guests`,n.push({key:"capacity",label:m})}const u=t.get("rating");i(u)&&n.push({key:"rating",label:`${u}+ stars`}),t.get("instant")==="1"&&n.push({key:"instant",label:"Instant book"}),t.get("confirmed")==="1"&&n.push({key:"confirmed",label:"Confirmed details"});const l=t.get("age");return l&&n.push({key:"age",label:l}),n}const Va=({params:t,onRemove:n,onClearAll:s,className:a})=>{const i=[...za(t),...Cs(t)];return i.length===0?null:e.jsxs("div",{className:D("flex flex-wrap items-center gap-2",a),children:[i.map(r=>e.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-muted text-foreground px-3 py-1 text-sm",children:[r.label,e.jsx("button",{type:"button","aria-label":`Remove ${r.label}`,onClick:()=>n(r.key),className:"ml-1 rounded-full opacity-70 transition-opacity hover:opacity-100",children:e.jsx(Ae,{className:"h-3.5 w-3.5"})})]},r.key)),e.jsx("button",{type:"button",onClick:s,className:"text-sm text-muted-foreground underline",children:"Clear all"})]})},$a=({categoryItems:t,selectedCategory:n,onSelectCategory:s,activeFilterCount:a,onOpenAllFilters:i,instantBook:r,onToggleInstantBook:o,minRating:c,onChangeRating:h,params:u,onRemoveChip:l,onClearAll:m,viewAction:g,className:p})=>e.jsxs("div",{className:D("flex flex-col gap-3 bg-white py-3",p),children:[t.length>0&&e.jsx(In,{items:t,selectedId:n,onSelect:s}),e.jsxs("div",{className:"flex items-center gap-2 overflow-x-auto scrollbar-hide",children:[g,e.jsxs($,{type:"button",variant:"outline",size:"sm",className:"h-9 flex-shrink-0 gap-2 rounded-full",onClick:i,children:[e.jsx(ms,{className:"h-4 w-4"}),"All filters",a>0&&e.jsx(Qn,{className:"ml-1 h-5 min-w-5 justify-center rounded-full bg-brand px-1.5 text-brand-foreground",children:a})]}),e.jsxs("button",{type:"button","aria-pressed":r,onClick:()=>o(!r),className:D("flex h-9 flex-shrink-0 items-center gap-1.5 rounded-full border px-4 text-sm font-medium",r?"border-brand bg-brand text-brand-foreground glass-solid":"border-border glass glass-surface text-foreground hover:border-foreground"),children:[e.jsx(Jn,{className:"h-4 w-4"}),"Instant book"]}),e.jsx("div",{className:"flex flex-shrink-0 items-center gap-1",children:Ss.map(x=>{const f=c===x.value;return e.jsxs("button",{type:"button","aria-pressed":f,onClick:()=>h(f?void 0:x.value),className:D("flex h-9 items-center rounded-full border px-3 text-sm font-medium",f?"border-brand bg-brand text-brand-foreground glass-solid":"border-border glass glass-surface text-foreground hover:border-foreground"),children:[x.label,e.jsx("span",{className:"ml-0.5 text-amber-500",children:f?"":"★"})]},x.value)})})]}),e.jsx(Va,{params:u,onRemove:l,onClearAll:m})]}),Oa=65,Ua=700,Ga=(t,n)=>`${Math.min((t+n)*Oa,Ua)}ms`,Wa=16,qa=({href:t,images:n})=>{const s=n.filter(Boolean).slice(0,3);return e.jsx(H,{to:t,className:"block h-full",children:e.jsxs("div",{className:"rounded-2xl bg-gray-50 h-full flex flex-col items-center justify-center gap-5 p-6 min-h-[220px] hover:bg-gray-100 transition-colors",children:[e.jsxs("div",{className:"relative h-28 w-28 flex-shrink-0",children:[s[2]&&e.jsx("img",{src:s[2],alt:"",className:"absolute top-4 right-0 h-20 w-20 rounded-xl object-cover shadow-sm rotate-[7deg]"}),s[1]&&e.jsx("img",{src:s[1],alt:"",className:"absolute top-2 left-2 h-20 w-20 rounded-xl object-cover shadow-sm -rotate-[3deg]"}),s[0]&&e.jsx("img",{src:s[0],alt:"",className:"absolute inset-0 h-20 w-20 rounded-xl object-cover shadow-md"})]}),e.jsx("span",{className:"text-sm font-semibold text-gray-900",children:"See all"})]})})},$t=({venues:t,heading:n,subtitle:s,searchQuery:a,viewAllHref:i,dense:r=!1,revealRow:o=0})=>{const c=d.useRef(null),[h,u]=d.useState(!1),[l,m]=d.useState(!1),[g,p]=d.useState(2),x=12,f=g*2,b=d.useMemo(()=>t.slice(0,f),[t,f]),{onItemHover:w,getStyle:k}=ea(),S=d.useCallback(()=>{const j=c.current;if(!j)return;const N=j.clientWidth-Wa*2;let y=2;r?N>=1240?y=7:N>=1060?y=6:N>=880?y=5:N>=640?y=4:N>=460&&(y=3):N>=1400?y=6:N>=1200?y=5:N>=700?y=4:N>=480&&(y=3),p(y)},[r]),L=d.useCallback(()=>{const j=c.current;if(!j)return;const{scrollLeft:N,scrollWidth:y,clientWidth:R}=j;u(N>4),m(N+R<y-4)},[]);d.useLayoutEffect(()=>{const j=c.current;if(!j)return;const N=()=>{S(),L()};S(),L(),j.addEventListener("scroll",L,{passive:!0}),window.addEventListener("resize",N);const y=new ResizeObserver(N);return y.observe(j),()=>{j.removeEventListener("scroll",L),window.removeEventListener("resize",N),y.disconnect()}},[S,L]),d.useEffect(()=>{const j=c.current;if(!j)return;const N=j.querySelector("a");if(!N)return;const y=parseFloat(getComputedStyle(j).columnGap||`${x}`),R=N.getBoundingClientRect().width+y,_=j.scrollWidth-j.clientWidth,T=Math.min(Math.round(j.scrollLeft/R)*R,_);j.scrollTo({left:T,behavior:"auto"}),L()},[g,L]);const C=d.useCallback(j=>{const N=c.current;if(!N)return;const y=N.querySelector("a");if(!y)return;const R=parseFloat(getComputedStyle(N).columnGap||`${x}`),_=y.getBoundingClientRect().width+R,T=N.scrollWidth-N.clientWidth,O=j==="left"?Math.max(0,N.scrollLeft-_):Math.min(T,N.scrollLeft+_);N.scrollTo({left:O,behavior:"smooth"})},[]),A=d.useMemo(()=>g<=1?"100%":g===2?`calc((100% - ${x*2}px) / 2.4)`:`calc((100% - ${(g-1)*x}px) / ${g})`,[g]),I=d.useMemo(()=>t.map(j=>j.main_image??"").filter(Boolean),[t]);return e.jsxs("section",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{children:[i?e.jsxs(H,{to:i,className:"group inline-flex items-center gap-1.5 hover:underline underline-offset-2",children:[e.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:n}),e.jsx(oe,{className:"h-4 w-4 text-gray-900 transition-transform group-hover:translate-x-0.5"})]}):e.jsx("h2",{className:"text-lg font-semibold text-gray-900",children:n}),e.jsx("p",{className:"text-[11px] text-muted-foreground",children:s})]}),e.jsxs("div",{className:"hidden lg:flex items-center gap-2 flex-shrink-0 mt-0.5",children:[e.jsx("button",{type:"button",onClick:()=>C("left"),disabled:!h,"aria-label":"Scroll left",className:"h-9 w-9 rounded-full border border-gray-200 glass glass-surface flex items-center justify-center text-gray-700 disabled:opacity-30 disabled:cursor-not-allowed",children:e.jsx(hs,{className:"h-4 w-4"})}),e.jsx("button",{type:"button",onClick:()=>C("right"),disabled:!l,"aria-label":"Scroll right",className:"h-9 w-9 rounded-full border border-gray-200 glass glass-surface flex items-center justify-center text-gray-700 disabled:opacity-30 disabled:cursor-not-allowed",children:e.jsx(mn,{className:"h-4 w-4"})})]})]}),e.jsxs("div",{className:"relative -mr-4 md:mr-0",children:[e.jsxs("div",{ref:c,className:"grid grid-flow-col gap-3 overflow-x-auto pt-5 pb-5 px-4 -mt-5 -mb-2 -mx-4 [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",style:{gridAutoColumns:A},onMouseLeave:()=>w(null),children:[b.map((j,N)=>e.jsx("div",{className:"h-full card-stagger-in transition-[transform,box-shadow] duration-300 ease-out will-change-transform",style:{animationDelay:Ga(o,N),...k(N)},onMouseEnter:()=>w(N),onClickCapture:y=>ta({listingId:j.id,category:"venue",position:N+1,source:"carousel_home",searchQuery:a},y),children:e.jsx(vs,{kind:"venue",venue:j,className:"h-full",searchQuery:a,hideOverlays:!0})},j.id)),i&&I.length>=2&&e.jsx(qa,{href:i,images:I})]}),e.jsx("div",{className:"sr-only","aria-live":"polite",children:l?"More venues available. Swipe horizontally to view.":"End of venues in this section."})]})]})},Ka=({onOpenFilters:t,onBack:n})=>{const s=d.useRef(null),[a,i]=d.useState(!1);return d.useEffect(()=>{let r=window.scrollY,o=null,c=!1;const h=()=>{c||(o=requestAnimationFrame(()=>{const u=window.scrollY;u>10&&u>r?i(!0):u<10&&i(!1),r=u,c=!1}),c=!0)};return window.addEventListener("scroll",h,{passive:!0}),()=>{window.removeEventListener("scroll",h),o!==null&&cancelAnimationFrame(o)}},[]),e.jsx("div",{ref:s,className:"glass md:hidden sticky top-0 z-40",style:{"--glass-tint-opacity":"0.72"},children:e.jsxs("div",{className:D("flex items-center justify-between gap-3 px-4 transition-[padding] duration-200",a?"py-2":"py-3"),children:[e.jsx("button",{type:"button",onClick:n,className:"rounded-full border border-gray-200 glass glass-surface p-2.5 min-h-11 min-w-11 flex items-center justify-center text-gray-700 flex-shrink-0","aria-label":"Go back",children:e.jsx(hn,{className:"h-5 w-5"})}),e.jsx(Fn,{className:"min-w-0 flex-1",compact:!0}),e.jsx("button",{type:"button",onClick:t,className:"rounded-full border border-gray-200 glass glass-surface p-2.5 min-h-11 min-w-11 flex items-center justify-center text-gray-700 flex-shrink-0","aria-label":"Open filters",children:e.jsx(ms,{className:"h-5 w-5"})})]})})},Ya=({sections:t,additionalVenues:n,serializedSearchParams:s,dense:a=!1})=>{const i=t.filter(r=>r.venues.length>0);return e.jsx("div",{className:"container mx-auto px-4 py-8 space-y-8",children:e.jsxs("div",{className:"space-y-3",children:[i.map((r,o)=>e.jsx($t,{venues:r.venues,heading:r.heading,subtitle:r.subtitle,viewAllHref:r.viewAllHref,searchQuery:s,dense:a,revealRow:o},r.id)),n.length>0&&e.jsx($t,{venues:n,heading:"More destinations",subtitle:"Additional venues outside of our spotlight cities.",searchQuery:s,dense:a,revealRow:i.length})]})})},at=({pendingBounds:t,boundsLoading:n,boundsError:s,onSearchHere:a})=>!t||n?null:e.jsxs("div",{className:"pointer-events-none absolute left-1/2 top-16 z-30 -translate-x-1/2 flex flex-col items-center gap-2",children:[e.jsx("button",{onClick:a,className:"pointer-events-auto glass glass-overlay text-gray-900 px-4 py-2 rounded-full font-medium",children:"Search this area"}),s&&e.jsx("div",{className:"pointer-events-auto bg-red-50 border border-red-200 text-red-800 px-4 py-2 rounded-lg shadow-lg max-w-xs text-sm text-center",children:s})]}),Ot=({height:t,mapLocation:n,venues:s,markerVenues:a,appliedBounds:i,pendingBounds:r,boundsError:o,boundsLoading:c,onSearchHere:h,onBoundsChange:u,highlightedVenueId:l,selectedVenueId:m,onMarkerHoverChange:g,onMarkerClick:p,query:x,searchLoading:f,onToggleFullscreen:b,searchParamsKey:w,mapOptions:k,onHideMap:S})=>e.jsx("div",{className:"hidden md:flex transition-all duration-500 ease-in-out flex-shrink-0 w-full md:w-[35%]",style:{height:t,minHeight:t,maxHeight:t,flexShrink:0},children:e.jsx("div",{className:"flex flex-col w-full h-full",style:{height:t},children:e.jsxs("div",{className:"flex-1 rounded-2xl overflow-hidden border border-gray-200 shadow-sm transition-[width] duration-500 ease-in-out",style:{position:"relative",boxSizing:"border-box",height:"100%",minHeight:"100%",maxHeight:"100%"},id:"map-container-wrapper",children:[e.jsx(nt,{location:n,venues:s,markerVenues:a,focusBounds:i,isFullscreen:!1,onToggleFullscreen:b,searchKey:w,loading:f,highlightedVenueId:l,selectedVenueId:m,onMarkerHoverChange:g,onMarkerClick:p,onBoundsChange:u,boundsLoading:c,query:x,mapOptions:k}),S&&e.jsxs("button",{type:"button",onClick:S,className:"glass glass-overlay absolute left-4 top-4 z-40 inline-flex h-10 items-center gap-2 rounded-full px-3 text-sm font-semibold text-gray-800 transition-transform hover:scale-[1.02]","aria-label":"Hide map",children:[e.jsx(na,{className:"h-4 w-4"}),e.jsx("span",{className:"hidden xl:inline",children:"Hide map"})]}),e.jsx(at,{pendingBounds:r,boundsLoading:c,boundsError:o,onSearchHere:h})]})})}),Za=({isMobile:t,fullscreenTop:n,fullscreenHeight:s,fullscreenContainerRef:a,mapLocation:i,venues:r,markerVenues:o,appliedBounds:c,pendingBounds:h,boundsError:u,boundsLoading:l,onSearchHere:m,onBoundsChange:g,highlightedVenueId:p,selectedVenueId:x,onMarkerHoverChange:f,onMarkerClick:b,query:w,searchLoading:k,onToggleFullscreen:S,searchParamsKey:L,mapOptions:C})=>t?e.jsxs("div",{ref:a,className:"absolute inset-0 overflow-hidden","data-mode":"fullscreen-mobile",children:[e.jsxs("div",{className:"absolute inset-0",style:{top:n,bottom:0},children:[e.jsx(nt,{location:i,venues:r,markerVenues:o,focusBounds:c,isFullscreen:!0,onToggleFullscreen:S,loading:k,highlightedVenueId:p,selectedVenueId:x,onMarkerHoverChange:f,onMarkerClick:b,onBoundsChange:g,boundsLoading:l,query:w,mapOptions:{disableDefaultUI:!0,gestureHandling:"greedy",streetViewControl:!1,fullscreenControl:!1,...C}},L),e.jsx(at,{pendingBounds:h,boundsLoading:l,boundsError:u,onSearchHere:m})]}),e.jsx("div",{className:"pointer-events-none absolute left-0 right-0 flex justify-center",style:{bottom:"calc(env(safe-area-inset-bottom, 0px) + 104px)"},children:e.jsxs("button",{onClick:S,className:"pointer-events-auto inline-flex items-center gap-2 rounded-full glass glass-overlay px-5 py-3 text-sm font-semibold text-gray-900",children:[e.jsx(hs,{className:"h-4 w-4"}),e.jsx("span",{children:"Show listings"})]})})]}):e.jsx("div",{ref:a,id:"map-container-wrapper",className:"relative w-full flex-1 overflow-hidden",style:{minHeight:s?`${s}px`:"calc(100vh - 68px)",height:s?`${s}px`:"calc(100vh - 68px)",maxHeight:s?`${s}px`:"calc(100vh - 68px)"},"data-mode":"fullscreen",children:e.jsx("div",{className:"absolute inset-0 flex",children:e.jsx("div",{className:"flex-1 px-6 py-6 transition-[width] duration-500 ease-in-out",children:e.jsxs("div",{className:"relative h-full rounded-2xl overflow-hidden border border-gray-200 shadow-sm",children:[e.jsx(nt,{location:i,venues:r,markerVenues:o,focusBounds:c,isFullscreen:!0,onToggleFullscreen:S,searchKey:L,loading:k,highlightedVenueId:p,selectedVenueId:x,onMarkerHoverChange:f,onMarkerClick:b,onBoundsChange:g,boundsLoading:l,query:w,mapOptions:C},L),e.jsx(at,{pendingBounds:h,boundsLoading:l,boundsError:u,onSearchHere:m})]})})})}),Xa=[{initial:"P",rest:"lan"},{initial:"L",rest:"iterally"},{initial:"E",rest:"very"},{initial:"C",rest:"elebration."}],Qa="Plan Literally Every Celebration.",Ja="We built the operating system for the celebration industry.",Ls="Planners book venues, services and transportation in one place, and providers run their entire operation from their phone.",er="Check out what we offer!",tr="A marketplace at plec.ai, two mobile apps, Plec. and PLEC Host, a custom CRM for vendors, and a cold outreach engine.",Ms="We're already producing real bookings and repeat customers, and expanding into new cities.",sr={label:"See the marketplace, apps and CRM",href:"#tech",track:"landing_see_tech"},ct={plec:"https://apps.apple.com/us/app/plec/id6788440902",host:"https://apps.apple.com/us/app/plec-host/id6789633028"},Es=[{id:"company",label:"I'm planning an event",headline:"Tell our Event Concierge what you're planning.",body:"Our free concierge team sources venues, services and transportation that fit your budget, with real prices."},{id:"planner",label:"I plan events for a living",headline:"Run every client event from one place.",body:"Book venues, services and transportation in our marketplace, manage it from our mobile apps, and run your business on our CRM.",primary:{label:"See the platform",href:"#tech",track:"landing_planner_see_platform"},secondary:{label:"Browse the marketplace",href:"/venues",track:"landing_planner_marketplace"}},{id:"provider",label:"I'm a venue or vendor",headline:"List your venue or business for free.",body:"Create your listing and get booked by planners. Then run your calendar, bookings and messages from the PLEC Host app.",primary:{label:"Create my free listing",href:xs,track:"landing_provider_create_listing"},secondary:{label:"Get PLEC Host",href:ct.host,track:"landing_provider_host_app",external:!0}},{id:"investor",label:"Investor or partner",headline:"Let's talk.",body:Ms,primary:{label:"Get in touch",href:"/contact",track:"landing_investor_contact"},secondary:{label:"Read our story",href:"/about",track:"landing_investor_story"}}],nr=["Holiday party for 250 in Austin","Client dinner for 40 in Philadelphia","Team offsite for 80 in Dallas","Product launch for 150 in Houston"],Ut=[],Qe={heading:"Behind every celebration is a planner nobody was building for.",body:"As his fraternity's treasurer, and again while helping plan his sister's quinceañera, Nicolas Munoz lived it: endless phone calls, quotes that never lined up, and payments with little protection. So he built PLEC, with a founding team from Penn and UT Austin.",caption:"Nicolas Munoz at an early brand shoot. The confetti was his idea."},ye="0",je="0",ar=({minPrice:t,maxPrice:n,onMinPriceChange:s,onMaxPriceChange:a,isDefault:i=!1})=>{const r=t||ye,o=n||je,[c,h]=d.useState(!i),u=c&&(r!==ye||o!==je);d.useEffect(()=>{i&&r===ye&&o===je&&h(!1)},[r,o,i]);const l=p=>{h(!0),s(p)},m=p=>{h(!0),a(p)},g=()=>{h(!1),s(ye),a(je)};return e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsx(W,{className:"text-base font-medium",children:"Price Range"}),u&&e.jsxs($,{variant:"ghost",size:"sm",onClick:g,className:"h-7 px-2 text-xs text-muted-foreground hover:text-foreground",children:[e.jsx(Ae,{className:"w-3 h-3 mr-1"}),"Clear"]})]}),!c&&e.jsx("p",{className:"text-xs text-muted-foreground mb-3",children:"Set a price range to filter results"}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(W,{className:"text-sm text-muted-foreground",children:"Min:"}),e.jsxs("div",{className:"flex items-center",children:[e.jsx("span",{className:"mr-2 text-muted-foreground",children:"$"}),e.jsx(Ce,{type:"number",min:"0",value:r==="0"?"":r,onChange:p=>l(p.target.value||"0"),placeholder:"Min",className:u?"border-brand":""})]})]}),e.jsxs("div",{className:"flex-1",children:[e.jsx(W,{className:"text-sm text-muted-foreground",children:"Max:"}),e.jsxs("div",{className:"flex items-center",children:[e.jsx("span",{className:"mr-2 text-muted-foreground",children:"$"}),e.jsx(Ce,{type:"number",min:"0",value:o==="0"?"":o,onChange:p=>m(p.target.value||"0"),placeholder:"Max",className:u?"border-brand":""})]})]})]}),u&&e.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:["Filtering: $",r," - $",o]})]})},rr=({capacityMin:t,capacityMax:n,onMinChange:s,onMaxChange:a})=>e.jsxs("div",{children:[e.jsx("div",{className:"flex items-center justify-between mb-3",children:e.jsx(W,{className:"text-base font-medium",children:"Capacity"})}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"flex-1",children:[e.jsx(W,{className:"text-sm text-muted-foreground",children:"Min guests:"}),e.jsx("div",{className:"flex items-center",children:e.jsx(Ce,{type:"number",min:"0",value:t||"",onChange:i=>s(i.target.value),placeholder:"Any"})})]}),e.jsxs("div",{className:"flex-1",children:[e.jsx(W,{className:"text-sm text-muted-foreground",children:"Max guests:"}),e.jsx("div",{className:"flex items-center",children:e.jsx(Ce,{type:"number",min:"0",value:n||"",onChange:i=>a(i.target.value),placeholder:"Any"})})]})]})]}),Gt=t=>D("inline-flex items-center gap-1 rounded-full border px-4 py-2 text-sm font-medium whitespace-nowrap transition-colors",t?"bg-brand text-brand-foreground border-brand":"bg-white text-foreground border-border hover:border-foreground"),ir=({value:t,onChange:n})=>e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium mb-2",children:"Minimum rating"}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("button",{type:"button","aria-pressed":!t,onClick:()=>n(void 0),className:Gt(!t),children:"Any"}),Ss.map(s=>{const a=t===s.value;return e.jsxs("button",{type:"button","aria-pressed":a,onClick:()=>n(a?void 0:s.value),className:Gt(a),children:[e.jsx(oa,{className:"h-4 w-4"}),s.label]},s.value)})]})]}),lr=({selectedAmenities:t,onToggle:n})=>e.jsx("div",{className:"space-y-4",children:xn.map(s=>e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium text-muted-foreground mb-2",children:s.label}),e.jsx("div",{className:"flex flex-wrap gap-2",children:s.options.map(a=>{const i=t.includes(a.value);return e.jsx("button",{type:"button","aria-pressed":i,onClick:()=>n(a.value),className:D("rounded-full border px-4 py-2 text-sm font-medium whitespace-nowrap transition-colors",i?"bg-brand text-brand-foreground border-brand":"bg-white text-foreground border-border hover:border-foreground"),children:a.label},a.value)})})]},s.label))}),or=({selectedAge:t,onToggle:n})=>e.jsxs("div",{children:[e.jsx(W,{className:"text-base font-medium mb-3 block",children:"Age restriction"}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx($,{variant:"outline",className:`flex-1 ${t==="18+"?"bg-accent border-accent hover:bg-accent/90 text-accent-foreground":""}`,onClick:()=>n("18+"),children:"18+"}),e.jsx($,{variant:"outline",className:`flex-1 ${t==="21+"?"bg-accent border-accent hover:bg-accent/90 text-accent-foreground":""}`,onClick:()=>n("21+"),children:"21+"})]})]}),cr=({open:t,onOpenChange:n,initialFilters:s,initialWhen:a,onApply:i})=>{const r=it(),[o,c]=d.useState(s),[h,u]=d.useState(()=>Ft(a));d.useEffect(()=>{t&&(c(s),u(Ft(a)))},[t,s,a]);const l=d.useCallback(f=>{c(b=>({...b,amenities:b.amenities.includes(f)?b.amenities.filter(w=>w!==f):[...b.amenities,f]}))},[]),m=d.useCallback(f=>{c(b=>({...b,ageRestriction:b.ageRestriction===f?"":f}))},[]),g=(!o.minPrice||o.minPrice==="0")&&(!o.maxPrice||o.maxPrice==="0"),p=d.useCallback(()=>{c(Ha),u(fn)},[]),x=d.useCallback(()=>{i(o,gn(h)),n(!1)},[o,h,i,n]);return e.jsx(aa,{open:t,onOpenChange:n,children:e.jsxs(ra,{side:r?"bottom":"right",className:"flex flex-col gap-0 p-0 sm:max-w-md",children:[e.jsx(ia,{className:"border-b border-border px-4 py-4",children:e.jsx(la,{children:"All filters"})}),e.jsxs("div",{className:"min-h-0 flex-1 space-y-6 overflow-y-auto overscroll-contain px-4 py-4",children:[e.jsxs("section",{children:[e.jsx("div",{className:"text-sm font-medium mb-2",children:"When"}),e.jsx(pn,{value:h,onChange:u})]}),e.jsxs("section",{children:[e.jsx("div",{className:"text-sm font-medium mb-2",children:"Price"}),e.jsx(ar,{minPrice:o.minPrice,maxPrice:o.maxPrice,onMinPriceChange:f=>c(b=>({...b,minPrice:f})),onMaxPriceChange:f=>c(b=>({...b,maxPrice:f})),isDefault:g})]}),e.jsxs("section",{children:[e.jsx("div",{className:"text-sm font-medium mb-2",children:"Guests"}),e.jsx(rr,{capacityMin:o.capacityMin,capacityMax:o.capacityMax,onMinChange:f=>c(b=>({...b,capacityMin:f||void 0})),onMaxChange:f=>c(b=>({...b,capacityMax:f||void 0}))})]}),e.jsxs("section",{children:[e.jsx("div",{className:"text-sm font-medium mb-2",children:"Minimum rating"}),e.jsx(ir,{value:o.minRating,onChange:f=>c(b=>({...b,minRating:f}))})]}),e.jsxs("section",{children:[e.jsx("div",{className:"text-sm font-medium mb-2",children:"Amenities"}),e.jsx(lr,{selectedAmenities:o.amenities,onToggle:l})]}),e.jsxs("section",{children:[e.jsx("div",{className:"text-sm font-medium mb-2",children:"Instant booking"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Tt,{id:"all-filters-instant",checked:!!o.instantBook,onCheckedChange:f=>c(b=>({...b,instantBook:f}))}),e.jsx(W,{htmlFor:"all-filters-instant",className:"font-normal",children:"Instant book only"})]})]}),e.jsxs("section",{children:[e.jsx("div",{className:"text-sm font-medium mb-2",children:"Confirmed details"}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(Tt,{id:"all-filters-confirmed",checked:!!o.confirmedOnly,onCheckedChange:f=>c(b=>({...b,confirmedOnly:f}))}),e.jsx(W,{htmlFor:"all-filters-confirmed",className:"font-normal",children:"Only places with confirmed details"})]}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Hides scraped listings we have not verified yet."})]}),e.jsxs("section",{children:[e.jsx("div",{className:"text-sm font-medium mb-2",children:"Age"}),e.jsx(or,{selectedAge:o.ageRestriction,onToggle:m})]})]}),e.jsxs("div",{className:"flex items-center gap-3 border-t border-border bg-background px-4 py-4",children:[e.jsx($,{variant:"outline",className:"flex-1",onClick:p,children:"Clear all"}),e.jsx($,{className:"flex-1 bg-brand hover:bg-brand/90 text-brand-foreground",onClick:x,children:"Apply"})]})]})})},Wt=12;function dr(t){const n=Q.useRef(null),[s,a]=Q.useState(2);Q.useLayoutEffect(()=>{const r=n.current;if(!r)return;const o=()=>{const h=r.clientWidth;let u=2;t?h>=1240?u=7:h>=1060?u=6:h>=880?u=5:h>=640?u=4:h>=460&&(u=3):h>=1400?u=6:h>=1200?u=5:h>=700?u=4:h>=480&&(u=3),a(u)};o(),window.addEventListener("resize",o);const c=new ResizeObserver(o);return c.observe(r),()=>{window.removeEventListener("resize",o),c.disconnect()}},[t]);const i=s<=1?"100%":s===2?`calc((100% - ${Wt*2}px) / 2.4)`:`calc((100% - ${(s-1)*Wt}px) / ${s})`;return{ref:n,visibleCount:s,gridAutoColumns:i}}const ur=()=>e.jsxs("div",{className:"group flex h-full flex-col rounded-2xl bg-white",children:[e.jsx(B,{className:"aspect-square w-full rounded-2xl"}),e.jsxs("div",{className:"flex flex-1 flex-col gap-0.5 pt-2 px-0.5 pb-3 md:px-1.5",children:[e.jsx(B,{className:"h-4 w-3/4"}),e.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[e.jsx(B,{className:"h-3 w-20"}),e.jsx(B,{className:"h-3 w-10"})]})]})]}),qt=({dense:t})=>{const{ref:n,visibleCount:s,gridAutoColumns:a}=dr(t),i=s+2;return e.jsxs("section",{className:"space-y-3",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(B,{className:"h-5 w-1/2 max-w-[240px]"}),e.jsx(B,{className:"h-3 w-2/3 max-w-[300px]"})]}),e.jsx("div",{className:"relative -mr-4 md:mr-0",children:e.jsx("div",{ref:n,className:"grid grid-flow-col gap-3 overflow-hidden pb-3",style:{gridAutoColumns:a},children:Array.from({length:i}).map((r,o)=>e.jsx(ur,{},o))})})]})},mr=({dense:t=!1,withMap:n=!1,mapHeight:s})=>{const a=e.jsxs("div",{className:"space-y-3",children:[e.jsx(qt,{dense:t}),e.jsx(qt,{dense:t})]}),i="animate-reveal-top-down";return n?e.jsx("div",{className:`px-4 py-6 md:px-6 ${i}`,children:e.jsxs("div",{className:"relative w-full flex flex-col md:flex-row-reverse md:gap-8 md:items-start",style:s?{height:s}:void 0,children:[e.jsx("div",{className:"hidden md:block flex-shrink-0 w-full md:w-[35%]",style:s?{height:s}:void 0,children:e.jsx(B,{className:"h-full w-full rounded-2xl border border-gray-200"})}),e.jsx("div",{className:"w-full md:w-[65%]",children:a})]})}):e.jsx("div",{className:`container mx-auto px-4 py-8 space-y-8 ${i}`,children:a})},hr=({loading:t,skeleton:n,children:s,durationMs:a=450,className:i=""})=>{const[r,o]=Q.useState(t);return Q.useEffect(()=>{if(t){o(!0);return}if(!r)return;const c=setTimeout(()=>o(!1),a);return()=>clearTimeout(c)},[t,a,r]),e.jsxs("div",{className:`grid ${i}`,children:[!t&&e.jsx("div",{className:"col-start-1 row-start-1 min-w-0",children:s}),r&&e.jsx("div",{"aria-hidden":!t,className:"col-start-1 row-start-1 min-w-0 z-10 transition-opacity ease-out",style:{opacity:t?1:0,transitionDuration:`${a}ms`,pointerEvents:t?void 0:"none"},children:n})]})};function xr(t,n){const[s,a]=d.useState(null),[i,r]=d.useState("calc(100vh - 192px)"),c=it()?68:134;return d.useEffect(()=>{const h=()=>{r(`${window.innerHeight-c-48}px`)};return h(),window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[c]),d.useEffect(()=>{if(!t){a(null);return}const h=()=>{if(!n.current){a(null);return}const u=n.current.getBoundingClientRect(),l=window.innerHeight-u.top;a(l>0?l:null)};return h(),window.addEventListener("resize",h),window.addEventListener("orientationchange",h),()=>{window.removeEventListener("resize",h),window.removeEventListener("orientationchange",h)}},[t,n]),{fullscreenHeight:s,mapContainerHeight:i}}function rt(t){const n=(t.ne.lat+t.sw.lat)/2,s=Math.abs(t.ne.lat-t.sw.lat),a=Math.abs(t.ne.lng-t.sw.lng),i=69,r=Math.max(Math.cos(n*Math.PI/180)*69,.1),o=s*i,c=a*r;return Math.max(Math.sqrt(o**2+c**2)/2,5)}const Kt=75;function fr(t,n){const[s]=Pe(),[a,i]=d.useState(null),[r,o]=d.useState(null),[c,h]=d.useState(null),[u,l]=d.useState(null),m=s.get("category"),g=s.get("location");d.useEffect(()=>{i(null),o(null),h(null),l(null)},[m,g,t]);const p=d.useCallback(()=>{if(!a)return;const b=rt(a);if(b>Kt){l(`Search area is too large (${Math.round(b)} miles). Please zoom in to search within ${Kt} miles.`),setTimeout(()=>l(null),5e3);return}l(null),o({ne:{...a.ne},sw:{...a.sw}}),i(null)},[a,n]),x=d.useCallback((b,w)=>{h(b),((w==null?void 0:w.userInitiated)??!0)&&(l(null),i(b))},[]),f=d.useMemo(()=>{if(!r)return null;const b=(r.ne.lat+r.sw.lat)/2,w=(r.ne.lng+r.sw.lng)/2,k=rt(r);return{center:{lat:b,lng:w},radiusMiles:k}},[r]);return{pendingBounds:a,appliedBounds:r,viewportBounds:c,boundsError:u,boundsSearchParams:f,handleSearchHere:p,handleBoundsChange:x}}function gr(){const[t]=Pe(),n=t.get("age")||"",s=t.get("minPrice"),a=t.get("maxPrice"),i=s&&!Number.isNaN(Number(s))?Number(s):void 0,r=a&&!Number.isNaN(Number(a))?Number(a):void 0,o=t.get("venueType")||"",c=d.useMemo(()=>{var f;return((f=t.get("amenities"))==null?void 0:f.split(",").filter(Boolean))||[]},[t]),h=t.get("capacityMin")||void 0,u=t.get("capacityMax")||void 0,l=t.get("rating"),m=l&&!Number.isNaN(Number(l))?Number(l):void 0,g=t.get("instant")==="1",p=t.get("confirmed")==="1",x=t.get("ownerPublicId")||void 0;return{filterAge:n,rawMinPrice:s,rawMaxPrice:a,filterMinPriceValue:i,filterMaxPriceValue:r,filterVenueType:o,filterAmenities:c,capacityMin:h,capacityMax:u,rawRating:l,filterMinRating:m,filterInstantBook:g,filterConfirmedOnly:p,filterOwnerPublicId:x}}const pr=4.2,Yt=30,br=.15;function Zt(t,n){const s=typeof t=="number"&&t>0?t:0,a=typeof n=="number"&&n>0?n:0;return s===0&&a===0?0:(a*s+Yt*pr)/(a+Yt)+br*Math.log10(1+a)}function Xt(t){var n,s;return((n=t.stats)==null?void 0:n.averageRating)??((s=t.stats)==null?void 0:s.rating)}function Ne(t){var n,s;return((n=t.stats)==null?void 0:n.reviewCount)??((s=t.stats)==null?void 0:s.userRatingCount)}function vr(t,n){const s=t.verified===!0,a=n.verified===!0;if(s!==a)return s?-1:1;const i=Zt(Xt(n),Ne(n))-Zt(Xt(t),Ne(t));return i!==0?i:(Ne(n)??0)-(Ne(t)??0)}function wr(t,n){return[...t].sort(vr).slice(0,n)}const yr=150,jr=60,Nr=400,kr=100;function Sr({bounds:t,query:n,sort:s,filters:a,date:i,startTime:r,endTime:o,enabled:c=!0}){const[h,u]=d.useState(t);d.useEffect(()=>{const x=setTimeout(()=>u(t),Nr);return()=>clearTimeout(x)},[t]);const l=d.useMemo(()=>{if(!h)return null;const x=(h.ne.lat+h.sw.lat)/2,f=(h.ne.lng+h.sw.lng)/2,b=Math.min(rt(h),kr);return{lat:Number(x.toFixed(2)),lng:Number(f.toFixed(2)),radiusMiles:Math.round(b)}},[h]),m=d.useMemo(()=>Tn(a),[a]),g=d.useMemo(()=>({date:i||void 0,startTime:r||void 0,endTime:o||void 0}),[i,r,o]),{data:p}=fs({queryKey:["map-venues",{viewport:l,query:n,sort:s,filters:m,when:g}],queryFn:()=>vn({query:n||void 0,filters:{location:l?{lat:l.lat,lng:l.lng,radiusMiles:l.radiusMiles}:void 0,...m,...g},sort:s,page:1,limit:yr}),enabled:c&&!!l,staleTime:5*60*1e3,placeholderData:bn});return d.useMemo(()=>{if(!p)return[];const x=p.venues.map(ca);return wr(x,jr)},[p])}const Cr=1,Lr=100;function Mr(t,n,s){if(!t||!n)return null;const a=Number(t),i=Number(n);if(!Number.isFinite(a)||!Number.isFinite(i)||a<-90||a>90||i<-180||i>180)return null;const r=s?Number(s):NaN,o=Number.isFinite(r)&&r>=Cr&&r<=Lr;return{lat:a,lng:i,...o?{radiusMiles:r}:{}}}function Er({venueTypeParam:t,textQuery:n,location:s,date:a,guests:i}){const r=t||"",o=n||"";return!r||r==="all"?{effectiveQuery:o,venueTypeFilter:""}:wn(r)?{effectiveQuery:o,venueTypeFilter:r}:!!o||!!s||!!a||!!i?{effectiveQuery:o,venueTypeFilter:r}:{effectiveQuery:r,venueTypeFilter:""}}da.registerPlugin(ua);const Pr=({user:t,authLoading:n,profile:s})=>{const{profilePhoto:a}=yn({user:t});return n?e.jsx("section",{className:"bg-white pt-12 pb-4",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"bg-white border border-gray-200 rounded-2xl p-4 md:p-5 shadow-sm",children:e.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-4 flex-1",children:[e.jsx(B,{className:"w-10 h-10 rounded-full flex-shrink-0"}),e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsx(B,{className:"h-5 w-64"}),e.jsx(B,{className:"h-4 w-80"})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(B,{className:"h-10 w-24 rounded-full"}),e.jsx(B,{className:"h-10 w-32 rounded-full"})]})]})})})}):e.jsx("section",{className:"bg-white pt-12 pb-4",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"bg-white border border-gray-200 rounded-2xl p-4 md:p-5 shadow-sm hover:shadow-md transition-shadow",children:e.jsx("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:t?e.jsx(e.Fragment,{children:e.jsxs("div",{className:"flex items-center gap-4 flex-1",children:[e.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-full overflow-hidden bg-brand-50 flex items-center justify-center border-2 border-[#ff7b6d] shadow-sm",children:a?e.jsx(jn,{originalSrc:a,variant:"thumbnail",alt:"",className:"w-full h-full object-cover",onError:i=>{i.currentTarget.src="/default-profile-icon.png"}}):e.jsx("img",{src:"/default-profile-icon.png",alt:"",className:"w-full h-full object-cover"})}),e.jsxs("div",{children:[e.jsxs("p",{className:"text-[#0F0F0F] font-medium text-base",children:["Welcome back",s!=null&&s.firstName&&(s!=null&&s.lastName)?`, ${s.firstName} ${s.lastName}`:s!=null&&s.firstName?`, ${s.firstName}`:"","!"]}),e.jsx("p",{className:"text-[#4B4B4B] text-sm mt-0.5",children:"Ready To Celebrate?"})]})]})}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex items-center gap-4 flex-1",children:[e.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-full bg-brand-50 flex items-center justify-center","aria-hidden":!0,children:e.jsx(Le,{className:"w-5 h-5 text-brand"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[#0F0F0F] font-medium text-base",children:"Get more when you sign in"}),e.jsx("p",{className:"text-[#4B4B4B] text-sm mt-0.5",children:"Unlock better pricing, save your favorites, and book with ease"})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx($,{asChild:!0,variant:"outline",className:"rounded-full border-brand text-brand hover:bg-brand hover:text-white",children:e.jsx(H,{to:"/auth",children:"Sign in"})}),e.jsx($,{asChild:!0,variant:"ghost",className:"rounded-full bg-brand text-white hover:bg-brand hover:brightness-110",children:e.jsx(H,{to:"/how-it-works",children:"Learn more"})})]})]})})})})})},Ar=({serviceTypes:t,availableCounts:n,buildHref:s})=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"md:hidden -mx-4 px-4",children:e.jsx("div",{className:"flex items-center gap-2 overflow-x-auto pb-2 scrollbar-hide",children:t.map(a=>{const i=n==null?void 0:n[a.id];return e.jsxs(H,{to:s(a.id),className:"shrink-0 inline-flex items-center gap-2 rounded-full border border-gray-200 bg-white px-3 py-2 text-sm font-semibold text-gray-700 transition-all hover:border-[hsl(var(--brand))] hover:bg-[hsl(var(--brand))]/5",children:[e.jsx("span",{className:"text-lg",children:a.icon}),e.jsx("span",{className:"text-xs font-semibold",children:a.label}),typeof i=="number"?e.jsx("span",{className:"rounded-full bg-gray-100 px-1.5 py-0.5 text-[10px] text-gray-600",children:i}):null]},a.id)})})}),e.jsx("div",{className:"hidden md:grid md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-2",children:t.map(a=>{const i=n==null?void 0:n[a.id];return e.jsxs(H,{to:s(a.id),className:"group flex items-center justify-between gap-3 rounded-xl border border-gray-200 bg-white px-3 py-2.5 transition-all hover:border-[hsl(var(--brand))] hover:bg-[hsl(var(--brand))]/5 hover:shadow-sm",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[e.jsx("span",{className:"text-xl leading-none",children:a.icon}),e.jsx("span",{className:"truncate text-sm font-semibold text-gray-900",children:a.label})]}),typeof i=="number"?e.jsx("span",{className:"rounded-full bg-gray-100 px-2 py-0.5 text-xs font-medium text-gray-600 group-hover:bg-white",children:i}):null]},a.id)})})]}),_r=t=>{const n=t.trim().toLowerCase();return n==="nearby"||n==="current location"};function Rr(){const[t]=Pe(),n=t.get("location");return d.useMemo(()=>{const s=n==null?void 0:n.trim();if(s&&!_r(s))return s;const a=Bn().trim();return a.length>0?a:null},[n])}const Ir=({featuredServices:t,loadingVenues:n,venuesError:s})=>{const a=Q.useMemo(()=>t.reduce((c,h)=>{const u=lt(h)??h.draftData,l=u==null?void 0:u.serviceType;return l&&(c[l]=(c[l]??0)+1),c},{}),[t]),i=Object.keys(a).length>0,r=Rr(),o=Q.useCallback(c=>{const h=new URLSearchParams;return h.set("services",c),r&&h.set("location",r),`/services?${h.toString()}`},[r]);return e.jsx("section",{className:"bg-white pt-3 pb-6 md:pt-4 md:pb-8",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("h2",{className:"text-[#0F0F0F] tracking-tight",style:{lineHeight:"1.2",fontWeight:600,fontSize:"clamp(1.5rem, 2.5vw, 2rem)"},children:"Discover services for your event"}),e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:r?`Browse top service categories near ${r} and book trusted pros in a few clicks.`:"Browse top service categories and book trusted pros in a few clicks."})]}),e.jsx(Ar,{serviceTypes:Nn,buildHref:o}),s&&!i&&!n?e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:"Service counts are temporarily unavailable. You can still browse all service categories."}):null]})})},Fr=100,Tr=2*60*1e3,Br=12;function Dr(t){var s,a;const n=lt(t)??t.draftData??{};return((s=n.serviceData)==null?void 0:s.coverImage)??((a=n.media)==null?void 0:a.coverImage)??void 0}function Qt(t){const n=lt(t)??t.draftData,s=n==null?void 0:n.plecMetadata;if(!(s!=null&&s.isFeatured))return!1;if(s.featuredUntil){const a=Date.parse(s.featuredUntil);if(!Number.isNaN(a)&&a<Date.now())return!1}return!0}function Jt(t){const n=t.publishedAt||t.updatedAt||t.createdAt||"",s=Date.parse(n);return Number.isNaN(s)?0:s}function Hr(t,n){const s=Qt(t),a=Qt(n);if(s!==a)return s?-1:1;const i=Ee(t),r=Ee(n);return i!==r?i?-1:1:Jt(n)-Jt(t)}function zr(){return{listingKind:"service",prioritizeVerified:!0,limit:Fr}}function Vr(t){const n=new Set;return t.filter(s=>s.listingKind==="service").filter(s=>!ys(s)).filter(s=>n.has(s.listingId)?!1:(n.add(s.listingId),!0)).filter(s=>!!Dr(s)).sort(Hr).slice(0,Br)}function $r(){const{data:t,isLoading:n,error:s}=fs({queryKey:["home","published-listings","service","nationwide"],queryFn:()=>Me(zr()),staleTime:Tr,refetchOnWindowFocus:!1});return{services:Vr((t==null?void 0:t.items)??[]),loading:n,error:s?"We are having trouble loading spotlight services right now. Please try again shortly.":null}}const Or=({serializedSearchParams:t,dense:n=!1})=>{const{services:s,loading:a}=$r();return a||s.length<2?null:e.jsx("div",{className:"container mx-auto px-4 pb-8",children:e.jsx(ma,{services:s,heading:"Spotlight services",subtitle:"Trusted pros to bring your event together.",viewAllHref:"/services",searchQuery:t,dense:n})})},Ur="/assets/coachbus-BDOdw1mj.jpg",Gr=()=>e.jsx("section",{className:"container mx-auto px-4 pb-8",children:e.jsxs("a",{href:Sn("/"),className:"group relative block overflow-hidden rounded-3xl text-white focus:outline-none focus-visible:ring-2 focus-visible:ring-brand focus-visible:ring-offset-2",children:[e.jsx("img",{src:Ur,alt:"","aria-hidden":!0,className:"absolute inset-0 h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"}),e.jsx("div",{"aria-hidden":!0,className:"absolute inset-0",style:{background:"linear-gradient(90deg, rgba(9,11,15,0.88) 0%, rgba(9,11,15,0.62) 48%, rgba(9,11,15,0.28) 100%)"}}),e.jsxs("div",{className:"relative z-10 flex flex-col gap-5 px-6 py-8 sm:flex-row sm:items-center sm:justify-between sm:px-9 sm:py-9",children:[e.jsxs("div",{className:"max-w-xl",children:[e.jsxs("span",{className:"inline-flex items-center gap-2 text-xs font-semibold uppercase tracking-[0.16em] text-brand-300",children:[e.jsx(kn,{className:"h-4 w-4"}),"Chartered bus & shuttle"]}),e.jsx("h2",{className:"mt-3 text-2xl font-bold leading-tight tracking-tight md:text-3xl",children:"Need to move a group? Charter a bus."}),e.jsx("p",{className:"mt-2 text-sm text-white/75 md:text-base",children:"Book a professional motorcoach or shuttle with a transparent, per-mile quote."})]}),e.jsxs("span",{className:"inline-flex shrink-0 items-center justify-center gap-2 self-start rounded-full bg-brand px-6 py-3 text-sm font-semibold text-brand-foreground transition group-hover:bg-brand-600 sm:self-auto",children:["Explore chartered buses",e.jsx(oe,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]})]})]})}),Wr="/assets/hero-venues-updated6-Dc7nSU-E.webp",qr=()=>e.jsx("section",{className:"bg-white py-6 md:py-8",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs("div",{className:"relative rounded-3xl overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:`url(${Wr})`}}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black/70 via-black/60 to-black/50"}),e.jsx("div",{className:"relative z-10 max-w-2xl p-8 md:p-12",children:e.jsxs("div",{className:"bg-white/95 backdrop-blur-sm rounded-3xl p-8 md:p-12 shadow-2xl",children:[e.jsxs("h2",{className:"text-[#0F0F0F] mb-4",style:{lineHeight:"1.2",fontWeight:600,fontSize:"clamp(1.75rem, 3vw, 2.5rem)"},children:["List your venue confidently with"," ",e.jsx("img",{src:"/logo-primary.svg",alt:"PLEC",className:"h-8 md:h-12 w-auto"})]}),e.jsx("p",{className:"text-[#4B4B4B] mb-6 flex flex-wrap items-center gap-1.5",style:{fontSize:"1rem",lineHeight:"1.7",letterSpacing:"-0.01em"},children:"With live support, quick listing signup, and verified guests, hosting on PLEC helps you grow your premier revenue stream: private events!"}),e.jsx($,{asChild:!0,className:"rounded-full px-8 py-6 text-base font-medium bg-gradient-to-r from-brand-400 to-brand-500 hover:brightness-90 text-white shadow-lg hover:shadow-xl transition-all",style:{boxShadow:"0 8px 30px -8px rgba(249, 115, 22, 0.4)"},children:e.jsx(H,{to:"/host",children:"List your venue"})})]})})]})})}),Kr="plec-shell";function Yr(){var t;(t=document.getElementById(Kr))==null||t.remove()}const Zr=({role:t})=>{const n=us(),[s,a]=d.useState("");return e.jsxs("form",{className:"rounded-3xl bg-[#241D45] p-5 text-white md:p-6",onSubmit:i=>{i.preventDefault(),n("/concierge",{state:{description:s.trim()}})},children:[e.jsx("p",{className:"text-lg font-semibold leading-snug",children:t.headline}),e.jsx("p",{className:"mt-1 text-sm leading-relaxed text-[#D9D5EC]",children:t.body}),e.jsx("label",{htmlFor:"landing-concierge-ask",className:"mt-5 block text-sm font-semibold",children:"What are you celebrating?"}),e.jsx("textarea",{id:"landing-concierge-ask",rows:3,value:s,onChange:i=>a(i.target.value),placeholder:"e.g. Holiday party for 250 in Austin, mid-December, open bar and a DJ",className:"mt-2 w-full resize-none rounded-2xl border-0 bg-white px-4 py-3 text-base leading-relaxed text-[#141414] placeholder:text-[#6B6B6B] focus:outline-none focus:ring-2 focus:ring-[#FF8A7A]"}),e.jsx("div",{className:"mt-3 flex flex-wrap gap-2",role:"group","aria-label":"Examples",children:nr.map(i=>e.jsx("button",{type:"button","data-track":"landing_concierge_example","aria-pressed":s===i,onClick:()=>a(i),className:"min-h-[40px] rounded-full border px-3.5 text-sm transition-colors "+(s===i?"border-[#FF8A7A] bg-[#FF8A7A]/20 text-white":"border-white/30 bg-white/5 text-white hover:border-white/60"),children:i},i))}),e.jsxs("div",{className:"mt-5 flex flex-wrap items-center gap-x-4 gap-y-2",children:[e.jsxs("button",{type:"submit","data-track":"landing_concierge_send",className:"inline-flex min-h-[48px] w-full items-center justify-center gap-2 rounded-full bg-[#FF8A7A] px-6 text-base font-semibold text-[#141414] transition-colors hover:bg-[#FF9C8E] focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white sm:w-auto",children:["Send to Event Concierge",e.jsx(oe,{className:"h-4 w-4","aria-hidden":"true"})]}),e.jsx("span",{className:"text-sm text-[#D9D5EC]",children:"Free. No account needed."})]})]})},Xr={dark:"bg-[#141414] text-white hover:bg-black",brand:"bg-[#F66355] text-[#141414] hover:bg-[#F4503F]",outline:"border border-black/15 bg-white text-[#141414] hover:border-black/30",text:"h-auto px-0 text-[#A82E20] underline-offset-4 hover:underline"},K=({action:t,variant:n="dark",className:s})=>{const a=D("inline-flex min-h-[48px] items-center justify-center gap-2 rounded-full px-6 text-base font-semibold transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#141414]",Xr[n],s),i=t.href.startsWith("#"),r=i?e.jsx(ha,{className:"h-4 w-4","aria-hidden":"true"}):e.jsx(oe,{className:"h-4 w-4","aria-hidden":"true"});return i?e.jsxs("a",{href:t.href,"data-track":t.track,className:a,onClick:o=>{const c=document.getElementById(t.href.slice(1));c&&(o.preventDefault(),c.scrollIntoView({behavior:"smooth",block:"start"}))},children:[t.label,r]}):t.external?e.jsxs("a",{href:t.href,"data-track":t.track,className:a,children:[t.label,r]}):e.jsxs(H,{to:t.href,"data-track":t.track,className:a,children:[t.label,r]})},Qr=()=>{const[t,n]=d.useState(null),s=Es.find(a=>a.id===t)??null;return d.useLayoutEffect(()=>Yr(),[]),e.jsx("section",{id:gs,"aria-labelledby":"landing-title",className:"bg-[#F66355] text-[#141414]",children:e.jsxs("div",{className:"container relative mx-auto grid gap-8 px-4 pb-10 pt-7 md:pb-14 md:pt-12 lg:grid-cols-[minmax(0,1.05fr)_minmax(0,0.95fr)] lg:items-end lg:gap-14 lg:pb-16",children:[e.jsx("img",{src:"/logo-white.svg",alt:"PLEC",width:829,height:391,className:"absolute right-4 top-7 h-10 w-auto md:hidden"}),e.jsxs("h1",{id:"landing-title",className:"landing-heading text-[clamp(3rem,13vw,6.5rem)] leading-[0.9] tracking-[-0.045em] lg:text-[clamp(5.5rem,9vw,8.5rem)]",children:[e.jsx("span",{className:"sr-only",children:Qa}),e.jsx("span",{"aria-hidden":"true",children:Xa.map(({initial:a,rest:i})=>e.jsxs("span",{className:"block",children:[e.jsx("span",{className:"text-white",children:a}),i]},a))})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"landing-heading text-[1.375rem] leading-snug md:text-2xl",children:Ja}),e.jsx("p",{className:"mt-3 text-base leading-relaxed md:text-lg",children:Ls}),e.jsx(Jr,{value:t,onChange:n}),e.jsx("div",{className:"mt-4","aria-live":"polite",children:s?e.jsx(ei,{role:s}):e.jsx(K,{action:sr,variant:"dark",className:"w-full sm:w-auto"})})]})]})})},Jr=({value:t,onChange:n})=>e.jsxs("div",{className:"mt-6",role:"group","aria-labelledby":"landing-role-label",children:[e.jsx("p",{id:"landing-role-label",className:"text-sm font-semibold",children:"Who are you?"}),e.jsx("div",{className:"mt-2 grid grid-cols-2 gap-2 sm:flex sm:flex-wrap",children:Es.map(s=>{const a=s.id===t;return e.jsx("button",{type:"button","aria-pressed":a,"data-track":`landing_role_${s.id}`,onClick:()=>n(a?null:s.id),className:"min-h-[44px] rounded-2xl px-3.5 py-2 text-left text-sm font-semibold leading-tight transition-colors sm:rounded-full sm:text-center "+(a?"bg-[#141414] text-white":"bg-white/90 text-[#141414] hover:bg-white"),children:s.label},s.id)})})]}),ei=({role:t})=>t.id==="company"?e.jsx(Zr,{role:t}):e.jsxs("div",{className:"rounded-3xl bg-white p-5 md:p-6",children:[e.jsx("p",{className:"text-lg font-semibold leading-snug",children:t.headline}),e.jsx("p",{className:"mt-1 text-[15px] leading-relaxed text-[#3B3B3B]",children:t.body}),e.jsxs("div",{className:"mt-4 flex flex-wrap items-center gap-x-5 gap-y-2",children:[t.primary&&e.jsx(K,{action:t.primary,variant:"dark",className:"w-full sm:w-auto"}),t.secondary&&e.jsx(K,{action:t.secondary,variant:"text"})]})]}),ti="/assets/marketplace-desktop-Tv7DUtGW.webp",si="/assets/plec-app-explore-wkyva3k1.webp",ni="/assets/plec-app-services-B0nZkO_x.webp",ai="/assets/concierge-phone-Cmkdm3LM.webp",ri="/assets/host-app-calendar-5yrfvtJw.webp",ii="/assets/host-app-listing-DRzlr1mH.webp",li="/assets/crm-dashboard-G1fV0Xh4.webp",oi="/assets/outreach-inbox-C-6Rt9dp.webp",ci=[{id:"marketplace",name:"Marketplace",platform:"Web · plec.ai",description:"Venues, services and transportation, bookable in one place.",points:["Search by city, date, guests and price","Real availability and pricing breakdowns","Charter buses at bus.plec.ai"],visual:{kind:"browser",url:"plec.ai",shot:{src:ti,alt:"The PLEC marketplace showing venues in Austin"}},action:{label:"Browse the marketplace",href:"/venues",track:"landing_tech_marketplace"}},{id:"plec-app",name:"Plec.",platform:"iPhone app · for planners",description:"Find the venue, book the whole crew and plan it together from your phone.",points:["Venues and vendors in one app","Build a custom package","Shared wishlists with co-planners"],visual:{kind:"tiles",shots:[{src:si,alt:"Plec. app: browse venues by city"},{src:ni,alt:"Plec. app: book DJs, photographers and more"}]},action:{label:"Get Plec. on the App Store",href:ct.plec,track:"landing_tech_plec_app",external:!0}},{id:"concierge",name:"Event Concierge",platform:"Done for you · by our team",description:"Tell us about your event and our team sources venues, services and transportation that fit your budget, with real prices.",points:["Free, and no account needed","One request covers every vendor"],visual:{kind:"phones",shots:[{src:ai,alt:"The PLEC Concierge request form"}]},action:{label:"Plan my event",href:"/concierge",track:"landing_tech_concierge"}}],di=[{id:"host-app",name:"PLEC Host",platform:"iPhone app · for providers",description:"Run your listings, calendar, bookings and messages from your phone.",points:["Edit your listing pages","Availability and bookings calendar","Message customers in the app"],visual:{kind:"phones",shots:[{src:ri,alt:"PLEC Host app: availability calendar"},{src:ii,alt:"PLEC Host app: a venue listing"}]},action:{label:"Get PLEC Host on the App Store",href:ct.host,track:"landing_tech_host_app",external:!0}},{id:"crm",name:"PLEC CRM",platform:"Web · for event businesses",description:"A back office built for venues and vendors.",points:["Lead pipeline and client records","Events and calendar","Invoices with pay links","Contracts with e-signatures"],visual:{kind:"browser",url:"crm.plec.ai",shot:{src:li,alt:"PLEC CRM dashboard with bookings, payments and contracts (sample data)"}},action:{label:"Open PLEC CRM",href:"https://crm.plec.ai",track:"landing_tech_crm",external:!0}},{id:"outreach",name:"Outreach engine",platform:"Growth · for event businesses",description:"Finds prospective clients, runs cold email campaigns and sorts the replies.",points:["Lead sourcing by city and segment","Campaigns from warmed-up mailboxes","Replies sorted and handed off"],visual:{kind:"browser",url:"crm.plec.ai/email-outreach",shot:{src:oi,alt:"Outreach engine inbox with replies from prospective corporate clients (sample data)"}},action:{label:"Ask for a demo",href:"/demo?product=outreach",track:"landing_tech_outreach_demo"}}],es={loading:"lazy",decoding:"async"},ui=({visual:t,tint:n})=>e.jsxs("div",{className:`relative h-64 overflow-hidden md:h-72 ${n}`,children:[t.kind==="browser"&&e.jsxs("div",{className:"absolute left-5 top-6 w-[150%] overflow-hidden rounded-xl border border-black/10 bg-white shadow-xl sm:w-[130%] lg:w-[150%]",children:[e.jsxs("div",{className:"flex items-center gap-1.5 border-b border-black/5 bg-[#F4F4F5] px-3 py-2",children:[e.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#FF5F57]","aria-hidden":"true"}),e.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#FEBC2E]","aria-hidden":"true"}),e.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-[#28C840]","aria-hidden":"true"}),e.jsx("span",{className:"ml-3 rounded-md bg-white px-2.5 py-0.5 text-xs text-[#5A5A5A]",children:t.url})]}),e.jsx("img",{src:t.shot.src,alt:t.shot.alt,width:1200,height:750,...es,className:"block w-full"})]}),(t.kind==="phones"||t.kind==="tiles")&&e.jsx("div",{className:"absolute inset-x-0 top-6 flex justify-center gap-3",children:t.shots.map(s=>e.jsx("img",{src:s.src,alt:s.alt,width:520,height:1127,...es,className:"w-[42%] max-w-[180px] shadow-xl "+(t.kind==="phones"?"rounded-[28px] border-[6px] border-[#141414] bg-[#141414]":"rounded-2xl")},s.src))})]}),mi=({product:t,tint:n})=>e.jsxs("article",{className:"flex flex-col overflow-hidden rounded-3xl border border-black/[0.06] bg-white",children:[e.jsx(ui,{visual:t.visual,tint:n}),e.jsxs("div",{className:"flex flex-1 flex-col p-6",children:[e.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.12em] text-[#A82E20]",children:t.platform}),e.jsx("h4",{className:"landing-heading mt-2 text-[1.75rem] leading-tight text-[#141414]",children:t.name}),e.jsx("p",{className:"mt-2 text-base leading-relaxed text-[#3B3B3B]",children:t.description}),e.jsx("ul",{className:"mt-4 space-y-2 text-[15px] text-[#3B3B3B]",children:t.points.map(s=>e.jsxs("li",{className:"flex gap-2.5",children:[e.jsx("svg",{viewBox:"0 0 24 24",className:"mt-0.5 h-5 w-5 flex-shrink-0 text-[#F66355]",fill:"none",stroke:"currentColor",strokeWidth:2.4,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e.jsx("path",{d:"m5 12 5 5L20 7"})}),s]},s))}),t.action&&e.jsx("div",{className:"mt-auto pt-6",children:e.jsx(K,{action:t.action,variant:"text"})})]})]}),ts=({title:t,products:n,tint:s})=>e.jsxs("div",{className:"mt-12",children:[e.jsx("h3",{className:"landing-heading text-xl text-[#141414] md:text-2xl",children:t}),e.jsx("div",{className:"mt-5 grid gap-5 md:grid-cols-2 lg:grid-cols-3",children:n.map(a=>e.jsx(mi,{product:a,tint:s},a.id))})]}),hi=()=>e.jsx("section",{id:"tech","aria-labelledby":"landing-tech-title",className:"scroll-mt-40 bg-white py-14 md:scroll-mt-44 md:py-20",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("h2",{id:"landing-tech-title",className:"landing-heading max-w-3xl text-[2rem] leading-[1.1] tracking-[-0.02em] text-[#141414] md:text-5xl",children:er}),e.jsx("p",{className:"mt-4 max-w-3xl text-lg leading-relaxed text-[#3B3B3B]",children:tr}),e.jsx(ts,{title:"For planners and companies",products:ci,tint:"bg-[#FFF1EE]"}),e.jsx(ts,{title:"For venues and vendors",products:di,tint:"bg-[#F1EEFA]"})]})}),xi=()=>Ut.length===0?null:e.jsx("section",{"aria-labelledby":"landing-proof-title",className:"bg-[#141414] text-white",children:e.jsxs("div",{className:"container mx-auto px-4 py-14 md:py-20",children:[e.jsx("h2",{id:"landing-proof-title",className:"landing-heading max-w-4xl text-[1.9rem] leading-[1.1] tracking-[-0.02em] md:text-5xl",children:Ms}),e.jsxs("div",{className:"mt-12 border-t border-white/15 pt-8",children:[e.jsx("p",{className:"text-sm font-semibold uppercase tracking-[0.14em] text-white/70",children:"Working with"}),e.jsx("ul",{className:"mt-4 flex flex-wrap gap-x-8 gap-y-3 text-lg",children:Ut.map(t=>e.jsx("li",{children:t},t))})]})]})}),fi="/assets/founder-confetti-DK8AMXdr.webp",gi=()=>e.jsx("section",{"aria-labelledby":"landing-founder-title",className:"bg-[#F6F4FB]",children:e.jsxs("div",{className:"container mx-auto grid items-center gap-10 px-4 py-14 md:grid-cols-[minmax(0,0.8fr)_minmax(0,1.2fr)] md:gap-14 md:py-20",children:[e.jsxs("figure",{className:"mx-auto w-full max-w-sm",children:[e.jsx("img",{src:fi,alt:"Nicolas Munoz kneeling beside the word plec spelled out in confetti",width:720,height:960,loading:"lazy",decoding:"async",className:"aspect-[3/4] w-full rounded-3xl object-cover"}),e.jsx("figcaption",{className:"mt-3 text-sm leading-relaxed text-[#5F5A72]",children:Qe.caption})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold uppercase tracking-[0.14em] text-[#4A4280]",children:"Our story"}),e.jsx("h2",{id:"landing-founder-title",className:"landing-heading mt-3 text-[2rem] leading-[1.1] tracking-[-0.02em] text-[#1C1830] md:text-5xl",children:Qe.heading}),e.jsx("p",{className:"mt-5 max-w-xl text-lg leading-relaxed text-[#3A3550]",children:Qe.body}),e.jsxs(H,{to:"/about","data-track":"landing_founder_story",className:"mt-6 inline-flex min-h-[44px] items-center gap-2 font-semibold text-[#A82E20] underline-offset-4 hover:underline",children:["Read our story",e.jsx(oe,{className:"h-4 w-4","aria-hidden":"true"})]})]})]})}),pi=()=>e.jsx("section",{"aria-labelledby":"landing-closing-title",className:"bg-white",children:e.jsxs("div",{className:"container mx-auto px-4 py-14 md:py-20",children:[e.jsx("h2",{id:"landing-closing-title",className:"landing-heading text-[2rem] leading-[1.1] tracking-[-0.02em] text-[#141414] md:text-5xl",children:"See it for yourself."}),e.jsxs("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row sm:flex-wrap",children:[e.jsx(K,{variant:"brand",action:{label:"Plan my event with Concierge",href:"/concierge",track:"landing_close_concierge"}}),e.jsx(K,{variant:"outline",action:{label:"Browse the marketplace",href:"/venues",track:"landing_close_marketplace"}}),e.jsx(K,{variant:"outline",action:{label:"List my business free",href:xs,track:"landing_close_list"}}),e.jsx(K,{variant:"outline",action:{label:"Get in touch",href:"/contact",track:"landing_close_contact"}})]})]})}),ss=()=>e.jsxs(e.Fragment,{children:[e.jsx(Qr,{}),e.jsx(hi,{}),e.jsx(xi,{}),e.jsx(gi,{}),e.jsx(pi,{})]});function bi(t){const[n,s]=d.useState(!1);return d.useEffect(()=>{const a=document.getElementById(t);if(!a||typeof IntersectionObserver>"u"){s(!0);return}const i=new IntersectionObserver(([r])=>{r&&s(!r.isIntersecting)});return i.observe(a),()=>i.disconnect()},[t]),n}const vi=()=>{const[t,n]=d.useState(!1),s=bi(gs),a=Cn(),i=t&&s&&a,[r,o]=d.useState(!1),[c,h]=d.useState(!1),[u,l]=d.useState(!1);return d.useEffect(()=>{const m=window.setTimeout(()=>n(!0),3e3);return()=>window.clearTimeout(m)},[]),d.useEffect(()=>{if(i||l(!1),!i||r)return;const m=window.setTimeout(()=>l(!0),550);return()=>window.clearTimeout(m)},[i,r]),d.useEffect(()=>{if(!c)return;l(!1);const m=window.setTimeout(()=>{o(!0),h(!1)},500);return()=>window.clearTimeout(m)},[c]),i?e.jsx("div",{className:"fixed bottom-[calc(64px+4.75rem+env(safe-area-inset-bottom))] right-4 z-50 sm:bottom-[calc(64px+4.75rem+env(safe-area-inset-bottom))] sm:right-6 md:bottom-6",children:r?e.jsxs("button",{type:"button",onClick:()=>o(!1),"aria-label":"Open PLEC Concierge",className:"flex items-center gap-2 rounded-full bg-gradient-to-br from-brand-500 to-brand-700 px-4 py-3 text-sm font-medium text-white shadow-2xl ring-1 ring-black/5 transition-transform hover:scale-105 animate-in fade-in duration-200",children:[e.jsx(Le,{className:"h-4 w-4"}),"PLEC Concierge"]}):e.jsxs("div",{className:"relative w-[calc(100vw-2rem)] max-w-sm origin-bottom-right overflow-hidden rounded-2xl p-5 shadow-2xl duration-500 "+(c?"animate-out fade-out zoom-out-50 slide-out-to-bottom-4 ease-[cubic-bezier(0.36,0,0.66,-0.56)]":"animate-in fade-in zoom-in-50 slide-in-from-bottom-4 ease-[cubic-bezier(0.34,1.56,0.64,1)]"),children:[u&&!c&&e.jsx(ps,{className:"absolute inset-0 -z-10",cornerRadius:16,bezelWidth:26,glassThickness:60,surface:"convexSquircle",blur:4,saturation:1.6,tint:"linear-gradient(to bottom right, hsl(var(--brand-500) / 0.62), hsl(var(--brand-700) / 0.72))"}),(!u||c)&&e.jsx("div",{"aria-hidden":!0,className:"absolute inset-0 -z-10 backdrop-blur-lg backdrop-saturate-150",style:{background:"linear-gradient(to bottom right, hsl(var(--brand-500) / 0.62), hsl(var(--brand-700) / 0.72))"}}),e.jsx("button",{type:"button",onClick:()=>h(!0),"aria-label":"Collapse concierge card",className:"absolute right-3 top-3 z-10 rounded-full p-1 text-white/70 transition-colors hover:bg-white/15 hover:text-white",children:e.jsx(Ae,{className:"h-4 w-4"})}),e.jsxs("div",{className:"relative z-0",children:[e.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-white/15 px-2.5 py-1 text-xs font-medium text-white backdrop-blur-sm",children:[e.jsx(Le,{className:"h-3.5 w-3.5"}),"PLEC Concierge"]}),e.jsx("h2",{className:"mt-3 text-lg font-semibold leading-snug text-white",children:"Need help planning your event?"}),e.jsx("p",{className:"mt-2 text-sm leading-relaxed text-white/90",children:"Keep your event under control and under budget. Let a member of our team source the prices for you."}),e.jsx("div",{className:"mt-4 flex justify-end",children:e.jsx($,{asChild:!0,className:"glass glass-interactive rounded-full px-8 py-5 text-sm font-medium text-white transition-all",style:{textShadow:"0 1px 3px rgba(0, 0, 0, 0.15)","--glass-saturate":"100%"},children:e.jsx(H,{to:"/concierge",children:"Plan my event"})})})]})]})}):null};function ke({image:t,label:n,title:s,buttonText:a,href:i,buttonColor:r="hsl(var(--brand-400))",textColor:o="#0F0F0F"}){return e.jsxs(H,{to:i,className:"flex flex-col bg-white rounded-3xl overflow-hidden shadow-sm hover:shadow-xl transition-all duration-300 border border-gray-100 hover:border-brand-400/30 group",children:[e.jsx("div",{className:"aspect-[4/3] overflow-hidden",children:e.jsx(xa,{src:t,alt:s,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"})}),e.jsxs("div",{className:"p-6 flex flex-col gap-3",children:[e.jsx("span",{className:"text-sm font-medium",style:{color:o,opacity:.6},children:n}),e.jsx("h3",{className:"text-lg font-semibold leading-tight",style:{color:o},children:s}),e.jsx("div",{className:"mt-2 px-6 py-2.5 rounded-full border-2 transition-all self-start font-medium text-sm group-hover:scale-105",style:{borderColor:r,color:r},children:a})]})]})}const wi="/assets/hero-venues-updated2-BB5bY2Nu.webp",yi="birthday_play",ji="bars",Ni="event_specialty",Je=t=>`/venues?venueType=${encodeURIComponent(t)}`,ki=()=>e.jsx("section",{className:"bg-white py-6 md:py-8",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsx("div",{className:"mb-8",children:e.jsxs("div",{className:"relative rounded-3xl overflow-hidden shadow-lg hover:shadow-2xl transition-all duration-300 group",children:[e.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"w-full h-full bg-cover bg-center",style:{backgroundImage:`url(${wi})`,backgroundSize:"cover",backgroundPosition:"center bottom",backgroundRepeat:"no-repeat"}})}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-black/80 via-black/70 to-black/60"}),e.jsxs("div",{className:"relative z-10 px-8 py-12 md:px-12 md:py-16 max-w-3xl",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",style:{letterSpacing:"0.05em"},children:[e.jsx("span",{className:"text-white/80 text-sm font-medium",children:"WHY CUSTOMERS LOVE"}),e.jsx("img",{src:"/logo-primary.svg",alt:"PLEC",className:"h-6 w-auto"})]}),e.jsx("h2",{className:"text-white mb-6",style:{lineHeight:"1.2",fontWeight:700,fontSize:"clamp(1.75rem, 3.5vw, 2.75rem)"},children:"Book with confidence, celebrate with ease"}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6 mb-2",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-brand-400 flex items-center justify-center flex-shrink-0",children:e.jsx(Ln,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-1 text-base",children:"Transparent Pricing"}),e.jsx("p",{className:"text-white/80 text-sm",children:"No hidden fees, ever"})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-brand-400 flex items-center justify-center flex-shrink-0",children:e.jsx(Le,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-1 text-base",children:"Instant Booking"}),e.jsx("p",{className:"text-white/80 text-sm",children:"Reserve in minutes"})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-brand-400 flex items-center justify-center flex-shrink-0",children:e.jsx(Mn,{className:"w-5 h-5 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-white font-semibold mb-1 text-base",children:"24/7 Support"}),e.jsx("p",{className:"text-white/80 text-sm",children:"We're here to help"})]})]})]}),!1]})]})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-[#0F0F0F] tracking-tight mb-6",style:{lineHeight:"1.2",fontWeight:600,fontSize:"clamp(1.5rem, 2.5vw, 2rem)"},children:"Explore venues and services"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[e.jsx(ke,{image:"https://images.unsplash.com/photo-1530103862676-de8c9debad1d?q=75&w=900&auto=format&fit=crop",label:"FOR FAMILIES",title:"Kids party venues and entertainment spaces",buttonText:"Explore venues",href:Je(yi),buttonColor:"hsl(var(--brand-400))"}),e.jsx(ke,{image:"https://images.unsplash.com/photo-1514933651103-005eec06c04b?q=75&w=900&auto=format&fit=crop",label:"FOR CELEBRATIONS",title:"Bars, clubs & lounges for unforgettable nights",buttonText:"Browse venues",href:Je(ji),buttonColor:"hsl(var(--brand-400))"}),e.jsx(ke,{image:"https://images.unsplash.com/photo-1505373877841-8d25f7d46678?q=75&w=900&auto=format&fit=crop",label:"FOR PROFESSIONALS",title:"Corporate event spaces and banquet halls",buttonText:"Find venues",href:Je(Ni),buttonColor:"hsl(var(--brand-400))"}),e.jsx(ke,{image:"https://images.unsplash.com/photo-1492684223066-81342ee5ff30?q=75&w=900&auto=format&fit=crop",label:"SERVICES & MORE",title:"DJs, photographers, caterers and more",buttonText:"Browse services",href:"/services",buttonColor:"hsl(var(--brand-400))"})]})]})]})}),Si=t=>{const[n,s]=d.useState(null),a=d.useCallback(async()=>{var i,r;if((t==null?void 0:t.authType)==="cognito")try{const c=(r=(i=(await sa()).tokens)==null?void 0:i.idToken)==null?void 0:r.toString();if(c)return{Authorization:`Bearer ${c}`}}catch(o){console.warn("Failed to get Cognito token:",o)}return{}},[t==null?void 0:t.authType]);return d.useEffect(()=>{(async()=>{if(!t){s(null);return}try{const r=await a(),o=await En.get("/users/me",{headers:r});s({firstName:o.data.firstName,lastName:o.data.lastName,preferredName:o.data.preferredName})}catch(r){console.warn("Failed to load profile for welcome message:",r),s(null)}})()},[t,a]),n},ns=[{id:"austin-venues",title:"Popular venues in Austin",cityLabel:"Austin",city:"Austin",state:"TX",viewAllHref:"/venues?location=Austin%2C%20TX",tokens:["austin"],listingKind:"venue"},{id:"philly-venues",title:"Handpicked venues in Philadelphia",cityLabel:"Philadelphia",city:"Philadelphia",state:"PA",viewAllHref:"/venues?location=Philadelphia%2C%20PA",tokens:["philadelphia","philly"],listingKind:"venue"},{id:"austin-services",title:"Featured services in Austin",cityLabel:"Austin",city:"Austin",state:"TX",viewAllHref:"/services?location=Austin%2C%20TX",tokens:["austin"],listingKind:"service"},{id:"philly-services",title:"Top spaces in Philadelphia",cityLabel:"Philadelphia",city:"Philadelphia",state:"PA",viewAllHref:"/services?location=Philadelphia%2C%20PA",tokens:["philadelphia","philly"],listingKind:"service"}],as=20,rs=2*60*1e3,Ci=()=>{const t=ns.filter(l=>l.listingKind==="venue"),n=ns.filter(l=>l.listingKind==="service"),s=st({queries:t.map(l=>({queryKey:["home","published-listings","venue",l.city,l.state],queryFn:()=>Me({listingKind:"venue",city:l.city,state:l.state,limit:as}),staleTime:rs,refetchOnWindowFocus:!1}))}),a=st({queries:n.map(l=>({queryKey:["home","published-listings","service",l.city,l.state],queryFn:()=>Me({listingKind:"service",city:l.city,state:l.state,limit:as}),staleTime:rs,refetchOnWindowFocus:!1}))}),i=new Set,r=s.flatMap(l=>{var m;return((m=l.data)==null?void 0:m.items)??[]}).filter(l=>l.listingKind==="venue").filter(l=>i.has(l.listingId)?!1:(i.add(l.listingId),!0)).map(l=>ws(l)),o=new Set,c=a.flatMap(l=>{var m;return((m=l.data)==null?void 0:m.items)??[]}).filter(l=>l.listingKind==="service").filter(l=>o.has(l.listingId)?!1:(o.add(l.listingId),!0)),h=s.some(l=>l.isLoading)||a.some(l=>l.isLoading),u=s.some(l=>l.error)||a.some(l=>l.error)?"We are having trouble loading featured listings right now. Please try again shortly.":null;return{featuredVenues:r,featuredServices:c,loadingVenues:h,venuesError:u}},Li=2e3,Mi=120,Ps=d.forwardRef(({disabled:t,onSend:n},s)=>{const[a,i]=d.useState(""),r=d.useRef(null),o=d.useCallback(l=>{r.current=l,typeof s=="function"?s(l):s&&(s.current=l)},[s]),c=()=>{const l=r.current;l&&(l.style.height="auto",l.style.height=`${Math.min(l.scrollHeight,Mi)}px`)},h=()=>{const l=a.trim();!l||t||(n(l),i(""),requestAnimationFrame(c))},u=a.trim().length>0&&!t;return e.jsxs("div",{className:"flex items-end gap-2 rounded-2xl bg-white/80 p-1.5 shadow-sm ring-1 ring-black/5 backdrop-blur-sm",children:[e.jsx("textarea",{ref:o,value:a,rows:1,maxLength:Li,placeholder:"Ask about venues, DJs, buses...","aria-label":"Message the PLEC assistant",onChange:l=>{i(l.target.value),c()},onKeyDown:l=>{l.key==="Enter"&&!l.shiftKey&&(l.preventDefault(),h())},className:"max-h-[120px] flex-1 resize-none bg-transparent px-2.5 py-2 text-sm leading-relaxed text-neutral-900 placeholder:text-neutral-400 focus:outline-none"}),e.jsx("button",{type:"button",onClick:h,disabled:!u,"aria-label":"Send message",className:D("mb-0.5 flex h-9 w-9 shrink-0 items-center justify-center rounded-full transition-all",u?"bg-gradient-to-br from-brand-500 to-brand-700 text-white shadow-sm hover:scale-105":"bg-neutral-200/70 text-neutral-400"),children:e.jsx(fa,{className:"h-4 w-4"})})]})});Ps.displayName="ChatComposer";function As(t){if(t.startsWith("/"))return t;try{const n=new URL(t);if(n.origin===window.location.origin)return n.pathname+n.search}catch{}return null}const Ei=({part:t})=>{const n=t.photoUrls[0],s=t.url?As(t.url):null,a=e.jsxs("div",{className:"w-64 overflow-hidden rounded-2xl rounded-bl-md bg-white shadow-sm ring-1 ring-black/5 transition-shadow hover:shadow-md",children:[n&&e.jsx("img",{src:n,alt:t.title,loading:"lazy",className:"h-32 w-full object-cover"}),e.jsxs("div",{className:"p-3",children:[e.jsx("p",{className:"text-sm font-semibold leading-snug text-neutral-900",children:t.title}),t.subtitle&&e.jsx("p",{className:"mt-0.5 text-xs leading-relaxed text-neutral-500",children:t.subtitle}),t.url&&e.jsxs("span",{className:"mt-2 inline-flex items-center gap-1 text-xs font-medium text-brand-600",children:["View details",e.jsx(js,{className:"h-3 w-3"})]})]})]});return t.url?s?e.jsx(H,{to:s,className:"block",children:a}):e.jsx("a",{href:t.url,target:"_blank",rel:"noreferrer",className:"block",children:a}):a},Pi=({part:t})=>{const n=As(t.url),s="inline-flex items-center gap-1.5 rounded-full bg-white px-4 py-2 text-sm font-medium text-brand-600 shadow-sm ring-1 ring-black/5 transition-colors hover:bg-brand-50",a=e.jsxs(e.Fragment,{children:[t.label,e.jsx(js,{className:"h-3.5 w-3.5"})]});return n?e.jsx(H,{to:n,className:s,children:a}):e.jsx("a",{href:t.url,target:"_blank",rel:"noreferrer",className:s,children:a})},Ai=({part:t})=>e.jsxs("figure",{className:"w-64 overflow-hidden rounded-2xl rounded-bl-md bg-white shadow-sm ring-1 ring-black/5",children:[e.jsx("img",{src:t.url,alt:t.caption??"Photo from the assistant",loading:"lazy",className:"h-40 w-full object-cover"}),t.caption&&e.jsx("figcaption",{className:"p-2.5 text-xs leading-relaxed text-neutral-600",children:t.caption})]}),_i=({message:t,onRetry:n})=>{const{role:s,part:a,status:i}=t;return s==="system"?e.jsx("div",{className:"animate-in fade-in slide-in-from-bottom-1 px-6 py-1 text-center text-xs leading-relaxed text-neutral-500",children:a.kind==="text"?a.text:null}):s==="user"?e.jsxs("div",{className:"animate-in fade-in slide-in-from-bottom-1 flex flex-col items-end gap-1",children:[e.jsx("div",{className:D("max-w-[85%] whitespace-pre-wrap break-words rounded-2xl rounded-br-md bg-gradient-to-br from-brand-500 to-brand-700 px-3.5 py-2 text-sm leading-relaxed text-white shadow-sm",i==="pending"&&"opacity-70",i==="failed"&&"opacity-60"),children:a.kind==="text"?a.text:null}),i==="failed"&&e.jsxs("button",{type:"button",onClick:()=>n(t.id),className:"inline-flex items-center gap-1 text-xs font-medium text-brand-600 hover:text-brand-700",children:[e.jsx(ga,{className:"h-3 w-3"}),"Not delivered. Tap to retry"]})]}):e.jsxs("div",{className:"animate-in fade-in slide-in-from-bottom-1 flex justify-start",children:[a.kind==="text"&&e.jsx("div",{className:"max-w-[85%] whitespace-pre-wrap break-words rounded-2xl rounded-bl-md bg-white/80 px-3.5 py-2 text-sm leading-relaxed text-neutral-900 shadow-sm ring-1 ring-black/5 backdrop-blur-sm",children:a.text}),a.kind==="card"&&e.jsx(Ei,{part:a}),a.kind==="link"&&e.jsx(Pi,{part:a}),a.kind==="image"&&e.jsx(Ai,{part:a})]})},Ri=["Find me a venue in Austin","I need a DJ this Saturday","Plan a birthday for 30 people"],Ii=({onPick:t})=>e.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-4 px-6 text-center",children:[e.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-gradient-to-br from-brand-500 to-brand-700 shadow-md",children:e.jsx(ot,{className:"h-6 w-6 text-white"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-neutral-900",children:"Hi! I'm the PLEC assistant."}),e.jsx("p",{className:"mt-1 text-sm leading-relaxed text-neutral-600",children:"I can find venues, DJs, buses and more, check availability, and price things out. What are you planning?"})]}),e.jsx("div",{className:"flex flex-col items-stretch gap-2",children:Ri.map(n=>e.jsx("button",{type:"button",onClick:()=>t(n),className:"rounded-full bg-white/80 px-4 py-2 text-sm text-neutral-800 shadow-sm ring-1 ring-black/5 backdrop-blur-sm transition-colors hover:bg-white",children:n},n))})]}),Fi=()=>e.jsx("div",{className:"animate-in fade-in slide-in-from-bottom-1 flex justify-start",children:e.jsx("div",{className:"flex items-center gap-1 rounded-2xl rounded-bl-md bg-white/80 px-4 py-3 shadow-sm ring-1 ring-black/5 backdrop-blur-sm",role:"status","aria-label":"The assistant is typing",children:[0,150,300].map(t=>e.jsx("span",{className:"h-1.5 w-1.5 animate-bounce rounded-full bg-neutral-400",style:{animationDelay:`${t}ms`}},t))})}),Ti=({messages:t,sending:n,settled:s,onSend:a,onRetry:i,onReset:r,onClose:o})=>{const c=d.useRef(null),h=d.useRef(null);return d.useEffect(()=>{const u=c.current;u&&(u.scrollTop=u.scrollHeight)},[t,n]),d.useEffect(()=>{var u;(u=h.current)==null||u.focus()},[]),e.jsxs("div",{className:"relative flex h-[min(600px,calc(100dvh-160px))] w-[calc(100vw-2rem)] max-w-[400px] flex-col overflow-hidden rounded-3xl shadow-2xl ring-1 ring-black/10",role:"dialog","aria-label":"Chat with the PLEC assistant",onKeyDown:u=>{u.key==="Escape"&&o()},children:[s?e.jsx(ps,{className:"absolute inset-0 -z-10",cornerRadius:24,bezelWidth:22,glassThickness:70,surface:"convexSquircle",blur:8,saturation:1.5,tint:"rgba(255, 255, 255, 0.86)"}):e.jsx("div",{"aria-hidden":!0,className:"absolute inset-0 -z-10 bg-white/85 backdrop-blur-xl backdrop-saturate-150"}),e.jsxs("div",{className:"flex items-center gap-3 border-b border-black/5 px-4 py-3",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-gradient-to-br from-brand-500 to-brand-700 shadow-sm",children:e.jsx(ot,{className:"h-5 w-5 text-white"})}),e.jsx("span",{className:"absolute -bottom-0.5 -right-0.5 h-3 w-3 rounded-full border-2 border-white bg-emerald-500"})]}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"truncate text-sm font-semibold text-neutral-900",children:"PLEC Concierge"}),e.jsx("p",{className:"truncate text-xs text-neutral-500",children:"AI booking assistant, replies in seconds"})]}),e.jsx("button",{type:"button",onClick:r,"aria-label":"Start a new conversation",title:"Start over",className:"rounded-full p-2 text-neutral-500 transition-colors hover:bg-black/5 hover:text-neutral-800",children:e.jsx(pa,{className:"h-4 w-4"})}),e.jsx("button",{type:"button",onClick:o,"aria-label":"Minimize chat",className:"rounded-full p-2 text-neutral-500 transition-colors hover:bg-black/5 hover:text-neutral-800",children:e.jsx(Pn,{className:"h-5 w-5"})})]}),e.jsx("div",{ref:c,role:"log","aria-live":"polite",className:"flex-1 overflow-y-auto overscroll-contain px-4 py-3",children:t.length===0&&!n?e.jsx(Ii,{onPick:a}):e.jsxs("div",{className:"flex flex-col gap-2",children:[t.map(u=>e.jsx(_i,{message:u,onRetry:i},u.id)),n&&e.jsx(Fi,{})]})}),e.jsxs("div",{className:"px-3 pb-2 pt-1",children:[e.jsx(Ps,{ref:h,disabled:n,onSend:a}),e.jsx("p",{className:"mt-1.5 text-center text-[10px] leading-tight text-neutral-400",children:"AI assistant. It can make mistakes."})]})]})},_s="plec.agentChat.open";function Rs(){try{return window.sessionStorage.getItem(_s)==="1"}catch{return!1}}function is(t){try{window.sessionStorage.setItem(_s,t?"1":"0")}catch{}}class Se extends Error{constructor(s,a){super(s);_t(this,"status");this.name="AgentChatError",this.status=a}}const Bi=6e4;async function Is(t,n){const s=new AbortController,a=window.setTimeout(()=>s.abort(),Bi);try{const i=await fetch(An(t),{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(n),signal:s.signal});if(!i.ok)throw new Se(`Agent chat request failed (${i.status})`,i.status);return await i.json()}catch(i){throw i instanceof Se?i:new Se("Agent chat request failed",0)}finally{window.clearTimeout(a)}}async function Di(t,n){const{parts:s}=await Is("/agent/web/messages",{sessionId:t,text:n});return Array.isArray(s)?s:[]}async function Hi(t){await Is("/agent/web/reset",{sessionId:t})}const ls="plec.agentChat.sessionId",Fs="plec.agentChat.log",Ts=80;function zi(){try{const t=window.localStorage.getItem(ls);if(t&&/^[A-Za-z0-9_-]{16,64}$/.test(t))return t;const n=crypto.randomUUID();return window.localStorage.setItem(ls,n),n}catch{return crypto.randomUUID()}}function Vi(){try{const t=window.localStorage.getItem(Fs);if(!t)return[];const n=JSON.parse(t);return Array.isArray(n)?n.filter(s=>s&&typeof s.id=="string"&&s.part).map(s=>s.status==="pending"?{...s,status:"failed"}:s).slice(-Ts):[]}catch{return[]}}function $i(t){try{window.localStorage.setItem(Fs,JSON.stringify(t.slice(-Ts)))}catch{}}function et(t){return{id:crypto.randomUUID(),role:"system",part:{kind:"text",text:t},at:new Date().toISOString()}}function Oi(){const t=d.useRef();t.current||(t.current=zi());const n=t.current,[s,a]=d.useState(Vi),[i,r]=d.useState(!1),[o,c]=d.useState(!1);d.useEffect(()=>$i(s),[s]);const h=d.useCallback(async m=>{const g=m.trim().slice(0,2e3);if(!g||i)return;q("concierge_chat_message_sent",{length:g.length});const p={id:crypto.randomUUID(),role:"user",part:{kind:"text",text:g},at:new Date().toISOString(),status:"pending"};a(x=>[...x,p]),r(!0);try{const f=(await Di(n,g)).map(b=>({id:crypto.randomUUID(),role:"agent",part:b,at:new Date().toISOString()}));a(b=>[...b.map(w=>w.id===p.id?{...w,status:void 0}:w),...f.length>0?f:[et("The assistant sent an empty reply. Try rephrasing.")]])}catch(x){const f=x instanceof Se?x.status:0;a(b=>{const w=b.map(k=>k.id===p.id?{...k,status:"failed"}:k);return f===429?w.push(et("You're sending messages a little fast. Give it a few seconds and try again.")):f===404&&w.push(et("Chat isn't available right now. You can plan through our concierge page instead.")),w}),f===404&&c(!0)}finally{r(!1)}},[n,i]),u=d.useCallback(m=>{const g=s.find(p=>p.id===m&&p.status==="failed");!g||g.part.kind!=="text"||(a(p=>p.filter(x=>x.id!==m)),h(g.part.text))},[s,h]),l=d.useCallback(()=>{a([]),c(!1),Hi(n).catch(()=>{})},[n]);return{messages:s,sending:i,unavailable:o,send:h,retry:u,reset:l}}const Ui=({onOpenChange:t})=>{const[n,s]=d.useState(Rs),[a,i]=d.useState(!1),r=Oi(),o=d.useCallback(()=>{s(!0),is(!0),t==null||t(!0),q("concierge_chat_opened",{surface:"landing"})},[t]),c=d.useCallback(()=>{i(!1),s(!1),is(!1),t==null||t(!1)},[t]);return e.jsx("div",{className:"fixed bottom-[calc(64px+1rem+env(safe-area-inset-bottom))] left-4 z-[60] md:bottom-6 md:left-6",children:n?e.jsx(Ht.div,{className:"origin-bottom-left",initial:{opacity:0,scale:.85,y:24},animate:{opacity:1,scale:1,y:0},transition:{type:"spring",stiffness:380,damping:30},onAnimationComplete:()=>i(!0),children:e.jsx(Ti,{messages:r.messages,sending:r.sending,settled:a,onSend:r.send,onRetry:r.retry,onReset:r.reset,onClose:c})},"panel"):e.jsxs(Ht.button,{type:"button",onClick:o,"aria-label":"Chat with the PLEC assistant",className:"glass glass-interactive flex items-center gap-2.5 rounded-full py-2 pl-2 pr-5",style:{"--glass-tint-opacity":.5},initial:{opacity:0,scale:.8,y:12},animate:{opacity:1,scale:1,y:0},transition:{type:"spring",stiffness:380,damping:26},children:[e.jsxs("span",{className:"relative flex h-9 w-9 items-center justify-center rounded-full bg-gradient-to-br from-brand-500 to-brand-700 shadow-sm",children:[e.jsx(ot,{className:"h-[18px] w-[18px] text-white"}),e.jsx("span",{className:"absolute -bottom-0.5 -right-0.5 h-2.5 w-2.5 rounded-full border-2 border-white bg-emerald-500"})]}),e.jsx("span",{className:"text-sm font-medium text-neutral-900",children:"Ask PLEC"})]},"launcher")})},os=()=>{const{user:t,loading:n}=_n(),s=Si(t),{featuredServices:a,loadingVenues:i,venuesError:r}=Ci(),[o,c]=d.useState(()=>Rs());return e.jsxs(e.Fragment,{children:[e.jsx(Pr,{user:t,authLoading:n,profile:s}),e.jsx(Ir,{featuredServices:a,loadingVenues:i,venuesError:r}),!o&&e.jsx(vi,{}),e.jsx(Ui,{onOpenChange:c}),e.jsx(qr,{}),e.jsx(ki,{})]})},Gi=()=>{const[t]=Pe(),n=us(),s=d.useMemo(()=>t.toString(),[t]),a=d.useMemo(()=>t.toString(),[t]),i=t.get("category"),r=t.get("location"),o=t.get("date"),c=t.get("guests"),h=t.get("q"),u=t.get("venueType"),l=t.get("ownerPublicId"),m=r||"",g=!!(r||o||c||h||u||l);return d.useEffect(()=>{const p=r==null?void 0:r.trim();if(!p)return;const x=p.toLowerCase();x==="nearby"||x==="current location"||Dn(p)},[r]),d.useEffect(()=>{if(!i)return;const p=new URLSearchParams(t);p.delete("category");const x=i.trim().toLowerCase()==="services"?"/services":"/venues";n(`${x}?${p.toString()}`,{replace:!0})},[i,n,t]),{searchParams:t,navigate:n,location:r,date:o,guests:c,query:h,ownerPublicId:l,boundsResetKey:m,hasSearchParams:g,searchParamsKey:s,serializedSearchParams:a}},Wi=({isMobile:t})=>{const[n,s]=d.useState(!1),[a,i]=d.useState(!1);return d.useEffect(()=>{if(typeof document>"u")return;const r=document.body;return t&&a?r.dataset.hideCart="true":delete r.dataset.hideCart,()=>{delete r.dataset.hideCart}},[t,a]),{showFilters:n,setShowFilters:s,isMapFullscreen:a,setIsMapFullscreen:i}},qi=24,Ki=2*60*1e3,Yi=8;function cs(t){var a,i,r;const n=((a=t.rawListing)==null?void 0:a.publishedAt)||((i=t.rawListing)==null?void 0:i.updatedAt)||((r=t.rawListing)==null?void 0:r.createdAt)||"",s=Date.parse(n);return Number.isNaN(s)?0:s}function ds(t){var n;return(n=t.plecMetadata)!=null&&n.isFeatured?!0:t.rawListing?ba(t.rawListing).some(s=>s.type==="plec_featured"):!1}function Zi(t,n){const s=Ee(t.rawListing),a=Ee(n.rawListing);if(s!==a)return s?-1:1;const i=ds(t),r=ds(n);if(i!==r)return i?-1:1;const o=t.rankScore??0,c=n.rankScore??0;return o!==c?c-o:cs(n)-cs(t)}function Xi(){const t=st({queries:Dt.map(r=>({queryKey:["home","featured-sections",r.id,r.fetch],queryFn:()=>Me({listingKind:"venue",...r.fetch,limit:qi,prioritizeVerified:!0}),staleTime:Ki,refetchOnWindowFocus:!1}))}),n=Dt.map((r,o)=>{var h;const c=(((h=t[o].data)==null?void 0:h.items)??[]).filter(u=>u.listingKind==="venue").filter(u=>!ys(u)).map(ws).sort(Zi).slice(0,Yi);return{id:r.id,heading:r.heading,subtitle:r.subtitle,viewAllHref:r.viewAllHref,venues:c}}),s=n.flatMap(r=>r.venues),a=t.some(r=>r.isLoading),i=t.some(r=>r.error)?"We are having trouble loading featured venues right now. Please try again shortly.":null;return{sections:n,allVenues:s,loading:a,error:i}}const Qi={ne:{lat:30.45,lng:-97.6},sw:{lat:30.1,lng:-97.9}},Hl=()=>{const t=nn(),{pathname:n}=t,s=n==="/";an(s?{title:"PLEC · The operating system for the celebration industry",description:Ls}:{title:"Browse event & party venues | PLEC",description:"Search hundreds of event and party venues near you. Filter by location, capacity, and more on PLEC."});const a=d.useRef(null),i=d.useRef(null),{searchParams:r,navigate:o,location:c,date:h,guests:u,query:l,boundsResetKey:m,hasSearchParams:g,searchParamsKey:p,serializedSearchParams:x}=Gi(),f=d.useRef(null),b=it(),[w,k]=d.useState(!0),{showFilters:S,setShowFilters:L,isMapFullscreen:C,setIsMapFullscreen:A}=Wi({isMobile:b}),{fullscreenHeight:I,mapContainerHeight:j}=xr(C,i),{pendingBounds:N,appliedBounds:y,viewportBounds:R,boundsError:_,boundsSearchParams:T,handleSearchHere:O,handleBoundsChange:de}=fr(m),M=l||"",F=r.get("searchLat"),J=r.get("searchLng"),dt=r.get("searchRadiusMiles"),ee=r.get("start"),te=r.get("end"),_e=d.useMemo(()=>Mr(F,J,dt),[F,J,dt]),Bs=d.useMemo(()=>{const v=c==null?void 0:c.trim();return!v||Hn(v)?null:zn(v)},[c]),{notice:ue,reportResults:ut,searchRealLocationAnyway:Ds}=Vn({realLocation:Bs,resetKey:p,enabled:!y&&!_e}),Re=ue?$n(ue.fallbackLocation):c,Ie=d.useMemo(()=>y?"":Re||"",[y,Re]),Fe=y?"":Ie,mt=r.get("venueType"),{effectiveQuery:U,venueTypeFilter:ht}=d.useMemo(()=>Er({venueTypeParam:mt,textQuery:M,location:c,date:h,guests:u}),[mt,M,c,h,u]),{filterAge:Te,rawMinPrice:Hs,rawMaxPrice:zs,filterMinPriceValue:xt,filterMaxPriceValue:ft,filterVenueType:gt,filterAmenities:ne,capacityMin:Be,capacityMax:De,rawRating:pt,filterMinRating:bt,filterInstantBook:me,filterConfirmedOnly:He,filterOwnerPublicId:vt}=gr(),ze=r.get("sort"),he=ze&&["relevance","price_asc","price_desc","distance","rating"].includes(ze)?ze:"relevance",ae=!!T||!!_e,xe=he==="distance"&&!ae?"relevance":he,fe=d.useMemo(()=>({priceMin:xt,priceMax:ft,venueType:ht||void 0,amenities:ne,ageRestriction:Te||void 0,capacity:On({capacityMin:Be,capacityMax:De,guests:u}),minRating:bt,instantBooking:me||void 0,confirmedOnly:He||void 0,ownerPublicId:vt}),[xt,ft,ht,ne,Te,Be,De,u,bt,me,He,vt]),{searchResults:Y,venues:Z,outsideAreaVenues:wt,crossKindVenues:yt,searchLoading:G,isFetching:Vs,searchError:ge,refetch:jt,fetchNextPage:Nt,hasNextPage:pe,isFetchingNextPage:be}=Un({location:Re,geoSearchParams:_e,effectiveQuery:U,sortBy:xe,boundsSearchParams:T,filters:fe,date:h,startTime:ee,endTime:te});d.useEffect(()=>{ut({loading:G,settled:!!Y&&!ge,count:Z.length})},[ut,G,Y,ge,Z.length]);const kt=d.useCallback(()=>{pe&&!be&&Nt()},[pe,be,Nt]),Ve=Sr({bounds:R??y,query:U,sort:xe,filters:fe,date:h,startTime:ee,endTime:te}),ve=Xi(),St=d.useRef(null);d.useEffect(()=>{!g||G||!Y||St.current!==x&&(St.current=x,q("search_performed",{query:U||void 0,category:"venues",city:c||void 0,dateRange:h||ee||te?{date:h||void 0,startTime:ee||void 0,endTime:te||void 0}:void 0,filters:fe,resultsCount:Y.meta.total}))},[g,G,Y,x,U,c,h,ee,te,fe]);const[re,$s]=d.useState(null),[$e,Os]=d.useState(null),ie=d.useCallback(v=>{$s(v)},[]),Oe=d.useCallback(v=>{Os(v),v&&q("map_interacted",{action:"pin_click",listingId:v})},[]),Ue=d.useCallback(()=>{q("map_interacted",{action:"open"}),A(!0)},[A]),le=d.useRef(null),Ge=d.useCallback((...v)=>{var E;(E=v[1])!=null&&E.userInitiated&&(le.current&&clearTimeout(le.current),le.current=setTimeout(()=>{q("map_interacted",{action:"pan"})},1e3)),de(...v)},[de]);d.useEffect(()=>()=>{le.current&&clearTimeout(le.current)},[]);const We=Vs&&!!y,Ct=b&&g,qe=!b||!C,Us=Ct?"60px":"68px",Lt=d.useCallback(v=>{if(v==="distance"&&!ae)return;q("search_sort_changed",{sort:v});const E=new URLSearchParams(r);v==="relevance"?E.delete("sort"):E.set("sort",v),o(`/venues?${E.toString()}`)},[r,o,ae]),V=d.useCallback(v=>{const E=new URLSearchParams(r);for(const[z,P]of Object.entries(v))P===null||P===""?E.delete(z):E.set(z,P);o(`/venues?${E.toString()}`)},[o,r]),Gs=d.useCallback(()=>{Gn(),V({location:null,searchLat:null,searchLng:null,searchRadiusMiles:null})},[V]),Ws=d.useCallback((v,E)=>{q("search_filter_changed",{filter:"search_filters",value:v});const z=new URLSearchParams(r),P=(Pt,At)=>{At?z.set(Pt,At):z.delete(Pt)};P("date",E.date),P("start",E.date?E.start:null),P("end",E.date?E.end:null),P("age",v.ageRestriction),P("venueType",v.venueType&&v.venueType!=="all"?v.venueType:null),P("amenities",v.amenities.length>0?v.amenities.join(","):null),P("capacityMin",v.capacityMin),P("capacityMax",v.capacityMax),P("rating",v.minRating),P("instant",v.instantBook?"1":null),P("confirmed",v.confirmedOnly?"1":null);const Ye=v.minPrice==="0"||v.minPrice==="",en=v.maxPrice==="0"||v.maxPrice==="";!Ye||!en?(P("minPrice",v.minPrice&&v.minPrice!=="0"?v.minPrice:null),P("maxPrice",v.maxPrice&&v.maxPrice!=="0"?v.maxPrice:null)):(z.delete("minPrice"),z.delete("maxPrice")),o(`/venues?${z.toString()}`)},[o,r]),qs=d.useMemo(()=>Rn().map(v=>({id:v.value,label:v.label})),[]),Ks=d.useCallback(v=>V({venueType:v??null}),[V]),Ys=d.useCallback(v=>{if(v.startsWith("amenity:")){const z=v.slice(8),P=ne.filter(Ye=>Ye!==z);V({amenities:P.length?P.join(","):null});return}const E={location:{location:null,searchLat:null,searchLng:null,searchRadiusMiles:null},date:{date:null,start:null,end:null,duration:null},guests:{guests:null},venueType:{venueType:null},price:{minPrice:null,maxPrice:null},capacity:{capacityMin:null,capacityMax:null},rating:{rating:null},instant:{instant:null},confirmed:{confirmed:null},age:{age:null}};E[v]&&V(E[v])},[ne,V]),Zs=d.useCallback(()=>{V({location:null,date:null,start:null,end:null,duration:null,guests:null,searchLat:null,searchLng:null,searchRadiusMiles:null,venueType:null,amenities:null,minPrice:null,maxPrice:null,capacityMin:null,capacityMax:null,rating:null,instant:null,confirmed:null,age:null,ownerPublicId:null})},[V]),Xs=d.useMemo(()=>Cs(r).length,[r]),Mt=e.jsx($a,{categoryItems:qs,selectedCategory:gt||void 0,onSelectCategory:Ks,activeFilterCount:Xs,onOpenAllFilters:()=>L(!0),instantBook:me,onToggleInstantBook:v=>V({instant:v?"1":null}),minRating:pt||void 0,onChangeRating:v=>V({rating:v??null}),params:r,onRemoveChip:Ys,onClearAll:Zs,viewAction:!b&&!w?e.jsxs("button",{type:"button",onClick:()=>k(!0),className:"glass glass-surface inline-flex h-9 flex-shrink-0 items-center gap-2 rounded-full border border-brand px-4 text-sm font-semibold text-brand transition-colors hover:bg-brand/5",children:[e.jsx(Xe,{className:"h-4 w-4"}),"Show map"]}):void 0}),Et=ue?e.jsx(Kn,{notice:ue,onSearchRealLocation:Ds,onChangeLocation:Gs}):null,Ke=Ct?e.jsx(Ka,{onOpenFilters:()=>L(!0),onBack:()=>o(-1)}):b&&!C?e.jsx(qn,{}):null,X=j;if(!g){const v=G||ve.loading;if(!v&&Z.length===0)return e.jsx(Ze,{showSearch:!0,showFooter:qe,children:e.jsxs("div",{className:"min-h-screen bg-white",children:[Ke,s&&e.jsx(ss,{}),e.jsx(Wn,{hasSearchParams:!1}),s&&e.jsx(os,{})]})});const E=ve.sections.filter(z=>z.venues.length>0);return e.jsx(Ze,{showSearch:!0,showFooter:qe,children:e.jsxs("div",{className:"flex flex-col min-h-[calc(100vh-82px)]",children:[Ke,s&&e.jsx(ss,{}),e.jsx(hr,{loading:v,className:"flex-1 min-h-0",skeleton:e.jsx(mr,{dense:s,withMap:!s,mapHeight:X}),children:e.jsx("div",{ref:a,className:`flex-1 px-0 py-0 md:px-6 min-h-0 relative ${s?"md:pb-6":"md:py-6"}`,children:e.jsxs("div",{className:"relative w-full flex flex-col md:flex-row-reverse md:gap-8 md:items-start",style:s?void 0:{height:X},children:[!s&&w&&e.jsx(Ot,{height:X,mapLocation:Fe,venues:ve.allVenues,markerVenues:Ve,appliedBounds:y??Qi,pendingBounds:N,boundsError:_,boundsLoading:We,onSearchHere:O,onBoundsChange:Ge,highlightedVenueId:re,selectedVenueId:$e,onMarkerHoverChange:ie,onMarkerClick:Oe,query:U,searchLoading:ve.loading,onToggleFullscreen:Ue,searchParamsKey:p,onHideMap:()=>k(!1)}),e.jsxs("div",{className:`scrollbar-hide w-full ${s||!w?"":"md:w-[65%]"} flex flex-col`,style:s?{overflowX:"hidden"}:{maxHeight:X,overflowY:"auto",overflowX:"hidden"},children:[!s&&!w&&e.jsx("div",{className:"sticky top-3 z-30 flex justify-end px-4",children:e.jsxs("button",{type:"button",onClick:()=>k(!0),className:"glass glass-overlay inline-flex h-10 items-center gap-2 rounded-full border border-brand px-4 text-sm font-semibold text-brand shadow-md",children:[e.jsx(Xe,{className:"h-4 w-4"}),"Show map"]})}),e.jsx(Ya,{sections:E,additionalVenues:[],serializedSearchParams:x,dense:s}),s&&e.jsx(Or,{serializedSearchParams:x,dense:s}),s&&e.jsx(Gr,{})]})]})})}),s&&e.jsx(os,{})]})})}const Qs=b&&g?!1:qe,Js=!(b&&g);return e.jsxs(Ze,{showSearch:Js,onFilterClick:()=>L(!0),showFilters:!0,showFooter:Qs,children:[e.jsxs("div",{className:"flex flex-col min-h-[calc(100vh-68px)]",children:[Ke,C?e.jsx(Za,{isMobile:b,fullscreenTop:Us,fullscreenHeight:I,fullscreenContainerRef:i,mapLocation:Fe,venues:Z,markerVenues:Ve,appliedBounds:y,pendingBounds:N,boundsError:_,boundsLoading:We,onSearchHere:O,onBoundsChange:Ge,highlightedVenueId:re,selectedVenueId:$e,onMarkerHoverChange:ie,onMarkerClick:Oe,query:U,searchLoading:G,onToggleFullscreen:()=>A(!1),searchParamsKey:p}):b&&g?e.jsxs("div",{className:"flex-1 px-4 pb-24",children:[Mt,Et,e.jsx(Bt,{searchResults:Y||null,venues:Z,outsideAreaVenues:wt,crossKindVenues:yt,crossKindLabel:"services",searchLoading:G,searchError:ge,onRetry:jt,displayLocation:Ie,query:U,sortBy:he,effectiveSort:xe,canSortByDistance:ae,onSortChange:Lt,isMobile:b,hasSearchParams:g,activeVenueId:re,onVenueHighlight:ie,serializedSearchParams:x,onLoadMore:kt,hasNextPage:!!pe,isFetchingNextPage:be}),e.jsxs("button",{type:"button",onClick:Ue,className:"glass glass-overlay fixed bottom-[calc(env(safe-area-inset-bottom,0px)+5.5rem)] left-1/2 z-40 inline-flex h-12 -translate-x-1/2 items-center gap-2 rounded-full border border-brand px-5 text-sm font-semibold text-brand shadow-xl",children:[e.jsx(Xe,{className:"h-4 w-4"}),"Show map"]})]}):e.jsx("div",{ref:a,className:"flex-1 px-0 py-0 md:px-6 md:py-6 min-h-0 relative",children:e.jsxs("div",{className:"relative w-full flex flex-col md:flex-row-reverse md:gap-8",style:{height:X},children:[w&&e.jsx(Ot,{height:X,mapLocation:Fe,venues:Z,markerVenues:Ve,appliedBounds:y,pendingBounds:N,boundsError:_,boundsLoading:We,onSearchHere:O,onBoundsChange:Ge,highlightedVenueId:re,selectedVenueId:$e,onMarkerHoverChange:ie,onMarkerClick:Oe,query:U,searchLoading:G,onToggleFullscreen:Ue,searchParamsKey:p,onHideMap:()=>k(!1)}),e.jsxs("div",{ref:f,className:`scrollbar-hide flex w-full flex-col transition-[width] duration-500 ease-in-out md:-mx-2 md:px-2 md:opacity-100 ${w?"md:w-[calc(65%+1rem)]":"md:w-[calc(100%+1rem)]"}`,style:{maxHeight:X,overflowY:"auto",overflowX:"hidden"},children:[Mt,Et,e.jsx(Bt,{searchResults:Y||null,venues:Z,outsideAreaVenues:wt,crossKindVenues:yt,crossKindLabel:"services",searchLoading:G,searchError:ge,onRetry:jt,displayLocation:Ie,query:U,sortBy:he,effectiveSort:xe,canSortByDistance:ae,onSortChange:Lt,isMobile:b,hasSearchParams:g,activeVenueId:re,onVenueHighlight:ie,serializedSearchParams:x,onLoadMore:kt,hasNextPage:!!pe,isFetchingNextPage:be,scrollRootRef:f})]})]})})]}),e.jsx(cr,{open:S,onOpenChange:L,onApply:Ws,initialWhen:{date:h||void 0,start:ee||void 0,end:te||void 0},initialFilters:{ageRestriction:Te,minPrice:Hs||"0",maxPrice:zs||"0",venueType:gt,amenities:ne,capacityMin:Be,capacityMax:De,minRating:pt||void 0,instantBook:me,confirmedOnly:He}})]})};export{Hl as default};