General educational information only, not legal, tax, lending, insurance, or engineering advice. Contract terms and current laws control individual transactions.
,desc:'Mortgages, taxes & insurance',cats:['Financing, Taxes & Closing Costs','Insurance, Flood & Hurricane Code']},
{label:'Contracts & Legal',icon:'§',desc:'Documents, deadlines & disclosures',cats:['Title, HOA, Condos & Legal Basics']},
{label:'Coastal Living',icon:'≈',desc:'Waterfront, condos & lifestyle',cats:['Waterfront, Docks & Boating','Coastal Lifestyle, Boating & Relocation','Second Homes, Snowbirds & Seasonal Living']},
{label:'Communities',icon:'⌖',desc:'Neighborhoods & local living',cats:['Boca Grande & Gasparilla Island','Cape Haze, Placida & Englewood','Punta Gorda Isles & Rotonda West','Venice, Nokomis, Casey Key & Wellen Park','Schools, Families & Moving With Kids']},
{label:'Investing & Rentals',icon:'↗',desc:'Income, leasing & returns',cats:['Investing, Rentals & ROI','Property Management & Rentals']},
{label:'Owning & Moving',icon:'✦',desc:'Moving, settling in & local life',cats:['Relocation & Moving Logistics']}
];
const translations={es:['Comprar una casa','Vender una propiedad','Financiamiento y gastos','Contratos y leyes','Vida costera','Comunidades','Inversión y alquileres','Propiedad y mudanza'],it:['Comprare casa','Vendere un immobile','Finanziamenti e costi','Contratti e leggi','Vita sulla costa','Comunità','Investimenti e affitti','Proprietà e trasloco'],pt:['Comprar uma casa','Vender um imóvel','Financiamento e custos','Contratos e leis','Vida costeira','Comunidades','Investimentos e aluguel','Propriedade e mudança']};
let selected=null,subtopic=null,limit=12;
const list=document.getElementById('qaList'),filters=document.getElementById('qaCategories'),sub=document.getElementById('qaSubtopics'),search=document.getElementById('qaSearch'),more=document.getElementById('qaMore'),reset=document.getElementById('qaReset');
function labelFor(g){const idx=groups.indexOf(g);return translations[qaLang()]?.[idx]||g.label}
function resetPage(){limit=12}
function render(){
const q=search.value.toLocaleLowerCase().trim();
let visible=data.filter(x=>(!selected||selected.cats.includes(x[0]))&&(!subtopic||x[0]===subtopic)&&(!q||x.join(' ').toLocaleLowerCase().includes(q)));
list.replaceChildren();
for(const x of visible.slice(0,limit)){
const d=document.createElement('details');d.className='qa-item';
const sm=document.createElement('summary');const span=document.createElement('span');const topic=document.createElement('span');
topic.className='qa-topic';topic.textContent=catTranslate(x[0]);
span.append(topic,document.createTextNode(x[1]));sm.append(span);
const p=document.createElement('p');p.textContent=x[2];d.append(sm,p);list.append(d);
}
const count=visible.length,displayed=Math.min(limit,count);
document.getElementById('qaCount').textContent=qaLang()==='es'?displayed+' de '+count+' preguntas (1.010 en total)':qaLang()==='it'?displayed+' di '+count+' domande (1.010 in totale)':qaLang()==='pt'?displayed+' de '+count+' perguntas (1.010 no total)':displayed+' of '+count+' questions shown · 1,010 in the library';
document.getElementById('qaEmpty').style.display=count?'none':'block';
more.hidden=displayed>=count;reset.hidden=!selected&&!subtopic&&!q;
for(const b of filters.children){const g=groups[Number(b.dataset.index)];b.classList.toggle('active',g===selected);b.setAttribute('aria-pressed',String(g===selected));b.querySelector('.qa-filter-title').textContent=labelFor(g);b.querySelector('.qa-filter-count').textContent=g.cats.reduce((n,cat)=>n+data.filter(x=>x[0]===cat).length,0)+' Q&A'}
sub.replaceChildren();sub.hidden=!selected;
if(selected){for(const cat of selected.cats){const button=document.createElement('button');button.type='button';button.className='qa-chip'+(subtopic===cat?' active':'');button.textContent=catTranslate(cat);button.setAttribute('aria-pressed',String(subtopic===cat));button.onclick=()=>{subtopic=subtopic===cat?null:cat;resetPage();render()};sub.append(button)}}
}
for(const [i,g] of groups.entries()){
const b=document.createElement('button');b.className='qa-filter';b.type='button';b.dataset.index=String(i);b.setAttribute('aria-pressed','false');
const symbol=document.createElement('span');symbol.className='qa-filter-icon';symbol.textContent=g.icon;symbol.setAttribute('aria-hidden','true');
const words=document.createElement('span');words.className='qa-filter-words';
const title=document.createElement('strong');title.className='qa-filter-title';title.textContent=labelFor(g);
const desc=document.createElement('small');desc.textContent=g.desc;
words.append(title,desc);const count=document.createElement('span');count.className='qa-filter-count';b.append(symbol,words,count);
b.onclick=()=>{selected=selected===g?null:g;subtopic=null;resetPage();render();if(selected)sub.scrollIntoView({behavior:'smooth',block:'nearest'})};
filters.append(b);
}
more.onclick=()=>{limit+=12;render()};
reset.onclick=()=>{selected=null;subtopic=null;search.value='';resetPage();render()};
search.addEventListener('input',()=>{resetPage();render()});
document.querySelector('header select')?.addEventListener('change',()=>setTimeout(render,50));
render()})();Photography credits
Images resized, converted to WebP and cropped for display. Illustrative images do not identify a property offered for sale.
Photographs illustrate coastal living, architecture and outdoor amenities. They do not identify a property offered for sale or necessarily depict the community described. Source locations are identified below. Creative Commons adaptations remain available under the linked license.