var __gh = require("react").createElement, __gf = require("react").Fragment; var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var stdin_exports={};__export(stdin_exports,{default:()=>stdin_default,featureConfig:()=>featureConfig});module.exports=__toCommonJS(stdin_exports);var dataSources=[{key:"inmuebles",table:"pms__inmuebles",access:["public:read"],sensitive:["__created_by__","__deleted_at__","__created_at__","__updated_at__","arrendador_razon_social","arrendador_cif","arrendador_direccion","arrendador_iban","arrendador_email","arrendador_telefono","facturacion_reutiliza","firmante_nombre","firmante_rol","firmante_dni","firmante_email","arrendatario_razon_social","arrendatario_nif","arrendatario_direccion","arrendatario_representante","arrendatario_email","arrendatario_telefono","nrua","referencia_catastral","direccion_detalle","checkin_desde","checkin_hasta","checkin_metodo","checkin_metodo__display","checkin_indicaciones","checkout_hora","checkout_indicaciones","comision_pct","precios_mensuales","descuentos","suministros_incluidos","suministros_incluidos__display","suministros_limite","limpieza_incluida","fianza_requerida","modo_reserva","modo_reserva__display","ical_export_token","ical_imports","propietario_id","propietario_id__display","arrendadores","arrendatarios","firmante_tratamiento","aseos"]},{key:"alojamientos",table:"pms__alojamientos",access:[]}];var automations=[{name:"web_solicitud",description:"Recibe solicitudes del formulario de la web p\xFAblica",public:!0},{name:"portal_acceso",description:"\xC1rea privada: datos del propietario o inquilino por email",public:!0},{name:"web_disponibilidad",description:"Buscador flexible: ocupaci\xF3n por alojamiento (sin PII) para calcular disponibilidad por fechas",public:!0}];var import_react14=__toESM(require("react"));var T={inmuebles:"pms__inmuebles",alojamientos:"pms__alojamientos"},toVivienda=inm=>{let ub=inm&&inm.ubicacion||{},items=inm&&inm.fotos&&Array.isArray(inm.fotos.items)?inm.fotos.items.filter(Boolean):[],portada=inm&&inm.foto_portada||items[0]||"",comod=Array.isArray(inm&&inm.comodidades)?inm.comodidades.join(" \xB7 "):String(inm&&inm.comodidades||""),ciudad=String(ub.city||"").split(",")[0].trim(),nHuesp=Number(inm&&inm.num_huespedes||0),nCamas=Number(inm&&inm.camas||0),nSofas=Number(inm&&inm.sofas_cama||0),capacidad=nHuesp>0?nHuesp:nCamas+nSofas||Number(inm&&inm.dormitorios||0)||void 0;return{...inm,id:inm&&inm.id,nombre:inm&&inm.titulo||"Vivienda",foto:portada,fotos_items:items,ciudad,lat:Number(ub.lat),lng:Number(ub.lng),cp:String(ub.postal_code||""),calle:[ub.street,ub.number].filter(Boolean).join(" "),precio_base:inm&&inm.precio_base,mensualidad:inm&&inm.precio_base,habitaciones:inm&&inm.dormitorios,camas:inm&&inm.camas,banos:inm&&inm.banos,capacidad,huespedes:capacidad,tipo:inm&&inm.tipo_alojamiento,direccion:[ub.street,ub.number].filter(Boolean).join(" "),m2:inm&&inm.superficie_m2,amenities:comod,descripcion:inm&&inm.descripcion||"",estado:inm&&inm.estado,referencia:inm&&inm.referencia,publicado:String(inm&&inm.estado&&(inm.estado.value??inm.estado)||"")==="Pausado"?"No":"S\xED"}},FONT_SANS="'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif",FONT_SERIF=FONT_SANS,INK="#1E3444",INK2="#14242F",BODY="#4A5568",MUTED="#636F82",FAINT="#A7B0BE",LINE="#E3E8EF",LINE2="#EDF1F6",PAPER="#FFFFFF",PAPER2="#F4F7FB";var RED="#EA682E",CLAY=RED;var uiToast=(msg,kind="error")=>{if(typeof document>"u")return;let prev=document.getElementById("hw-toast");prev&&prev.remove();let el=document.createElement("div");el.id="hw-toast",el.setAttribute("role","alert"),el.setAttribute("aria-live","assertive"),el.textContent=msg,el.style.cssText=["position:fixed","left:50%","bottom:24px","transform:translateX(-50%)","z-index:2147483000","max-width:min(92vw,420px)","text-align:center",`background:${kind==="error"?"#1E3444":"#0F7B4F"}`,"color:#fff","padding:13px 18px","border-radius:12px",`font:600 14px/1.4 ${FONT_SANS}`,"box-shadow:0 12px 32px rgba(0,0,0,.22)","pointer-events:none"].join(";"),document.body.appendChild(el),window.setTimeout(()=>{el.parentNode&&el.remove()},kind==="error"?6e3:3500)},impuestoTxt=a=>{let v=a&&a.impuesto;return String((v&&typeof v=="object"?v.value??v.label??v.name:v)??"")},llevaIva=a=>/iva/i.test(impuestoTxt(a)),tipoIva=a=>{let m=impuestoTxt(a).match(/(\d+(?:[.,]\d+)?)\s*%/);return m?Number(String(m[1]).replace(",","."))/100:llevaIva(a)?.21:0},ivaNota=a=>llevaIva(a)?"IVA incl.":"";var diaSiguiente=ymd=>{let s=String(ymd||"").slice(0,10);if(!/^\d{4}-\d{2}-\d{2}$/.test(s))return s;let[a,m,d]=s.split("-").map(Number);return new Date(Date.UTC(a,m-1,d+1)).toISOString().slice(0,10)},bloqueosDe=a=>{let pb=a&&a.periodos_bloqueados;return(Array.isArray(pb)?pb:pb&&Array.isArray(pb.items)?pb.items:[]).filter(x=>x&&x.desde&&x.hasta).map(x=>({desde:String(x.desde),hasta:diaSiguiente(String(x.hasta))}))},hoyISO=()=>new Date().toISOString().slice(0,10),intervalosDe=(a,ocupacion)=>{let ext=ocupacion&&Array.isArray(ocupacion[String(a?.id)])?ocupacion[String(a.id)]:[];return[...bloqueosDe(a),...ext]},ocupadaHoyDe=(a,ocupacion)=>{let h=hoyISO();return intervalosDe(a,ocupacion).some(x=>x&&String(x.desde)<=h&&String(x.hasta)>h)},libreDesdeDe=(a,ocupacion)=>{let h=hoyISO();return intervalosDe(a,ocupacion).filter(x=>x&&String(x.desde)<=h&&String(x.hasta)>h).map(x=>String(x.hasta)).sort().pop()||""},estanciaMinDe=a=>{let n=Number(a&&a.estancia_min_dias||0);return Number.isFinite(n)&&n>0?n:0},num=v=>v==null||v===""?0:Number(typeof v=="object"?v.amount??v.value??0:v);var mensualidadDe=a=>Math.round(num(a.precio_base)*(1+tipoIva(a))),OPC_EUR={style:"currency",currency:"EUR",maximumFractionDigits:0,useGrouping:"always"},OPC_NUM={maximumFractionDigits:0,useGrouping:"always"},fmtEur=v=>new Intl.NumberFormat("es-ES",OPC_EUR).format(num(v)),fmtNum=v=>new Intl.NumberFormat("es-ES",OPC_NUM).format(num(v)),amenitiesDe=a=>String(a.amenities||"").split(/·|,|;/).map(s=>s.trim()).filter(Boolean),UNSPLASH_HERO="photo-1600585154340-be6161a56a0c",unsplashSrc=(id,w)=>`https://images.unsplash.com/${id}?w=${w}&q=72&auto=format&fit=crop`,unsplashSrcSet=(id,anchos=[640,960,1400,1920])=>anchos.map(w=>`${unsplashSrc(id,w)} ${w}w`).join(", "),HERO_IMG=unsplashSrc(UNSPLASH_HERO,1400),HERO_SRCSET=unsplashSrcSet(UNSPLASH_HERO);var pisoSlug=(titulo,id)=>{let base=String(titulo||"").normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,60).replace(/-+$/,"");return base?`${base}-${id}`:String(id)},pisoIdDeSlug=v=>{let s=String(v||"").trim();if(/^\d+$/.test(s))return s;let m=s.match(/-(\d+)$/);return m?m[1]:null};var pisosIdsDeParam=v=>{let out=[];for(let trozo of String(v||"").split(",")){let id=pisoIdDeSlug(trozo);if(id&&out.indexOf(id)===-1&&out.push(id),out.length>=30)break}return out},mesesDeRango=(entrada,salida)=>{if(!entrada||!salida)return"";let aMs2=ymd=>Date.UTC(+ymd.slice(0,4),+ymd.slice(5,7)-1,+ymd.slice(8,10)),m=Math.round(Math.round((aMs2(salida)-aMs2(entrada))/864e5)/30);return[1,2,3,6,9,12].indexOf(m)>=0?String(m):""},ymdDeParam=v=>{let s=String(v||"").trim().slice(0,10);if(!/^\d{4}-\d{2}-\d{2}$/.test(s))return"";let[a,m,d]=s.split("-").map(Number),t=new Date(Date.UTC(a,m-1,d));return t.getUTCFullYear()===a&&t.getUTCMonth()===m-1&&t.getUTCDate()===d?s:""},txtCiudad=v=>v==null?"":typeof v=="string"?v:typeof v=="number"?Number.isFinite(v)?String(v):"":String(typeof v=="object"?v.name??v.label??v.value??v.title??v.text??"":v),sinTildes=s=>{let d=String(s||"").normalize("NFD"),out="";for(let i=0;i=768&&c<=879||(out+=d.charAt(i))}return out},ARTICULOS=["a","o","as","os","la","el","las","los"],ciudadKey=v=>{let partes=sinTildes(txtCiudad(v)).toLowerCase().split(" ").filter(Boolean);return partes.length>1&&ARTICULOS.indexOf(partes[0])!==-1&&partes.shift(),partes.join(" ")},etiquetaCiudad=grafias=>{let cuenta=new Map;for(let g of grafias||[]){let t=txtCiudad(g).trim();t&&cuenta.set(t,(cuenta.get(t)||0)+1)}let mejor="",max=-1;for(let[t,n]of cuenta)(n>max||n===max&&(t.length>mejor.length||t.length===mejor.length&&t{let txt5=`Hola, me interesa ${a.nombre} en ${a.ciudad||""} \u2014 desde ${fmtEur(mensualidadDe(a))}/mes. \xBFEst\xE1 disponible?`;return`https://wa.me/34698771205?text=${encodeURIComponent(txt5)}`},scrollToId=id=>{let el=document.getElementById(id);el&&el.scrollIntoView({behavior:"smooth",block:"start"})};async function callAutomation(gufi,name,input={}){if(gufi&&typeof gufi.automation=="function")return await gufi.automation(name,input);let cid=gufi&&gufi.siteInfo&&gufi.siteInfo.company_id||gufi&&gufi.context&&gufi.context.companyId||751,res=await fetch(`/api/public/${cid}/automation/${encodeURIComponent(name)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(input||{})}),json={};try{json=await res.json()}catch{}if(!res.ok||json?.success===!1)throw new Error(json?.error||`Automation '${name}' HTTP ${res.status}`);return json.result}var import_react=require("react"),import_framer_motion=require("framer-motion"),import_lucide_react=require("lucide-react"),import_utils=require("@/shared/lib/utils");var LOGO_LIGHT="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTEzNCIgaGVpZ2h0PSIzNjgiIHZpZXdCb3g9IjAgMCAxMTM0IDM2OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwNy42MjQgMzYzLjY2OUMxMDUuODc3IDM2My42NjkgMTA0LjMzMiAzNjIuNTM2IDEwMy44MDggMzYwLjg2OUw1OC42NzQxIDIxNy4yOTdDNTcuODY0IDIxNC43MiA1OS43ODg2IDIxMi4wOTggNjIuNDkgMjEyLjA5OEg3OC4xMTg5Qzc5Ljg1MTUgMjEyLjA5OCA4MS4zODcyIDIxMy4yMTMgODEuOTIyOSAyMTQuODYxTDExNy42OTUgMzI0Ljg3OUMxMTguMTI0IDMyNi4xOTcgMTE3LjA0OCAzMjcuNTE4IDExNS42NyAzMjcuMzY1QzExNC4yNjQgMzI3LjIwOSAxMTMuNTExIDMyNS42MjkgMTE0LjI3NiAzMjQuNDM4TDE3OS40NDggMjIyLjk3OUMxODAuMTg0IDIyMS44MzMgMTgxLjQ1MiAyMjEuMTQxIDE4Mi44MTMgMjIxLjE0MUgxODguMTc1QzE4OS41NjUgMjIxLjE0MSAxOTAuODU1IDIyMS44NjIgMTkxLjU4MyAyMjMuMDQ2TDI1NC4zMzMgMzI1LjA5OEMyNTUuMDc0IDMyNi4zMDQgMjU0LjMwOCAzMjcuODcyIDI1Mi45MDEgMzI4LjAyOEMyNTEuNTA4IDMyOC4xODMgMjUwLjQyIDMyNi44NDggMjUwLjg1MSAzMjUuNTE1TDI4Ni42NjYgMjE0Ljg2NkMyODcuMi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xMTYgMTU1LjE2NkwyMjIuNjMxIDE1NC42NjlDMjIwLjQ1NSAxNTQuNjIzIDIxOC43MTUgMTUyLjg0NiAyMTguNzE1IDE1MC42N1YxMTMuOTQ2QzIxOC43MTUgMTExLjczMiAyMTYuOTE2IDEwOS45MzggMjE0LjcwMSAxMDkuOTQ2TDM1LjkzNTggMTEwLjU4NEMzMy43MzIyIDExMC41OTIgMzEuOTUgMTEyLjM4IDMxLjk1IDExNC41ODRWMTUxLjI1M0MzMS45NSAxNTMuNDYyIDMwLjE1OTIgMTU1LjI1MyAyNy45NSAxNTUuMjUzSDQuNjkwNDNaIiBmaWxsPSIjRUE2ODJFIi8+Cjwvc3ZnPgo=";var EASE=[.22,.61,.36,1];function Wordmark({dark}){return __gh("img",{src:dark?LOGO_DARK:LOGO_LIGHT,alt:"HostWorkers",draggable:!1,className:"block w-auto select-none h-[30px] sm:h-[34px]","data-gufi-src":"components/Nav.tsx:45"})}var fechaCorta=iso=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(String(iso||"")))return"";try{return new Date(iso+"T00:00:00").toLocaleDateString("es-ES",{day:"numeric",month:"short"})}catch{return""}};function CeldaPildora({rotulo,valor,invita,ancho,onClick}){return __gh("button",{type:"button",onClick,className:(0,import_utils.cn)("group/celda h-full min-w-0 text-left px-6 rounded-full transition-colors duration-200 hover:bg-[#F4F7FB] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]",ancho),"data-gufi-src":"components/Nav.tsx:71"},__gh("span",{className:"block text-[11.5px] font-semibold leading-none",style:{color:INK2},"data-gufi-src":"components/Nav.tsx:79"},rotulo),__gh("span",{className:"block text-[13.5px] leading-none mt-1.5 truncate",style:{color:valor?BODY:MUTED,fontWeight:valor?600:400},"data-gufi-src":"components/Nav.tsx:80"},valor||invita))}function Nav({ctx}){let[open,setOpen]=(0,import_react.useState)(!1),panelRef=(0,import_react.useRef)(null),triggerRef=(0,import_react.useRef)(null);(0,import_react.useEffect)(()=>{if(!open)return;let prevOverflow=document.body.style.overflow;document.body.style.overflow="hidden";let onResize=()=>{window.innerWidth>=1024&&setOpen(!1)};window.addEventListener("resize",onResize),window.addEventListener("orientationchange",onResize);let getFocusable=()=>{let p=panelRef.current;return p?Array.from(p.querySelectorAll('a[href], button:not([disabled]), input, select, textarea, [tabindex]:not([tabindex="-1"])')).filter(el=>el.offsetParent!==null):[]},t=window.setTimeout(()=>getFocusable()[0]?.focus(),40),onKey=e=>{if(e.key==="Escape"){setOpen(!1);return}if(e.key!=="Tab")return;let f=getFocusable();if(!f.length)return;let first=f[0],last=f[f.length-1];e.shiftKey&&document.activeElement===first?(e.preventDefault(),last.focus()):!e.shiftKey&&document.activeElement===last&&(e.preventDefault(),first.focus())};return document.addEventListener("keydown",onKey),()=>{window.clearTimeout(t),document.removeEventListener("keydown",onKey),window.removeEventListener("resize",onResize),window.removeEventListener("orientationchange",onResize),document.body.style.overflow=prevOverflow,triggerRef.current?.focus()}},[open]);let irABuscar=campo=>{ctx?.irABuscar?ctx.irABuscar(campo):ctx?.openBuscador&&ctx.openBuscador()},b=ctx&&ctx.busqueda||{},ciudad=String(b.ciudad||""),fecha=fechaCorta(String(b.entrada||"")),meses=String(b.meses||""),estancia=meses?`${meses} ${meses==="1"?"mes":"meses"}`:"",resumen=[ciudad,fecha,estancia].filter(Boolean).join(" \xB7 ");return __gh(__gf,null,__gh(import_framer_motion.motion.header,{initial:{y:-16,opacity:0},animate:{y:0,opacity:1},transition:{duration:.5,ease:EASE},className:"fixed top-0 inset-x-0 z-50 bg-white border-b",style:{borderColor:LINE}},__gh("div",{className:"relative hidden lg:flex max-w-[1760px] mx-auto px-6 xl:px-10 h-[80px] items-center justify-between gap-6","data-gufi-src":"components/Nav.tsx:176"},__gh("button",{onClick:()=>irABuscar(),"aria-label":"Inicio \xB7 HostWorkers",className:"shrink-0 transition-opacity duration-300 hover:opacity-70 min-h-[44px] flex items-center","data-gufi-src":"components/Nav.tsx:180"},__gh(Wordmark,null)),__gh("div",{className:"2xl:absolute 2xl:left-1/2 2xl:-translate-x-1/2 flex items-center h-[52px] rounded-full border bg-white transition-shadow duration-300 hover:shadow-[0_2px_6px_rgba(20,35,46,0.08),0_10px_28px_-18px_rgba(20,35,46,0.5)]",style:{borderColor:LINE,boxShadow:"0 1px 2px rgba(20,35,46,0.05), 0 6px 20px -16px rgba(20,35,46,0.45)"},"data-gufi-src":"components/Nav.tsx:197"},__gh(CeldaPildora,{rotulo:"Destino",valor:ciudad,invita:"Buscar destinos",ancho:"w-[190px] xl:w-[220px]",onClick:()=>irABuscar("ciudad")}),__gh("span",{"aria-hidden":!0,className:"w-px h-7 shrink-0",style:{background:LINE},"data-gufi-src":"components/Nav.tsx:202"}),__gh(CeldaPildora,{rotulo:"Entrada",valor:fecha,invita:"Cu\xE1ndo entras",ancho:"w-[150px] xl:w-[170px]",onClick:()=>irABuscar("fecha")}),__gh("span",{"aria-hidden":!0,className:"w-px h-7 shrink-0",style:{background:LINE},"data-gufi-src":"components/Nav.tsx:204"}),__gh(CeldaPildora,{rotulo:"Estancia",valor:estancia,invita:"Cu\xE1nto tiempo",ancho:"w-[140px] xl:w-[160px]",onClick:()=>irABuscar("meses")}),__gh("button",{type:"button",onClick:()=>irABuscar(),"aria-label":"Buscar residencias",className:"shrink-0 w-10 h-10 mr-1.5 ml-1 rounded-full inline-flex items-center justify-center text-white transition-[background-color,box-shadow] duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444] focus-visible:ring-offset-2",style:{background:RED},onMouseEnter:e=>e.currentTarget.style.background="#D85F28",onMouseLeave:e=>e.currentTarget.style.background=RED,"data-gufi-src":"components/Nav.tsx:206"},__gh(import_lucide_react.Search,{size:17,strokeWidth:2.6}))),__gh("div",{className:"shrink-0 flex items-center gap-1","data-gufi-src":"components/Nav.tsx:224"},__gh("button",{onClick:()=>ctx.openSolicitud({tipo:"Propietario ofrece"}),className:"inline-flex shrink-0 items-center h-11 px-4 whitespace-nowrap rounded-full text-[13.5px] font-semibold transition-colors duration-200 hover:bg-[#F4F7FB]",style:{color:INK2},"data-gufi-src":"components/Nav.tsx:225"},"Soy propietario"),__gh("button",{onClick:()=>ctx.openPortal(),className:"inline-flex shrink-0 items-center gap-1.5 h-11 px-4 whitespace-nowrap rounded-full text-[13.5px] font-medium transition-colors duration-200 hover:bg-[#F4F7FB]",style:{color:BODY},"data-gufi-src":"components/Nav.tsx:232"},__gh(import_lucide_react.Lock,{size:13,strokeWidth:1.9,style:{color:MUTED}})," Portal cliente"),__gh("button",{ref:triggerRef,onClick:()=>setOpen(!0),"aria-label":"Abrir men\xFA","aria-haspopup":"dialog","aria-expanded":open,"aria-controls":"hw-menu",className:"ml-1 h-11 pl-3 pr-1.5 inline-flex items-center gap-2 rounded-full border bg-white transition-shadow duration-200 hover:shadow-[0_2px_8px_rgba(20,35,46,0.12)]",style:{borderColor:LINE},"data-gufi-src":"components/Nav.tsx:239"},__gh(import_lucide_react.Menu,{size:16,strokeWidth:2,style:{color:INK2}}),__gh("span",{"aria-hidden":!0,className:"w-8 h-8 rounded-full inline-flex items-center justify-center text-[12px] font-bold text-white",style:{background:INK},"data-gufi-src":"components/Nav.tsx:253"},"H")))),__gh("div",{className:"lg:hidden flex items-center gap-2 px-4 h-[72px]","data-gufi-src":"components/Nav.tsx:268"},__gh("button",{type:"button",onClick:()=>irABuscar(),className:"flex-1 min-w-0 h-[48px] pl-4 pr-2 flex items-center gap-3 rounded-full border bg-white text-left",style:{borderColor:LINE,boxShadow:"0 1px 2px rgba(20,35,46,0.06), 0 8px 22px -18px rgba(20,35,46,0.5)"},"data-gufi-src":"components/Nav.tsx:269"},__gh(import_lucide_react.Search,{size:16,strokeWidth:2.4,className:"shrink-0",style:{color:INK2}}),__gh("span",{className:"min-w-0 flex-1","data-gufi-src":"components/Nav.tsx:276"},__gh("span",{className:"block text-[13.5px] font-semibold truncate",style:{color:INK2},"data-gufi-src":"components/Nav.tsx:277"},resumen||"Busca tu residencia"),__gh("span",{className:"block text-[11.5px] truncate",style:{color:MUTED},"data-gufi-src":"components/Nav.tsx:280"},resumen?"Toca para cambiar la b\xFAsqueda":"Ciudad \xB7 fechas \xB7 estancia")),__gh("span",{"aria-hidden":!0,className:"shrink-0 w-9 h-9 rounded-full inline-flex items-center justify-center",style:{background:"#F4F7FB",color:INK2},"data-gufi-src":"components/Nav.tsx:284"},__gh(import_lucide_react.SlidersHorizontal,{size:15,strokeWidth:2}))),__gh("button",{ref:triggerRef,className:"shrink-0 w-11 h-11 inline-flex items-center justify-center rounded-full border bg-white transition-colors active:bg-[#F4F7FB]",onClick:()=>setOpen(!0),style:{color:INK2,borderColor:LINE},"aria-label":"Abrir men\xFA","aria-haspopup":"dialog","aria-expanded":open,"aria-controls":"hw-menu","data-gufi-src":"components/Nav.tsx:293"},__gh(import_lucide_react.Menu,{size:20})))),__gh(import_framer_motion.AnimatePresence,null,open&&__gh(import_framer_motion.motion.div,{id:"hw-menu",ref:panelRef,role:"dialog","aria-modal":"true","aria-label":"Men\xFA",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.26,ease:EASE},className:"fixed inset-0 z-[70] bg-white flex flex-col",style:{paddingTop:"env(safe-area-inset-top)",paddingBottom:"env(safe-area-inset-bottom)",height:"100dvh"}},__gh("div",{className:"px-5 sm:px-8 h-[72px] shrink-0 flex items-center justify-between border-b",style:{borderColor:LINE2},"data-gufi-src":"components/Nav.tsx:331"},__gh(Wordmark,null),__gh("button",{onClick:()=>setOpen(!1),className:"w-11 h-11 -mr-2 inline-flex items-center justify-center rounded-full transition-colors active:bg-[#F4F7FB]",style:{color:INK2},"aria-label":"Cerrar men\xFA","data-gufi-src":"components/Nav.tsx:333"},__gh(import_lucide_react.X,{size:22}))),__gh("div",{className:"flex-1 overflow-y-auto px-5 sm:px-8 pt-4 max-w-[560px] w-full mx-auto","data-gufi-src":"components/Nav.tsx:343"},[{label:"Buscar residencia",hecho:()=>irABuscar()},{label:"Soy propietario",hecho:()=>ctx.openSolicitud({tipo:"Propietario ofrece"})},{label:"Contactar",hecho:()=>ctx.openSolicitud({tipo:"Consulta general"})},{label:"Portal cliente",hecho:()=>ctx.openPortal()}].map((l,i)=>__gh(import_framer_motion.motion.button,{key:l.label,initial:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.3,delay:.03+i*.045,ease:EASE},onClick:()=>{l.hecho(),setOpen(!1)},className:"group flex items-center justify-between w-full text-left py-5 border-b",style:{borderColor:LINE2}},__gh("span",{className:"text-[24px] sm:text-[26px] font-light tracking-[-0.02em] transition-colors duration-300 group-hover:text-[#EA682E]",style:{fontFamily:FONT_SERIF,color:INK2},"data-gufi-src":"components/Nav.tsx:359"},l.label)))),__gh("div",{className:"px-5 sm:px-8 pt-4 pb-6 border-t max-w-[560px] w-full mx-auto",style:{borderColor:LINE2},"data-gufi-src":"components/Nav.tsx:369"},__gh("p",{className:"text-center text-[12.5px]",style:{color:MUTED},"data-gufi-src":"components/Nav.tsx:370"},"Atenci\xF3n personalizada \xB7 +34 698 771 205")))))}var import_react5=require("react"),import_framer_motion3=require("framer-motion"),import_lucide_react5=require("lucide-react");var import_react4=require("react"),import_framer_motion2=require("framer-motion"),import_lucide_react4=require("lucide-react"),import_utils2=require("@/shared/lib/utils");var import_react2=require("react"),import_lucide_react2=require("lucide-react");var Z=110;function useAnclarAVentana(ref){(0,import_react2.useEffect)(()=>{let el=ref&&ref.current;if(!el||typeof window>"u")return;let sc=el.parentElement;for(;sc&&sc!==document.body;){let c=window.getComputedStyle(sc);if(/auto|scroll/.test(c.overflowY)&&sc.scrollHeight>sc.clientHeight+4)break;sc=sc.parentElement}let congelable=sc&&sc!==document.body&&sc!==document.documentElement,prevOv=congelable?sc.style.overflow:"";congelable&&(sc.style.overflow="hidden");let ajustar=()=>{try{el.style.transform="";let d=el.getBoundingClientRect().top;Math.abs(d)>.5&&(el.style.transform=`translateY(${-d}px)`)}catch{}};return ajustar(),window.addEventListener("scroll",ajustar,!0),window.addEventListener("resize",ajustar),()=>{window.removeEventListener("scroll",ajustar,!0),window.removeEventListener("resize",ajustar),congelable&&(sc.style.overflow=prevOv);try{el.style.transform=""}catch{}}},[])}function Hoja({titulo,onClose,children,z}){let cerrarRef=(0,import_react2.useRef)(null),capaRef=(0,import_react2.useRef)(null);return useAnclarAVentana(capaRef),(0,import_react2.useEffect)(()=>{if(typeof document>"u")return;let prev=document.body.style.overflow;document.body.style.overflow="hidden";let onKey=e=>{e.key==="Escape"&&onClose()};document.addEventListener("keydown",onKey);let t=window.setTimeout(()=>{try{cerrarRef.current?.focus()}catch{}},30);return()=>{document.removeEventListener("keydown",onKey),window.clearTimeout(t),document.body.style.overflow=prev}},[onClose]),__gh("div",{ref:capaRef,className:"fixed inset-0 overflow-y-auto px-4 py-[6vh] sm:px-6",style:{zIndex:z||Z,background:"rgba(20,36,47,0.55)",backdropFilter:"blur(4px)"},onMouseDown:e=>{e.target===e.currentTarget&&onClose()},"data-gufi-src":"components/FichaHojas.tsx:131"},__gh("div",{role:"dialog","aria-modal":"true","aria-label":titulo,className:"relative mx-auto w-full max-w-[720px] rounded-[22px] overflow-hidden",style:{background:PAPER,boxShadow:"0 40px 90px -40px rgba(14,26,35,0.6)"},"data-gufi-src":"components/FichaHojas.tsx:140"},__gh("div",{className:"sticky top-0 z-[1] flex items-center gap-3 px-5 sm:px-7 h-[62px] border-b",style:{borderColor:LINE,background:"rgba(255,255,255,0.94)",backdropFilter:"blur(8px)"},"data-gufi-src":"components/FichaHojas.tsx:147"},__gh("button",{ref:cerrarRef,type:"button",onClick:onClose,"aria-label":"Cerrar",className:"-ml-2 w-11 h-11 rounded-full inline-flex items-center justify-center transition-colors duration-200 hover:bg-[#F4F7FB] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]",style:{color:INK2},"data-gufi-src":"components/FichaHojas.tsx:151"},__gh(import_lucide_react2.X,{size:19,strokeWidth:2})),__gh("span",{className:"text-[15px] font-semibold truncate",style:{color:INK},"data-gufi-src":"components/FichaHojas.tsx:161"},titulo)),__gh("div",{className:"px-5 sm:px-7 py-6 sm:py-8","data-gufi-src":"components/FichaHojas.tsx:163"},children)))}function Visor({fotos,nombre,inicio,onClose,onRota}){let n=fotos.length,[i,setI]=(0,import_react2.useState)(Math.min(Math.max(inicio||0,0),Math.max(n-1,0))),tactoRef=(0,import_react2.useRef)({x:0,y:0}),tiraRef=(0,import_react2.useRef)(null),capaRef=(0,import_react2.useRef)(null);useAnclarAVentana(capaRef);let idx=n>0?Math.min(i,n-1):0,ir=d=>{n>1&&setI(((idx+d)%n+n)%n)};(0,import_react2.useEffect)(()=>{if(typeof document>"u")return;let prev=document.body.style.overflow;document.body.style.overflow="hidden";let onKey=e=>{if(e.key==="Escape"){onClose();return}e.key==="ArrowRight"?(e.preventDefault(),ir(1)):e.key==="ArrowLeft"&&(e.preventDefault(),ir(-1))};return document.addEventListener("keydown",onKey),()=>{document.removeEventListener("keydown",onKey),document.body.style.overflow=prev}},[idx,n]),(0,import_react2.useEffect)(()=>{n<2||typeof Image>"u"||[idx+1,idx-1].forEach(j=>{let src=fotos[(j%n+n)%n];if(src){let im=new Image;im.src=src}})},[idx,n,fotos]),(0,import_react2.useEffect)(()=>{let cont=tiraRef.current;if(!cont||n<2||typeof cont.scrollTo!="function")return;let el=cont.children[idx];if(!el)return;let izq=el.offsetLeft,der=izq+el.offsetWidth;izqcont.scrollLeft+cont.clientWidth-8&&cont.scrollTo({left:der-cont.clientWidth+8,behavior:"smooth"})},[idx,n]);let flecha="absolute top-1/2 -translate-y-1/2 w-11 h-11 rounded-full flex items-center justify-center bg-white/90 text-[#14242F] transition-colors duration-200 hover:bg-white focus:outline-none focus-visible:ring-2 focus-visible:ring-white";return __gh("div",{ref:capaRef,role:"dialog","aria-modal":"true","aria-label":`Fotos de ${nombre}`,className:"fixed inset-0 flex flex-col",style:{zIndex:Z,background:"#0F171E"},"data-gufi-src":"components/FichaHojas.tsx:241"},__gh("div",{className:"shrink-0 h-[60px] px-3 sm:px-5 flex items-center justify-between","data-gufi-src":"components/FichaHojas.tsx:249"},__gh("button",{type:"button",onClick:onClose,"aria-label":"Cerrar las fotos",className:"w-11 h-11 rounded-full inline-flex items-center justify-center text-white/90 transition-colors duration-200 hover:bg-white/10 focus:outline-none focus-visible:ring-2 focus-visible:ring-white","data-gufi-src":"components/FichaHojas.tsx:250"},__gh(import_lucide_react2.X,{size:20,strokeWidth:2})),__gh("span",{className:"text-[13px] font-semibold tabular-nums text-white/80","aria-hidden":!0,"data-gufi-src":"components/FichaHojas.tsx:260"},idx+1," / ",n)),__gh("div",{className:"relative flex-1 min-h-0 px-3 sm:px-8 pb-2",onTouchStart:e=>{tactoRef.current={x:e.touches[0].clientX,y:e.touches[0].clientY}},onTouchEnd:e=>{let dx=e.changedTouches[0].clientX-tactoRef.current.x,dy=e.changedTouches[0].clientY-tactoRef.current.y;Math.abs(dx)>44&&Math.abs(dx)>Math.abs(dy)*1.3&&ir(dx<0?1:-1)},"data-gufi-src":"components/FichaHojas.tsx:263"},__gh("img",{key:fotos[idx],src:fotos[idx],alt:`${nombre} \u2014 imagen ${idx+1} de ${n}`,onError:()=>onRota(fotos[idx]),className:"w-full h-full object-contain select-none",draggable:!1,"data-gufi-src":"components/FichaHojas.tsx:272"}),n>1&&__gh(__gf,null,__gh("button",{type:"button",onClick:()=>ir(-1),"aria-label":"Imagen anterior",className:`${flecha} left-4 sm:left-7`,"data-gufi-src":"components/FichaHojas.tsx:282"},__gh(import_lucide_react2.ChevronLeft,{size:20,strokeWidth:2})),__gh("button",{type:"button",onClick:()=>ir(1),"aria-label":"Imagen siguiente",className:`${flecha} right-4 sm:right-7`,"data-gufi-src":"components/FichaHojas.tsx:285"},__gh(import_lucide_react2.ChevronRight,{size:20,strokeWidth:2})))),n>1&&__gh("div",{ref:tiraRef,className:"shrink-0 flex gap-2 overflow-x-auto px-3 sm:px-8 py-3 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden","data-gufi-src":"components/FichaHojas.tsx:293"},fotos.map((f,k)=>__gh("button",{type:"button",key:f+k,onClick:()=>setI(k),"aria-label":`Ver imagen ${k+1}`,"aria-current":k===idx,className:"shrink-0 w-[76px] sm:w-[92px] aspect-[4/3] rounded-[8px] overflow-hidden transition-opacity duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-white",style:{opacity:k===idx?1:.42,outline:k===idx?"2px solid #fff":void 0,outlineOffset:2},"data-gufi-src":"components/FichaHojas.tsx:298"},__gh("img",{src:f,alt:"",loading:"lazy",decoding:"async",onError:()=>onRota(f),className:"w-full h-full object-cover",draggable:!1,"data-gufi-src":"components/FichaHojas.tsx:307"})))))}var import_react3=require("react"),import_lucide_react3=require("lucide-react");var DIAS=["L","M","X","J","V","S","D"],MESES=["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],aYmd=d=>`${d.getFullYear()}-${String(d.getMonth()+1).padStart(2,"0")}-${String(d.getDate()).padStart(2,"0")}`,deYmd=s=>{let t=String(s||"").slice(0,10);if(!/^\d{4}-\d{2}-\d{2}$/.test(t))return null;let[a,m,d]=t.split("-").map(Number),dt=new Date(a,m-1,d);return isNaN(dt.getTime())?null:dt},mismoDia=(a,b)=>a.getFullYear()===b.getFullYear()&&a.getMonth()===b.getMonth()&&a.getDate()===b.getDate();function Mes({anio,mes,sel,hoy,onElegir}){let hueco=(new Date(anio,mes,1).getDay()+6)%7,total=new Date(anio,mes+1,0).getDate(),celdas=[];for(let i=0;i__gh("div",{key:d+i,className:"h-8 flex items-center justify-center text-[11.5px] font-semibold",style:{color:MUTED},"data-gufi-src":"components/Calendario.tsx:68"},d)),celdas.map((d,i)=>{if(d==null)return __gh("div",{key:`h${i}`,className:"h-10","data-gufi-src":"components/Calendario.tsx:73"});let fecha=new Date(anio,mes,d),pasado=fechaonElegir(fecha),"aria-label":`${d} de ${MESES[mes]} de ${anio}`,"aria-current":elegido?"date":void 0,className:"h-10 w-full rounded-full text-[13.5px] font-semibold tabular-nums transition-colors duration-150 disabled:cursor-not-allowed focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]",style:{background:elegido?INK:"transparent",color:elegido?"#fff":pasado?FAINT:BODY,boxShadow:!elegido&&esHoy?`inset 0 0 0 1.5px ${LINE}`:void 0},onMouseEnter:e=>{!elegido&&!pasado&&(e.currentTarget.style.background="#F4F7FB")},onMouseLeave:e=>{elegido||(e.currentTarget.style.background="transparent")},"data-gufi-src":"components/Calendario.tsx:79"},d)})))}function Calendario({valor,onElegir,onLimpiar}){let hoy=new Date;hoy.setHours(0,0,0,0);let sel=deYmd(valor),[cursor,setCursor]=(0,import_react3.useState)(()=>{let base=sel||hoy;return{a:base.getFullYear(),m:base.getMonth()}}),mover=paso=>{setCursor(c=>{let d=new Date(c.a,c.m+paso,1);return{a:d.getFullYear(),m:d.getMonth()}})},atrasPosible=cursor.a>hoy.getFullYear()||cursor.a===hoy.getFullYear()&&cursor.m>hoy.getMonth(),siguiente=new Date(cursor.a,cursor.m+1,1),flecha="w-10 h-10 rounded-full inline-flex items-center justify-center transition-colors duration-200 hover:bg-[#F4F7FB] disabled:opacity-30 disabled:hover:bg-transparent focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]";return __gh("div",{"data-gufi-src":"components/Calendario.tsx:134"},__gh("div",{className:"flex items-center justify-between mb-2","data-gufi-src":"components/Calendario.tsx:135"},__gh("button",{type:"button",onClick:()=>mover(-1),disabled:!atrasPosible,"aria-label":"Mes anterior",className:flecha,style:{color:INK2},"data-gufi-src":"components/Calendario.tsx:136"},__gh(import_lucide_react3.ChevronLeft,{size:18,strokeWidth:2.2})),__gh("button",{type:"button",onClick:()=>mover(1),"aria-label":"Mes siguiente",className:flecha,style:{color:INK2},"data-gufi-src":"components/Calendario.tsx:139"},__gh(import_lucide_react3.ChevronRight,{size:18,strokeWidth:2.2}))),__gh("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-8 gap-y-6","data-gufi-src":"components/Calendario.tsx:147"},__gh(Mes,{anio:cursor.a,mes:cursor.m,sel,hoy,onElegir}),__gh("div",{className:"hidden sm:block","data-gufi-src":"components/Calendario.tsx:149"},__gh(Mes,{anio:siguiente.getFullYear(),mes:siguiente.getMonth(),sel,hoy,onElegir}))),__gh("div",{className:"flex items-center justify-between mt-5 pt-4 border-t",style:{borderColor:LINE2},"data-gufi-src":"components/Calendario.tsx:154"},__gh("button",{type:"button",onClick:onLimpiar,className:"h-11 px-4 -ml-4 rounded-full text-[13.5px] font-semibold transition-colors duration-200 hover:bg-[#F4F7FB] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]",style:{color:MUTED},"data-gufi-src":"components/Calendario.tsx:155"},"Quitar la fecha"),__gh("button",{type:"button",onClick:()=>onElegir(hoy),className:"h-11 px-4 -mr-4 rounded-full text-[13.5px] font-semibold transition-colors duration-200 hover:bg-[#F4F7FB] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]",style:{color:INK},"data-gufi-src":"components/Calendario.tsx:163"},"Entrar hoy")))}var EASE2=[.22,.61,.36,1];var GREEN_BG="rgba(13,124,90,0.10)",GREEN_INK="#0C6B4E",ZOOM_CLUSTER=12,CITY_COORDS={"A Coru\xF1a":[43.3623,-8.4115],Culleredo:[43.2783,-8.389],Oleiros:[43.33,-8.317],Arteixo:[43.304,-8.511],Pontedeume:[43.4075,-8.173],"Caldas de Reis":[42.605,-8.641]},CITY_COORDS_KEY=Object.keys(CITY_COORDS).reduce((acc,g)=>(acc[ciudadKey(g)]=CITY_COORDS[g],acc),{}),coordsDe=v=>CITY_COORDS_KEY[ciudadKey(v)]||CITY_COORDS["A Coru\xF1a"];var toMidnight=d=>new Date(d.getFullYear(),d.getMonth(),d.getDate()),parseYMD=s=>{if(!s)return null;let p=String(s).slice(0,10).split("-");if(p.length<3)return null;let y=+p[0],mo=+p[1],d=+p[2];if(!y||!mo||!d)return null;let dt=new Date(y,mo-1,d);return isNaN(dt.getTime())?null:dt},addDays=(d,n)=>new Date(d.getFullYear(),d.getMonth(),d.getDate()+n),fmtCorta=d=>d.toLocaleDateString("es-ES",{day:"numeric",month:"short"}),fmtISO=d=>`${d.getFullYear()}-${String(d.getMonth()+1).padStart(2,"0")}-${String(d.getDate()).padStart(2,"0")}`,txt=v=>v==null?"":typeof v=="string"?v:typeof v=="number"?Number.isFinite(v)?String(v):"":String(typeof v=="object"?v.name??v.label??v.value??v.title??v.text??"":v),GOLDEN=Math.PI*(3-Math.sqrt(5)),spiralOffset=i=>{let r=.0034*Math.sqrt(i+.5);return[r*Math.cos(i*GOLDEN),r*Math.sin(i*GOLDEN)]},rangeFree=(ivs,start,stayDays)=>{let s=start.getTime(),e=addDays(start,stayDays).getTime();for(let iv of ivs)if(s{let offs=[];for(let o=-F;o<=F;o++)offs.push(o);offs.sort((a,b)=>Math.abs(a)-Math.abs(b)||a-b);for(let o of offs){let c=addDays(D,o);if(!(c.getTime(){for(let i=0;i<420;i++){let c=addDays(today,i);if(rangeFree(ivs,c,stayDays))return c}return null},FLEX_OPTS=[0,3,7,14],MES_OPTS=[1,2,3,6,9,12];function Buscador({ctx,open,onClose,embebido,abrirCampo}){let alo=ctx?.alojamientos||[],posById=(0,import_react4.useMemo)(()=>{let m=new Map,sinCoords=new Map;for(let a of alo){let la=Number(a?.lat),ln=Number(a?.lng);if(Number.isFinite(la)&&Number.isFinite(ln)&&(la!==0||ln!==0))m.set(String(a?.id),[la,ln]);else{let c=ciudadKey(a?.ciudad)||ciudadKey("A Coru\xF1a");(sinCoords.get(c)||sinCoords.set(c,[]).get(c)).push(a)}}return sinCoords.forEach((items,city)=>{let base=coordsDe(city),lngScale=1/Math.max(.3,Math.cos(base[0]*Math.PI/180));items.forEach((a,i)=>{let off=items.length>1?spiralOffset(i):[0,0];m.set(String(a?.id),[base[0]+off[0],base[1]+off[1]*lngScale])})}),m},[alo]),posOf=(0,import_react4.useCallback)(a=>posById.get(String(a?.id))||coordsDe(a?.ciudad),[posById]),[ciudad,setCiudadState]=(0,import_react4.useState)(""),[fechaEntrada,setFechaState]=(0,import_react4.useState)(""),[flexDias,setFlex]=(0,import_react4.useState)(7),[meses,setMesesState]=(0,import_react4.useState)(""),[precioMax,setPrecioMax]=(0,import_react4.useState)(null),[habMin,setHabMin]=(0,import_react4.useState)(0),[huespMin,setHuespMin]=(0,import_react4.useState)(0),[amenities,setAmenities]=(0,import_react4.useState)([]),[tipos,setTipos]=(0,import_react4.useState)([]),[banosMin,setBanosMin]=(0,import_react4.useState)(0),[filtersOpen,setFiltersOpen]=(0,import_react4.useState)(!1),[hoja,setHoja]=(0,import_react4.useState)(""),[pasoMovil,setPasoMovil]=(0,import_react4.useState)("donde"),[mobileView,setMobileView]=(0,import_react4.useState)("lista"),[ocupacion,setOcupacion]=(0,import_react4.useState)({}),[loadingOcup,setLoadingOcup]=(0,import_react4.useState)(!0),[mapReady,setMapReady]=(0,import_react4.useState)(!1),[mapFailed,setMapFailed]=(0,import_react4.useState)(!1),[mapObj,setMapObj]=(0,import_react4.useState)(null),[hoverId,setHoverId]=(0,import_react4.useState)(null),[activeId,setActiveId]=(0,import_react4.useState)(null),mapElRef=(0,import_react4.useRef)(null),listRef=(0,import_react4.useRef)(null),markersRef=(0,import_react4.useRef)(new Map),cardRefs=(0,import_react4.useRef)({}),setCiudad=v=>{setCiudadState(v),ctx.setBusqueda(b=>({...b,ciudad:v}))},setFecha=v=>{setFechaState(v),ctx.setBusqueda(b=>({...b,entrada:v}))},setMeses=v=>{setMesesState(v),ctx.setBusqueda(b=>({...b,meses:v}))};(0,import_react4.useEffect)(()=>{let campo=abrirCampo&&abrirCampo.campo;if(campo){if(campo==="ciudad"||campo==="fecha"||campo==="meses"){setHoja(campo);return}if(campo==="generico"){let movil=!1;try{movil=window.innerWidth<1024}catch{movil=!1}setHoja(movil?"movil":"ciudad")}}},[abrirCampo&&abrirCampo.n]),(0,import_react4.useEffect)(()=>{open&&(setCiudadState(ctx?.busqueda?.ciudad||""),setFechaState(ctx?.busqueda?.entrada||""),setMesesState(ctx?.busqueda?.meses||""),setActiveId(null),setHoverId(null))},[open]),(0,import_react4.useEffect)(()=>{if(!open||embebido)return;let prev=document.body.style.overflow;document.body.style.overflow="hidden";let onKey=e=>{e.key==="Escape"&&(document.querySelectorAll('[role="dialog"]').length>1||(filtersOpen?setFiltersOpen(!1):onClose()))};return document.addEventListener("keydown",onKey),()=>{document.body.style.overflow=prev,document.removeEventListener("keydown",onKey)}},[open,filtersOpen,onClose,embebido]),(0,import_react4.useEffect)(()=>{if(!open)return;let externa=ctx?.ocupacion||{},oc={};for(let a of alo){let k=String(a?.id),extra=Array.isArray(externa[k])?externa[k]:[];oc[k]=[...bloqueosDe(a),...extra]}setOcupacion(oc),setLoadingOcup(!1)},[open,alo,ctx?.ocupacion]),(0,import_react4.useEffect)(()=>{if(!open||typeof document>"u")return;if(!document.getElementById("leaflet-css")){let l=document.createElement("link");l.id="leaflet-css",l.rel="stylesheet",l.href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css",document.head.appendChild(l)}if(window.L){setMapReady(!0),setMapFailed(!1);return}if(!document.getElementById("leaflet-js")){let s=document.createElement("script");s.id="leaflet-js",s.async=!0,s.src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js",document.head.appendChild(s)}let waited=0,iv=window.setInterval(()=>{window.L?(window.clearInterval(iv),setMapReady(!0),setMapFailed(!1)):(waited+=150)>5e3&&(window.clearInterval(iv),setMapFailed(!0))},150);return()=>window.clearInterval(iv)},[open]);let ocupacionParsed=(0,import_react4.useMemo)(()=>{let out={};for(let k of Object.keys(ocupacion||{})){let arr=Array.isArray(ocupacion[k])?ocupacion[k]:[];out[k]=arr.map(iv=>{let d=parseYMD(iv?.desde),h=parseYMD(iv?.hasta);return d&&h?{_desde:d.getTime(),_hasta:h.getTime()}:null}).filter(Boolean)}return out},[ocupacion]),ivsOf=(0,import_react4.useCallback)(a=>ocupacionParsed[a?.id]||ocupacionParsed[String(a?.id)]||[],[ocupacionParsed]),ciudades=(0,import_react4.useMemo)(()=>{let m=new Map;for(let a of alo){let c=txt(a?.ciudad);if(!c)continue;let k=ciudadKey(c);if(!k)continue;let e=m.get(k);e||(e={key:k,label:"",grafias:[]},m.set(k,e)),e.grafias.push(c)}let out=[];return m.forEach(e=>out.push({key:e.key,label:etiquetaCiudad(e.grafias),count:e.grafias.length})),out.sort((x,y)=>x.label.localeCompare(y.label,"es"))},[alo]),keySel=ciudadKey(ciudad),ciudadLabel=(0,import_react4.useMemo)(()=>{let e=ciudades.find(c=>c.key===keySel);return e?e.label:txt(ciudad)},[ciudades,keySel,ciudad]),setCiudadPorKey=k=>{let e=ciudades.find(c=>c.key===k);setCiudad(e?e.label:"")},priceBounds=(0,import_react4.useMemo)(()=>{let vals=alo.map(a=>mensualidadDe(a)).filter(v=>v>0);return vals.length?{min:Math.floor(Math.min(...vals)/50)*50,max:Math.ceil(Math.max(...vals)/50)*50}:{min:0,max:5e3}},[alo]),amenityUniverse=(0,import_react4.useMemo)(()=>{let m=new Map;for(let a of alo)for(let am of amenitiesDe(a)){let k=am.trim();k&&m.set(k,(m.get(k)||0)+1)}return[...m.entries()].sort((x,y)=>y[1]-x[1]).slice(0,16).map(e=>e[0])},[alo]),tiposUniverse=(0,import_react4.useMemo)(()=>[...new Set(alo.map(a=>txt(a?.tipo)).filter(Boolean))].sort((x,y)=>x.localeCompare(y,"es")),[alo]),allAmenities=(0,import_react4.useMemo)(()=>{let s=new Set;for(let a of alo)for(let am of amenitiesDe(a)){let k=am.trim();k&&s.add(k)}return[...s]},[alo]),presetAmenities=(0,import_react4.useMemo)(()=>({wifi:allAmenities.find(a=>/wi-?fi|internet/i.test(a))||null,pet:allAmenities.find(a=>/mascota|pet|animal/i.test(a))||null,parking:allAmenities.find(a=>/parking|garaje|aparca|garage/i.test(a))||null}),[allAmenities]),today=(0,import_react4.useMemo)(()=>toMidnight(new Date),[]),resultados=(0,import_react4.useMemo)(()=>{let D=parseYMD(fechaEntrada),F=Number(flexDias)||0,M=num(meses),stayPedida=M>0?M*30:7,precioActivo=precioMax!=null&&precioMax0&&m>precioMax)continue}if(habMin>0){let _h=num(a?.habitaciones);if(habMin>=4?_h<4:_h!==habMin)continue}if(huespMin>0){let cap2=num(a?.capacidad);if(cap2>0&&cap2set.includes(x)))continue}if(tipos.length&&!tipos.includes(txt(a?.tipo))||banosMin>0&&num(a?.banos)0&&minDias>stayPedida)continue;let stayDays=Math.max(stayPedida,minDias),ivs=ivsOf(a),info=D?matchWindow(ivs,D,F,stayDays,today):{matches:!0,matchDate:null,delta:null,proxima:firstFree(ivs,today,stayDays)};info.matches&&out.push({a,info})}return out.sort((x,y)=>{if(D){let dx=Math.abs(x.info.delta??0),dy=Math.abs(y.info.delta??0);if(dx!==dy)return dx-dy}return mensualidadDe(x.a)-mensualidadDe(y.a)}),out},[alo,keySel,fechaEntrada,flexDias,meses,precioMax,habMin,huespMin,amenities,tipos,banosMin,ocupacionParsed,priceBounds.max,today]),activeFilterCount=(precioMax!=null&&precioMax0?1:0)+tipos.length+amenities.length,hasAnyFilter=!!(ciudad||fechaEntrada||meses||habMin||huespMin||activeFilterCount),[verMapa,setVerMapa]=(0,import_react4.useState)(!1),modoZonas=!!embebido&&!hasAnyFilter&&!verMapa,zonas=(0,import_react4.useMemo)(()=>{let m=new Map;for(let r of resultados){let c=txt(r?.a?.ciudad),k=ciudadKey(c)||"otras",e=m.get(k);e||(e={key:k,grafias:[],items:[]},m.set(k,e)),c&&e.grafias.push(c),e.items.push(r)}let out=[];m.forEach(e=>out.push({key:e.key,label:etiquetaCiudad(e.grafias)||"Otras zonas",items:e.items})),out.sort((x,y)=>y.items.length-x.items.length);let MINIMO_PARA_FILA=4,llenas=out.filter(z=>z.items.length>=MINIMO_PARA_FILA),sueltas=out.filter(z=>z.items.lengthz.items),suelta:!0}]},[resultados]),verDetalle=(0,import_react4.useCallback)(a=>{ctx.openDetalle(a)},[ctx]),resetTodo=()=>{setCiudad(""),setFecha(""),setMeses(""),setFlex(7),setPrecioMax(null),setHabMin(0),setHuespMin(0),setAmenities([]),setTipos([]),setBanosMin(0)},addAmenity=am=>setAmenities(s=>s.includes(am)?s:[...s,am]),removeAmenity=am=>setAmenities(s=>s.filter(x=>x!==am)),scrollToCard=(0,import_react4.useCallback)(id=>{let el=cardRefs.current[String(id)],cont=listRef.current;if(!(!el||!cont||typeof cont.scrollTo!="function"))try{let dentro=el.getBoundingClientRect().top-cont.getBoundingClientRect().top,destino=cont.scrollTop+dentro-(cont.clientHeight-el.clientHeight)/2;cont.scrollTo({top:Math.max(0,destino),behavior:"smooth"})}catch{}},[]);(0,import_react4.useEffect)(()=>{if(!open||!mapReady||mapFailed)return;let L=window.L,el=mapElRef.current;if(!L||!el||mapObj)return;let created=null;try{created=L.map(el,{zoomControl:!0,attributionControl:!0,scrollWheelZoom:!0}),created.setView([43.35,-8.4],10),L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:"© OpenStreetMap"}).addTo(created),setMapObj(created),window.setTimeout(()=>{try{created.invalidateSize();let pts=resultados.map(({a})=>posOf(a));pts.length&&created.fitBounds(L.latLngBounds(pts),{animate:!1,padding:[56,56],maxZoom:13})}catch{}},160)}catch{try{created&&created.remove()}catch{}setMapFailed(!0)}return()=>{try{created&&created.remove()}catch{}markersRef.current.clear(),setMapObj(null)}},[open,mapReady,mapFailed,modoZonas]);let pinIcon=(0,import_react4.useCallback)((a,active)=>{let L=window.L,label=fmtEur(mensualidadDe(a)),w=Math.max(52,22+label.length*8),h=30,bg=active?INK:RED,bw=active?"2px":"1.5px",html2=`
${label}
`;return L.divIcon({className:"remax-pin",html:html2,iconSize:[w,h],iconAnchor:[w/2,h]})},[]),clusterIcon=(0,import_react4.useCallback)((count,minPrice,activo)=>{let L=window.L,size=count>=100?62:count>=10?56:50,numFont=count>=100?15:18,price=minPrice>0?`desde ${fmtEur(minPrice)}`:"",html2=`
${count}`+(price?`${price}`:"")+"
";return L.divIcon({className:"remax-cluster",html:html2,iconSize:[size,size],iconAnchor:[size/2,size/2]})},[]),buildPopup=(0,import_react4.useCallback)(a=>{let wrap=document.createElement("div");wrap.style.width="208px",wrap.style.fontFamily="Montserrat,system-ui,sans-serif";let foto=typeof a?.foto=="string"?a.foto:"";if(foto){let img=document.createElement("img");img.src=foto,img.alt=txt(a?.nombre)||"Residencia",img.loading="lazy",img.style.cssText="width:100%;height:110px;object-fit:cover;border-radius:10px;display:block;",wrap.appendChild(img)}let city=document.createElement("div");city.textContent=txt(a?.ciudad),city.style.cssText=`margin-top:8px;font:500 12px/1.2 inherit;color:${MUTED};`,wrap.appendChild(city);let name=document.createElement("div");name.textContent=txt(a?.nombre)||"Residencia",name.style.cssText=`margin-top:3px;font:700 14px/1.3 inherit;color:${INK};`,wrap.appendChild(name);let price=document.createElement("div"),_m=mensualidadDe(a),_txt=Number.isFinite(_m)&&_m>0?fmtEur(_m):"Consultar";price.innerHTML=`${_txt} /mes`,price.style.cssText=`margin-top:5px;font:700 15px/1.2 inherit;color:${INK2};`,wrap.appendChild(price);let btn=document.createElement("button");return btn.type="button",btn.textContent="Ver residencia",btn.style.cssText=`margin-top:10px;width:100%;height:38px;border:0;border-radius:9px;background:${RED};color:#fff;font:700 12px/1 inherit;letter-spacing:.04em;cursor:pointer;`,btn.onclick=()=>verDetalle(a),wrap.appendChild(btn),wrap},[verDetalle]);(0,import_react4.useEffect)(()=>{if(!mapObj)return;let L=window.L,clearMarkers=()=>{markersRef.current.forEach(({marker})=>{try{mapObj.removeLayer(marker)}catch{}}),markersRef.current.clear()},addPin=a=>{let marker=L.marker(posOf(a),{icon:pinIcon(a,!1),riseOnHover:!0});marker.on("click",()=>{setActiveId(a?.id),verDetalle(a)}),marker.on("mouseover",()=>{setHoverId(a?.id),scrollToCard(a?.id)}),marker.on("mouseout",()=>setHoverId(null)),marker.addTo(mapObj),markersRef.current.set(String(a?.id),{marker,a,kind:"pin"})},addCluster=(city,items)=>{let centro=coordsDe(city),prices=items.map(x=>mensualidadDe(x)).filter(v=>v>0),minP=prices.length?Math.min(...prices):0,marker=L.marker(centro,{icon:clusterIcon(items.length,minP),riseOnHover:!0});marker.on("click",()=>{try{mapObj.flyTo(centro,13,{duration:.6})}catch{}}),marker.addTo(mapObj),markersRef.current.set(`city:${city}`,{marker,kind:"cluster",ids:new Set(items.map(x=>String(x?.id))),count:items.length,minP})},renderMarkers=()=>{try{clearMarkers();let zoom=10;try{zoom=mapObj.getZoom()}catch{}if(zoom>=ZOOM_CLUSTER)for(let{a}of resultados)addPin(a);else{let byCity=new Map;for(let{a}of resultados){let c=ciudadKey(a?.ciudad)||ciudadKey("A Coru\xF1a");(byCity.get(c)||byCity.set(c,[]).get(c)).push(a)}byCity.forEach((items,city)=>{if(items.length>=2)addCluster(city,items);else for(let a of items)addPin(a)})}}catch{}};renderMarkers();try{mapObj.on("zoomend",renderMarkers)}catch{}let tFit=window.setTimeout(()=>{try{mapObj.invalidateSize();let pts=resultados.map(({a})=>posOf(a));pts.length&&mapObj.fitBounds(L.latLngBounds(pts),{animate:!1,padding:[56,56],maxZoom:13})}catch{}},90);return()=>{window.clearTimeout(tFit);try{mapObj.off("zoomend",renderMarkers)}catch{}clearMarkers()}},[mapObj,resultados]),(0,import_react4.useEffect)(()=>{if(!mapObj)return;let focus=hoverId??activeId;markersRef.current.forEach((entry,id)=>{let{marker,a,kind}=entry;try{if(kind==="pin"){let on2=String(focus)===id;marker.setIcon(pinIcon(a,on2)),marker.setZIndexOffset(on2?1e3:0);return}let on=!!(focus!=null&&entry.ids&&entry.ids.has(String(focus)));marker.setIcon(clusterIcon(entry.count,entry.minP,on)),marker.setZIndexOffset(on?1e3:0)}catch{}})},[mapObj,hoverId,activeId,clusterIcon,pinIcon]),(0,import_react4.useEffect)(()=>{if(!mapObj)return;let t=window.setTimeout(()=>{try{mapObj.invalidateSize();let L=window.L,pts=resultados.map(({a})=>posOf(a));pts.length&&mapObj.fitBounds(L.latLngBounds(pts),{animate:!1,padding:[56,56],maxZoom:13})}catch{}},260);return()=>window.clearTimeout(t)},[mobileView,mapObj,modoZonas]);let showMap=!mapFailed,N=resultados.length,dateSel=parseYMD(fechaEntrada),exactCount=dateSel?resultados.reduce((n,r)=>n+(r.info.delta===0?1:0),0):0,flexCount=dateSel?resultados.reduce((n,r)=>n+(r.info.delta!=null&&r.info.delta!==0?1:0),0):0,chips=[];if(ciudad&&chips.push({key:"ciudad",label:ciudadLabel,onClear:()=>setCiudad("")}),fechaEntrada){let d=parseYMD(fechaEntrada);chips.push({key:"fecha",label:`${d?fmtCorta(d):fechaEntrada}${flexDias?` \xB7 \xB1${flexDias}d`:""}`,onClear:()=>setFecha("")})}meses&&chips.push({key:"meses",label:`${meses} ${num(meses)===1?"mes":"meses"}`,onClear:()=>setMeses("")}),precioMax!=null&&precioMaxsetPrecioMax(null)}),huespMin>0&&chips.push({key:"huesp",label:`${huespMin}${huespMin>=6?"+":""} ${huespMin===1?"hu\xE9sped":"hu\xE9spedes"}`,onClear:()=>setHuespMin(0)}),habMin>0&&chips.push({key:"hab",label:`${habMin}${habMin>=4?"+":""} ${habMin===1?"dormitorio":"dormitorios"}`,onClear:()=>setHabMin(0)});for(let t of tipos)chips.push({key:`tipo-${t}`,label:t,onClear:()=>setTipos(s=>s.filter(x=>x!==t))});banosMin>0&&chips.push({key:"banos",label:`${banosMin}+ ${banosMin===1?"ba\xF1o":"ba\xF1os"}`,onClear:()=>setBanosMin(0)});for(let am of amenities)chips.push({key:`am-${am}`,label:am,onClear:()=>setAmenities(s=>s.filter(x=>x!==am))});let{wifi:wifiAm,pet:petAm,parking:parkAm}=presetAmenities,mkPreset=(key,label,icon,active,on,off)=>({key,label,icon,active,toggle:()=>active?off():on()}),presets=[mkPreset("trabajo","Para trabajar",import_lucide_react4.Laptop,huespMin===1&&habMin===1&&(!wifiAm||amenities.includes(wifiAm)),()=>{setHuespMin(1),setHabMin(1),wifiAm&&addAmenity(wifiAm)},()=>{setHuespMin(0),setHabMin(0),wifiAm&&removeAmenity(wifiAm)}),mkPreset("familia","En familia",import_lucide_react4.Users,huespMin===4&&habMin===2,()=>{setHuespMin(4),setHabMin(2)},()=>{setHuespMin(0),setHabMin(0)}),mkPreset("larga","Larga estancia",import_lucide_react4.CalendarRange,num(meses)===6,()=>setMeses("6"),()=>setMeses("")),...petAm?[mkPreset("mascota","Con mascota",import_lucide_react4.PawPrint,amenities.includes(petAm),()=>addAmenity(petAm),()=>removeAmenity(petAm))]:[],...parkAm?[mkPreset("parking","Con parking",import_lucide_react4.Car,amenities.includes(parkAm),()=>addAmenity(parkAm),()=>removeAmenity(parkAm))]:[]];return __gh(__gf,null,__gh(import_framer_motion2.AnimatePresence,null,(open||embebido)&&__gh(import_framer_motion2.motion.div,{key:"buscador",...embebido?{"aria-label":"Residencias disponibles"}:{role:"dialog","aria-modal":"true","aria-label":"Buscador de residencias HostWorkers"},initial:embebido?!1:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.28,ease:EASE2},className:embebido?modoZonas?"relative bg-white flex flex-col":"relative bg-white flex flex-col h-[calc(100dvh-72px)] lg:h-[calc(100dvh-80px)]":"fixed inset-0 z-[90] bg-white flex flex-col",style:embebido?void 0:{height:"100dvh",paddingTop:"env(safe-area-inset-top)"}},__gh("div",{className:"shrink-0 border-b bg-white/95 backdrop-blur-xl",style:{borderColor:LINE},"data-gufi-src":"components/Buscador.tsx:1000"},__gh("div",{className:"max-w-[1600px] mx-auto px-4 sm:px-6","data-gufi-src":"components/Buscador.tsx:1001"},__gh("div",{className:"flex items-center gap-3 h-[58px]","data-gufi-src":"components/Buscador.tsx:1003"},!embebido&&__gh("button",{onClick:onClose,"aria-label":"Cerrar buscador",className:"w-11 h-11 -ml-1.5 inline-flex items-center justify-center rounded-xl transition-colors active:bg-[#F4F7FB] hover:bg-[#F4F7FB]",style:{color:INK2},"data-gufi-src":"components/Buscador.tsx:1006"},__gh(import_lucide_react4.X,{size:22})),__gh("div",{className:"min-w-0","data-gufi-src":"components/Buscador.tsx:1025"},embebido?__gh("h1",{className:"text-[15px] sm:text-[17px] font-extrabold tracking-[-0.02em] leading-tight truncate",style:{color:INK2},"data-gufi-src":"components/Buscador.tsx:1027"},"Residencias en alquiler de temporada"):__gh("h2",{className:"text-[15px] sm:text-[17px] font-extrabold tracking-[-0.02em] leading-tight truncate",style:{color:INK2},"data-gufi-src":"components/Buscador.tsx:1031"},"Encuentra tu pr\xF3xima residencia")),__gh("div",{className:"ml-auto shrink-0 flex items-center gap-3","data-gufi-src":"components/Buscador.tsx:1036"},__gh("span",{className:"hidden sm:flex items-baseline gap-1.5","data-gufi-src":"components/Buscador.tsx:1037"},__gh("span",{className:"text-[18px] sm:text-[20px] font-extrabold tabular-nums tracking-[-0.03em]",style:{color:INK},"data-gufi-src":"components/Buscador.tsx:1038"},N),__gh("span",{className:"text-[11.5px] font-semibold",style:{color:MUTED},"data-gufi-src":"components/Buscador.tsx:1039"},N===1?"residencia":"residencias")),embebido&&!hasAnyFilter&&__gh("button",{type:"button",onClick:()=>setVerMapa(v=>!v),"aria-label":verMapa?"Ver por zonas":"Ver el mapa",className:"shrink-0 inline-flex items-center gap-2 h-11 px-3.5 sm:px-4 rounded-full border text-[13.5px] font-semibold transition-colors hover:border-[#B9C6DA] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]",style:{borderColor:LINE,color:INK2},"data-gufi-src":"components/Buscador.tsx:1046"},verMapa?__gh(__gf,null,__gh(import_lucide_react4.List,{size:15,strokeWidth:2})," ",__gh("span",{className:"hidden sm:inline","data-gufi-src":"components/Buscador.tsx:1058"},"Ver por zonas")):__gh(__gf,null,__gh(import_lucide_react4.Map,{size:15,strokeWidth:2})," ",__gh("span",{className:"hidden sm:inline","data-gufi-src":"components/Buscador.tsx:1059"},"Ver el mapa"))))),__gh("div",{className:"flex items-center gap-2 pb-3 overflow-x-auto -mx-1 px-1 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden","data-gufi-src":"components/Buscador.tsx:1066"},__gh(StepperControl,{icon:import_lucide_react4.Users,label:"Hu\xE9spedes",hint:"\xBFCu\xE1ntos sois?",display:huespMin===0?"Cualquiera":huespMin>=6?"6+":String(huespMin),active:huespMin>0,canDec:huespMin>0,canInc:huespMin<6,onDec:()=>setHuespMin(v=>Math.max(0,v-1)),onInc:()=>setHuespMin(v=>Math.min(6,v+1))}),__gh(StepperControl,{icon:import_lucide_react4.BedDouble,label:"Dormitorios",hint:"Habitaciones",display:habMin===0?"Cualquiera":habMin>=4?"4+":String(habMin),active:habMin>0,canDec:habMin>0,canInc:habMin<4,onDec:()=>setHabMin(v=>Math.max(0,v-1)),onInc:()=>setHabMin(v=>Math.min(4,v+1))}),__gh("button",{onClick:()=>setFiltersOpen(o=>!o),"aria-expanded":filtersOpen,className:"shrink-0 inline-flex items-center gap-2 h-12 sm:h-11 px-4 rounded-full border font-semibold text-[13.5px] transition-colors hover:border-[#B9C6DA]",style:{color:INK2,borderColor:filtersOpen?INK:LINE,background:filtersOpen?"#F4F7FB":"#fff"},"data-gufi-src":"components/Buscador.tsx:1104"},__gh(import_lucide_react4.SlidersHorizontal,{size:16})," Filtros",activeFilterCount>0&&__gh("span",{className:"inline-flex items-center justify-center min-w-[20px] h-5 px-1 rounded-full text-[10.5px] font-bold text-white tabular-nums",style:{background:INK},"data-gufi-src":"components/Buscador.tsx:1112"},activeFilterCount)))),presets.length>0&&__gh("div",{className:"border-t bg-white",style:{borderColor:LINE2},"data-gufi-src":"components/Buscador.tsx:1122"},__gh("div",{className:"max-w-[1600px] mx-auto px-4 sm:px-6 py-2.5 flex items-center gap-2 overflow-x-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden","data-gufi-src":"components/Buscador.tsx:1123"},__gh("span",{className:"shrink-0 text-[12px] font-medium pr-0.5",style:{color:MUTED},"data-gufi-src":"components/Buscador.tsx:1124"},"Perfiles"),presets.map(p=>{let Icon=p.icon;return __gh("button",{key:p.key,onClick:p.toggle,"aria-pressed":p.active,className:"shrink-0 inline-flex items-center gap-1.5 h-11 sm:h-9 px-3.5 rounded-full border text-[13px] sm:text-[12.5px] font-semibold transition-colors",style:p.active?{background:INK,borderColor:INK,color:"#fff"}:{background:"#fff",borderColor:LINE,color:INK2},"data-gufi-src":"components/Buscador.tsx:1130"},__gh(Icon,{size:14,strokeWidth:2,style:{color:p.active?"#fff":MUTED}}),p.label)}))),__gh(import_framer_motion2.AnimatePresence,null,filtersOpen&&__gh(import_framer_motion2.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.28,ease:EASE2},className:"overflow-hidden border-t",style:{borderColor:LINE2,background:PAPER2}},__gh("div",{className:"max-w-[1600px] mx-auto px-4 sm:px-6 py-5 grid grid-cols-1 md:grid-cols-2 gap-x-10 gap-y-6","data-gufi-src":"components/Buscador.tsx:1159"},__gh("div",{"data-gufi-src":"components/Buscador.tsx:1161"},__gh("div",{className:"flex items-baseline justify-between","data-gufi-src":"components/Buscador.tsx:1162"},__gh(FieldLabel,null,"Renta m\xE1xima"),__gh("span",{className:"text-[13px] font-bold tabular-nums",style:{color:INK},"data-gufi-src":"components/Buscador.tsx:1164"},precioMax!=null&&precioMax{let v=Number(e.target.value);setPrecioMax(v>=priceBounds.max?null:v)},"aria-label":"Renta mensual m\xE1xima",className:"mt-3 w-full accent-[#1E3444] cursor-pointer","data-gufi-src":"components/Buscador.tsx:1168"}),__gh("div",{className:"flex justify-between mt-1 text-[11px] font-medium tabular-nums",style:{color:MUTED},"data-gufi-src":"components/Buscador.tsx:1178"},__gh("span",{"data-gufi-src":"components/Buscador.tsx:1179"},fmtEur(priceBounds.min)),__gh("span",{"data-gufi-src":"components/Buscador.tsx:1179"},fmtEur(priceBounds.max),"+"))),__gh("div",{"data-gufi-src":"components/Buscador.tsx:1184"},__gh(FieldLabel,null,"Ba\xF1os (m\xEDnimo)"),__gh(Segmented,{value:banosMin,onChange:setBanosMin,options:[[0,"Todos"],[1,"1+"],[2,"2+"],[3,"3+"]]})),tiposUniverse.length>0&&__gh("div",{className:"md:col-span-2","data-gufi-src":"components/Buscador.tsx:1191"},__gh(FieldLabel,null,"Tipo de vivienda"),__gh("div",{className:"flex flex-wrap gap-2 mt-1","data-gufi-src":"components/Buscador.tsx:1193"},tiposUniverse.map(t=>{let on=tipos.includes(t);return __gh("button",{key:t,onClick:()=>setTipos(s=>on?s.filter(x=>x!==t):[...s,t]),"aria-pressed":on,className:(0,import_utils2.cn)("inline-flex items-center gap-1.5 h-11 sm:h-9 px-3.5 rounded-full text-[13px] sm:text-[12.5px] font-semibold border transition-colors",on?"text-white":"bg-white hover:border-[#B9C6DA]"),style:on?{background:INK,borderColor:INK}:{color:BODY,borderColor:LINE},"data-gufi-src":"components/Buscador.tsx:1197"},on&&__gh(import_lucide_react4.Check,{size:13,strokeWidth:3})," ",t)}))),amenityUniverse.length>0&&__gh("div",{className:"md:col-span-2","data-gufi-src":"components/Buscador.tsx:1214"},__gh(FieldLabel,null,"Servicios"),__gh("div",{className:"flex flex-wrap gap-2 mt-1","data-gufi-src":"components/Buscador.tsx:1216"},amenityUniverse.map(am=>{let on=amenities.includes(am);return __gh("button",{key:am,onClick:()=>setAmenities(s=>on?s.filter(x=>x!==am):[...s,am]),"aria-pressed":on,className:(0,import_utils2.cn)("inline-flex items-center gap-1.5 h-11 sm:h-9 px-3.5 rounded-full text-[13px] sm:text-[12.5px] font-semibold border transition-colors",on?"text-white":"bg-white hover:border-[#B9C6DA]"),style:on?{background:INK,borderColor:INK}:{color:BODY,borderColor:LINE},"data-gufi-src":"components/Buscador.tsx:1220"},on&&__gh(import_lucide_react4.Check,{size:13,strokeWidth:3})," ",am)}))),__gh("div",{className:"md:col-span-2 flex items-center justify-between pt-1","data-gufi-src":"components/Buscador.tsx:1235"},__gh("button",{onClick:resetTodo,disabled:!hasAnyFilter,className:"inline-flex items-center gap-1.5 h-12 sm:h-11 text-[13px] font-semibold transition-opacity disabled:opacity-30 hover:opacity-70",style:{color:BODY},"data-gufi-src":"components/Buscador.tsx:1236"},__gh(import_lucide_react4.RotateCcw,{size:15})," Limpiar filtros"),__gh("button",{onClick:()=>setFiltersOpen(!1),className:"inline-flex items-center gap-2 h-12 sm:h-11 px-6 rounded-full text-white text-[14px] font-semibold transition-colors hover:bg-[#CF5A26]",style:{background:RED},"data-gufi-src":"components/Buscador.tsx:1246"},"Ver ",N," ",N===1?"residencia":"residencias"))))),chips.length>0&&__gh("div",{className:"border-t",style:{borderColor:LINE2},"data-gufi-src":"components/Buscador.tsx:1261"},__gh("div",{className:"max-w-[1600px] mx-auto px-4 sm:px-6 py-2.5 flex items-center gap-2 overflow-x-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden","data-gufi-src":"components/Buscador.tsx:1262"},chips.map(c=>__gh("button",{key:c.key,onClick:c.onClear,className:"shrink-0 inline-flex items-center gap-1.5 h-11 sm:h-8 pl-3.5 pr-2.5 sm:pl-3 sm:pr-2 rounded-full border text-[13px] sm:text-[12px] font-semibold transition-colors hover:border-[#B9C6DA]",style:{color:INK2,borderColor:LINE,background:"#fff"},"data-gufi-src":"components/Buscador.tsx:1264"},c.label,__gh(import_lucide_react4.X,{size:14,style:{color:MUTED}}))),__gh("button",{onClick:resetTodo,className:"shrink-0 h-11 sm:h-8 px-3 sm:px-2 text-[13px] sm:text-[12px] font-semibold whitespace-nowrap transition-opacity hover:opacity-70",style:{color:INK},"data-gufi-src":"components/Buscador.tsx:1274"},"Limpiar todo")))),modoZonas?__gh(Zonas,{grupos:zonas,loadingOcup,hrefDe:a=>ctx?.enlaceFicha?ctx.enlaceFicha(a):void 0,onVer:verDetalle,onVerCiudad:setCiudadPorKey}):__gh("div",{className:"flex-1 min-h-0 flex flex-col lg:flex-row","data-gufi-src":"components/Buscador.tsx:1295"},__gh("div",{className:(0,import_utils2.cn)("flex flex-col min-h-0",mapFailed?"w-full":"w-full lg:w-[56%] xl:w-[58%]",!mapFailed&&mobileView==="mapa"?"hidden lg:flex":"flex"),"data-gufi-src":"components/Buscador.tsx:1297"},mapFailed&&__gh("div",{className:"shrink-0 px-4 sm:px-6 py-2 text-[11.5px] font-medium border-b",style:{color:MUTED,borderColor:LINE2,background:PAPER2},"data-gufi-src":"components/Buscador.tsx:1308"},"Mapa no disponible ahora \u2014 mostrando resultados en lista."),__gh("div",{ref:listRef,className:"flex-1 overflow-y-auto px-4 sm:px-6 py-4",style:{WebkitOverflowScrolling:"touch"},"data-gufi-src":"components/Buscador.tsx:1312"},loadingOcup&&N===0?__gh("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-5 gap-y-8","data-gufi-src":"components/Buscador.tsx:1314"},[0,1,2,3,4,5].map(i=>__gh(CardSkeleton,{key:i}))):N===0?__gh(EmptyState,{onWiden:flexDias<14?()=>setFlex(14):void 0,onReset:hasAnyFilter?resetTodo:void 0}):__gh(__gf,null,dateSel&&__gh("div",{className:"mb-4 flex items-start gap-2 text-[12.5px] leading-snug font-medium",style:{color:BODY},"data-gufi-src":"components/Buscador.tsx:1323"},__gh(import_lucide_react4.CalendarCheck,{size:15,strokeWidth:2,className:"shrink-0 mt-px",style:{color:exactCount>0?GREEN_INK:INK}}),__gh("span",{"data-gufi-src":"components/Buscador.tsx:1325"},exactCount>0?__gh(__gf,null,__gh("strong",{className:"font-bold",style:{color:INK2},"data-gufi-src":"components/Buscador.tsx:1328"},exactCount)," ",exactCount===1?"entra":"entran"," el ",fmtCorta(dateSel),flexCount>0&&flexDias>0&&__gh(__gf,null," \xB7 ",__gh("strong",{className:"font-bold",style:{color:INK2},"data-gufi-src":"components/Buscador.tsx:1331"},flexCount)," m\xE1s en \xB1",flexDias," d\xEDas")):__gh(__gf,null,__gh("strong",{className:"font-bold",style:{color:INK2},"data-gufi-src":"components/Buscador.tsx:1336"},flexCount)," ",flexCount===1?"disponible":"disponibles"," cerca del ",fmtCorta(dateSel),flexDias>0&&__gh(__gf,null," (\xB1",flexDias," d\xEDas)")))),__gh("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-5 gap-y-8 pb-8","data-gufi-src":"components/Buscador.tsx:1348"},resultados.map(({a,info})=>__gh(ResultCard,{key:a?.id,a,href:ctx?.enlaceFicha?ctx.enlaceFicha(a):void 0,info,loadingOcup,active:String(hoverId??activeId)===String(a?.id),cardRef:el=>{cardRefs.current[String(a?.id)]=el},onEnter:()=>setHoverId(a?.id),onLeave:()=>setHoverId(h=>String(h)===String(a?.id)?null:h),onVer:()=>verDetalle(a)})))))),showMap&&__gh("div",{className:(0,import_utils2.cn)("relative min-h-0 w-full flex-1 bg-[#E8EEF6]",mobileView==="lista"?"hidden lg:block":"block"),style:{isolation:"isolate"},"data-gufi-src":"components/Buscador.tsx:1378"},__gh("div",{ref:mapElRef,className:"absolute inset-0","aria-label":"Mapa de residencias","data-gufi-src":"components/Buscador.tsx:1400"}),!mapReady&&__gh("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-3",style:{color:MUTED},"data-gufi-src":"components/Buscador.tsx:1402"},__gh("div",{className:"w-8 h-8 rounded-full border-2 border-[#C7D2E2] border-t-[#1E3444] animate-spin","data-gufi-src":"components/Buscador.tsx:1403"}),__gh("span",{className:"text-[12.5px] font-medium","data-gufi-src":"components/Buscador.tsx:1404"},"Cargando mapa\u2026")))),showMap&&!filtersOpen&&!modoZonas&&__gh("div",{className:"lg:hidden absolute left-1/2 -translate-x-1/2 z-[5]",style:{bottom:"calc(16px + env(safe-area-inset-bottom))"},"data-gufi-src":"components/Buscador.tsx:1419"},__gh("div",{className:"inline-flex items-center p-1 rounded-full bg-white border shadow-[0_10px_30px_-10px_rgba(20,35,46,0.45)]",style:{borderColor:LINE},"data-gufi-src":"components/Buscador.tsx:1423"},__gh(ToggleBtn,{active:mobileView==="lista",onClick:()=>setMobileView("lista"),icon:import_lucide_react4.List,label:"Lista"}),__gh(ToggleBtn,{active:mobileView==="mapa",onClick:()=>setMobileView("mapa"),icon:import_lucide_react4.Map,label:"Mapa"}))))),hoja==="fecha"&&__gh(Hoja,{titulo:"\xBFCu\xE1ndo quieres entrar?",z:900,onClose:()=>setHoja("")},__gh(Calendario,{valor:fechaEntrada,onElegir:d=>{setFecha(aYmd(d)),setHoja("")},onLimpiar:()=>{setFecha(""),setHoja("")}}),__gh(FlexFechas,{opciones:FLEX_OPTS,valor:flexDias,onElegir:setFlex})),hoja==="ciudad"&&__gh(Hoja,{titulo:"\xBFD\xF3nde?",z:900,onClose:()=>setHoja("")},__gh(ListaOpciones,{valor:keySel,onElegir:v=>{setCiudadPorKey(v),setHoja("")},opciones:[{v:"",label:"Todas las ciudades",nota:`${alo.length}`},...ciudades.map(c=>({v:c.key,label:c.label,nota:c.count?String(c.count):""}))]})),hoja==="movil"&&__gh(Hoja,{titulo:"Busca tu residencia",z:1100,onClose:()=>setHoja("")},__gh("div",{className:"grid gap-3","data-gufi-src":"components/Buscador.tsx:1474"},__gh(Plegable,{titulo:"Destino",valor:(ciudades.find(c=>c.key===keySel)||{}).label||"Todas las ciudades",abierto:pasoMovil==="donde",onAbrir:()=>setPasoMovil("donde")},__gh("div",{className:"max-h-[42vh] overflow-y-auto -mx-1 px-1","data-gufi-src":"components/Buscador.tsx:1490"},__gh(ListaOpciones,{valor:keySel,onElegir:v=>{setCiudadPorKey(v),setPasoMovil("fecha")},opciones:[{v:"",label:"Todas las ciudades",nota:`${alo.length}`},...ciudades.map(c=>({v:c.key,label:c.label,nota:c.count?String(c.count):""}))]}))),__gh(Plegable,{titulo:"Entrada",valor:fechaEntrada&&parseYMD(fechaEntrada)?fmtCorta(parseYMD(fechaEntrada)):"A\xF1ade la fecha",abierto:pasoMovil==="fecha",onAbrir:()=>setPasoMovil("fecha")},__gh(Calendario,{valor:fechaEntrada,onElegir:d=>{setFecha(aYmd(d)),setPasoMovil("meses")},onLimpiar:()=>setFecha("")}),__gh(FlexFechas,{opciones:FLEX_OPTS,valor:flexDias,onElegir:setFlex})),__gh(Plegable,{titulo:"Estancia",valor:meses?`${meses} ${meses==="1"?"mes":"meses"}`:"Cualquier estancia",abierto:pasoMovil==="meses",onAbrir:()=>setPasoMovil("meses")},__gh(ListaOpciones,{valor:meses,onElegir:v=>setMeses(v),opciones:[{v:"",label:"Cualquier estancia"},...MES_OPTS.map(m=>({v:String(m),label:`${m} ${m===1?"mes":"meses"}`}))]})),__gh("div",{className:"flex items-center justify-between gap-4 pt-2","data-gufi-src":"components/Buscador.tsx:1536"},__gh("button",{type:"button",onClick:resetTodo,className:"shrink-0 h-[52px] px-4 -ml-4 rounded-full text-[14px] font-semibold underline underline-offset-4 transition-colors hover:bg-[#F4F7FB] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]",style:{color:INK2},"data-gufi-src":"components/Buscador.tsx:1537"},"Restablecer"),__gh("button",{type:"button",onClick:()=>setHoja(""),className:"shrink-0 inline-flex items-center justify-center gap-2 h-[52px] px-6 rounded-full text-[15px] font-semibold text-white whitespace-nowrap transition-[background-color,box-shadow] duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444] focus-visible:ring-offset-2",style:{background:RED,boxShadow:"0 10px 24px -14px rgba(234,104,46,0.9)"},"data-gufi-src":"components/Buscador.tsx:1545"},__gh(import_lucide_react4.Search,{size:16,strokeWidth:2.4}),"Ver ",N," ",N===1?"residencia":"residencias")))),hoja==="meses"&&__gh(Hoja,{titulo:"\xBFCu\xE1nto tiempo?",z:900,onClose:()=>setHoja("")},__gh(ListaOpciones,{valor:meses,onElegir:v=>{setMeses(v),setHoja("")},opciones:[{v:"",label:"Cualquier estancia"},...MES_OPTS.map(m=>({v:String(m),label:`${m} ${m===1?"mes":"meses"}`}))]})))}function ListaOpciones({opciones,valor,onElegir}){return __gh("div",{"data-gufi-src":"components/Buscador.tsx:1591"},opciones.map(o=>{let on=String(o.v)===String(valor);return __gh("button",{key:String(o.v),type:"button",onClick:()=>onElegir(o.v),className:"flex items-center justify-between w-full gap-4 py-4 text-left border-b transition-colors duration-150 hover:bg-[#F4F7FB] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444] rounded-lg px-2 -mx-2",style:{borderColor:LINE2},"data-gufi-src":"components/Buscador.tsx:1595"},__gh("span",{className:"min-w-0 truncate text-[15px]",style:{color:on?INK:BODY,fontWeight:on?700:500},"data-gufi-src":"components/Buscador.tsx:1602"},o.label),__gh("span",{className:"shrink-0 flex items-center gap-3","data-gufi-src":"components/Buscador.tsx:1605"},o.nota&&__gh("span",{className:"text-[13px] tabular-nums",style:{color:MUTED},"data-gufi-src":"components/Buscador.tsx:1606"},o.nota),on&&__gh(import_lucide_react4.Check,{size:18,strokeWidth:2.4,style:{color:INK}})))}))}function StepperControl({icon:Icon,label,hint,display,active,canDec,canInc,onDec,onInc}){return __gh("div",{className:"shrink-0 flex items-center gap-2 h-12 sm:h-11 pl-3.5 pr-1.5 rounded-full border bg-white",style:{borderColor:active?INK:LINE},title:hint||label,"data-gufi-src":"components/Buscador.tsx:1634"},__gh(Icon,{size:16,style:{color:active?INK:MUTED},className:"shrink-0"}),__gh("div",{className:"flex flex-col justify-center leading-none pr-0.5","data-gufi-src":"components/Buscador.tsx:1640"},__gh("span",{className:"text-[11px] font-medium leading-none",style:{color:MUTED},"data-gufi-src":"components/Buscador.tsx:1641"},label),__gh("span",{className:"mt-[3px] text-[13px] font-bold leading-none tabular-nums whitespace-nowrap",style:{color:INK2},"data-gufi-src":"components/Buscador.tsx:1642"},display)),__gh("div",{className:"inline-flex items-center gap-0.5","data-gufi-src":"components/Buscador.tsx:1646"},__gh("button",{type:"button",onClick:onDec,disabled:!canDec,"aria-label":`Menos ${label.toLowerCase()}`,className:"w-11 h-11 sm:w-9 sm:h-9 rounded-full inline-flex items-center justify-center transition-colors disabled:opacity-25 disabled:cursor-default hover:bg-[#F4F7FB] active:bg-[#EDF1F6]",style:{color:INK2},"data-gufi-src":"components/Buscador.tsx:1647"},__gh(import_lucide_react4.Minus,{size:16})),__gh("button",{type:"button",onClick:onInc,disabled:!canInc,"aria-label":`M\xE1s ${label.toLowerCase()}`,className:"w-11 h-11 sm:w-9 sm:h-9 rounded-full inline-flex items-center justify-center transition-colors disabled:opacity-25 disabled:cursor-default hover:bg-[#F4F7FB] active:bg-[#EDF1F6]",style:{color:INK2},"data-gufi-src":"components/Buscador.tsx:1657"},__gh(import_lucide_react4.Plus,{size:16}))))}function FieldLabel({children}){return __gh("span",{className:"block text-[12.5px] font-medium mb-2.5",style:{color:MUTED},"data-gufi-src":"components/Buscador.tsx:1675"},children)}function Segmented({value,onChange,options}){return __gh("div",{className:"inline-flex items-center rounded-full border p-0.5 bg-white",style:{borderColor:LINE},"data-gufi-src":"components/Buscador.tsx:1680"},options.map(([v,label])=>{let on=value===v;return __gh("button",{key:v,onClick:()=>onChange(v),"aria-pressed":on,className:(0,import_utils2.cn)("h-11 sm:h-9 min-w-[44px] sm:min-w-[42px] px-3 sm:px-2.5 rounded-full text-[13px] sm:text-[12.5px] font-bold transition-colors",on?"text-white":""),style:on?{background:INK}:{color:MUTED},"data-gufi-src":"components/Buscador.tsx:1684"},label)}))}function ToggleBtn({active,onClick,icon:Icon,label}){return __gh("button",{onClick,"aria-pressed":active,className:(0,import_utils2.cn)("inline-flex items-center gap-1.5 h-11 px-4 rounded-full text-[13px] font-bold transition-colors",active?"text-white":""),style:active?{background:INK}:{color:BODY},"data-gufi-src":"components/Buscador.tsx:1701"},__gh(Icon,{size:15})," ",label)}function AvailBadge({info,loadingOcup}){if(loadingOcup)return __gh("span",{className:"inline-flex items-center gap-1.5 h-6 px-2.5 rounded-full text-[10.5px] font-semibold",style:{background:"#F1F4F9",color:MUTED},"data-gufi-src":"components/Buscador.tsx:1723"},"Comprobando fechas\u2026");if(info?.matchDate&&info.delta===0)return __gh("span",{className:"inline-flex items-center gap-1.5 h-6 px-2.5 rounded-full text-[10.5px] font-bold",style:{background:GREEN_BG,color:GREEN_INK},"data-gufi-src":"components/Buscador.tsx:1730"},__gh(import_lucide_react4.CalendarCheck,{size:12})," Disponible el ",fmtCorta(info.matchDate));if(info?.matchDate){let d=info.delta;return __gh("span",{className:"inline-flex items-center gap-1.5 h-6 px-2.5 rounded-full text-[10.5px] font-bold",style:{background:"#EEF3FB",color:INK},"data-gufi-src":"components/Buscador.tsx:1738"},"Entra el ",fmtCorta(info.matchDate)," \xB7 ",Math.abs(d)," ",Math.abs(d)===1?"d\xEDa":"d\xEDas"," ",d<0?"antes":"despu\xE9s")}if(info?.proxima){let isNow=info.proxima.getTime()<=toMidnight(new Date).getTime();return __gh("span",{className:"inline-flex items-center gap-1.5 h-6 px-2.5 rounded-full text-[10.5px] font-semibold",style:{background:"#F4F7FB",color:MUTED},"data-gufi-src":"components/Buscador.tsx:1746"},isNow?"Disponible ahora":`Disponible desde ${fmtCorta(info.proxima)}`)}return null}function FlexFechas({opciones,valor,onElegir}){return __gh("div",{className:"mt-6 pt-5 border-t",style:{borderColor:LINE2},"data-gufi-src":"components/Buscador.tsx:1775"},__gh("div",{className:"text-[13.5px] font-semibold mb-3",style:{color:INK},"data-gufi-src":"components/Buscador.tsx:1776"},"\xBFPuedes mover la entrada?"),__gh("div",{className:"flex flex-wrap items-center gap-2","data-gufi-src":"components/Buscador.tsx:1777"},opciones.map(v=>{let on=valor===v;return __gh("button",{key:v,type:"button",onClick:()=>onElegir(v),"aria-pressed":on,className:"h-11 px-4 rounded-full border text-[13.5px] font-semibold transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]",style:on?{background:INK,color:"#FFFFFF",borderColor:INK}:{borderColor:LINE,color:BODY},"data-gufi-src":"components/Buscador.tsx:1781"},v===0?"Fecha exacta":`\xB1 ${v} d\xEDas`)})))}function Plegable({titulo,valor,abierto,onAbrir,children}){return __gh("div",{className:"rounded-[18px] border overflow-hidden",style:{borderColor:LINE,background:"#FFFFFF"},"data-gufi-src":"components/Buscador.tsx:1802"},__gh("button",{type:"button",onClick:onAbrir,"aria-expanded":!!abierto,className:"flex items-center justify-between w-full gap-5 px-5 sm:px-6 h-[72px] text-left focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]","data-gufi-src":"components/Buscador.tsx:1803"},__gh("span",{className:"shrink-0 whitespace-nowrap text-[14px] font-semibold",style:{color:abierto?INK:MUTED},"data-gufi-src":"components/Buscador.tsx:1813"},titulo),!abierto&&__gh("span",{className:"min-w-0 truncate text-[15px] font-semibold text-right",style:{color:INK},"data-gufi-src":"components/Buscador.tsx:1815"},valor)),abierto&&__gh("div",{className:"px-5 sm:px-6 pb-6","data-gufi-src":"components/Buscador.tsx:1818"},children))}function Zonas({grupos,hrefDe,onVer,onVerCiudad,loadingOcup}){return grupos.length?__gh("div",{className:"max-w-[1600px] mx-auto w-full px-4 sm:px-6 pt-5 pb-12","data-gufi-src":"components/Buscador.tsx:1838"},grupos.map(g=>__gh("section",{key:g.key,className:"mb-9 sm:mb-12","data-gufi-src":"components/Buscador.tsx:1840"},__gh("div",{className:"flex items-end justify-between gap-4 mb-3.5","data-gufi-src":"components/Buscador.tsx:1841"},__gh("h2",{className:"text-[19px] sm:text-[23px] font-bold tracking-[-0.025em] truncate",style:{color:INK},"data-gufi-src":"components/Buscador.tsx:1844"},g.suelta?g.label:`Residencias en ${g.label}`),!g.suelta&&__gh("button",{type:"button",onClick:()=>onVerCiudad(g.key),className:"group shrink-0 inline-flex items-center gap-1.5 h-10 px-3 -mr-3 rounded-full text-[13.5px] font-semibold transition-colors hover:bg-[#F4F7FB] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]",style:{color:INK},"data-gufi-src":"components/Buscador.tsx:1851"},__gh("span",{className:"underline underline-offset-4","data-gufi-src":"components/Buscador.tsx:1857"},"Ver las ",g.items.length),__gh(import_lucide_react4.ArrowRight,{size:15,strokeWidth:2.2,className:"transition-transform duration-200 group-hover:translate-x-0.5"}))),__gh("div",{className:"flex gap-4 sm:gap-5 overflow-x-auto pb-2 -mx-4 px-4 sm:-mx-6 sm:px-6 snap-x snap-mandatory [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden","data-gufi-src":"components/Buscador.tsx:1866"},g.items.slice(0,12).map(({a,info})=>__gh("div",{key:a?.id,className:"shrink-0 w-[216px] sm:w-[296px] snap-start","data-gufi-src":"components/Buscador.tsx:1868"},__gh(ResultCard,{a,href:hrefDe(a),info,loadingOcup,onVer:()=>onVer(a)}))))))):null}function ResultCard({a,href,info,loadingOcup,active,cardRef,onEnter,onLeave,onVer}){let nombre=txt(a?.nombre)||"Residencia",ciudad=txt(a?.ciudad),tipo=txt(a?.tipo)||"Residencia",foto=typeof a?.foto=="string"?a.foto:"",renta=mensualidadDe(a),rentaTxt=Number.isFinite(renta)&&renta>0?fmtEur(renta):"Consultar",ficha=[{v:num(a?.habitaciones),uno:"dormitorio",varios:"dormitorios"},{v:num(a?.banos),uno:"ba\xF1o",varios:"ba\xF1os"},{v:num(a?.capacidad),uno:"hu\xE9sped",varios:"hu\xE9spedes"}].filter(m=>m.v>0).map(m=>`${m.v} ${m.v===1?m.uno:m.varios}`).join(" \xB7 "),situacion=ciudad&&tipo?`${tipo} en ${ciudad}`:tipo||ciudad;return __gh("a",{ref:cardRef,href:href||void 0,onClick:e=>{e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0||(e.preventDefault(),onVer?.())},onMouseEnter:onEnter,onMouseLeave:onLeave,onFocus:onEnter,onBlur:onLeave,"aria-label":`Ver ${nombre}${ciudad?` en ${ciudad}`:""}`,className:"group block focus:outline-none cursor-pointer","data-gufi-src":"components/Buscador.tsx:1928"},__gh("div",{className:"relative aspect-[4/3] rounded-[14px] overflow-hidden bg-[#E8EEF6] transition-shadow duration-300",style:{outline:active?`2px solid ${INK}`:void 0,outlineOffset:2,boxShadow:active?"0 14px 34px -22px rgba(20,35,46,0.6)":void 0},"data-gufi-src":"components/Buscador.tsx:1951"},foto?__gh("img",{src:foto,alt:nombre,loading:"lazy",decoding:"async",className:"w-full h-full object-cover transition-transform duration-[900ms] ease-out group-hover:scale-[1.04]","data-gufi-src":"components/Buscador.tsx:1960"}):__gh("div",{className:"w-full h-full flex flex-col items-center justify-center gap-2",style:{color:"#AFBBCC"},"data-gufi-src":"components/Buscador.tsx:1970"},__gh(import_lucide_react4.Building2,{size:26,strokeWidth:1.5}),__gh("span",{className:"text-[11px] font-medium tracking-[0.04em]","data-gufi-src":"components/Buscador.tsx:1972"},"Foto en camino"))),__gh("div",{className:"mt-3","data-gufi-src":"components/Buscador.tsx:1977"},__gh("h3",{className:"text-[15px] font-semibold tracking-[-0.01em] truncate",style:{color:INK},"data-gufi-src":"components/Buscador.tsx:1980"},situacion),__gh("p",{className:"mt-1 text-[14px] leading-[1.45] truncate",style:{color:MUTED},"data-gufi-src":"components/Buscador.tsx:1983"},nombre),ficha&&__gh("p",{className:"mt-1 text-[14px] leading-[1.45] truncate",style:{color:MUTED},"data-gufi-src":"components/Buscador.tsx:1984"},ficha),__gh("div",{className:"mt-2","data-gufi-src":"components/Buscador.tsx:1986"},__gh(AvailBadge,{info,loadingOcup})),__gh("p",{className:"mt-2 text-[15px]",style:{color:INK},"data-gufi-src":"components/Buscador.tsx:1992"},__gh("span",{className:"font-bold tabular-nums underline underline-offset-[3px] decoration-[1.5px]","data-gufi-src":"components/Buscador.tsx:1993"},rentaTxt),__gh("span",{className:"font-medium","data-gufi-src":"components/Buscador.tsx:1994"}," al mes"))))}function CardSkeleton(){return __gh("div",{"data-gufi-src":"components/Buscador.tsx:2006"},__gh("div",{className:"aspect-[4/3] rounded-[14px] bg-[#E8EEF6] animate-pulse","data-gufi-src":"components/Buscador.tsx:2007"}),__gh("div",{className:"mt-3 space-y-2","data-gufi-src":"components/Buscador.tsx:2008"},__gh("div",{className:"h-3.5 w-2/3 bg-[#E8EEF6] rounded-full animate-pulse","data-gufi-src":"components/Buscador.tsx:2009"}),__gh("div",{className:"h-3 w-1/2 bg-[#EDF1F6] rounded-full animate-pulse","data-gufi-src":"components/Buscador.tsx:2010"}),__gh("div",{className:"h-3 w-1/3 bg-[#EDF1F6] rounded-full animate-pulse","data-gufi-src":"components/Buscador.tsx:2011"}),__gh("div",{className:"h-4 w-1/4 bg-[#E8EEF6] rounded-full animate-pulse mt-1","data-gufi-src":"components/Buscador.tsx:2012"})))}function EmptyState({onWiden,onReset}){return __gh("div",{className:"py-16 px-6 text-center border rounded-[16px] mt-2",style:{borderColor:LINE,background:PAPER2},"data-gufi-src":"components/Buscador.tsx:2020"},__gh("div",{className:"mx-auto rounded-full bg-white flex items-center justify-center border",style:{borderColor:LINE,color:INK,width:52,height:52},"data-gufi-src":"components/Buscador.tsx:2021"},__gh(import_lucide_react4.Search,{size:22,strokeWidth:1.7})),__gh("p",{className:"text-[16px] font-bold mt-4 tracking-[-0.02em]",style:{color:INK},"data-gufi-src":"components/Buscador.tsx:2024"},"Sin residencias para esta b\xFAsqueda"),__gh("p",{className:"text-[13.5px] mt-1.5 max-w-[340px] mx-auto leading-relaxed",style:{color:MUTED},"data-gufi-src":"components/Buscador.tsx:2027"},"Prueba a ampliar la ventana de fechas o a relajar los filtros: quiz\xE1 hay opciones cercanas a lo que buscas."),__gh("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-2.5","data-gufi-src":"components/Buscador.tsx:2030"},onWiden&&__gh("button",{onClick:onWiden,className:"inline-flex items-center gap-2 h-11 px-5 rounded-full text-white text-[13px] font-semibold transition-colors",style:{background:INK},"data-gufi-src":"components/Buscador.tsx:2032"},"Ampliar ventana a \xB114 d\xEDas"),onReset&&__gh("button",{onClick:onReset,className:"inline-flex items-center gap-2 h-11 px-5 rounded-full border text-[13px] font-semibold transition-colors hover:border-[#B9C6DA]",style:{color:INK2,borderColor:LINE,background:"#fff"},"data-gufi-src":"components/Buscador.tsx:2041"},__gh(import_lucide_react4.RotateCcw,{size:14})," Quitar filtros")))}var EASE3=[.22,.61,.36,1],SHADOW_CARD="0 1px 2px rgba(20,35,46,0.04)",SHADOW_HOVER="0 2px 4px rgba(20,35,46,0.05), 0 40px 72px -44px rgba(20,35,46,0.48)",VERDE_FONDO="rgba(13,124,90,0.10)",VERDE_TINTA="#0C6B4E",AZUL_FONDO="#EEF3FB",GRIS_FONDO="#F4F7FB",AMBAR_FONDO="#FDF3E7",AMBAR_LINEA="#F3D9B8",AMBAR_TINTA="#8A5410",txt2=v=>v==null?"":typeof v=="string"?v:typeof v=="number"?Number.isFinite(v)?String(v):"":String(typeof v=="object"?v.name??v.label??v.value??v.title??v.text??"":v),ES_YMD=/^\d{4}-\d{2}-\d{2}$/,DIA_MS=864e5,fCorta=ymd=>{if(!ES_YMD.test(String(ymd||"")))return"";try{let d=new Date(ymd+"T00:00:00"),esteAnio=d.getFullYear()===new Date().getFullYear();return d.toLocaleDateString("es-ES",esteAnio?{day:"numeric",month:"short"}:{day:"numeric",month:"short",year:"numeric"})}catch{return""}},fLarga=ymd=>{if(!ES_YMD.test(String(ymd||"")))return"";try{return new Date(ymd+"T00:00:00").toLocaleDateString("es-ES",{day:"numeric",month:"long"})}catch{return""}},rangoLargo=(e,s)=>e.slice(0,7)===s.slice(0,7)?`del ${Number(e.slice(8,10))} al ${fLarga(s)}`:`del ${fLarga(e)} al ${fLarga(s)}`,aMs=ymd=>Date.UTC(+ymd.slice(0,4),+ymd.slice(5,7)-1,+ymd.slice(8,10)),nochesEntre=(e,s)=>Math.round((aMs(s)-aMs(e))/DIA_MS),ivsDe=(a,ocupacion)=>{let k=String(a&&a.id),ext=ocupacion&&Array.isArray(ocupacion[k])?ocupacion[k]:[],out=[];for(let x of[...bloqueosDe(a),...ext]){if(!x||!ES_YMD.test(String(x.desde))||!ES_YMD.test(String(x.hasta)))continue;let d=parseYMD(String(x.desde)),h=parseYMD(String(x.hasta));d&&h&&out.push({_desde:d.getTime(),_hasta:h.getTime()})}return out},dispoDe=(a,ocupacion,lista,entrada,salida,noches)=>{if(!lista)return{tono:"espera",texto:"Comprobando disponibilidad\u2026"};if(!noches){if(!ocupadaHoyDe(a,ocupacion))return{tono:"ok",texto:"Disponible ahora"};let d=fCorta(libreDesdeDe(a,ocupacion));return{tono:"alt",texto:d?`Libre desde el ${d}`:"Ocupada ahora mismo"}}let ivs=ivsDe(a,ocupacion),D=parseYMD(entrada);if(!D)return{tono:"espera",texto:"Comprobando disponibilidad\u2026"};if(rangeFree(ivs,D,noches))return{tono:"ok",texto:"Libre en estas fechas"};let libre=firstFree(ivs,D,noches),alt=libre?fCorta(fmtISO(libre)):"";return alt?{tono:"alt",texto:`Ocupada \xB7 libre desde el ${alt}`}:{tono:"no",texto:"Ocupada en estas fechas"}},dispoEnRango=(a,ocupacion,lista,entrada,salida)=>dispoDe(a,ocupacion,lista,entrada,salida,entrada&&salida&&salida>entrada?nochesEntre(entrada,salida):0),TONOS={ok:{fondo:VERDE_FONDO,tinta:VERDE_TINTA},alt:{fondo:AZUL_FONDO,tinta:INK},no:{fondo:GRIS_FONDO,tinta:MUTED},espera:{fondo:GRIS_FONDO,tinta:MUTED}};function ChipDispo({dispo}){let t=TONOS[dispo&&dispo.tono||"espera"]||TONOS.espera;return __gh("span",{className:"inline-flex items-center gap-1.5 h-[26px] px-2.5 rounded-full text-[11.5px] font-semibold max-w-full",style:{background:t.fondo,color:t.tinta},"data-gufi-src":"components/Seleccion.tsx:210"},dispo&&dispo.tono==="ok"&&__gh(import_lucide_react5.CalendarCheck,{size:13,strokeWidth:2.2,className:"shrink-0"}),__gh("span",{className:"truncate","data-gufi-src":"components/Seleccion.tsx:215"},dispo&&dispo.texto||""))}var COMUNES=new Set(["menaje","toallas","ropa de cama","wifi","tv","lavadora","microondas","horno","calefaccion","plancha"]),distintivasDe=a=>amenitiesDe(a).filter(s=>!COMUNES.has(sinTildes(String(s)).toLowerCase().trim())),fichaTecnicaDe=a=>[{v:num(a&&a.habitaciones),uno:"dormitorio",varios:"dormitorios"},{v:num(a&&a.banos),uno:"ba\xF1o",varios:"ba\xF1os"},{v:num(a&&a.capacidad),uno:"hu\xE9sped",varios:"hu\xE9spedes"}].filter(m=>m.v>0).map(m=>`${fmtNum(m.v)} ${m.v===1?m.uno:m.varios}`).join(" \xB7 "),avisoMinimoDe=(a,noches)=>{let m=estanciaMinDe(a);return noches>0&&m>noches?`Estancia m\xEDnima de ${fmtNum(m)} d\xEDas`:""},REJILLA={1:"grid-cols-1 max-w-[520px]",2:"grid-cols-1 sm:grid-cols-2 max-w-[880px]",3:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"};function TarjetaSel({a,dispo,estMinAviso,extras,reserva,i,reduce,onVer,onSolicitar}){let nombre=txt2(a&&a.nombre)||"Residencia",ciudad=txt2(a&&a.ciudad),tipo=txt2(a&&a.tipo)||"Residencia",foto=typeof(a&&a.foto)=="string"?a.foto:"",renta=mensualidadDe(a),hayPrecio=Number.isFinite(renta)&&renta>0,rentaTxt=hayPrecio?fmtEur(renta):"Consultar",ficha=fichaTecnicaDe(a),situacion=ciudad&&tipo?`${tipo} en ${ciudad}`:tipo||ciudad;return __gh(import_framer_motion3.motion.div,{initial:reduce?!1:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5,delay:reduce?0:Math.min(i,5)*.06,ease:EASE3},className:"h-full"},__gh("div",{className:"group relative h-full flex flex-col bg-white rounded-[20px] overflow-hidden border transition-[transform,box-shadow,border-color] duration-500 hover:-translate-y-[5px] hover:border-[#D3DBE7]",style:{borderColor:LINE,boxShadow:SHADOW_CARD},onMouseEnter:e=>{e.currentTarget.style.boxShadow=SHADOW_HOVER},onMouseLeave:e=>{e.currentTarget.style.boxShadow=SHADOW_CARD},"data-gufi-src":"components/Seleccion.tsx:316"},__gh("button",{type:"button",onClick:onVer,"aria-label":`Ver ${nombre}${ciudad?` en ${ciudad}`:""}`,className:"absolute inset-0 z-10 w-full h-full rounded-[20px] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444] focus-visible:ring-inset","data-gufi-src":"components/Seleccion.tsx:339"}),__gh("div",{className:"relative shrink-0 aspect-[4/3] overflow-hidden bg-[#E8EEF6]","data-gufi-src":"components/Seleccion.tsx:349"},foto?__gh("img",{src:foto,alt:nombre,loading:i<3?"eager":"lazy",decoding:"async",className:"w-full h-full object-cover transition-transform duration-[1200ms] ease-out group-hover:scale-[1.05]","data-gufi-src":"components/Seleccion.tsx:351"}):__gh("div",{className:"w-full h-full flex flex-col items-center justify-center gap-2",style:{color:"#AFBBCC"},"data-gufi-src":"components/Seleccion.tsx:359"},__gh(import_lucide_react5.Building2,{size:28,strokeWidth:1.5}),__gh("span",{className:"text-[11px] font-medium tracking-[0.04em]","data-gufi-src":"components/Seleccion.tsx:361"},"Foto en camino")),__gh("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(180deg, transparent 0%, transparent 62%, rgba(20,35,46,0.22) 100%)"},"data-gufi-src":"components/Seleccion.tsx:369"}),__gh("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 p-3.5 flex justify-end opacity-0 translate-y-2 transition-all duration-[420ms] ease-out group-hover:opacity-100 group-hover:translate-y-0","data-gufi-src":"components/Seleccion.tsx:374"},__gh("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-white/95 backdrop-blur-md px-3.5 py-[7px] text-[11.5px] font-semibold",style:{color:INK},"data-gufi-src":"components/Seleccion.tsx:375"},"Ver residencia",__gh(import_lucide_react5.ArrowRight,{size:13,strokeWidth:2.4,style:{color:CLAY}})))),__gh("div",{className:"p-5 sm:p-[22px] pb-4 sm:pb-4","data-gufi-src":"components/Seleccion.tsx:382"},__gh("p",{className:"text-[12.5px] font-medium truncate",style:{color:MUTED},"data-gufi-src":"components/Seleccion.tsx:388"},situacion),__gh("h3",{className:`text-[18.5px] sm:text-[20px] font-bold tracking-[-0.02em] leading-snug line-clamp-2 mt-1.5 ${reserva.titulo?"sm:min-h-[2.75em]":""}`,style:{color:INK,fontFamily:FONT_SERIF},"data-gufi-src":"components/Seleccion.tsx:410"},nombre),__gh("div",{className:"mt-2.5","data-gufi-src":"components/Seleccion.tsx:416"},__gh(ChipDispo,{dispo})),reserva.ficha&&__gh("p",{className:`mt-3 sm:min-h-[1.3em] text-[12.5px] font-medium truncate tabular-nums ${ficha?"":"hidden sm:block"}`,style:{color:BODY},"data-gufi-src":"components/Seleccion.tsx:420"},ficha),reserva.extras&&__gh("p",{className:`mt-2.5 sm:min-h-[20px] leading-[20px] text-[12px] truncate ${extras.length?"":"hidden sm:block"}`,style:{color:MUTED},"data-gufi-src":"components/Seleccion.tsx:428"},extras.join(" \xB7 ")),reserva.aviso&&__gh("p",{className:`mt-2 sm:min-h-[17px] leading-[17px] text-[11.5px] font-medium truncate ${estMinAviso?"":"hidden sm:block"}`,style:{color:MUTED},"data-gufi-src":"components/Seleccion.tsx:436"},estMinAviso)),__gh("div",{className:"px-5 sm:px-[22px] pb-5 pt-[14px] mt-auto border-t",style:{borderColor:LINE2},"data-gufi-src":"components/Seleccion.tsx:455"},__gh("span",{className:"block text-[21px] font-bold tracking-[-0.025em] leading-none tabular-nums",style:{color:INK2,fontFamily:FONT_SERIF},"data-gufi-src":"components/Seleccion.tsx:462"},rentaTxt,hayPrecio&&__gh("span",{className:"text-[12.5px] font-semibold ml-0.5",style:{color:MUTED},"data-gufi-src":"components/Seleccion.tsx:466"},"/mes"),hayPrecio&&ivaNota(a)&&__gh("span",{className:"text-[11px] font-medium ml-1.5",style:{color:MUTED},"data-gufi-src":"components/Seleccion.tsx:467"},ivaNota(a))),__gh("button",{type:"button",onClick:onSolicitar,"aria-label":`Pedir visita de ${nombre}`,className:"relative z-20 mt-3.5 w-full inline-flex items-center justify-center gap-1.5 h-11 px-4 rounded-full border bg-white text-[12.5px] font-semibold transition-colors duration-200 hover:border-[#B9C6DA] hover:bg-[#F4F7FB] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444] focus-visible:ring-offset-2 focus-visible:ring-offset-white",style:{color:INK2,borderColor:LINE},"data-gufi-src":"components/Seleccion.tsx:469"},__gh(import_lucide_react5.CalendarCheck,{size:15,strokeWidth:2,style:{color:MUTED}})," Pedir visita"))))}function EsqueletoSel(){return __gh("div",{className:"rounded-[20px] border overflow-hidden bg-white",style:{borderColor:LINE},"data-gufi-src":"components/Seleccion.tsx:486"},__gh("div",{className:"relative aspect-[4/3] overflow-hidden","data-gufi-src":"components/Seleccion.tsx:487"},__gh("div",{className:"absolute inset-0 animate-pulse",style:{background:"linear-gradient(100deg, #E8EEF6 30%, #F2F6FB 50%, #E8EEF6 70%)"},"data-gufi-src":"components/Seleccion.tsx:488"})),__gh("div",{className:"p-[22px]","data-gufi-src":"components/Seleccion.tsx:493"},__gh("div",{className:"h-3 w-2/5 bg-[#EDF1F6] rounded-full animate-pulse","data-gufi-src":"components/Seleccion.tsx:494"}),__gh("div",{className:"h-4 w-5/6 bg-[#E8EEF6] rounded-full animate-pulse mt-2.5","data-gufi-src":"components/Seleccion.tsx:495"}),__gh("div",{className:"h-4 w-1/2 bg-[#E8EEF6] rounded-full animate-pulse mt-2","data-gufi-src":"components/Seleccion.tsx:496"}),__gh("div",{className:"h-[26px] w-40 bg-[#EDF1F6] rounded-full animate-pulse mt-3","data-gufi-src":"components/Seleccion.tsx:497"}),__gh("div",{className:"h-3 w-3/5 bg-[#EDF1F6] rounded-full animate-pulse mt-4","data-gufi-src":"components/Seleccion.tsx:498"}),__gh("div",{className:"pt-5 mt-5 border-t",style:{borderColor:LINE2},"data-gufi-src":"components/Seleccion.tsx:499"},__gh("div",{className:"h-3 w-24 bg-[#EDF1F6] rounded-full animate-pulse","data-gufi-src":"components/Seleccion.tsx:500"}),__gh("div",{className:"h-6 w-1/3 bg-[#E8EEF6] rounded-md animate-pulse mt-2","data-gufi-src":"components/Seleccion.tsx:501"}),__gh("div",{className:"h-11 w-full bg-[#EDF1F6] rounded-full animate-pulse mt-3.5","data-gufi-src":"components/Seleccion.tsx:502"}))))}function Seleccion({ctx,ids,entrada,salida,loading}){let reduce=(0,import_framer_motion3.useReducedMotion)(),pedidos=Array.isArray(ids)?ids:[],alo=ctx&&ctx.alojamientos?ctx.alojamientos:[],ocupacion=ctx&&ctx.ocupacion||{},ocupacionLista=!!(ctx&&ctx.ocupacionLista),hayRango=!!(entrada&&salida&&salida>entrada),noches=hayRango?nochesEntre(entrada,salida):0,porId=(0,import_react5.useMemo)(()=>{let m=new Map;for(let a of alo)a&&a.id!=null&&m.set(String(a.id),a);return m},[alo]),encontradas=(0,import_react5.useMemo)(()=>pedidos.map(id=>porId.get(String(id))).filter(Boolean),[pedidos.join(","),porId]),n=encontradas.length,faltan=pedidos.length-n,catalogoCaido=!loading&&alo.length===0,ciudadComun=(0,import_react5.useMemo)(()=>{let cs=new Set(encontradas.map(a=>txt2(a&&a.ciudad)).filter(Boolean));return cs.size===1?[...cs][0]:""},[encontradas]),mesesPrefill=(0,import_react5.useMemo)(()=>{if(!noches)return"";let m=Math.round(noches/30);return[1,2,3,6,9,12].indexOf(m)>=0?String(m):""},[noches]),pedirVisita=a=>{let nombre=txt2(a&&a.nombre)||"la vivienda",ciudad=txt2(a&&a.ciudad);ctx.openSolicitud({tipo:"Inquilino busca",vivienda_id:a&&a.id,fecha_entrada:entrada||"",meses:mesesPrefill,mensaje:`Me interesa ${nombre}${ciudad?` en ${ciudad}`:""}${hayRango?`, ${rangoLargo(entrada,salida)}`:""}. La he visto en la selecci\xF3n que me hab\xE9is enviado.`})},escribirnos=()=>ctx.openSolicitud({tipo:"Inquilino busca",fecha_entrada:entrada||"",meses:mesesPrefill,mensaje:hayRango?`He recibido vuestra selecci\xF3n para la estancia ${rangoLargo(entrada,salida)} y me gustar\xEDa ver m\xE1s opciones.`:"He recibido vuestra selecci\xF3n y me gustar\xEDa ver m\xE1s opciones."}),rejilla=REJILLA[Math.min(Math.max(n||pedidos.length,1),3)]||REJILLA[3],tarjetas=(0,import_react5.useMemo)(()=>encontradas.map(a=>({a,extras:distintivasDe(a).slice(0,3),aviso:avisoMinimoDe(a,noches),ficha:!!fichaTecnicaDe(a)})),[encontradas,noches]),reserva=(0,import_react5.useMemo)(()=>({ficha:tarjetas.some(t=>t.ficha),extras:tarjetas.some(t=>t.extras.length>0),aviso:tarjetas.some(t=>!!t.aviso),titulo:tarjetas.length>1}),[tarjetas]);return __gh("section",{id:"top",className:"relative bg-white","data-gufi-src":"components/Seleccion.tsx:610"},__gh("div",{className:"max-w-[1240px] mx-auto px-5 sm:px-8 pt-[112px] sm:pt-[140px] pb-14 sm:pb-20","data-gufi-src":"components/Seleccion.tsx:611"},__gh(import_framer_motion3.motion.div,{initial:reduce?!1:{opacity:0,y:14},animate:{opacity:1,y:0},transition:{duration:.6,ease:EASE3},className:"max-w-[760px]"},__gh("span",{className:"block text-[11px] font-semibold uppercase tracking-[0.2em]",style:{color:MUTED},"data-gufi-src":"components/Seleccion.tsx:622"},"Tu selecci\xF3n"),__gh("h1",{className:"text-[31px] sm:text-[44px] font-bold tracking-[-0.035em] mt-4 leading-[1.04]",style:{color:INK,fontFamily:FONT_SERIF},"data-gufi-src":"components/Seleccion.tsx:625"},catalogoCaido?"Tu selecci\xF3n":loading?pedidos.length===1?"La vivienda que te hemos enviado":`Las ${pedidos.length} viviendas que te hemos enviado`:n===0?"Tu selecci\xF3n ya no est\xE1 disponible":n===1?"La vivienda que hemos elegido para ti":`${n} viviendas elegidas para ti`),n>0&&!loading&&__gh("p",{className:"text-[15.5px] mt-4 leading-relaxed",style:{color:BODY},"data-gufi-src":"components/Seleccion.tsx:640"},"Esta es la selecci\xF3n que HostWorkers ha preparado",ciudadComun?` en ${ciudadComun}`:"","."," ",n===1?"Entra para ver sus fotos y el detalle, o pide la visita directamente.":"Entra en cualquiera para ver sus fotos y el detalle, o pide la visita directamente."),hayRango&&__gh("div",{className:"mt-5 inline-flex items-center gap-2.5 h-10 px-4 rounded-full border",style:{borderColor:LINE,background:PAPER2},"data-gufi-src":"components/Seleccion.tsx:648"},__gh(import_lucide_react5.CalendarRange,{size:16,strokeWidth:1.9,style:{color:CLAY}}),__gh("span",{className:"text-[13px] font-semibold tabular-nums",style:{color:INK2},"data-gufi-src":"components/Seleccion.tsx:650"},fCorta(entrada)," \u2192 ",fCorta(salida)),__gh("span",{className:"w-px h-4",style:{background:LINE},"data-gufi-src":"components/Seleccion.tsx:653"}),__gh("span",{className:"text-[12.5px] font-medium tabular-nums",style:{color:MUTED},"data-gufi-src":"components/Seleccion.tsx:654"},noches," ",noches===1?"noche":"noches"))),!loading&&faltan>0&&n>0&&__gh("div",{role:"status",className:"mt-8 rounded-2xl px-4 sm:px-5 py-4 flex items-start gap-3",style:{background:AMBAR_FONDO,border:`1px solid ${AMBAR_LINEA}`},"data-gufi-src":"components/Seleccion.tsx:664"},__gh("div",{className:"min-w-0","data-gufi-src":"components/Seleccion.tsx:669"},__gh("p",{className:"text-[14px] sm:text-[15px] font-semibold",style:{color:AMBAR_TINTA},"data-gufi-src":"components/Seleccion.tsx:670"},faltan===1?`Una de las ${pedidos.length} viviendas de este enlace ya no est\xE1 disponible`:`${faltan} de las ${pedidos.length} viviendas de este enlace ya no est\xE1n disponibles`),__gh("p",{className:"text-[13px] sm:text-[13.5px] leading-relaxed mt-1",style:{color:AMBAR_TINTA},"data-gufi-src":"components/Seleccion.tsx:675"},faltan===1?"Puede que se haya alquilado o que se haya retirado del cat\xE1logo desde que te enviamos el enlace. ":"Puede que se hayan alquilado o que se hayan retirado del cat\xE1logo desde que te enviamos el enlace. ","Te mostramos ",n===1?"la que sigue publicada":`las ${n} que siguen publicadas`," \u2014 y si quer\xEDas algo parecido, escr\xEDbenos y te buscamos opciones."),__gh("button",{type:"button",onClick:escribirnos,className:"mt-3 inline-flex items-center gap-1.5 h-11 px-4 rounded-full border bg-white text-[12.5px] font-semibold transition-colors hover:border-[#D8BE96] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]",style:{color:AMBAR_TINTA,borderColor:AMBAR_LINEA},"data-gufi-src":"components/Seleccion.tsx:684"},__gh(import_lucide_react5.MessageCircle,{size:14,strokeWidth:2})," Escr\xEDbenos"))),!loading&&n===0&&__gh("div",{role:"status",className:"mt-9 rounded-[20px] border px-6 py-8 sm:px-8 sm:py-10 max-w-[720px]",style:{borderColor:catalogoCaido?LINE:AMBAR_LINEA,background:catalogoCaido?PAPER2:AMBAR_FONDO},"data-gufi-src":"components/Seleccion.tsx:700"},__gh("p",{className:"text-[16px] sm:text-[17px] font-bold tracking-[-0.02em]",style:{color:catalogoCaido?INK:AMBAR_TINTA,fontFamily:FONT_SERIF},"data-gufi-src":"components/Seleccion.tsx:705"},catalogoCaido?"No hemos podido cargar las residencias":pedidos.length===1?"Esa vivienda ya no est\xE1 disponible":`Ninguna de las ${pedidos.length} viviendas de este enlace sigue disponible`),__gh("p",{className:"text-[13.5px] sm:text-[14px] leading-relaxed mt-2",style:{color:catalogoCaido?BODY:AMBAR_TINTA},"data-gufi-src":"components/Seleccion.tsx:712"},catalogoCaido?"Recarga la p\xE1gina; si sigue igual, escr\xEDbenos a rumarflats@gmail.com y te las enviamos nosotros.":"Puede que se hayan alquilado o que se hayan retirado del cat\xE1logo desde que te enviamos el enlace. Abajo tienes todas las residencias publicadas, y si nos escribes te buscamos algo parecido."),__gh("div",{className:"flex flex-col sm:flex-row sm:items-center gap-2.5 mt-6","data-gufi-src":"components/Seleccion.tsx:717"},!catalogoCaido&&__gh("button",{type:"button",onClick:()=>scrollToId("viviendas"),className:"inline-flex items-center justify-center gap-2 h-12 px-6 rounded-full text-white text-[13.5px] font-semibold transition-colors hover:bg-[#1B3142] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444] focus-visible:ring-offset-2 focus-visible:ring-offset-white",style:{background:INK},"data-gufi-src":"components/Seleccion.tsx:721"},"Ver todas las residencias ",__gh(import_lucide_react5.ArrowRight,{size:15,strokeWidth:2.2})),__gh("button",{type:"button",onClick:escribirnos,className:"inline-flex items-center justify-center gap-2 h-12 px-6 rounded-full border bg-white text-[13.5px] font-semibold transition-colors hover:border-[#B9C6DA] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444] focus-visible:ring-offset-2 focus-visible:ring-offset-white",style:{color:INK2,borderColor:LINE},"data-gufi-src":"components/Seleccion.tsx:730"},__gh(import_lucide_react5.MessageCircle,{size:15,strokeWidth:2})," Escr\xEDbenos"))),loading?__gh("div",{className:`grid gap-6 sm:gap-7 mt-9 ${rejilla}`,"data-gufi-src":"components/Seleccion.tsx:746"},pedidos.slice(0,3).map(id=>__gh(EsqueletoSel,{key:id}))):n>0?__gh("div",{className:`grid gap-6 sm:gap-7 mt-9 ${rejilla}`,"data-gufi-src":"components/Seleccion.tsx:750"},tarjetas.map(({a,extras,aviso},i)=>__gh(TarjetaSel,{key:a.id,a,i,reduce,dispo:dispoDe(a,ocupacion,ocupacionLista,entrada,salida,noches),extras,estMinAviso:aviso,reserva,onVer:()=>ctx.openDetalle(a),onSolicitar:()=>pedirVisita(a)}))):null,n>0&&!loading&&__gh("div",{className:"mt-12 sm:mt-14 rounded-[20px] border px-6 py-6 sm:px-8 sm:py-7 flex flex-col lg:flex-row lg:items-center lg:justify-between gap-5",style:{borderColor:LINE,background:PAPER2},"data-gufi-src":"components/Seleccion.tsx:770"},__gh("div",{className:"min-w-0","data-gufi-src":"components/Seleccion.tsx:774"},__gh("p",{className:"text-[16px] font-bold tracking-[-0.02em]",style:{color:INK,fontFamily:FONT_SERIF},"data-gufi-src":"components/Seleccion.tsx:775"},"\xBFQuieres ver m\xE1s opciones?"),__gh("p",{className:"text-[13.5px] leading-relaxed mt-1.5",style:{color:BODY},"data-gufi-src":"components/Seleccion.tsx:778"},alo.length>n?`En el cat\xE1logo tienes las ${alo.length} residencias publicadas. Y si prefieres que busquemos nosotros, escr\xEDbenos.`:"Escr\xEDbenos y te buscamos opciones a medida de lo que necesitas.")),__gh("div",{className:"flex flex-col sm:flex-row sm:items-center gap-2.5 shrink-0","data-gufi-src":"components/Seleccion.tsx:784"},__gh("button",{type:"button",onClick:()=>scrollToId("viviendas"),className:"inline-flex items-center justify-center gap-2 h-12 px-6 rounded-full text-white text-[13.5px] font-semibold transition-colors hover:bg-[#1B3142] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444] focus-visible:ring-offset-2 focus-visible:ring-offset-white",style:{background:INK},"data-gufi-src":"components/Seleccion.tsx:785"},"Ver todas las residencias ",__gh(import_lucide_react5.ArrowRight,{size:15,strokeWidth:2.2})),__gh("button",{type:"button",onClick:escribirnos,className:"inline-flex items-center justify-center gap-2 h-12 px-6 rounded-full border bg-white text-[13.5px] font-semibold transition-colors hover:border-[#B9C6DA] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444] focus-visible:ring-offset-2 focus-visible:ring-offset-white",style:{color:INK2,borderColor:LINE},"data-gufi-src":"components/Seleccion.tsx:793"},__gh(import_lucide_react5.MessageCircle,{size:15,strokeWidth:2})," Escr\xEDbenos")))))}var import_react6=require("react"),import_framer_motion4=require("framer-motion"),import_lucide_react6=require("lucide-react"),import_utils3=require("@/shared/lib/utils");var SHADOW_HOVER2="0 2px 4px rgba(20,35,46,0.05), 0 28px 56px -40px rgba(20,35,46,0.42)",SHADOW_BASE="0 1px 2px rgba(20,35,46,0.04)";var txt3=v=>v==null?"":typeof v=="string"?v:typeof v=="number"?Number.isFinite(v)?String(v):"":String(typeof v=="object"?v.name??v.label??v.value??v.title??v.text??"":v),rentaLabel=a=>{let v=mensualidadDe(a);return Number.isFinite(v)&&v>0?fmtEur(v):"Consultar"};var fechaLibre=ymd=>{let p=String(ymd||"").slice(0,10).split("-");if(p.length!==3)return"";let y=Number(p[0]),m=Number(p[1]),d=Number(p[2]);if(!y||!m||!d)return"";let f=new Date(y,m-1,d,12,0,0);if(!Number.isFinite(f.getTime()))return"";let base=f.toLocaleDateString("es-ES",{day:"numeric",month:"short"});return y===new Date().getFullYear()?base:`${base} ${y}`};function ViviendaCard({a,href,onClick,ocupada,libreDesde}){let nombre=txt3(a?.nombre)||"Residencia",ciudad=txt3(a?.ciudad),tipo=txt3(a?.tipo)||"Residencia",foto=typeof a?.foto=="string"?a.foto:"",ficha=[{v:num(a?.habitaciones),uno:"dormitorio",varios:"dormitorios"},{v:num(a?.banos),uno:"ba\xF1o",varios:"ba\xF1os"},{v:num(a?.capacidad),uno:"hu\xE9sped",varios:"hu\xE9spedes"}].filter(m=>m.v>0).map(m=>`${m.v} ${m.v===1?m.uno:m.varios}`).join(" \xB7 "),fl=fechaLibre(libreDesde),libreTxt=fl?`Libre el ${fl}`:"Ocupada",situacion=ciudad&&tipo?`${tipo} en ${ciudad}`:tipo||ciudad;return __gh("a",{href:href||void 0,onClick:e=>{e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0||(e.preventDefault(),onClick?.())},"aria-label":`Ver residencia ${nombre}${ciudad?` en ${ciudad}`:""}${ocupada?` \xB7 ${libreTxt}`:""}`,className:"group flex flex-col w-full h-full text-left bg-white rounded-[20px] overflow-hidden border transition-[box-shadow,border-color] duration-300 hover:border-[#C9D3E2] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444] focus-visible:ring-offset-2 focus-visible:ring-offset-white cursor-pointer",style:{borderColor:LINE,boxShadow:SHADOW_BASE},onMouseEnter:e=>{e.currentTarget.style.boxShadow=SHADOW_HOVER2},onMouseLeave:e=>{e.currentTarget.style.boxShadow=SHADOW_BASE},"data-gufi-src":"components/Viviendas.tsx:242"},__gh("div",{className:"relative shrink-0 aspect-[4/3] overflow-hidden bg-[#E8EEF6]","data-gufi-src":"components/Viviendas.tsx:260"},foto?__gh("img",{src:foto,alt:nombre,loading:"lazy",decoding:"async",className:"w-full h-full object-cover","data-gufi-src":"components/Viviendas.tsx:262"}):__gh("div",{className:"w-full h-full flex flex-col items-center justify-center gap-2",style:{color:"#AFBBCC"},"data-gufi-src":"components/Viviendas.tsx:272"},__gh(import_lucide_react6.Building2,{size:28,strokeWidth:1.5}),__gh("span",{className:"text-[11px] font-medium tracking-[0.04em]","data-gufi-src":"components/Viviendas.tsx:274"},"Foto en camino")),ocupada&&__gh(__gf,null,__gh("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 h-20",style:{background:"linear-gradient(180deg, rgba(20,35,46,0.24) 0%, rgba(20,35,46,0) 100%)"},"data-gufi-src":"components/Viviendas.tsx:288"}),__gh("span",{className:"absolute top-3.5 left-3.5 z-10 inline-flex items-center rounded-full px-3 py-[6px] text-[11.5px] font-semibold",style:{background:"rgba(20,35,46,0.92)",color:"#fff"},"data-gufi-src":"components/Viviendas.tsx:293"},libreTxt))),__gh("div",{className:"flex flex-col flex-1 p-5 sm:p-[22px]","data-gufi-src":"components/Viviendas.tsx:304"},__gh("p",{className:"text-[12.5px] font-medium truncate",style:{color:MUTED},"data-gufi-src":"components/Viviendas.tsx:306"},situacion),__gh("h3",{className:"mt-2 text-[18.5px] sm:text-[19.5px] sm:min-h-[2.75em] font-bold tracking-[-0.02em] leading-snug line-clamp-2",style:{color:INK,fontFamily:FONT_SERIF},"data-gufi-src":"components/Viviendas.tsx:315"},nombre),__gh("p",{className:"mt-2 text-[12.5px] sm:min-h-[1.3em] font-medium truncate tabular-nums",style:{color:BODY},"data-gufi-src":"components/Viviendas.tsx:325"},ficha),__gh("div",{"aria-hidden":!0,className:"flex-1 min-h-[18px]","data-gufi-src":"components/Viviendas.tsx:331"}),__gh("div",{className:"flex items-end justify-between gap-3 pt-[18px] border-t",style:{borderColor:LINE2},"data-gufi-src":"components/Viviendas.tsx:334"},__gh("span",{className:"block min-w-0","data-gufi-src":"components/Viviendas.tsx:335"},__gh("span",{className:"block text-[22px] font-bold tracking-[-0.025em] leading-none truncate tabular-nums",style:{color:INK2,fontFamily:FONT_SERIF},"data-gufi-src":"components/Viviendas.tsx:336"},rentaLabel(a),__gh("span",{className:"text-[12.5px] font-semibold ml-0.5",style:{color:MUTED},"data-gufi-src":"components/Viviendas.tsx:338"},"/mes")),ivaNota(a)&&__gh("span",{className:"block text-[11px] font-medium mt-1.5",style:{color:MUTED},"data-gufi-src":"components/Viviendas.tsx:340"},ivaNota(a))),__gh(import_lucide_react6.ArrowRight,{size:18,strokeWidth:2,"aria-hidden":!0,className:"shrink-0 mb-0.5 transition-transform duration-300 group-hover:translate-x-1",style:{color:MUTED}}))))}function OtrosPisos({ctx,actual,max=3}){let todos=ctx?.alojamientos||[],idActual=actual?.id,keyActual=ciudadKey(txt3(actual?.ciudad)),otros=todos.filter(a=>a&&a.id!==idActual),mismaZona=keyActual?otros.filter(a=>ciudadKey(txt3(a?.ciudad))===keyActual):[],vistos=new Set,lista=[];for(let a of[...mismaZona,...otros])if(!vistos.has(a.id)&&(vistos.add(a.id),lista.push(a),lista.length>=max))break;if(!lista.length)return null;let hayVecinos=mismaZona.length>0,zona=etiquetaCiudad([...mismaZona.map(a=>txt3(a?.ciudad)),txt3(actual?.ciudad)]);return __gh("section",{"aria-label":"Otros pisos",className:"px-5 sm:px-8 pt-12 pb-14 sm:pt-16 sm:pb-20",style:{background:PAPER2},"data-gufi-src":"components/Viviendas.tsx:864"},__gh("div",{className:"max-w-[1180px] mx-auto","data-gufi-src":"components/Viviendas.tsx:865"},__gh("h2",{className:"text-[22px] sm:text-[26px] font-bold tracking-[-0.02em]",style:{fontFamily:FONT_SERIF,color:INK},"data-gufi-src":"components/Viviendas.tsx:866"},hayVecinos&&zona?`M\xE1s residencias en ${zona}`:"Otras residencias disponibles"),__gh("p",{className:"mt-1.5 text-[13.5px] sm:text-[14px]",style:{color:MUTED},"data-gufi-src":"components/Viviendas.tsx:869"},hayVecinos&&zona?"Por si esta no encaja: lo mismo, en la misma zona.":"En esta zona no hay m\xE1s ahora mismo, as\xED que te ense\xF1amos otras."),__gh("div",{className:"mt-6 sm:mt-7 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5 sm:gap-6","data-gufi-src":"components/Viviendas.tsx:874"},lista.map(a=>__gh(ViviendaCard,{key:a.id,a,href:ctx?.enlaceFicha?.(a),onClick:()=>ctx.openDetalle(a),ocupada:ocupadaHoyDe(a,ctx?.ocupacion),libreDesde:libreDesdeDe(a,ctx?.ocupacion)})))))}var import_framer_motion5=require("framer-motion"),import_lucide_react7=require("lucide-react");var EASE4=[.22,.61,.36,1],TEL="+34698771205",TEL_TXT="698 771 205",MAILTO="rumarflats@gmail.com",WA="https://wa.me/34698771205";function WhatsAppIcon({size=16}){return __gh("svg",{width:size,height:size,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":!0,focusable:"false","data-gufi-src":"components/Footer.tsx:29"},__gh("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51l-.57-.01c-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.71.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z","data-gufi-src":"components/Footer.tsx:30"}))}var HEAD="text-[12px] font-semibold tracking-[-0.005em] mb-4",HEAD_DIM={color:"rgba(255,255,255,0.54)"},linkCls="block w-full text-left text-[14px] py-[7px] min-h-[44px] transition-colors duration-300 hover:text-white focus-visible:outline-none focus-visible:text-white",contactCls="flex items-center gap-2.5 text-[14px] py-[7px] min-h-[44px] transition-colors hover:text-white focus-visible:outline-none focus-visible:text-white",dim={color:"rgba(255,255,255,0.62)"},iconDim={color:"rgba(255,255,255,0.4)"};function Footer({ctx}){let explora=[["Residencias",()=>ctx?.irABuscar?ctx.irABuscar():scrollToId("top")],["Contactar",()=>ctx.openSolicitud({tipo:"Consulta general"})],["Portal cliente",()=>ctx.openPortal()]],compania=[["Publicar vivienda",()=>ctx.openSolicitud({tipo:"Propietario ofrece"})],["\xC1rea privada",()=>ctx.openPortal()]],social=[{href:WA,label:"WhatsApp",el:__gh(WhatsAppIcon,{size:16}),ext:!0},{href:`mailto:${MAILTO}`,label:"Escr\xEDbenos por email",el:__gh(import_lucide_react7.Mail,{size:16}),ext:!1},{href:`tel:${TEL}`,label:"Ll\xE1manos",el:__gh(import_lucide_react7.Phone,{size:16}),ext:!1}];return __gh("footer",{className:"relative overflow-hidden",style:{background:INK2,color:"rgba(255,255,255,0.62)"},"data-gufi-src":"components/Footer.tsx:82"},__gh("div",{"aria-hidden":!0,className:"w-full h-px",style:{background:"rgba(255,255,255,0.14)"},"data-gufi-src":"components/Footer.tsx:87"}),__gh(import_framer_motion5.motion.div,{initial:{opacity:0,y:8},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-80px"},transition:{duration:.6,ease:EASE4},className:"relative max-w-[1240px] mx-auto px-5 sm:px-8 py-16 sm:py-20"},__gh("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-[1.6fr_1fr_1fr_1.4fr] gap-y-12 gap-x-8 md:gap-x-10","data-gufi-src":"components/Footer.tsx:96"},__gh("div",{className:"sm:col-span-2 md:col-span-1","data-gufi-src":"components/Footer.tsx:98"},__gh(Wordmark,{dark:!0}),__gh("p",{className:"text-[14px] leading-relaxed mt-5 max-w-[300px]",style:{color:"rgba(255,255,255,0.58)"},"data-gufi-src":"components/Footer.tsx:100"},"Alquiler de temporada gestionado de principio a fin. Residencias verificadas en A Coru\xF1a y toda Galicia."),__gh("button",{onClick:()=>{try{window.scrollTo({top:0,behavior:"smooth"})}catch{window.scrollTo(0,0)}},className:"group mt-7 inline-flex items-center gap-2 h-[44px] pl-4 pr-3.5 rounded-full text-[12.5px] font-semibold text-white/80 border border-white/18 transition-colors hover:text-white hover:border-white/45 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/50","data-gufi-src":"components/Footer.tsx:103"},"Volver arriba",__gh(import_lucide_react7.ArrowUp,{size:14,strokeWidth:2.2,className:"transition-transform duration-300 group-hover:-translate-y-0.5"}))),__gh("nav",{"aria-label":"Explora","data-gufi-src":"components/Footer.tsx:115"},__gh("div",{className:HEAD,style:HEAD_DIM,"data-gufi-src":"components/Footer.tsx:116"},"Explora"),explora.map(([l,fn])=>__gh("button",{key:l,onClick:fn,className:linkCls,style:dim,"data-gufi-src":"components/Footer.tsx:118"},l))),__gh("nav",{"aria-label":"Compa\xF1\xEDa","data-gufi-src":"components/Footer.tsx:125"},__gh("div",{className:HEAD,style:HEAD_DIM,"data-gufi-src":"components/Footer.tsx:126"},"Compa\xF1\xEDa"),compania.map(([l,fn])=>__gh("button",{key:l,onClick:fn,className:linkCls,style:dim,"data-gufi-src":"components/Footer.tsx:128"},l))),__gh("div",{"data-gufi-src":"components/Footer.tsx:135"},__gh("div",{className:HEAD,style:HEAD_DIM,"data-gufi-src":"components/Footer.tsx:136"},"Contacto"),__gh("a",{href:`tel:${TEL}`,className:contactCls,style:dim,"data-gufi-src":"components/Footer.tsx:137"},__gh(import_lucide_react7.Phone,{size:14,className:"shrink-0",style:iconDim})," ",TEL_TXT),__gh("a",{href:`mailto:${MAILTO}`,className:contactCls,style:dim,"data-gufi-src":"components/Footer.tsx:140"},__gh(import_lucide_react7.Mail,{size:14,className:"shrink-0",style:iconDim})," ",MAILTO),__gh("span",{className:"flex items-center gap-2.5 text-[14px] py-[7px] min-h-[44px]",style:dim,"data-gufi-src":"components/Footer.tsx:143"},__gh(import_lucide_react7.MapPin,{size:14,className:"shrink-0",style:iconDim})," A Coru\xF1a \xB7 Oleiros \xB7 Culleredo"),__gh("button",{onClick:()=>ctx.openSolicitud({tipo:"Consulta general"}),className:"group mt-5 inline-flex items-center gap-2 h-[46px] px-5 rounded-full text-[13.5px] font-bold text-white border border-white/35 hover:bg-white/10 hover:border-white/60 transition-colors duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/70","data-gufi-src":"components/Footer.tsx:146"},"Escr\xEDbenos ",__gh(import_lucide_react7.ArrowRight,{size:15,className:"transition-transform duration-300 group-hover:translate-x-1"})))),__gh("div",{className:"mt-14 pt-7 border-t flex flex-col-reverse sm:flex-row items-center sm:justify-between gap-6",style:{borderColor:"rgba(255,255,255,0.12)"},"data-gufi-src":"components/Footer.tsx:160"},__gh("div",{className:"flex flex-col sm:flex-row items-center gap-x-4 gap-y-2 text-[12.5px] text-center sm:text-left",style:{color:"rgba(255,255,255,0.54)"},"data-gufi-src":"components/Footer.tsx:169"},__gh("span",{"data-gufi-src":"components/Footer.tsx:173"},"\xA9 2026 HostWorkers. Todos los derechos reservados."),__gh("span",{"aria-hidden":!0,className:"hidden sm:inline w-px h-3",style:{background:"rgba(255,255,255,0.18)"},"data-gufi-src":"components/Footer.tsx:174"}),__gh("span",{className:"flex items-center gap-5","data-gufi-src":"components/Footer.tsx:186"},__gh("a",{href:"?legal=aviso",onClick:e=>{e.preventDefault(),ctx?.openLegal?.("aviso")},className:"inline-flex items-center min-h-[44px] transition-colors hover:text-white","data-gufi-src":"components/Footer.tsx:187"},"Aviso legal"),__gh("a",{href:"?legal=privacidad",onClick:e=>{e.preventDefault(),ctx?.openLegal?.("privacidad")},className:"inline-flex items-center min-h-[44px] transition-colors hover:text-white","data-gufi-src":"components/Footer.tsx:194"},"Privacidad"))),__gh("div",{className:"flex items-center gap-2.5","data-gufi-src":"components/Footer.tsx:205"},social.map(s=>__gh("a",{key:s.label,href:s.href,...s.ext?{target:"_blank",rel:"noopener noreferrer"}:{},"aria-label":s.label,className:"inline-flex items-center justify-center w-11 h-11 rounded-full border text-white/70 transition-colors duration-300 hover:text-white hover:border-white/45 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/60",style:{borderColor:"rgba(255,255,255,0.16)"},"data-gufi-src":"components/Footer.tsx:207"},s.el))))))}var import_react10=require("react"),import_framer_motion7=require("framer-motion"),import_lucide_react10=require("lucide-react");var import_react7=require("react"),import_framer_motion6=require("framer-motion"),import_lucide_react8=require("lucide-react");var EASE5=[.22,.61,.36,1],RING_ERR="rgba(234,104,46,0.55)",ANILLO_FOCO=`inset 0 0 0 1.5px ${INK}, inset 0 0 0 4.5px rgba(30,52,68,0.10)`,ANILLO_TECLA="0 0 0 3px rgba(30,52,68,0.22)",EMAIL_RE=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,cleanTel=s=>s.replace(/[^\d+]/g,"");function computeErrors(f){let errs={},nombre=(f.nombre||"").trim(),email=(f.email||"").trim(),tel=(f.telefono||"").trim();return nombre?nombre.length<2&&(errs.nombre="Nombre demasiado corto"):errs.nombre="Indica tu nombre",email&&!EMAIL_RE.test(email)&&(errs.email="Revisa el email"),tel&&cleanTel(tel).replace("+","").length<7&&(errs.telefono="Revisa el tel\xE9fono"),!email&&!tel&&(errs.contacto="D\xE9janos un email o un tel\xE9fono"),f.consent||(errs.consent="Necesitamos tu consentimiento para poder contactarte"),errs}var GRUPO={display:"grid",gap:1,background:LINE2,border:`1px solid ${LINE}`,borderRadius:14,overflow:"hidden",boxShadow:"0 1px 2px rgba(20,36,47,0.035)"},FILA={display:"grid",gap:1,background:LINE2,minWidth:0},CELDA={position:"relative",minWidth:0,background:"#FFFFFF",padding:"9px 14px 9px"},ETIQUETA={display:"block",fontSize:11,fontWeight:600,lineHeight:"11px",marginBottom:6},VALOR={width:"100%",minWidth:0,height:24,lineHeight:"24px",fontSize:16,fontWeight:500,color:INK2,background:"transparent",border:0,padding:0,margin:0,outline:"none"},SELECT_CUBRE={position:"absolute",inset:0,width:"100%",height:"100%",opacity:0,cursor:"pointer",margin:0,padding:0,border:0,background:"transparent",fontSize:16,WebkitAppearance:"none",appearance:"none"};function Celda({label,htmlFor,bad,children}){let[foc,setFoc]=(0,import_react7.useState)(!1);return __gh("label",{htmlFor,onFocusCapture:()=>setFoc(!0),onBlurCapture:()=>setFoc(!1),className:"transition-shadow duration-200",style:{...CELDA,cursor:"text",boxShadow:foc?ANILLO_FOCO:bad?`inset 0 0 0 1.5px ${RING_ERR}`:"none",zIndex:foc?2:bad?1:void 0},"data-gufi-src":"components/Form.tsx:123"},__gh("span",{style:{...ETIQUETA,color:foc?INK:MUTED},"data-gufi-src":"components/Form.tsx:135"},label),children)}var ErrorMsg=({id,show,children})=>__gh(import_framer_motion6.AnimatePresence,{initial:!1},show&&__gh(import_framer_motion6.motion.p,{id,role:"alert",initial:{opacity:0,height:0,y:-2},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-2},transition:{duration:.22,ease:EASE5},className:"flex items-center",style:{fontSize:12,fontWeight:500,color:RED,marginTop:8,gap:6}},__gh(import_lucide_react8.AlertCircle,{size:12.5,strokeWidth:2.2,className:"shrink-0"})," ",children)),PERFILES=[{v:"Inquilino busca",label:"Busco vivienda"},{v:"Propietario ofrece",label:"Soy propietario"}],prefiereCalma=()=>{try{return!!(window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)}catch{return!1}},esTeclado=e=>{try{return!!e.target.matches(":focus-visible")}catch{return!1}};function SolicitudForm({ctx,prefill,compact,onTipo,onDone,onExito}){let[f,setF]=(0,import_react7.useState)({nombre:"",email:"",telefono:"",tipo:prefill?.tipo||"Inquilino busca",vivienda_id:prefill?.vivienda_id||"",fecha_entrada:prefill?.fecha_entrada||"",meses:prefill?.meses||"",mensaje:prefill?.mensaje||"",consent:!1}),[busy,setBusy]=(0,import_react7.useState)(!1),[ok,setOk]=(0,import_react7.useState)(!1),[touched,setTouched]=(0,import_react7.useState)({}),[tried,setTried]=(0,import_react7.useState)(!1),[envioErr,setEnvioErr]=(0,import_react7.useState)(""),[foco,setFoco]=(0,import_react7.useState)(""),[calma]=(0,import_react7.useState)(prefiereCalma),set=(k,v)=>setF(p=>({...p,[k]:v})),touch=k=>setTouched(t=>({...t,[k]:!0})),anillo=k=>foco===k?ANILLO_TECLA:void 0,onFoco=k=>e=>{esTeclado(e)&&setFoco(k)},sinFoco=()=>setFoco(""),nombreRef=(0,import_react7.useRef)(null),emailRef=(0,import_react7.useRef)(null),telRef=(0,import_react7.useRef)(null),consentRef=(0,import_react7.useRef)(null),cerrarRef=(0,import_react7.useRef)(null),errs=(0,import_react7.useMemo)(()=>computeErrors(f),[f]),showErr=k=>(touched[k]||tried)&&!!errs[k],showContacto=(touched.email||touched.telefono||tried)&&!!errs.contacto,errContacto=showContacto||showErr("email")||showErr("telefono"),viv=(0,import_react7.useMemo)(()=>{let id=prefill?.vivienda_id;return id&&(ctx.alojamientos||[]).find(a=>String(a.id)===String(id))||null},[prefill?.vivienda_id,ctx.alojamientos]);(0,import_react7.useEffect)(()=>{if(!ok)return;let t=window.setTimeout(()=>cerrarRef.current?.focus(),80);return()=>window.clearTimeout(t)},[ok]);let elegirPerfil=v=>{set("tipo",v),typeof onTipo=="function"&&onTipo(v)},enviandoRef=(0,import_react7.useRef)(!1),enviar=async()=>{if(enviandoRef.current)return;setTried(!0),setEnvioErr("");let e=computeErrors(f);if(e.nombre||e.email||e.telefono||e.contacto||e.consent){e.nombre?nombreRef.current?.focus():e.email||e.contacto?emailRef.current?.focus():e.telefono?telRef.current?.focus():e.consent&&consentRef.current?.focus();return}enviandoRef.current=!0,setBusy(!0);try{await ctx.enviarSolicitud({nombre:f.nombre.trim(),email:f.email.trim(),telefono:f.telefono.trim(),tipo:f.tipo,vivienda_id:prefill?.vivienda_id||f.vivienda_id||void 0,fecha_entrada:f.fecha_entrada||void 0,meses:f.meses||void 0,mensaje:f.mensaje.trim()}),setOk(!0),typeof onExito=="function"&&onExito(!0)}catch(err){let m=err?.message||"No se pudo enviar. Revisa tu conexi\xF3n e int\xE9ntalo de nuevo.";setEnvioErr(m),uiToast(m)}finally{enviandoRef.current=!1,setBusy(!1)}};if(ok)return __gh(import_framer_motion6.motion.div,{initial:calma?{opacity:0}:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.36,ease:EASE5},className:"text-center",style:{paddingTop:16,paddingBottom:6}},__gh(import_framer_motion6.motion.svg,{viewBox:"0 0 48 48",width:46,height:46,"aria-hidden":!0,className:"block",style:{margin:"0 auto"},initial:calma?{opacity:0}:{opacity:0,scale:.88},animate:{opacity:1,scale:1},transition:calma?{duration:.2}:{delay:.06,type:"spring",stiffness:260,damping:20}},__gh("circle",{cx:"24",cy:"24",r:"22.5",fill:"none",stroke:INK,strokeWidth:"1.25","data-gufi-src":"components/Form.tsx:305"}),__gh("path",{d:"M15.8 24.6 L21.4 30.2 L32.4 18.6",fill:"none",stroke:INK,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","data-gufi-src":"components/Form.tsx:306"})),__gh("h3",{style:{fontSize:20,fontWeight:700,letterSpacing:"-0.02em",color:INK2,marginTop:20},"data-gufi-src":"components/Form.tsx:309"},"Solicitud enviada"),__gh("p",{style:{fontSize:13.5,lineHeight:1.55,color:BODY,marginTop:10,maxWidth:330,marginLeft:"auto",marginRight:"auto"},"data-gufi-src":"components/Form.tsx:312"},"Gracias",f.nombre?`, ${f.nombre.split(" ")[0]}`:"",". Un asesor de HostWorkers revisar\xE1 tu",viv?` inter\xE9s en ${viv.nombre}`:" solicitud"," y se pondr\xE1 en contacto contigo personalmente."),__gh("p",{style:{fontSize:12,color:MUTED,marginTop:12},"data-gufi-src":"components/Form.tsx:316"},"Respuesta habitual en menos de 24 h"),typeof onDone=="function"&&__gh("button",{ref:cerrarRef,type:"button",onClick:()=>onDone(),onFocus:onFoco("cerrar"),onBlur:sinFoco,className:"w-full transition-colors duration-200 hover:bg-[#F4F7FB]",style:{marginTop:28,height:46,borderRadius:12,fontSize:14,fontWeight:600,color:INK2,background:"#FFFFFF",border:`1px solid ${LINE}`,boxShadow:anillo("cerrar"),outline:"none",cursor:"pointer"},"data-gufi-src":"components/Form.tsx:321"},"Cerrar"));let esProp=f.tipo==="Propietario ofrece";return __gh("form",{noValidate:!0,onSubmit:e=>{e.preventDefault(),enviar()},style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr)",gap:compact?14:17},"data-gufi-src":"components/Form.tsx:347"},viv&&!compact&&__gh(import_framer_motion6.motion.div,{initial:calma?{opacity:0}:{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.32,ease:EASE5},className:"flex items-center",style:{gap:12,minWidth:0,background:PAPER2,border:`1px solid ${LINE}`,borderRadius:13,padding:10,paddingRight:16}},viv.foto?__gh("img",{src:viv.foto,alt:viv.nombre||"Residencia",className:"shrink-0",style:{width:52,height:52,borderRadius:10,objectFit:"cover"},"data-gufi-src":"components/Form.tsx:365"}):__gh("div",{className:"shrink-0",style:{width:52,height:52,borderRadius:10,background:"#E8EEF6"},"data-gufi-src":"components/Form.tsx:366"}),__gh("div",{style:{minWidth:0},"data-gufi-src":"components/Form.tsx:367"},__gh("div",{className:"truncate",style:{fontSize:14,fontWeight:600,color:INK2},"data-gufi-src":"components/Form.tsx:368"},viv.nombre),__gh("div",{className:"truncate",style:{fontSize:12.5,color:MUTED,marginTop:3},"data-gufi-src":"components/Form.tsx:369"},viv.ciudad,mensualidadDe(viv)?` \xB7 desde ${fmtEur(mensualidadDe(viv))}/mes`:""))),!prefill?.vivienda_id&&__gh("div",{"data-gufi-src":"components/Form.tsx:381"},__gh("div",{style:{fontSize:11.5,fontWeight:600,color:BODY,marginBottom:8},"data-gufi-src":"components/Form.tsx:382"},"\xBFQu\xE9 te trae por aqu\xED?"),__gh("div",{role:"radiogroup","aria-label":"Qu\xE9 te trae por aqu\xED",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},"data-gufi-src":"components/Form.tsx:385"},PERFILES.map(p=>{let on=p.v==="Propietario ofrece"?esProp:!esProp;return __gh("button",{key:p.v,type:"button",role:"radio","aria-checked":on,onClick:()=>elegirPerfil(p.v),onFocus:onFoco(p.v),onBlur:sinFoco,className:"flex items-center justify-center text-center transition-colors duration-200",style:{height:46,borderRadius:11,padding:"0 8px",cursor:"pointer",outline:"none",fontSize:"clamp(12.5px, 3.4vw, 13px)",fontWeight:600,color:on?INK2:BODY,background:on?"#FFFFFF":PAPER2,border:on?`1.5px solid ${INK}`:`1px solid ${LINE}`,boxShadow:anillo(p.v)},"data-gufi-src":"components/Form.tsx:389"},p.label)}))),__gh("div",{"data-gufi-src":"components/Form.tsx:416"},__gh("div",{style:GRUPO,"data-gufi-src":"components/Form.tsx:417"},__gh(Celda,{label:"Nombre y apellidos",htmlFor:"sf-nombre",bad:showErr("nombre")},__gh("input",{id:"sf-nombre",ref:nombreRef,style:VALOR,className:"placeholder:text-gray-400",autoComplete:"name","aria-required":!0,value:f.nombre,"aria-invalid":showErr("nombre"),"aria-describedby":"sf-nombre-err",onChange:e=>set("nombre",e.target.value),onBlur:()=>touch("nombre"),"data-gufi-src":"components/Form.tsx:419"})),__gh("div",{className:"sm:grid-cols-2",style:FILA,"data-gufi-src":"components/Form.tsx:434"},__gh(Celda,{label:"Email",htmlFor:"sf-email",bad:showErr("email")||showContacto},__gh("input",{id:"sf-email",ref:emailRef,style:VALOR,className:"placeholder:text-gray-400",type:"email",inputMode:"email",autoComplete:"email",value:f.email,"aria-invalid":showErr("email")||showContacto,"aria-describedby":"sf-contacto-err",onChange:e=>set("email",e.target.value),onBlur:()=>touch("email"),"data-gufi-src":"components/Form.tsx:436"})),__gh(Celda,{label:"Tel\xE9fono",htmlFor:"sf-telefono",bad:showErr("telefono")||showContacto},__gh("input",{id:"sf-telefono",ref:telRef,style:VALOR,className:"placeholder:text-gray-400",type:"tel",inputMode:"tel",autoComplete:"tel",value:f.telefono,"aria-invalid":showErr("telefono")||showContacto,"aria-describedby":"sf-contacto-err",onChange:e=>set("telefono",e.target.value),onBlur:()=>touch("telefono"),"data-gufi-src":"components/Form.tsx:452"})))),__gh(ErrorMsg,{id:"sf-nombre-err",show:showErr("nombre")},errs.nombre),__gh(ErrorMsg,{id:"sf-contacto-err",show:errContacto},errs.contacto||errs.email||errs.telefono),!showErr("nombre")&&!errContacto&&__gh("p",{style:{fontSize:11.5,color:MUTED,marginTop:8},"data-gufi-src":"components/Form.tsx:474"},"Con un email o un tel\xE9fono nos basta.")),__gh(import_framer_motion6.AnimatePresence,{initial:!1},!esProp&&__gh(import_framer_motion6.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.3,ease:EASE5},className:"overflow-hidden"},__gh("div",{className:"sm:grid-cols-2",style:GRUPO,"data-gufi-src":"components/Form.tsx:492"},__gh(Celda,{label:"Entrada",htmlFor:"sf-fecha"},__gh("input",{id:"sf-fecha",type:"date",className:"cursor-pointer",style:{...VALOR,colorScheme:"light",color:f.fecha_entrada?INK2:FAINT},value:f.fecha_entrada,onChange:e=>set("fecha_entrada",e.target.value),onClick:e=>{try{e.currentTarget.showPicker?.()}catch{}},"data-gufi-src":"components/Form.tsx:494"})),__gh(Celda,{label:"Estancia",htmlFor:"sf-meses"},__gh("span",{"aria-hidden":!0,style:{...VALOR,paddingRight:22,color:f.meses?INK2:FAINT,display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"data-gufi-src":"components/Form.tsx:507"},f.meses?`${f.meses} ${Number(f.meses)===1?"mes":"meses"}`:"Indiferente"),__gh("select",{id:"sf-meses",className:"cursor-pointer",style:SELECT_CUBRE,value:f.meses,onChange:e=>set("meses",e.target.value),"data-gufi-src":"components/Form.tsx:513"},__gh("option",{value:"","data-gufi-src":"components/Form.tsx:520"},"Indiferente"),[1,2,3,6,9,12].map(m=>__gh("option",{key:m,value:m,"data-gufi-src":"components/Form.tsx:521"},m," ",m===1?"mes":"meses"))),__gh(import_lucide_react8.ChevronDown,{size:15,className:"absolute pointer-events-none",style:{right:14,bottom:14,color:FAINT}}))))),__gh("div",{style:GRUPO,"data-gufi-src":"components/Form.tsx:536"},__gh(Celda,{label:esProp?"Sobre tu vivienda":viv?"Para la visita":"Qu\xE9 est\xE1s buscando",htmlFor:"sf-mensaje"},__gh("textarea",{id:"sf-mensaje",rows:compact?2:3,className:"resize-none placeholder:text-gray-400",style:{...VALOR,height:"auto",lineHeight:1.45,resize:"none",paddingBottom:2},placeholder:esProp?"Zona, tipo de vivienda, disponibilidad\u2026":viv?"D\xEDas y horas que te vengan bien, o cualquier duda\u2026":"Zona, presupuesto, n\xBA de habitaciones\u2026",value:f.mensaje,onChange:e=>set("mensaje",e.target.value),"data-gufi-src":"components/Form.tsx:538"}))),__gh("div",{"data-gufi-src":"components/Form.tsx:557"},__gh("label",{className:"flex items-start cursor-pointer select-none",style:{gap:12,minWidth:0},"data-gufi-src":"components/Form.tsx:558"},__gh("span",{className:"relative shrink-0",style:{width:19,height:19,marginTop:1},"data-gufi-src":"components/Form.tsx:559"},__gh("input",{ref:consentRef,type:"checkbox",checked:!!f.consent,onChange:e=>set("consent",e.target.checked),onFocus:onFoco("consent"),onBlur:sinFoco,"aria-invalid":showErr("consent")||void 0,"aria-describedby":"sf-consent-err",className:"appearance-none cursor-pointer transition-all duration-200",style:{appearance:"none",WebkitAppearance:"none",width:19,height:19,margin:0,borderRadius:6,outline:"none",background:f.consent?INK:"#FFFFFF",border:`1px solid ${f.consent?INK:showErr("consent")?RING_ERR:"#CFD8E4"}`,boxShadow:anillo("consent")},"data-gufi-src":"components/Form.tsx:560"}),f.consent&&__gh(import_lucide_react8.Check,{size:12,strokeWidth:3,color:"#FFFFFF",className:"absolute pointer-events-none",style:{left:3,top:3}})),__gh("span",{style:{fontSize:11.5,lineHeight:1.55,color:MUTED},"data-gufi-src":"components/Form.tsx:581"},"Acepto que ",__gh("b",{style:{fontWeight:600,color:BODY},"data-gufi-src":"components/Form.tsx:582"},"Rumar Flats, S.L.")," (HostWorkers) trate mis datos para responder a esta solicitud. No se ceden a terceros. Puedes ejercer tus derechos en"," ",__gh("a",{href:"mailto:rumarflats@gmail.com",className:"underline",style:{color:"inherit"},"data-gufi-src":"components/Form.tsx:585"},"rumarflats@gmail.com")," \xB7 ",__gh("a",{href:"?legal=privacidad",onClick:e=>{e.preventDefault(),ctx?.openLegal?.("privacidad")},className:"underline",style:{color:"inherit"},"data-gufi-src":"components/Form.tsx:586"},"Pol\xEDtica de privacidad"),".")),__gh(ErrorMsg,{id:"sf-consent-err",show:showErr("consent")},errs.consent)),__gh("div",{"data-gufi-src":"components/Form.tsx:598"},__gh(import_framer_motion6.motion.button,{type:"submit",disabled:busy,transition:{duration:.16,ease:EASE5},"aria-busy":busy,onFocus:onFoco("enviar"),onBlur:sinFoco,className:"w-full flex items-center justify-center transition-colors duration-200 hover:bg-[#CF5A26] active:bg-[#CF5A26] disabled:pointer-events-none",style:{height:52,borderRadius:12,gap:8,cursor:"pointer",outline:"none",border:0,fontSize:16,fontWeight:600,color:"#FFFFFF",background:RED,opacity:busy?.7:1,boxShadow:foco==="enviar"?"0 0 0 3px rgba(234,104,46,0.35)":"0 1px 2px rgba(20,36,47,0.10)"}},busy?__gh(__gf,null,__gh(import_lucide_react8.Loader2,{size:16,className:"animate-spin"})," Enviando\u2026"):"Enviar solicitud"),envioErr&&__gh("p",{role:"alert",className:"text-center",style:{fontSize:12.5,fontWeight:600,color:RED,marginTop:12},"data-gufi-src":"components/Form.tsx:620"},envioErr),__gh("p",{className:"text-center",style:{fontSize:11.5,color:MUTED,marginTop:12},"data-gufi-src":"components/Form.tsx:625"},"Sin compromiso \xB7 un asesor te responde personalmente")))}var import_react8=require("react"),import_lucide_react9=require("lucide-react");var SPAN_PRIMERA={1:"col-span-4 row-span-2",2:"col-span-2 row-span-2",3:"col-span-2 row-span-2",4:"col-span-2 row-span-2"},SPAN_RESTO={2:"col-span-2 row-span-2",3:"col-span-2 row-span-1",4:"col-span-2 row-span-1"};function Mosaico({fotos,nombre,onAbrir,onRota}){let n=fotos.length,primera=SPAN_PRIMERA[n]||"col-span-2 row-span-2",resto=()=>n>=5?"col-span-1 row-span-1":SPAN_RESTO[n]||"col-span-1 row-span-1",cuantas=n>=5?5:n===4?3:n;return __gh("div",{className:"hidden sm:grid grid-cols-4 grid-rows-2 gap-2 h-[400px] lg:h-[470px] rounded-[22px] overflow-hidden relative",style:{background:"#E8EEF6"},"data-gufi-src":"components/FichaGaleria.tsx:51"},fotos.slice(0,cuantas).map((f,k)=>__gh("button",{type:"button",key:f+k,onClick:()=>onAbrir(k),"aria-label":`Ver la imagen ${k+1} de ${nombre} a pantalla completa`,className:`${k===0?primera:resto()} group relative overflow-hidden focus:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[#1E3444]`,style:{background:"#E8EEF6"},"data-gufi-src":"components/FichaGaleria.tsx:56"},__gh("img",{src:f,alt:`${nombre} \u2014 imagen ${k+1}`,loading:k===0?"eager":"lazy",decoding:"async",onError:()=>onRota(f),className:"w-full h-full object-cover transition-transform duration-[900ms] ease-out group-hover:scale-[1.035]",draggable:!1,"data-gufi-src":"components/FichaGaleria.tsx:64"}),__gh("span",{"aria-hidden":!0,className:"absolute inset-0 bg-[#14242F] opacity-0 transition-opacity duration-300 group-hover:opacity-[0.07]","data-gufi-src":"components/FichaGaleria.tsx:77"}))),__gh("button",{type:"button",onClick:()=>onAbrir(0),className:"absolute bottom-4 right-4 inline-flex items-center gap-2 h-11 px-4 rounded-full border text-[13px] font-semibold transition-shadow duration-200 hover:shadow-[0_10px_26px_-14px_rgba(20,35,46,0.7)] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]",style:{borderColor:"#D8DFE9",background:PAPER,color:INK2,boxShadow:"0 2px 10px -4px rgba(20,35,46,0.35)"},"data-gufi-src":"components/FichaGaleria.tsx:81"},__gh(import_lucide_react9.LayoutGrid,{size:15,strokeWidth:2}),n>1?`Mostrar las ${n} fotos`:"Ampliar la foto"))}function CarruselMovil({fotos,nombre,idx,setIdx,onAbrir,onRota}){let n=fotos.length,tactoRef=(0,import_react8.useRef)({x:0,y:0}),ir=d=>{n>1&&setIdx(((idx+d)%n+n)%n)},punto=Math.min(idx,5);return __gh("div",{className:"sm:hidden","data-gufi-src":"components/FichaGaleria.tsx:104"},__gh("div",{className:"relative overflow-hidden rounded-[18px] aspect-[4/3]",style:{background:"#E8EEF6"},onTouchStart:e=>{tactoRef.current={x:e.touches[0].clientX,y:e.touches[0].clientY}},onTouchEnd:e=>{let dx=e.changedTouches[0].clientX-tactoRef.current.x,dy=e.changedTouches[0].clientY-tactoRef.current.y;Math.abs(dx)>44&&Math.abs(dx)>Math.abs(dy)*1.3&&ir(dx<0?1:-1)},"data-gufi-src":"components/FichaGaleria.tsx:105"},__gh("img",{key:fotos[idx],src:fotos[idx],alt:`${nombre} \u2014 imagen ${idx+1} de ${n}`,onError:()=>onRota(fotos[idx]),onClick:()=>onAbrir(idx),className:"absolute inset-0 w-full h-full object-cover",draggable:!1,"data-gufi-src":"components/FichaGaleria.tsx:117"}),n>1&&__gh("span",{"aria-hidden":!0,className:"pointer-events-none absolute bottom-3 right-3 rounded-full px-2.5 py-1 text-[11px] font-semibold text-white tabular-nums",style:{background:"rgba(20,36,47,0.62)"},"data-gufi-src":"components/FichaGaleria.tsx:127"},idx+1," / ",n),__gh("button",{type:"button",onClick:()=>onAbrir(idx),"aria-label":`Ver las ${n} fotos de ${nombre}`,className:"absolute bottom-3 left-3 inline-flex items-center gap-1.5 h-9 px-3 rounded-full text-[12px] font-semibold focus:outline-none focus-visible:ring-2 focus-visible:ring-white",style:{background:"rgba(255,255,255,0.94)",color:INK2},"data-gufi-src":"components/FichaGaleria.tsx:138"},__gh(import_lucide_react9.LayoutGrid,{size:13,strokeWidth:2}),n>1?`${n} fotos`:"Ampliar")),n>1&&__gh("div",{className:"mt-3 flex items-center justify-center gap-1.5","aria-hidden":!0,"data-gufi-src":"components/FichaGaleria.tsx:151"},fotos.slice(0,6).map((f,k)=>__gh("span",{key:f+k,className:"h-[5px] rounded-full transition-all duration-300",style:{width:k===punto?18:5,background:k===punto?INK2:"#D3DBE6"},"data-gufi-src":"components/FichaGaleria.tsx:153"}))))}var import_react9=require("react");function FichaMapa({lat,lng,etiqueta}){let elRef=(0,import_react9.useRef)(null),[listo,setListo]=(0,import_react9.useState)(!1),[falla,setFalla]=(0,import_react9.useState)(!1);return(0,import_react9.useEffect)(()=>{if(typeof document>"u")return;if(!document.getElementById("leaflet-css")){let l=document.createElement("link");l.id="leaflet-css",l.rel="stylesheet",l.href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css",document.head.appendChild(l)}if(window.L){setListo(!0);return}if(!document.getElementById("leaflet-js")){let s=document.createElement("script");s.id="leaflet-js",s.async=!0,s.src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js",document.head.appendChild(s)}let esperado=0,iv=window.setInterval(()=>{window.L?(window.clearInterval(iv),setListo(!0)):(esperado+=150)>6e3&&(window.clearInterval(iv),setFalla(!0))},150);return()=>window.clearInterval(iv)},[]),(0,import_react9.useEffect)(()=>{if(!listo||falla)return;let L=window.L,el=elRef.current;if(!L||!el)return;let mapa=null;try{mapa=L.map(el,{zoomControl:!0,attributionControl:!0,scrollWheelZoom:!1,dragging:!0}),mapa.setView([lat,lng],15),L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:"© OpenStreetMap"}).addTo(mapa),L.circle([lat,lng],{radius:230,color:RED,weight:1.4,fillColor:RED,fillOpacity:.1}).addTo(mapa),L.circleMarker([lat,lng],{radius:7,color:"#ffffff",weight:2.5,fillColor:RED,fillOpacity:1}).addTo(mapa),window.setTimeout(()=>{try{mapa.invalidateSize()}catch{}},150)}catch{try{mapa&&mapa.remove()}catch{}setFalla(!0);return}return()=>{try{mapa&&mapa.remove()}catch{}}},[listo,falla,lat,lng]),falla?null:__gh("div",{ref:elRef,"aria-label":`Mapa de ${etiqueta}`,className:"h-[280px] sm:h-[360px] w-full rounded-[20px] overflow-hidden border",style:{borderColor:LINE,background:"#E8EEF6",isolation:"isolate"},"data-gufi-src":"components/FichaMapa.tsx:89"})}var FICHA_ID="ficha-vivienda",EASE6=[.22,.61,.36,1],WA2="#1DA851",OK_VERDE="#0C6B4E",FOTOS_MAX=40,AMEN_VISIBLES=8,txt4=v=>v==null?"":typeof v=="string"?v:typeof v=="number"?Number.isFinite(v)?String(v):"":String(typeof v=="object"?v.name??v.label??v.value??v.title??v.text??"":v),amenityIcon=label=>{let s=label.toLowerCase();return/wifi|internet|fibra|wi-fi/.test(s)?import_lucide_react10.Wifi:/parking|garaje|aparca|plaza/.test(s)?import_lucide_react10.Car:/piscina|pool/.test(s)?import_lucide_react10.Waves:/aire|clima|a\/c|a\.c|refriger/.test(s)?import_lucide_react10.Snowflake:/calef|heat|chimenea/.test(s)?import_lucide_react10.Flame:/cocina|kitchen|office|menaje|microondas|horno|nevera/.test(s)?import_lucide_react10.Utensils:/\btv\b|televis|smart/.test(s)?import_lucide_react10.Tv:/gimnasio|\bgym\b|fitness/.test(s)?import_lucide_react10.Dumbbell:/terraza|jard|garden|patio|exterior/.test(s)?import_lucide_react10.Trees:/mascot|\bpet\b|perro|gato|animal/.test(s)?import_lucide_react10.PawPrint:/lavad|washing|colada|secadora/.test(s)?import_lucide_react10.WashingMachine:/vista|view|\bmar\b|\bsea\b|panor/.test(s)?import_lucide_react10.Mountain:/cafe|coffee|nespresso/.test(s)?import_lucide_react10.Coffee:/ascensor|elevador/.test(s)?import_lucide_react10.ArrowUpDown:/accesib|movilidad|adaptad/.test(s)?import_lucide_react10.Accessibility:/ropa de cama|toalla|almohada|sabana/.test(s)?import_lucide_react10.BedDouble:/ducha|aseo|bidet/.test(s)?import_lucide_react10.Bath:import_lucide_react10.Check},vinoConSeleccion=()=>{try{return typeof window>"u"?!1:pisosIdsDeParam(new URLSearchParams(window.location.search).get("pisos")).length>1}catch{return!1}},fechaCorta2=iso=>{if(!/^\d{4}-\d{2}-\d{2}$/.test(String(iso||"")))return"";try{return new Date(iso+"T00:00:00").toLocaleDateString("es-ES",{day:"numeric",month:"short"})}catch{return""}},direccionLimpia=partes=>partes.filter(Boolean).join(", ").replace(/\s+/g," ").replace(/\s*,\s*/g,", ").replace(/(?:,\s*){2,}/g,", ").replace(/^[,\s]+|[,\s]+$/g,""),ROTULO="block text-[10.5px] font-semibold uppercase tracking-[0.18em]",H2="text-[19px] sm:text-[21px] font-bold tracking-[-0.025em]",RAYA="h-px w-full my-7 sm:my-8",SOLICITUD_ID="solicitud-ficha";function FormularioSolicitud({ctx,prefill,onCerrar}){return __gh(__gf,null,__gh("div",{className:"flex items-start justify-between gap-3","data-gufi-src":"components/ViviendaModal.tsx:193"},__gh("div",{className:"min-w-0","data-gufi-src":"components/ViviendaModal.tsx:194"},__gh("h3",{className:"text-[17px] font-bold tracking-[-0.02em]",style:{color:INK,fontFamily:FONT_SERIF},"data-gufi-src":"components/ViviendaModal.tsx:195"},"Solicita una visita"),__gh("p",{className:"text-[12.5px] leading-[1.5] mt-1",style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:198"},"D\xE9janos tus datos y un asesor te confirma la disponibilidad.")),__gh("button",{type:"button",onClick:onCerrar,"aria-label":"Cerrar el formulario",className:"shrink-0 -mr-2 -mt-1 w-10 h-10 rounded-full inline-flex items-center justify-center transition-colors duration-200 hover:bg-[#F4F7FB] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]",style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:202"},__gh(import_lucide_react10.X,{size:17,strokeWidth:2}))),__gh("div",{className:"mt-5","data-gufi-src":"components/ViviendaModal.tsx:215"},__gh(SolicitudForm,{ctx,prefill,compact:!0,onDone:onCerrar})))}function ViviendaModal({ctx,vivienda,onClose,entrada="",salida="",enlaceFicha}){let[img,setImg]=(0,import_react10.useState)(0),[copiado,setCopiado]=(0,import_react10.useState)(!1),[rotas,setRotas]=(0,import_react10.useState)({}),[visor,setVisor]=(0,import_react10.useState)(null),[hoja,setHoja]=(0,import_react10.useState)(""),[pidiendo,setPidiendo]=(0,import_react10.useState)(!1),reduce=(0,import_framer_motion7.useReducedMotion)(),a=vivienda,idActual=a&&a.id!=null?String(a.id):"",vistoRef=(0,import_react10.useRef)(idActual);idActual!==vistoRef.current&&(vistoRef.current=idActual,setImg(0),setRotas({}),setVisor(null),setHoja(""),setPidiendo(!1));let portada=a&&typeof a.foto=="string"?a.foto:"",crudas=(a&&Array.isArray(a.fotos_items)?a.fotos_items:[]).filter(f=>typeof f=="string"&&f),fotos=(portada?[portada,...crudas.filter(f=>f!==portada)]:crudas).slice(0,FOTOS_MAX).filter(f=>!rotas[f]),n=fotos.length,idx=n>0?Math.min(img,n-1):0;if((0,import_react10.useEffect)(()=>{n<2||typeof Image>"u"||[idx+1,idx-1].forEach(j=>{let src=fotos[(j%n+n)%n];if(src){let im=new Image;im.src=src}})},[idx,n,idActual]),!a)return null;let nombre=txt4(a.nombre)||"Residencia",ciudad=txt4(a.ciudad),tipo=txt4(a.tipo)||"Residencia",direccion=txt4(a.direccion),descripcion=txt4(a.descripcion),referencia=txt4(a.referencia),cp=txt4(a.cp),safe={...a,nombre,ciudad,foto:portada},amen=amenitiesDe(a),renta=mensualidadDe(a),hayPrecio=Number.isFinite(renta)&&renta>0,rentaLabel2=hayPrecio?fmtEur(renta):"Consultar",hab=num(a.habitaciones),camas=num(a.camas),sofas=num(a.sofas_cama),ban=num(a.banos),cap2=num(a.capacidad),m2=num(a.m2),specs=[cap2>0?`${fmtNum(cap2)} ${cap2===1?"hu\xE9sped":"hu\xE9spedes"}`:"",hab>0?`${fmtNum(hab)} ${hab===1?"dormitorio":"dormitorios"}`:"",camas>0?`${fmtNum(camas)} ${camas===1?"cama":"camas"}`:"",sofas>0?`${fmtNum(sofas)} ${sofas===1?"sof\xE1 cama":"sof\xE1s cama"}`:"",ban>0?`${fmtNum(ban)} ${ban===1?"ba\xF1o":"ba\xF1os"}`:"",m2>0?`${fmtNum(m2)} m\xB2`:""].filter(Boolean),hayRango=!!entrada&&!!salida&&salida>entrada,dispo=dispoEnRango(a,ctx&&ctx.ocupacion,!!(ctx&&ctx.ocupacionLista),hayRango?entrada:"",hayRango?salida:""),estMin=estanciaMinDe(a),lat=Number(a.lat),lng=Number(a.lng),hayMapa=Number.isFinite(lat)&&lat!==0&&Number.isFinite(lng)&&lng!==0,dirCompleta=direccionLimpia([direccion,cp?`${cp} ${ciudad}`:ciudad]),marcarRota=f=>setRotas(r=>!f||r[f]?r:{...r,[f]:1}),amenTxt=amen.map(s=>s.toLowerCase()),tiene=re=>amenTxt.some(s=>re.test(s)),destacados=[{Icon:import_lucide_react10.CalendarCheck,titulo:dispo&&dispo.texto?dispo.texto:"Consulta la disponibilidad",sub:hayRango?`Para tu estancia del ${fechaCorta2(entrada)} al ${fechaCorta2(salida)}.`:"El calendario se actualiza con los bloqueos y los contratos firmados."}];estMin>0&&destacados.push({Icon:import_lucide_react10.CalendarRange,titulo:`Estancia m\xEDnima de ${fmtNum(estMin)} ${estMin===1?"d\xEDa":"d\xEDas"}`,sub:"Alquiler de temporada: pensado para estancias por meses, no por noches."}),destacados.length<3&&tiene(/ropa de cama|menaje|toalla/)&&destacados.push({Icon:import_lucide_react10.Sparkles,titulo:"Lista para entrar",sub:"Amueblada y equipada: menaje, ropa de cama y toallas incluidos."}),destacados.length<3&&tiene(/ascensor/)&&destacados.push({Icon:import_lucide_react10.ArrowUpDown,titulo:"Con ascensor",sub:"Acceso c\xF3modo al piso, tambi\xE9n con equipaje."}),destacados.length<3&&destacados.push({Icon:import_lucide_react10.ShieldCheck,titulo:"Gestionada por HostWorkers",sub:"Un asesor te acompa\xF1a desde la visita hasta la firma del contrato."});let prefillSolicitud={tipo:"Inquilino busca",vivienda_id:a.id,fecha_entrada:entrada||ctx&&ctx.busqueda&&ctx.busqueda.entrada||"",meses:hayRango?mesesDeRango(entrada,salida):"",mensaje:""},solicitarVisita=()=>{setPidiendo(!0),typeof window<"u"&&window.innerWidth<1024&&window.setTimeout(()=>{try{let el=document.getElementById(SOLICITUD_ID);el&&el.scrollIntoView({behavior:"smooth",block:"start"})}catch{}},60)},copiarEnlace=async()=>{try{let url=enlaceFicha(a);if(navigator.clipboard&&navigator.clipboard.writeText)await navigator.clipboard.writeText(url);else{let t=document.createElement("textarea");t.value=url,document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}setCopiado(!0),window.setTimeout(()=>setCopiado(!1),2e3)}catch{uiToast("No hemos podido copiar el enlace. Est\xE1 en la barra de direcciones del navegador.")}},parrafos=descripcion.split(/\n+/).map(p=>p.trim()).filter(Boolean),descLarga=descripcion.length>420;return __gh(__gf,null,__gh(import_framer_motion7.motion.section,{id:FICHA_ID,"aria-label":`Ficha de ${nombre}`,initial:reduce?!1:{opacity:0},animate:{opacity:1},transition:{duration:.3,ease:EASE6},className:"relative",style:{background:PAPER}},__gh("div",{className:"max-w-[1120px] mx-auto px-5 sm:px-8 pt-[88px] sm:pt-[104px] pb-[112px] lg:pb-24","data-gufi-src":"components/ViviendaModal.tsx:489"},__gh("button",{type:"button",onClick:onClose,className:"group inline-flex items-center gap-2 h-10 -ml-1 pr-2 text-[13px] font-semibold tracking-[-0.01em] transition-colors duration-200 hover:text-[#EA682E] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444] rounded-full",style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:492"},__gh(import_lucide_react10.ArrowLeft,{size:15,strokeWidth:2.2,className:"transition-transform duration-200 group-hover:-translate-x-0.5"}),vinoConSeleccion()?"Volver a tu selecci\xF3n":"Volver al cat\xE1logo"),__gh("div",{className:"mt-2 flex items-start justify-between gap-4","data-gufi-src":"components/ViviendaModal.tsx:507"},__gh("div",{className:"min-w-0","data-gufi-src":"components/ViviendaModal.tsx:508"},__gh("h1",{className:"text-[26px] sm:text-[34px] lg:text-[38px] font-bold tracking-[-0.035em] leading-[1.08]",style:{color:INK,fontFamily:FONT_SERIF,maxWidth:"26ch"},"data-gufi-src":"components/ViviendaModal.tsx:509"},nombre),(direccion||ciudad)&&__gh("p",{className:"text-[13px] sm:text-[14px] mt-2.5 flex items-start gap-1.5",style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:516"},__gh(import_lucide_react10.MapPin,{size:14,strokeWidth:1.8,className:"shrink-0 mt-[3px]",style:{color:FAINT}}),__gh("span",{"data-gufi-src":"components/ViviendaModal.tsx:518"},dirCompleta))),__gh("button",{type:"button",onClick:copiarEnlace,"aria-label":copiado?"Enlace copiado al portapapeles":`Copiar el enlace de ${nombre}`,className:"shrink-0 inline-flex items-center gap-2 h-11 px-3 rounded-full text-[13px] font-semibold transition-colors duration-200 hover:bg-[#F4F7FB] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]",style:{color:copiado?OK_VERDE:INK2},"data-gufi-src":"components/ViviendaModal.tsx:524"},copiado?__gh(import_lucide_react10.Check,{size:15,strokeWidth:2.4}):__gh(import_lucide_react10.Share2,{size:15,strokeWidth:2}),__gh("span",{className:copiado?"":"underline underline-offset-4","data-gufi-src":"components/ViviendaModal.tsx:532"},copiado?"Enlace copiado":"Compartir"))),__gh("div",{className:"mt-5 sm:mt-6","data-gufi-src":"components/ViviendaModal.tsx:539"},n===0?__gh("div",{className:"rounded-[18px] sm:rounded-[22px] border py-12 sm:py-14 px-6 flex flex-col items-center justify-center gap-2.5 text-center",style:{borderColor:LINE,background:"#E8EEF6"},"data-gufi-src":"components/ViviendaModal.tsx:544"},__gh(import_lucide_react10.ImageOff,{size:24,strokeWidth:1.4,style:{color:FAINT}}),__gh("span",{className:"text-[13.5px] font-semibold",style:{color:BODY},"data-gufi-src":"components/ViviendaModal.tsx:549"},"Todav\xEDa no tenemos fotos de esta residencia"),__gh("span",{className:"text-[12.5px]",style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:550"},"P\xEDdenoslas y te las enviamos.")):__gh(__gf,null,__gh(Mosaico,{fotos,nombre,onAbrir:k=>setVisor(k),onRota:marcarRota}),__gh(CarruselMovil,{fotos,nombre,idx,setIdx:setImg,onAbrir:k=>setVisor(k),onRota:marcarRota}))),__gh("div",{className:"mt-9 sm:mt-12 grid grid-cols-1 lg:grid-cols-[1fr_372px] gap-x-12 xl:gap-x-20 gap-y-9 lg:gap-y-0 items-start","data-gufi-src":"components/ViviendaModal.tsx:568"},__gh("div",{className:"min-w-0","data-gufi-src":"components/ViviendaModal.tsx:569"},__gh("h2",{className:H2,style:{color:INK,fontFamily:FONT_SERIF},"data-gufi-src":"components/ViviendaModal.tsx:572"},ciudad&&tipo?`${tipo} en ${ciudad}`:tipo||ciudad),specs.length>0&&__gh("p",{className:"mt-2 text-[14px] sm:text-[14.5px]",style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:576"},specs.join(" \xB7 ")),__gh("div",{className:RAYA,style:{background:LINE},"data-gufi-src":"components/ViviendaModal.tsx:579"}),__gh("div",{className:"grid gap-5","data-gufi-src":"components/ViviendaModal.tsx:582"},destacados.slice(0,3).map(({Icon,titulo,sub},k)=>__gh("div",{key:k,className:"flex items-start gap-4","data-gufi-src":"components/ViviendaModal.tsx:584"},__gh(Icon,{size:21,strokeWidth:1.5,className:"shrink-0 mt-0.5",style:{color:INK}}),__gh("div",{className:"min-w-0","data-gufi-src":"components/ViviendaModal.tsx:586"},__gh("p",{className:"text-[14.5px] font-semibold leading-snug",style:{color:INK},"data-gufi-src":"components/ViviendaModal.tsx:587"},titulo),__gh("p",{className:"text-[13px] leading-[1.55] mt-0.5",style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:588"},sub))))),descripcion?__gh(__gf,null,__gh("div",{className:RAYA,style:{background:LINE},"data-gufi-src":"components/ViviendaModal.tsx:597"}),__gh("h3",{className:H2,style:{color:INK,fontFamily:FONT_SERIF},"data-gufi-src":"components/ViviendaModal.tsx:598"},"Sobre la residencia"),descLarga?__gh(__gf,null,__gh("p",{className:"mt-4 text-[15px] sm:text-[15.5px] leading-[1.75]",style:{color:BODY,maxWidth:"68ch",display:"-webkit-box",WebkitLineClamp:6,WebkitBoxOrient:"vertical",overflow:"hidden"},"data-gufi-src":"components/ViviendaModal.tsx:605"},parrafos.join(" ")),__gh("button",{type:"button",onClick:()=>setHoja("descripcion"),className:"mt-4 inline-flex items-center gap-1.5 text-[14px] font-semibold transition-colors duration-200 hover:text-[#EA682E] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444] rounded-full",style:{color:INK},"data-gufi-src":"components/ViviendaModal.tsx:614"},__gh("span",{className:"underline underline-offset-4","data-gufi-src":"components/ViviendaModal.tsx:620"},"Mostrar m\xE1s"),__gh(import_lucide_react10.ChevronRight,{size:15,strokeWidth:2.2}))):__gh("div",{className:"mt-4",style:{maxWidth:"68ch"},"data-gufi-src":"components/ViviendaModal.tsx:625"},parrafos.map((p,k)=>__gh("p",{key:k,className:`text-[15px] sm:text-[15.5px] leading-[1.75] ${k>0?"mt-4":""}`,style:{color:BODY},"data-gufi-src":"components/ViviendaModal.tsx:627"},p)))):null,amen.length>0&&__gh(__gf,null,__gh("div",{className:RAYA,style:{background:LINE},"data-gufi-src":"components/ViviendaModal.tsx:637"}),__gh("h3",{className:H2,style:{color:INK,fontFamily:FONT_SERIF},"data-gufi-src":"components/ViviendaModal.tsx:638"},"Qu\xE9 ofrece esta residencia"),__gh("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-10 mt-4","data-gufi-src":"components/ViviendaModal.tsx:639"},amen.slice(0,AMEN_VISIBLES).map((s,k)=>{let Icon=amenityIcon(s);return __gh("div",{key:k,className:"flex items-center gap-3.5 min-w-0 py-3 border-b",style:{borderColor:LINE2},"data-gufi-src":"components/ViviendaModal.tsx:643"},__gh(Icon,{size:18,strokeWidth:1.6,className:"shrink-0",style:{color:INK2}}),__gh("span",{className:"text-[14.5px] leading-snug truncate",style:{color:BODY},"data-gufi-src":"components/ViviendaModal.tsx:645"},s))})),amen.length>AMEN_VISIBLES&&__gh("button",{type:"button",onClick:()=>setHoja("comodidades"),className:"mt-6 inline-flex items-center justify-center h-12 px-6 rounded-[12px] border text-[14px] font-semibold transition-colors duration-200 hover:bg-[#F4F7FB] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]",style:{borderColor:"#C9D2DE",color:INK2},"data-gufi-src":"components/ViviendaModal.tsx:651"},"Mostrar las ",fmtNum(amen.length)," comodidades")),(hayMapa||dirCompleta)&&__gh(__gf,null,__gh("div",{className:RAYA,style:{background:LINE},"data-gufi-src":"components/ViviendaModal.tsx:668"}),__gh("h3",{className:H2,style:{color:INK,fontFamily:FONT_SERIF},"data-gufi-src":"components/ViviendaModal.tsx:669"},"D\xF3nde est\xE1"),__gh("p",{className:"mt-2 text-[14px]",style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:670"},dirCompleta||ciudad),__gh("div",{className:"mt-4","data-gufi-src":"components/ViviendaModal.tsx:671"},hayMapa?__gh(FichaMapa,{lat,lng,etiqueta:dirCompleta||ciudad}):__gh("div",{className:"rounded-[20px] border px-5 py-6 flex items-start gap-3.5",style:{borderColor:LINE,background:PAPER2},"data-gufi-src":"components/ViviendaModal.tsx:675"},__gh(import_lucide_react10.MapPin,{size:18,strokeWidth:1.7,className:"shrink-0 mt-0.5",style:{color:FAINT}}),__gh("p",{className:"text-[13.5px] leading-[1.6]",style:{color:BODY},"data-gufi-src":"components/ViviendaModal.tsx:680"},"Todav\xEDa no tenemos el mapa de esta residencia",ciudad?`, que est\xE1 en ${ciudad}`:"",". El asesor te manda la ubicaci\xF3n exacta y c\xF3mo llegar antes de la visita.")))),__gh("div",{className:RAYA,style:{background:LINE},"data-gufi-src":"components/ViviendaModal.tsx:691"}),__gh("h3",{className:H2,style:{color:INK,fontFamily:FONT_SERIF},"data-gufi-src":"components/ViviendaModal.tsx:692"},"Qu\xE9 debes saber"),__gh("div",{className:"mt-5 grid grid-cols-1 sm:grid-cols-3 gap-7 sm:gap-8","data-gufi-src":"components/ViviendaModal.tsx:693"},__gh("div",{"data-gufi-src":"components/ViviendaModal.tsx:694"},__gh("span",{className:ROTULO,style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:695"},"Condiciones"),__gh("ul",{className:"mt-3 space-y-1.5 text-[13.5px] leading-[1.55]",style:{color:BODY},"data-gufi-src":"components/ViviendaModal.tsx:696"},__gh("li",{"data-gufi-src":"components/ViviendaModal.tsx:697"},hayPrecio?`${rentaLabel2} al mes`:"Renta a consultar"),__gh("li",{"data-gufi-src":"components/ViviendaModal.tsx:701"},ivaNota(a)?"IVA incluido en la renta":"Operaci\xF3n exenta de IVA"),estMin>0&&__gh("li",{"data-gufi-src":"components/ViviendaModal.tsx:702"},"Estancia m\xEDnima de ",fmtNum(estMin)," ",estMin===1?"d\xEDa":"d\xEDas"),__gh("li",{"data-gufi-src":"components/ViviendaModal.tsx:703"},"Contrato de alquiler de temporada"))),__gh("div",{"data-gufi-src":"components/ViviendaModal.tsx:706"},__gh("span",{className:ROTULO,style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:707"},"Disponibilidad"),__gh("ul",{className:"mt-3 space-y-1.5 text-[13.5px] leading-[1.55]",style:{color:BODY},"data-gufi-src":"components/ViviendaModal.tsx:708"},__gh("li",{"data-gufi-src":"components/ViviendaModal.tsx:709"},dispo&&dispo.texto?dispo.texto:"Cons\xFAltanos las fechas"),hayRango&&__gh("li",{"data-gufi-src":"components/ViviendaModal.tsx:710"},"Para tu estancia del ",fechaCorta2(entrada)," al ",fechaCorta2(salida)),__gh("li",{"data-gufi-src":"components/ViviendaModal.tsx:711"},"Calendario sincronizado con el panel de gesti\xF3n"))),__gh("div",{"data-gufi-src":"components/ViviendaModal.tsx:714"},__gh("span",{className:ROTULO,style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:715"},"C\xF3mo seguimos"),__gh("ul",{className:"mt-3 space-y-1.5 text-[13.5px] leading-[1.55]",style:{color:BODY},"data-gufi-src":"components/ViviendaModal.tsx:716"},__gh("li",{"data-gufi-src":"components/ViviendaModal.tsx:717"},"Nos dices tus fechas"),__gh("li",{"data-gufi-src":"components/ViviendaModal.tsx:718"},"Un asesor confirma y coordina la visita"),__gh("li",{"data-gufi-src":"components/ViviendaModal.tsx:719"},"Respuesta habitual en menos de 24 h, sin compromiso")))),referencia&&__gh("p",{className:"text-[12px] tabular-nums mt-8",style:{color:FAINT},"data-gufi-src":"components/ViviendaModal.tsx:725"},"Referencia ",referencia)),__gh("aside",{id:SOLICITUD_ID,className:`${pidiendo?"block order-first lg:order-none":"hidden"} lg:block lg:sticky`,style:{top:104,scrollMarginTop:96},"data-gufi-src":"components/ViviendaModal.tsx:741"},__gh("div",{className:"rounded-[20px] border p-5 sm:p-6",style:{borderColor:LINE,background:PAPER,boxShadow:"0 1px 2px rgba(20,35,46,0.04), 0 28px 56px -44px rgba(20,35,46,0.4)"},"data-gufi-src":"components/ViviendaModal.tsx:751"},pidiendo?__gh(FormularioSolicitud,{ctx,prefill:prefillSolicitud,onCerrar:()=>setPidiendo(!1)}):__gh(__gf,null,__gh("div",{className:"flex items-baseline gap-1.5","data-gufi-src":"components/ViviendaModal.tsx:759"},__gh("span",{className:`${hayPrecio?"text-[30px]":"text-[22px]"} font-bold leading-none tracking-[-0.035em] tabular-nums`,style:{color:INK2,fontFamily:FONT_SERIF},"data-gufi-src":"components/ViviendaModal.tsx:760"},rentaLabel2),hayPrecio&&__gh("span",{className:"text-[14px] font-semibold",style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:766"},"al mes")),hayPrecio&&ivaNota(a)&&__gh("span",{className:"block text-[11.5px] font-medium mt-2",style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:769"},ivaNota(a)),__gh("div",{className:"mt-4","data-gufi-src":"components/ViviendaModal.tsx:778"},__gh(ChipDispo,{dispo}),hayRango&&__gh("p",{className:"text-[12.5px] mt-2.5",style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:781"},"Para tu estancia del ",fechaCorta2(entrada)," al ",fechaCorta2(salida)),estMin>0&&__gh("p",{className:"text-[12.5px] mt-1.5",style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:786"},"Estancia m\xEDnima de ",fmtNum(estMin)," ",estMin===1?"d\xEDa":"d\xEDas")),__gh("div",{className:"h-px my-5",style:{background:LINE2},"data-gufi-src":"components/ViviendaModal.tsx:792"}),__gh("button",{type:"button",onClick:solicitarVisita,className:"group w-full inline-flex items-center justify-center gap-2 h-[52px] rounded-full text-[16px] font-semibold text-white transition-[background-color,box-shadow] duration-200 shadow-[0_1px_2px_rgba(234,104,46,0.3)] hover:shadow-[0_14px_30px_-14px_rgba(234,104,46,0.7)] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444] focus-visible:ring-offset-2",style:{background:RED},onMouseEnter:e=>e.currentTarget.style.background="#D85F28",onMouseLeave:e=>e.currentTarget.style.background=RED,"data-gufi-src":"components/ViviendaModal.tsx:797"},"Solicitar visita",__gh(import_lucide_react10.ArrowRight,{size:16,strokeWidth:2.3,className:"transition-transform duration-200 group-hover:translate-x-0.5"})),__gh("a",{href:waLink(safe),target:"_blank",rel:"noreferrer",className:"mt-2.5 w-full inline-flex items-center justify-center gap-2 h-[50px] rounded-full border text-[14px] font-semibold transition-colors duration-200 hover:border-[#CFD8E4] hover:bg-[#F4F7FB] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444] focus-visible:ring-offset-2",style:{borderColor:LINE,color:INK2},"data-gufi-src":"components/ViviendaModal.tsx:809"},__gh(import_lucide_react10.MessageCircle,{size:17,strokeWidth:2,style:{color:WA2}}),"Preguntar por WhatsApp"),__gh("p",{className:"text-[12.5px] leading-[1.55] mt-4 text-center",style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:823"},"No se cobra nada ahora. Te confirmamos la disponibilidad antes de la visita."))))))),__gh("div",{className:`${pidiendo?"hidden":"flex"} lg:hidden fixed bottom-0 inset-x-0 z-40 border-t px-4 py-3 items-center gap-3`,style:{borderColor:LINE,background:"rgba(255,255,255,0.96)",backdropFilter:"blur(10px)"},"data-gufi-src":"components/ViviendaModal.tsx:841"},__gh("div",{className:"min-w-0 flex-1","data-gufi-src":"components/ViviendaModal.tsx:845"},__gh("div",{className:"flex items-baseline gap-1","data-gufi-src":"components/ViviendaModal.tsx:846"},__gh("span",{className:"text-[19px] font-bold leading-none tracking-[-0.03em] tabular-nums",style:{color:INK2,fontFamily:FONT_SERIF},"data-gufi-src":"components/ViviendaModal.tsx:847"},rentaLabel2),hayPrecio&&__gh("span",{className:"text-[12.5px] font-semibold",style:{color:MUTED},"data-gufi-src":"components/ViviendaModal.tsx:850"},"al mes")),__gh("div",{className:"mt-1.5 truncate","data-gufi-src":"components/ViviendaModal.tsx:852"},__gh(ChipDispo,{dispo}))),__gh("a",{href:waLink(safe),target:"_blank",rel:"noreferrer","aria-label":"Preguntar por WhatsApp",className:"shrink-0 w-12 h-12 rounded-full border inline-flex items-center justify-center focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444]",style:{borderColor:LINE,color:WA2},"data-gufi-src":"components/ViviendaModal.tsx:856"},__gh(import_lucide_react10.MessageCircle,{size:19,strokeWidth:2})),__gh("button",{type:"button",onClick:solicitarVisita,className:"shrink-0 inline-flex items-center justify-center h-12 px-5 rounded-full text-[15px] font-semibold text-white focus:outline-none focus-visible:ring-2 focus-visible:ring-[#1E3444] focus-visible:ring-offset-2",style:{background:RED,boxShadow:"0 10px 24px -14px rgba(234,104,46,0.9)"},"data-gufi-src":"components/ViviendaModal.tsx:866"},"Solicitar visita")),visor!==null&&n>0&&__gh(Visor,{fotos,nombre,inicio:visor,onClose:()=>setVisor(null),onRota:marcarRota}),hoja==="descripcion"&&__gh(Hoja,{titulo:"Sobre la residencia",onClose:()=>setHoja("")},__gh("div",{style:{maxWidth:"64ch"},"data-gufi-src":"components/ViviendaModal.tsx:883"},parrafos.map((p,k)=>__gh("p",{key:k,className:`text-[15px] leading-[1.75] ${k>0?"mt-4":""}`,style:{color:BODY},"data-gufi-src":"components/ViviendaModal.tsx:885"},p)))),hoja==="comodidades"&&__gh(Hoja,{titulo:"Qu\xE9 ofrece esta residencia",onClose:()=>setHoja("")},__gh("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-x-10","data-gufi-src":"components/ViviendaModal.tsx:893"},amen.map((s,k)=>{let Icon=amenityIcon(s);return __gh("div",{key:k,className:"flex items-center gap-3.5 min-w-0 py-3.5 border-b",style:{borderColor:LINE2},"data-gufi-src":"components/ViviendaModal.tsx:897"},__gh(Icon,{size:18,strokeWidth:1.6,className:"shrink-0",style:{color:INK2}}),__gh("span",{className:"text-[14.5px] leading-snug",style:{color:BODY},"data-gufi-src":"components/ViviendaModal.tsx:899"},s))}))))}var import_react11=require("react"),import_lucide_react11=require("lucide-react"),import_framer_motion8=require("framer-motion");var EASE7=[.22,.61,.36,1],PAD_X="clamp(20px, 5vw, 28px)",FOCUSABLE='a[href],button:not([disabled]),input:not([disabled]),textarea:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])',prefiereCalma2=()=>{try{return!!(window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches)}catch{return!1}},VELO='[data-hw-solicitud="velo"]',TARJETA='[data-hw-solicitud="tarjeta"]';function SolicitudModal({ctx,prefill,onClose}){let[cerrarFoco,setCerrarFoco]=(0,import_react11.useState)(!1),[calma]=(0,import_react11.useState)(prefiereCalma2),[tipo,setTipo]=(0,import_react11.useState)(prefill?.tipo||""),[exito,setExito]=(0,import_react11.useState)(!1);(0,import_react11.useEffect)(()=>{setTipo(prefill?.tipo||""),setExito(!1)},[prefill]);let vueloRef=(0,import_react11.useRef)(null),ctxUnEnvio={...ctx,enviarSolicitud:payload=>{if(vueloRef.current)return vueloRef.current;let vuelo=Promise.resolve(ctx.enviarSolicitud(payload)).finally(()=>{vueloRef.current=null});return vueloRef.current=vuelo,vuelo}};(0,import_react11.useEffect)(()=>{if(!prefill)return;document.documentElement.setAttribute("data-modal-solicitud","1");let prevFocus=document.activeElement,html2=document.documentElement,body=document.body,prevH=html2.style.overflow,prevB=body.style.overflow;html2.style.overflow="hidden",body.style.overflow="hidden";let intentos=0,raf=0,meterFoco=()=>{let velo=document.querySelector(VELO);velo&&(velo.contains(document.activeElement)||(document.querySelector(TARJETA)?.focus({preventScroll:!0}),velo.contains(document.activeElement)||(velo.querySelector('[data-hw-solicitud="cerrar"]')||velo.querySelector(FOCUSABLE))?.focus({preventScroll:!0}),velo.contains(document.activeElement)))||(intentos+=1,intentos<20&&(raf=requestAnimationFrame(meterFoco)))};raf=requestAnimationFrame(meterFoco);let onKey=e=>{if(e.key==="Escape"){onClose();return}if(e.key!=="Tab")return;let velo=document.querySelector(VELO),card=document.querySelector(TARJETA);if(!velo)return;let list=Array.from(velo.querySelectorAll(FOCUSABLE)).filter(el=>el.offsetParent!==null);if(!list.length)return;let first=list[0],last=list[list.length-1],act=document.activeElement;if(!velo.contains(act)){e.preventDefault(),(e.shiftKey?last:first).focus();return}e.shiftKey&&(act===first||act===card)?(e.preventDefault(),last.focus()):!e.shiftKey&&act===last&&(e.preventDefault(),first.focus())};return window.addEventListener("keydown",onKey),()=>{cancelAnimationFrame(raf),window.removeEventListener("keydown",onKey),document.documentElement.removeAttribute("data-modal-solicitud"),html2.style.overflow=prevH,body.style.overflow=prevB,prevFocus?.focus?.()}},[prefill,onClose]);let[teclado,setTeclado]=(0,import_react11.useState)(0);(0,import_react11.useEffect)(()=>{if(!prefill)return;let vv=window.visualViewport;if(!vv)return;let medir=()=>{let h=window.innerHeight-vv.height-(vv.offsetTop||0);setTeclado(h>100?Math.round(h):0)};return medir(),vv.addEventListener("resize",medir),vv.addEventListener("scroll",medir),()=>{vv.removeEventListener("resize",medir),vv.removeEventListener("scroll",medir),setTeclado(0)}},[prefill]);let esProp=tipo==="Propietario ofrece",esVisita=!!prefill?.vivienda_id,viv=(0,import_react11.useMemo)(()=>{let id=prefill?.vivienda_id;return id&&(ctx.alojamientos||[]).find(v=>String(v.id)===String(id))||null},[prefill?.vivienda_id,ctx?.alojamientos]),titulo=esProp?"Publica tu vivienda":esVisita?"Solicita una visita":"Hablemos",subtitulo=esProp?"Lo gestionamos todo por ti: inquilinos verificados, contratos y cobros.":esVisita?"Cu\xE9ntanos tus fechas y un asesor coordina la visita contigo.":"Cu\xE9ntanos qu\xE9 buscas y un asesor te ayuda a encontrarlo.";return __gh(import_framer_motion8.AnimatePresence,null,prefill&&__gh(import_framer_motion8.motion.div,{"data-hw-solicitud":"velo",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 flex items-start justify-center overflow-y-auto",style:{zIndex:130,background:"rgba(20,36,47,0.5)",backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",padding:"clamp(18px, 4.5vh, 64px) clamp(12px, 2vw, 16px)",paddingBottom:teclado?teclado+20:void 0},onMouseDown:e=>e.target===e.currentTarget&&onClose()},__gh(import_framer_motion8.motion.div,{"data-hw-solicitud":"tarjeta",role:"dialog","aria-modal":"true",...exito?{"aria-label":"Solicitud enviada"}:{"aria-labelledby":"solicitud-titulo"},tabIndex:-1,initial:calma?{opacity:0}:{opacity:0,y:12,scale:.985},animate:{opacity:1,y:0,scale:1},exit:calma?{opacity:0}:{opacity:0,y:8,scale:.99},transition:{duration:calma?.18:.28,ease:EASE7},className:"relative w-full",style:{maxWidth:460,background:"#FFFFFF",borderRadius:20,border:`1px solid ${LINE}`,outline:"none",boxShadow:"0 1px 2px rgba(20,36,47,0.05), 0 28px 64px -24px rgba(20,36,47,0.38)"}},__gh("div",{className:"flex items-center justify-between",style:{height:58,padding:`0 ${PAD_X}`,gap:12,borderBottom:`1px solid ${LINE2}`},"data-gufi-src":"components/SolicitudModal.tsx:242"},__gh("img",{src:LOGO_LIGHT,alt:"HostWorkers",draggable:!1,className:"block select-none",style:{height:22,width:"auto"},"data-gufi-src":"components/SolicitudModal.tsx:246"}),__gh("button",{type:"button","data-hw-solicitud":"cerrar",onClick:onClose,"aria-label":"Cerrar",onFocus:e=>{try{e.target.matches(":focus-visible")&&setCerrarFoco(!0)}catch{}},onBlur:()=>setCerrarFoco(!1),className:"shrink-0 flex items-center justify-center transition-colors duration-200 hover:bg-[#F4F7FB]",style:{width:44,height:44,marginRight:-12,borderRadius:999,color:MUTED,background:"transparent",border:0,cursor:"pointer",outline:"none",boxShadow:cerrarFoco?"0 0 0 3px rgba(30,52,68,0.22)":void 0},"data-gufi-src":"components/SolicitudModal.tsx:253"},__gh(import_lucide_react11.X,{size:18,strokeWidth:2}))),__gh("div",{style:{padding:`clamp(22px, 3vw, 26px) ${PAD_X}`},"data-gufi-src":"components/SolicitudModal.tsx:271"},!exito&&__gh("div",{"data-gufi-src":"components/SolicitudModal.tsx:275"},__gh(import_framer_motion8.motion.h2,{key:titulo,id:"solicitud-titulo",initial:calma?{opacity:0}:{opacity:0,y:3},animate:{opacity:1,y:0},transition:{duration:.26,ease:EASE7},style:{fontSize:"clamp(22px, 2.4vw, 25px)",fontWeight:700,letterSpacing:"-0.025em",lineHeight:1.14,color:INK2}},titulo),__gh("p",{style:{fontSize:14,lineHeight:1.5,color:BODY,marginTop:8},"data-gufi-src":"components/SolicitudModal.tsx:285"},subtitulo)),__gh("div",{style:{marginTop:exito?0:24},"data-gufi-src":"components/SolicitudModal.tsx:291"},__gh(SolicitudForm,{ctx:ctxUnEnvio,prefill,onTipo:setTipo,onDone:onClose,onExito:setExito}))))))}var import_react12=__toESM(require("react")),import_framer_motion9=require("framer-motion"),import_lucide_react12=require("lucide-react");var EASE8=[.22,.61,.36,1],MESES_L=["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],MESES2=["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],mesLargo=p=>p?`${MESES_L[Number(p.slice(5,7))-1]} ${p.slice(0,4)}`:"",mesCorto=p=>p?MESES2[Number(p.slice(5,7))-1]:"";var cap=t=>t?t.charAt(0).toUpperCase()+t.slice(1):"",INK_CARD="#1E3444",SS_KEY="remax_portal",initials=nombre=>String(nombre||"").trim().split(/\s+/).slice(0,2).map(w=>w[0]).join("").toUpperCase(),TONO_AVISO="#ff9f0a",TONO_MAL="#ff3b30",payTono=e=>e==="Cobrada"?"":e==="Vencida"||e==="Impagada"?TONO_MAL:TONO_AVISO;function Estado({children,tono,sobreFoto}){if(!children)return null;let base="inline-flex items-center gap-1.5 whitespace-nowrap shrink-0 text-[12px] font-medium";return sobreFoto?__gh("span",{className:`${base} rounded-full px-2.5 py-1`,style:{background:"#FFFFFF",color:INK},"data-gufi-src":"components/Portal.tsx:51"},tono&&__gh("span",{className:"w-[7px] h-[7px] rounded-full shrink-0",style:{background:tono},"data-gufi-src":"components/Portal.tsx:52"}),children):__gh("span",{className:base,style:{color:tono?INK:MUTED},"data-gufi-src":"components/Portal.tsx:58"},tono&&__gh("span",{className:"w-[7px] h-[7px] rounded-full shrink-0",style:{background:tono},"data-gufi-src":"components/Portal.tsx:59"}),children)}var ctrl="w-full h-[50px] px-4 rounded-[12px] border border-[#E3E8EF] bg-white text-[16px] outline-none transition-all focus:border-[#1E3444] focus:shadow-[0_0_0_3px_rgba(20,35,46,0.08)]",esc=v=>String(v??"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");function printDoc(title,bodyHtml){let w=window.open("","_blank","width=820,height=1000");if(!w){uiToast("Permite las ventanas emergentes para descargar.");return}w.document.write(`${esc(title)} ${bodyHtml}