(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,81036,e=>{"use strict";var a=e.i(43476),r=e.i(37902),s=e.i(71645),t=e.i(84515);let i=[{id:"all",name:"All Places"},{id:"beach",name:"Beaches"},{id:"historical",name:"Historical"},{id:"spiritual",name:"Spiritual"},{id:"adventure",name:"Adventure"},{id:"nature",name:"Nature"}];function n({initialPlaces:e}){let[n,o]=(0,s.useState)("all"),[l,d]=(0,s.useState)(null),[c,f]=(0,s.useState)(e),[m,x]=(0,s.useState)(0),g=(0,s.useRef)(null),p=(0,s.useCallback)(()=>{g.current&&g.current.disconnect(),g.current=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(e.target.style.setProperty("--revealed","1"),e.target.classList.add("in-view"),g.current?.unobserve(e.target))})},{threshold:.08,rootMargin:"0px 0px -40px 0px"}),document.querySelectorAll(".reveal").forEach(e=>g.current?.observe(e))},[]);(0,s.useEffect)(()=>{let e,a;return e=requestAnimationFrame(()=>{a=setTimeout(p,50)}),()=>{cancelAnimationFrame(e),clearTimeout(a)}},[c,n,p]),(0,s.useEffect)(()=>()=>{g.current&&g.current.disconnect()},[]);let h=(0,s.useCallback)(async e=>{try{let{data:a,error:r}=await t.supabase.from("places").select("*").order("created_at",{ascending:!1}).abortSignal(e);if(r)throw r;a&&f(a)}catch(a){"AbortError"!==a.name&&e?.aborted}},[]);(0,s.useEffect)(()=>{let e=new AbortController,a=t.supabase.channel("places-changes").on("postgres_changes",{event:"*",schema:"public",table:"places"},()=>{e.signal.aborted||h(e.signal)}).subscribe();return()=>{e.abort(),t.supabase.removeChannel(a)}},[h]);let b="all"===n?c:c.filter(e=>e.category===n),j=()=>{d(null),x(0),document.body.style.overflow="auto"};return(0,a.jsxs)("div",{className:"jsx-af748016911d0867 places-page",children:[(0,a.jsxs)("div",{"aria-hidden":"true",className:"jsx-af748016911d0867 bg-mesh",children:[(0,a.jsx)("div",{className:"jsx-af748016911d0867 mesh-layer-1"}),(0,a.jsx)("div",{className:"jsx-af748016911d0867 mesh-layer-2"}),(0,a.jsx)("div",{className:"jsx-af748016911d0867 grid-overlay"})]}),(0,a.jsx)("div",{className:"jsx-af748016911d0867 hero",children:(0,a.jsxs)("div",{className:"jsx-af748016911d0867 hero-content",children:[(0,a.jsx)("div",{className:"jsx-af748016911d0867 hero-badge reveal",children:"✦ Discover Alibag ✦"}),(0,a.jsx)("h1",{className:"jsx-af748016911d0867 hero-title",children:"Explore Alibag"}),(0,a.jsx)("p",{className:"jsx-af748016911d0867 hero-subtitle",children:"Discover the best beaches, forts, and attractions around Sukhakarta Holiday Home"})]})}),(0,a.jsxs)("div",{className:"jsx-af748016911d0867 container",children:[(0,a.jsx)("div",{className:"jsx-af748016911d0867 filter-section",children:i.map((e,r)=>(0,a.jsx)("button",{style:{"--delay":`${80*r}ms`},onClick:()=>o(e.id),className:`jsx-af748016911d0867 filter-btn reveal ${n===e.id?"active":""}`,children:e.name},e.id))}),(0,a.jsx)("div",{className:"jsx-af748016911d0867 places-grid",children:b.map((e,r)=>{let s=e.images||[],t=e.highlights||[];return(0,a.jsxs)("div",{style:{"--delay":`${Math.min(80*r,480)}ms`},onClick:()=>{d(e),x(0),document.body.style.overflow="hidden"},className:"jsx-af748016911d0867 place-card reveal",children:[s.length>0&&(0,a.jsxs)("div",{className:"jsx-af748016911d0867 place-image-container",children:[(0,a.jsx)("img",{src:s[0],alt:e.name,loading:"lazy",className:"jsx-af748016911d0867 place-image"}),s.length>1&&(0,a.jsxs)("div",{className:"jsx-af748016911d0867 image-badge",children:[s.length," photos"]})]}),(0,a.jsxs)("div",{className:"jsx-af748016911d0867 place-content",children:[(0,a.jsx)("h3",{className:"jsx-af748016911d0867",children:e.name}),(0,a.jsxs)("div",{className:"jsx-af748016911d0867 place-meta",children:[(0,a.jsx)("span",{className:"jsx-af748016911d0867",children:e.distance}),(0,a.jsx)("span",{className:"jsx-af748016911d0867",children:e.time})]}),(0,a.jsx)("p",{className:"jsx-af748016911d0867 description",children:e.description}),(0,a.jsx)("div",{className:"jsx-af748016911d0867 highlights",children:t.slice(0,2).map((e,r)=>(0,a.jsx)("span",{className:"jsx-af748016911d0867 highlight-tag",children:e},r))}),(0,a.jsxs)("div",{className:"jsx-af748016911d0867 card-footer",children:[(0,a.jsxs)("div",{className:"jsx-af748016911d0867 rating",children:["Rating — ",e.rating]}),(0,a.jsx)("span",{className:"jsx-af748016911d0867 view-more",children:"View Details →"})]})]})]},e.id)})}),0===b.length&&(0,a.jsxs)("div",{className:"jsx-af748016911d0867 no-results reveal",children:[(0,a.jsx)("h3",{className:"jsx-af748016911d0867",children:"No places found"}),(0,a.jsx)("p",{className:"jsx-af748016911d0867",children:"Try selecting a different category"})]})]}),l&&(0,a.jsx)("div",{onClick:j,className:"jsx-af748016911d0867 modal",children:(0,a.jsxs)("div",{onClick:e=>e.stopPropagation(),className:"jsx-af748016911d0867 modal-content",children:[(0,a.jsx)("button",{onClick:j,className:"jsx-af748016911d0867 close-btn",children:"×"}),l.images&&l.images.length>0&&(0,a.jsxs)("div",{className:"jsx-af748016911d0867 gallery",children:[(0,a.jsxs)("div",{className:"jsx-af748016911d0867 gallery-main",children:[(0,a.jsx)("img",{src:l.images[m],alt:l.name,className:"jsx-af748016911d0867 gallery-image"}),l.images.length>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{onClick:()=>{l?.images?.length&&x(e=>0===e?(l.images?.length||1)-1:e-1)},className:"jsx-af748016911d0867 gallery-nav prev",children:"‹"}),(0,a.jsx)("button",{onClick:()=>{l?.images?.length&&x(e=>e===(l.images?.length||1)-1?0:e+1)},className:"jsx-af748016911d0867 gallery-nav next",children:"›"}),(0,a.jsxs)("div",{className:"jsx-af748016911d0867 gallery-counter",children:[m+1," /"," ",l.images.length]})]})]}),l.images.length>1&&(0,a.jsx)("div",{className:"jsx-af748016911d0867 gallery-thumbnails",children:l.images.map((e,r)=>(0,a.jsx)("div",{onClick:()=>x(r),className:`jsx-af748016911d0867 gallery-thumb ${r===m?"active":""}`,children:(0,a.jsx)("img",{src:e,alt:`${l.name} thumbnail ${r+1}`,className:"jsx-af748016911d0867"})},r))})]}),(0,a.jsxs)("div",{className:"jsx-af748016911d0867 modal-details",children:[(0,a.jsx)("h2",{className:"jsx-af748016911d0867",children:l.name}),(0,a.jsxs)("div",{className:"jsx-af748016911d0867 modal-meta",children:[(0,a.jsxs)("div",{className:"jsx-af748016911d0867 meta-item",children:[(0,a.jsx)("span",{className:"jsx-af748016911d0867 meta-label",children:"Distance"}),(0,a.jsx)("span",{className:"jsx-af748016911d0867 meta-value",children:l.distance})]}),(0,a.jsxs)("div",{className:"jsx-af748016911d0867 meta-item",children:[(0,a.jsx)("span",{className:"jsx-af748016911d0867 meta-label",children:"Time"}),(0,a.jsx)("span",{className:"jsx-af748016911d0867 meta-value",children:l.time})]}),(0,a.jsxs)("div",{className:"jsx-af748016911d0867 meta-item",children:[(0,a.jsx)("span",{className:"jsx-af748016911d0867 meta-label",children:"Rating"}),(0,a.jsxs)("span",{className:"jsx-af748016911d0867 meta-value",children:[l.rating,"/5"]})]})]}),(0,a.jsx)("p",{className:"jsx-af748016911d0867 modal-description",children:l.description}),(0,a.jsxs)("div",{className:"jsx-af748016911d0867 modal-highlights",children:[(0,a.jsx)("h4",{className:"jsx-af748016911d0867",children:"Highlights"}),(0,a.jsx)("div",{className:"jsx-af748016911d0867 highlights-grid",children:(l.highlights||[]).map((e,r)=>(0,a.jsxs)("span",{className:"jsx-af748016911d0867 highlight-pill",children:["✓ ",e]},r))})]}),(0,a.jsxs)("div",{className:"jsx-af748016911d0867 modal-actions",children:[l.location_url&&function(e){try{let a=new URL(e);return"http:"===a.protocol||"https:"===a.protocol}catch{return!1}}(l.location_url)&&(0,a.jsx)("a",{href:l.location_url,target:"_blank",rel:"noopener noreferrer",className:"jsx-af748016911d0867 action-btn primary",children:"Get Directions"}),(0,a.jsx)("button",{onClick:j,className:"jsx-af748016911d0867 action-btn secondary",children:"Close"})]})]})]})}),(0,a.jsx)(r.default,{id:"af748016911d0867",children:'.places-page.jsx-af748016911d0867{color:#f8fafc;background:#04070f;min-height:100vh;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;position:relative;overflow-x:hidden}.bg-mesh.jsx-af748016911d0867{z-index:0;pointer-events:none;contain:strict;position:fixed;inset:0}.mesh-layer-1.jsx-af748016911d0867{background:radial-gradient(80% 60% at 100% 0,#f973162e 0%,#0000 60%),radial-gradient(70% 50% at 0 100%,#0ea5e926 0%,#0000 60%),linear-gradient(160deg,#04070f 0%,#0b1220 50%,#04070f 100%);position:absolute;inset:0}.mesh-layer-2.jsx-af748016911d0867{will-change:opacity;background:radial-gradient(50% 50%,#f973160f 0%,#0000 70%);animation:8s ease-in-out infinite alternate mesh-pulse;position:absolute;inset:0}@keyframes mesh-pulse{0%{opacity:.4}to{opacity:1}}.grid-overlay.jsx-af748016911d0867{background-image:linear-gradient(#f973160a 1px,#0000 1px),linear-gradient(90deg,#f973160a 1px,#0000 1px);background-size:60px 60px;position:absolute;inset:0}.reveal.jsx-af748016911d0867{opacity:0;transition:opacity .65s cubic-bezier(.22,1,.36,1)var(--delay,0s),transform .65s cubic-bezier(.22,1,.36,1)var(--delay,0s);will-change:opacity,transform;contain:layout style;transform:translateY(32px)}.reveal.in-view.jsx-af748016911d0867{opacity:1;transform:translateY(0)}@media (prefers-reduced-motion:reduce){.reveal.jsx-af748016911d0867{opacity:1;contain:none;transition:none;transform:none}.mesh-layer-2.jsx-af748016911d0867{animation:none}}.hero.jsx-af748016911d0867{z-index:1;text-align:center;padding:8rem 2rem 4rem;position:relative}.hero-badge.jsx-af748016911d0867{letter-spacing:.25em;text-transform:uppercase;color:#f97316;background:#f9731614;border:1px solid #f9731666;border-radius:100px;margin-bottom:2rem;padding:.5rem 1.25rem;font-size:.75rem;font-weight:500;animation:.7s ease-out both fadeInDown;display:inline-block}.hero-title.jsx-af748016911d0867{-webkit-text-fill-color:transparent;background:linear-gradient(135deg,#fff,#f97316,#0ea5e9);-webkit-background-clip:text;background-clip:text;margin-bottom:1.25rem;font-size:max(3rem,min(8vw,5rem));font-weight:700;line-height:1.05;animation:.8s ease-out .15s both fadeInUp}.hero-subtitle.jsx-af748016911d0867{color:#f0f4f8cc;margin:0 0 2rem;font-size:max(1.1rem,min(3vw,1.5rem));font-weight:300;animation:.8s ease-out .3s both fadeInUp}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}.container.jsx-af748016911d0867{z-index:1;max-width:1400px;margin:0 auto;padding:3rem 2rem 5rem;position:relative}.filter-section.jsx-af748016911d0867{flex-wrap:wrap;justify-content:center;gap:1rem;margin-bottom:3rem;display:flex}.filter-btn.jsx-af748016911d0867{color:#f8fafc;cursor:pointer;will-change:transform;background:#ffffff0d;border:2px solid #f9731633;border-radius:50px;align-items:center;gap:.5rem;padding:1rem 2rem;font-size:1rem;font-weight:600;transition:transform .3s cubic-bezier(.22,1,.36,1),background .25s,border-color .25s,box-shadow .3s;display:flex}.filter-btn.jsx-af748016911d0867:hover{background:#f973161a;border-color:#f97316;transform:translateY(-3px)}.filter-btn.active.jsx-af748016911d0867{background:linear-gradient(135deg,#f97316,#ea580c);border-color:#f97316;box-shadow:0 10px 30px #f9731666}.places-grid.jsx-af748016911d0867{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:2rem;display:grid}.place-card.jsx-af748016911d0867{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);cursor:pointer;will-change:transform;background:#ffffff0d;border:1px solid #f9731633;border-radius:24px;transition:transform .4s cubic-bezier(.22,1,.36,1),border-color .3s,box-shadow .4s;position:relative;overflow:hidden}.place-card.jsx-af748016911d0867:before{content:"";will-change:transform;background:linear-gradient(90deg,#0000,#f973161f,#0000);width:100%;height:100%;transition:transform .5s;position:absolute;top:0;left:-100%}.place-card.jsx-af748016911d0867:hover:before{transform:translate(200%)}.place-card.jsx-af748016911d0867:hover{border-color:#f97316;transform:translateY(-10px)scale(1.02);box-shadow:0 20px 60px #f973164d}.place-image-container.jsx-af748016911d0867{height:200px;position:relative;overflow:hidden}.place-image.jsx-af748016911d0867{object-fit:cover;will-change:transform;width:100%;height:100%;transition:transform .4s cubic-bezier(.22,1,.36,1)}.place-card.jsx-af748016911d0867:hover .place-image.jsx-af748016911d0867{transform:scale(1.08)}.image-badge.jsx-af748016911d0867{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0f172ae6;border-radius:20px;padding:.5rem 1rem;font-size:.85rem;position:absolute;top:1rem;right:1rem}.place-content.jsx-af748016911d0867{padding:2rem}.place-content.jsx-af748016911d0867 h3.jsx-af748016911d0867{color:#f97316;margin-bottom:.75rem;font-size:1.5rem}.place-meta.jsx-af748016911d0867{color:#94a3b8;gap:1.5rem;margin-bottom:1rem;font-size:.9rem;display:flex}.description.jsx-af748016911d0867{color:#cbd5e1;margin-bottom:1rem;line-height:1.6}.highlights.jsx-af748016911d0867{flex-wrap:wrap;gap:.5rem;margin-bottom:1rem;display:flex}.highlight-tag.jsx-af748016911d0867{color:#f97316;background:#f973161a;border:1px solid #f973164d;border-radius:20px;padding:.25rem .75rem;font-size:.85rem}.card-footer.jsx-af748016911d0867{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;margin-top:1.5rem;padding-top:1rem;display:flex}.rating.jsx-af748016911d0867{color:#fbbf24;font-weight:600}.view-more.jsx-af748016911d0867{color:#f97316;will-change:transform;font-weight:600;transition:transform .25s cubic-bezier(.22,1,.36,1);display:inline-block}.place-card.jsx-af748016911d0867:hover .view-more.jsx-af748016911d0867{transform:translate(5px)}.no-results.jsx-af748016911d0867{text-align:center;padding:4rem 2rem}.no-results.jsx-af748016911d0867 h3.jsx-af748016911d0867{color:#f97316;margin-bottom:.5rem;font-size:2rem}.no-results.jsx-af748016911d0867 p.jsx-af748016911d0867{color:#94a3b8}.modal.jsx-af748016911d0867{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:1000;background:#0f172af2;justify-content:center;align-items:center;padding:2rem;animation:.3s ease-out fadeIn;display:flex;position:fixed;inset:0;overflow-y:auto}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content.jsx-af748016911d0867{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:linear-gradient(135deg,#1e293bfa,#0f172afa);border:2px solid #f973164d;border-radius:30px;width:100%;max-width:900px;max-height:90vh;animation:.4s cubic-bezier(.22,1,.36,1) scaleIn;position:relative;overflow-y:auto}@keyframes scaleIn{0%{opacity:0;transform:scale(.95)translateY(20px)}to{opacity:1;transform:scale(1)translateY(0)}}.close-btn.jsx-af748016911d0867{float:right;color:#f8fafc;cursor:pointer;z-index:10;background:#f9731633;border:1px solid #f973164d;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;font-size:1.5rem;transition:background .2s,transform .3s cubic-bezier(.22,1,.36,1);display:flex;position:sticky;top:1.5rem;right:1.5rem}.close-btn.jsx-af748016911d0867:hover{background:#f97316;transform:rotate(90deg)}.gallery.jsx-af748016911d0867{padding:2rem 2rem 1rem}.gallery-main.jsx-af748016911d0867{background:#0003;border-radius:20px;height:400px;margin-bottom:1rem;position:relative;overflow:hidden}.gallery-image.jsx-af748016911d0867{object-fit:cover;width:100%;height:100%;animation:.3s cubic-bezier(.22,1,.36,1) imageZoom}@keyframes imageZoom{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.gallery-nav.jsx-af748016911d0867{color:#f8fafc;cursor:pointer;background:#0f172ae6;border:1px solid #f973164d;border-radius:50%;justify-content:center;align-items:center;width:45px;height:45px;font-size:1.5rem;transition:background .2s,transform .25s cubic-bezier(.22,1,.36,1);display:flex;position:absolute;top:50%;transform:translateY(-50%)}.gallery-nav.jsx-af748016911d0867:hover{background:#f97316;transform:translateY(-50%)scale(1.1)}.gallery-nav.prev.jsx-af748016911d0867{left:1rem}.gallery-nav.next.jsx-af748016911d0867{right:1rem}.gallery-counter.jsx-af748016911d0867{background:#0f172ae6;border-radius:20px;padding:.5rem 1rem;font-size:.9rem;position:absolute;bottom:1rem;right:1rem}.gallery-thumbnails.jsx-af748016911d0867{grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:.75rem;display:grid}.gallery-thumb.jsx-af748016911d0867{aspect-ratio:1;cursor:pointer;will-change:transform;background:#ffffff0d;border:2px solid #f9731633;border-radius:12px;transition:border-color .2s,transform .25s cubic-bezier(.22,1,.36,1);overflow:hidden}.gallery-thumb.jsx-af748016911d0867 img.jsx-af748016911d0867{object-fit:cover;width:100%;height:100%}.gallery-thumb.active.jsx-af748016911d0867{background:#f9731633;border-color:#f97316}.gallery-thumb.jsx-af748016911d0867:hover{border-color:#f97316;transform:scale(1.05)}.modal-details.jsx-af748016911d0867{padding:0 2rem 2rem}.modal-details.jsx-af748016911d0867 h2.jsx-af748016911d0867{text-align:center;-webkit-text-fill-color:transparent;background:linear-gradient(135deg,#fff,#f97316);-webkit-background-clip:text;background-clip:text;margin-bottom:2rem;font-size:2rem}.modal-meta.jsx-af748016911d0867{grid-template-columns:repeat(3,1fr);gap:1rem;margin-bottom:2rem;display:grid}.meta-item.jsx-af748016911d0867{text-align:center;background:#f973161a;border:1px solid #f9731633;border-radius:15px;padding:1rem}.meta-label.jsx-af748016911d0867{color:#94a3b8;margin-bottom:.5rem;font-size:.85rem;display:block}.meta-value.jsx-af748016911d0867{color:#f97316;font-weight:600;display:block}.modal-description.jsx-af748016911d0867{color:#cbd5e1;margin-bottom:2rem;line-height:1.8}.modal-highlights.jsx-af748016911d0867 h4.jsx-af748016911d0867{color:#f97316;margin-bottom:1rem}.highlights-grid.jsx-af748016911d0867{grid-template-columns:repeat(2,1fr);gap:.75rem;margin-bottom:2rem;display:grid}.highlight-pill.jsx-af748016911d0867{text-align:center;color:#f8fafc;background:#f973161a;border:1px solid #f973164d;border-radius:12px;padding:.75rem 1rem;font-size:.9rem;transition:background .2s,transform .25s cubic-bezier(.22,1,.36,1)}.highlight-pill.jsx-af748016911d0867:hover{background:#f9731633;transform:scale(1.04)}.modal-actions.jsx-af748016911d0867{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.action-btn.jsx-af748016911d0867{cursor:pointer;text-align:center;will-change:transform;border:none;border-radius:12px;padding:1rem 1.5rem;font-size:1rem;font-weight:600;text-decoration:none;transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s,background .25s;display:block}.action-btn.primary.jsx-af748016911d0867{color:#fff;background:linear-gradient(135deg,#f97316,#ea580c);box-shadow:0 10px 30px #f9731666}.action-btn.primary.jsx-af748016911d0867:hover{transform:translateY(-3px);box-shadow:0 15px 40px #f9731699}.action-btn.secondary.jsx-af748016911d0867{color:#f97316;background:0 0;border:2px solid #f97316}.action-btn.secondary.jsx-af748016911d0867:hover{background:#f973161a;transform:translateY(-3px)}@media (width<=768px){.hero.jsx-af748016911d0867{padding:6rem 2rem 3rem}.places-grid.jsx-af748016911d0867{grid-template-columns:1fr}.filter-section.jsx-af748016911d0867{gap:.75rem}.filter-btn.jsx-af748016911d0867{padding:.75rem 1.5rem;font-size:.9rem}.modal-meta.jsx-af748016911d0867,.highlights-grid.jsx-af748016911d0867,.modal-actions.jsx-af748016911d0867{grid-template-columns:1fr}.gallery-main.jsx-af748016911d0867{height:250px}}'})]})}e.s(["default",()=>n])}]);