function useIsMobile(){const q='(max-width: 720px)';const [m,setM]=React.useState(()=>window.matchMedia(q).matches);React.useEffect(()=>{const mq=window.matchMedia(q);const h=e=>setM(e.matches);mq.addEventListener('change',h);return()=>mq.removeEventListener('change',h)},[]);return m;}
function SiteHeader({page,go}){
const m=useIsMobile();
const {Logo,Button}=window.PousadaDoCajuDesignSystem_e05336;
const items=[['home','A pousada'],['quartos','Quartos'],['local','Como chegar']];
return
go('home')} style={{cursor:'pointer',display:'flex'}}>
;
}
Object.assign(window,{SiteHeader,useIsMobile});
function WhatsAppFloat(){
const m=useIsMobile();
const [hover,setHover]=React.useState(false);
const url='https://wa.me/5527999491642?text='+encodeURIComponent('Olá! Gostaria de saber sobre disponibilidade na Pousada do Caju.');
const size=m?56:60;
return window.fbq&&fbq('track','Contact')} onMouseEnter={()=>setHover(true)} onMouseLeave={()=>setHover(false)}
style={{position:'fixed',right:m?16:24,bottom:m?16:24,zIndex:50,display:'flex',alignItems:'center',gap:10,height:size,padding:hover&&!m?'0 22px 0 16px':0,width:hover&&!m?'auto':size,justifyContent:'center',borderRadius:999,background:hover?'var(--folha-700, #2F7A3A)':'var(--folha-600, #3A8F46)',color:'#fff',textDecoration:'none',boxShadow:'var(--shadow-md, 0 6px 20px rgba(38,33,27,.18))',transition:'background 180ms cubic-bezier(.3,.7,.4,1)',fontFamily:'var(--font-body)',fontWeight:800,fontSize:15}}>
{hover&&!m&&Falar no WhatsApp}
;
}
Object.assign(window,{WhatsAppFloat});