import{u as C,j as e,b as y,e2 as I,r as v,a2 as R,S,ec as B,ed as w,ee as j,X as E,ef as z}from"./index-BUHDA7zi.js";import{d as L}from"./useGalleryImages-95QdUxXA.js";import{h as _}from"./bubble-collision-haM0DbbX.js";function F({variant:o="default",bookingUrl:b}){const{openEnquiryModal:h,openCheckDate:p}=C(),l=b||I,c=o==="dark"?"bg-primary text-primary-foreground hover:bg-primary/90":"bg-foreground text-background hover:bg-foreground/90",d=o==="dark"?"border-white/30 text-white hover:bg-white/10":"border-primary-foreground text-primary-foreground hover:bg-primary-foreground/10";return e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center items-center py-8 px-4",children:[e.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"w-full sm:w-auto",children:e.jsx(y,{size:"lg",className:`w-full sm:w-auto sm:min-w-[220px] ${c}`,children:"Book Now"})}),e.jsx(y,{variant:"outline",size:"lg",className:`w-full sm:w-auto sm:min-w-[220px] ${d}`,onClick:()=>p(),children:"Check Date"})]})}const G="/assets/bubble-ladies-group-BamwRHjR.webp",P="/assets/bubble-closeup-Dnh773Mr.webp",T="/assets/city-hero-BivOpz09.webp",$="/assets/bubble-flip-CJXb9WyD.webp",D="/assets/cta-background-V4ol1JrB.webp",M="/assets/kids-celebrating-CQcHPLeE.webp",A="/assets/girl-in-bubble-mYxXIhNC.webp",K=[{src:_,alt:"Epic bubble football collision on the pitch"},{src:M,alt:"Kids celebrating after a bubble football match"},{src:$,alt:"Player flipping upside down in a bubble suit"},{src:G,alt:"Hen party group posing with Spartacus bubble suits"},{src:A,alt:"Girl smiling inside a Spartacus bubble suit"},{src:z,alt:"Lads lined up and ready for bubble football"},{src:D,alt:"Kids crashing into each other in bubble suits"},{src:P,alt:"Player grinning inside a Spartacus bubble suit"},{src:T,alt:"Two players clashing in bubble suits"}];function U({images:o,pageType:b="city",background:h="muted",showCTA:p=!0,cityName:l,headingOverride:c,subheadingOverride:d}){const{data:m}=L(b),a=m&&m.length>0?m.map(s=>({src:s.image_url,alt:s.alt_text})):o||K,[t,n]=v.useState(null),u=v.useRef(null),{display:N}=R(),x=s=>{if(!u.current)return;const r=u.current.clientWidth*.7;u.current.scrollBy({left:s==="left"?-r:r,behavior:"smooth"})},f=s=>{t!==null&&n(s==="prev"?t===0?a.length-1:t-1:t===a.length-1?0:t+1)},g=t!==null?a[t]:null,i=({image:s,index:r,className:k})=>e.jsxs("button",{onClick:()=>n(r),className:`group relative overflow-hidden rounded-sm border border-white/10 focus:outline-none focus:ring-2 focus:ring-primary/50 ${k||""}`,"aria-label":`Open gallery image ${r+1}: ${s.alt}`,children:[e.jsx("img",{src:s.src,alt:s.alt,className:"h-full w-full object-cover transition-transform duration-700 group-hover:scale-105",loading:"lazy"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-transparent to-transparent opacity-60 transition-opacity duration-500 group-hover:opacity-40"})]});return e.jsxs(e.Fragment,{children:[e.jsx("section",{className:"relative overflow-hidden py-10 md:py-28 bg-secondary",children:e.jsxs("div",{className:"container mx-auto max-w-7xl px-4 relative z-10",children:[e.jsx(S,{children:e.jsxs("div",{className:"text-center mb-6 md:mb-16",children:[e.jsx("h2",{className:"font-display text-4xl md:text-6xl font-bold italic text-secondary-foreground uppercase tracking-tight leading-[0.9] mb-6",children:c||(l&&B.includes(l)?e.jsxs(e.Fragment,{children:[l,"'s #1 Rated"," ",e.jsx("span",{className:"text-primary",children:"Bubble Football"})]}):l?e.jsxs(e.Fragment,{children:["UK's #1 Rated"," ",e.jsx("span",{className:"text-primary",children:"Bubble Football"})]}):e.jsxs(e.Fragment,{children:["Feel the"," ",e.jsx("span",{className:"text-primary",children:"Magic"})," ","of the Cup"]}))}),e.jsx("p",{className:"text-secondary-foreground/70 text-xs md:text-xl font-light italic whitespace-nowrap overflow-hidden text-ellipsis",children:d||(l?`437 five-star reviews in Manchester. ${N} across the UK.`:"Every photo tells a story. Every story leads to glory.")})]})}),e.jsxs("div",{className:"hidden md:grid grid-cols-12 gap-4 h-[520px] lg:h-[600px]",children:[a[0]&&e.jsx("div",{className:"col-span-6 h-full",children:e.jsx(i,{image:a[0],index:0,className:"h-full w-full"})}),a[1]&&e.jsxs("div",{className:"col-span-3 flex flex-col gap-4 h-full",children:[e.jsx(i,{image:a[1],index:1,className:"flex-1 w-full"}),a[2]&&e.jsx(i,{image:a[2],index:2,className:"flex-1 w-full"})]}),a[3]&&e.jsx("div",{className:"col-span-3 h-full",children:e.jsx(i,{image:a[3],index:3,className:"h-full w-full"})})]}),e.jsxs("div",{className:"md:hidden relative group/gallery",children:[e.jsx("button",{onClick:()=>x("left"),className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 p-2 bg-secondary-foreground/60 hover:bg-secondary-foreground/80 text-secondary/70 hover:text-secondary transition-all opacity-0 group-hover/gallery:opacity-100 -translate-x-1 group-hover/gallery:translate-x-2","aria-label":"Scroll left",children:e.jsx(w,{className:"w-5 h-5"})}),e.jsx("button",{onClick:()=>x("right"),className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 p-2 bg-secondary-foreground/60 hover:bg-secondary-foreground/80 text-secondary/70 hover:text-secondary transition-all opacity-0 group-hover/gallery:opacity-100 translate-x-1 group-hover/gallery:-translate-x-2","aria-label":"Scroll right",children:e.jsx(j,{className:"w-5 h-5"})}),e.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-8 bg-gradient-to-r from-secondary to-transparent z-[5] pointer-events-none"}),e.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-8 bg-gradient-to-l from-secondary to-transparent z-[5] pointer-events-none"}),e.jsx("div",{ref:u,className:"flex gap-3 overflow-x-auto scrollbar-hide scroll-smooth snap-x snap-mandatory pb-2",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:a.map((s,r)=>e.jsx(i,{image:s,index:r,className:"flex-shrink-0 snap-start w-[280px] h-[220px]"},r))})]}),p&&e.jsx(F,{}),e.jsxs("div",{className:"mt-8 md:mt-16 flex items-center gap-4",children:[e.jsx("div",{className:"h-px flex-1 bg-gradient-to-r from-transparent via-secondary-foreground/10 to-transparent"}),e.jsx("div",{className:"w-2 h-2 rotate-45 border border-primary/50"}),e.jsx("div",{className:"h-px flex-1 bg-gradient-to-r from-transparent via-secondary-foreground/10 to-transparent"})]})]})}),g&&e.jsxs("div",{className:"fixed inset-0 z-50 bg-black/95 backdrop-blur-sm flex items-center justify-center p-4",onClick:()=>n(null),children:[e.jsx("button",{onClick:()=>n(null),className:"absolute top-4 right-4 p-2 text-white/70 hover:text-white transition-colors z-10","aria-label":"Close",children:e.jsx(E,{className:"w-6 h-6"})}),e.jsx("button",{onClick:s=>{s.stopPropagation(),f("prev")},className:"absolute left-4 p-3 bg-white/10 backdrop-blur-sm hover:bg-white/20 transition-colors rounded-sm","aria-label":"Previous image",children:e.jsx(w,{className:"w-6 h-6 text-white"})}),e.jsx("img",{src:g.src,alt:g.alt,className:"max-w-full max-h-[85vh] object-contain rounded-sm",onClick:s=>s.stopPropagation()}),e.jsx("button",{onClick:s=>{s.stopPropagation(),f("next")},className:"absolute right-4 p-3 bg-white/10 backdrop-blur-sm hover:bg-white/20 transition-colors rounded-sm","aria-label":"Next image",children:e.jsx(j,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{className:"absolute bottom-6 left-1/2 -translate-x-1/2 text-white/50 text-sm font-medium",children:[(t??0)+1," / ",a.length]})]})]})}export{U as C};