import{j as e}from"./jsx-runtime.D_zvdyIk.js";import{r as n}from"./index.C5BVv2q5.js";function d(){const[l,s]=n.useState({type:"all",price:"all",sort:"rating-desc"}),r=(t,a)=>{const i={...l,[t]:a};s(i),window.dispatchEvent(new CustomEvent("venue-filters",{detail:i}))};return e.jsxs("div",{className:"flex flex-wrap items-center gap-4 p-4 glass-card rounded-2xl mb-8","aria-label":"Venue filters",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"filter-type",className:"block text-sm font-medium text-ink mb-1",children:"Type"}),e.jsxs("select",{id:"filter-type",value:l.type,onChange:t=>r("type",t.target.value),className:"rounded-xl border-cream-dk bg-cream px-3 py-2 text-ink focus:outline-2 focus:outline-primary",children:[e.jsx("option",{value:"all",children:"All"}),e.jsx("option",{value:"restaurant",children:"Restaurants"}),e.jsx("option",{value:"hotel",children:"Hotels"}),e.jsx("option",{value:"lodge",children:"Lodges"})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"filter-price",className:"block text-sm font-medium text-ink mb-1",children:"Budget"}),e.jsxs("select",{id:"filter-price",value:l.price,onChange:t=>r("price",t.target.value),className:"rounded-xl border-cream-dk bg-cream px-3 py-2 text-ink focus:outline-2 focus:outline-primary",children:[e.jsx("option",{value:"all",children:"Any"}),e.jsx("option",{value:"$",children:"Budget"}),e.jsx("option",{value:"$$",children:"Mid‑range"}),e.jsx("option",{value:"$$$",children:"Premium"})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"filter-sort",className:"block text-sm font-medium text-ink mb-1",children:"Sort by"}),e.jsxs("select",{id:"filter-sort",value:l.sort,onChange:t=>r("sort",t.target.value),className:"rounded-xl border-cream-dk bg-cream px-3 py-2 text-ink focus:outline-2 focus:outline-primary",children:[e.jsx("option",{value:"rating-desc",children:"Rating (high–low)"}),e.jsx("option",{value:"rating-asc",children:"Rating (low–high)"}),e.jsx("option",{value:"price-asc",children:"Price (low–high)"}),e.jsx("option",{value:"price-desc",children:"Price (high–low)"})]})]})]})}export{d as default};
