Estate & Letting Agents in Doddington, Fenland

Find Estate Agents in Doddington, Fenland
12 results
Ellis Winters Estate Agents
Ellis Winters Estate Agents

Chatteris

Sales
10 active listings in Doddington, Fenland, Cambridgeshire, England
105 total
20 Market Hill, Chatteris, PE16 6BA
View Featured Profile
Exp UK
Exp UK

East Midlands

Sales
3 active listings in Doddington, Fenland, Cambridgeshire, England
7,719 total
114 St. Martin's Lane London WC2N 4BE
View Featured Profile
Kavanagh Hayes
Kavanagh Hayes

Chatteris

Sales
3 active listings in Doddington, Fenland, Cambridgeshire, England
33 total
32 High Street, Chatteris, PE16 6BG
View Featured Profile
William H. Brown

March

Lettings Sales
10 active listings in Doddington, Fenland, Cambridgeshire, England
195 total
34 High Street, March, PE15 9JR
View Profile
Next Level Property
7 active listings in Doddington, Fenland, Cambridgeshire, England
73 total
March
View Profile
T Payne & Co LTD

Chatteris

Sales
7 active listings in Doddington, Fenland, Cambridgeshire, England
179 total
6 High Street Chatteris PE16 6BE
View Profile
Sharman Quinney

March

Lettings Sales
6 active listings in Doddington, Fenland, Cambridgeshire, England
176 total
8 Broad Street, March, PE15 8TG
View Profile
Ellis Winters Estate Agents
1 active listing in Doddington, Fenland, Cambridgeshire, England
128 total
52 High Street, March, PE15 9JR
View Profile
Fine & Country

Fakenham

Sales
1 active listing in Doddington, Fenland, Cambridgeshire, England
69 total
1 Bridge Street Fakenham NR21 9AG
View Profile
Haart

March

Sales
1 active listing in Doddington, Fenland, Cambridgeshire, England
46 total
21 High Street, March, Cambridgeshire, PE15 9JA
View Profile
Hockeys

Wisbech

Sales
1 active listing in Doddington, Fenland, Cambridgeshire, England
84 total
Wisbech
View Profile
Savills Rural Agency
1 active listing in Doddington, Fenland, Cambridgeshire, England
8 total
33 Margaret Street, London, W1G 0JD
View Profile
initializeAllPremierCards() }); // Load detailed stats function function loadDetailedStats() { const button = document.getElementById('load-more-stats'); const statsContainer = document.getElementById('detailed-stats'); if (statsContainer.classList.contains('hidden')) { // Show loading state button.innerHTML = ` Loading... `; // Make AJAX call for detailed stats const location = 'Doddington, Fenland'; const agentType = ''; fetch(`/api/agents/detailed-stats?location=${encodeURIComponent(location)}&type=${agentType}`) .then(response => response.json()) .then(data => { // Build detailed stats HTML let statsHtml = '
'; // Property types breakdown if (data.propertyTypes && Object.keys(data.propertyTypes).length > 0) { statsHtml += `
Property Types
`; for (const [type, count] of Object.entries(data.propertyTypes)) { const percentage = Math.round((count / data.totalProperties) * 100); statsHtml += `
${type}: ${count.toLocaleString()} (${percentage}%)
`; } statsHtml += '
'; } // Price ranges if (data.priceRanges) { statsHtml += `
Price Ranges
Avg Sale Price: £${data.priceRanges.avgSalePrice?.toLocaleString() || 'N/A'}
Avg Rent PCM: £${data.priceRanges.avgRentPrice?.toLocaleString() || 'N/A'}
`; } // Top performing agents if (data.topAgents && data.topAgents.length > 0) { statsHtml += `
Top Agents
`; data.topAgents.slice(0, 3).forEach(agent => { statsHtml += `
${agent.name}: ${agent.property_count} props
`; }); statsHtml += '
'; } statsHtml += '
'; // Show stats statsContainer.innerHTML = statsHtml; statsContainer.classList.remove('hidden'); // Update button button.innerHTML = ` Hide Insights `; }) .catch(error => { // If API fails, show some calculated stats from existing data const agents = [{"core_branch_id":60976,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Ellis Winters Estate Agents","email":"info@elliswinters.co.uk","sales_phone_number":"01354 694900","address":"20 Market Hill,\r\nChatteris,\r\nPE16 6BA","postcode":"PE16 6BA","website_url":"https:\/\/www.elliswinters.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/60976\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:43.000000Z","updated_at":"2026-01-20T19:54:17.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":60976,"agent_company_id":3394,"branch_location":"Chatteris","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":true,"geopoint":"0101000020E61000006B7D91D09673A93FD97C5C1B2A3A4A40","agent_brand_id":4072,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"20 Market Hill, Chatteris","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Ellis Winters Estate Agents","branch_name":"Chatteris","lettings":false,"sales":true,"commercial":false,"h_email":"info@elliswinters.co.uk","has_email":true,"h_phone":"01354 694900","has_phone":true,"resolved_brand_color":"#227eb4","boundary_listing_count":"10","property_count":"105","latitude":52.45441,"longitude":0.04971},{"core_branch_id":66292,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Exp UK","email":"carl.mcintosh-ormerod@exp.uk.com","sales_phone_number":"03304 609968","address":"114 St. Martin\u0027s Lane\r\nLondon\r\nWC2N 4BE","postcode":"WC2N 4BE","website_url":"https:\/\/exp.uk.com\/","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/66292\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:22:38.000000Z","updated_at":"2026-01-20T19:55:20.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":66292,"agent_company_id":510,"branch_location":"East Midlands","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":true,"geopoint":"0101000020E610000056478E740646C0BF0398327040C14940","agent_brand_id":924,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"114 St. Martin\u0027s Lane, London","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Exp UK","branch_name":"East Midlands","lettings":false,"sales":true,"commercial":false,"h_email":"carl.mcintosh-ormerod@exp.uk.com","has_email":true,"h_phone":"03304 609968","has_phone":true,"resolved_brand_color":"#ffffff","boundary_listing_count":"3","property_count":"7719","latitude":51.509779,"longitude":-0.127137},{"core_branch_id":60978,"verification_status":"verified","verified_at":"2026-02-03T10:38:24.000000Z","verified_by":null,"verification_notes":null,"name":"Kavanagh Hayes","email":"admin@kavanaghhayes.co.uk","sales_phone_number":"01354 697804","address":"32 High Street,\r\nChatteris,\r\nPE16 6BG","postcode":"PE16 6BG","website_url":"http:\/\/www.alphaletslettingagency.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/60978\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:43.000000Z","updated_at":"2026-02-03T10:44:20.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"live","assigned_user_id":null,"id":60978,"agent_company_id":7023,"branch_location":"Chatteris","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":true,"geopoint":"0101000020E6100000F0C4AC174339A93FD1CB28965B3A4A40","agent_brand_id":7862,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"32 High Street, Chatteris","has_home_listings":true,"external_crm_branch_id":null,"agent_name":"Kavanagh Hayes","branch_name":"Chatteris","lettings":false,"sales":true,"commercial":false,"h_email":"admin@kavanaghhayes.co.uk","has_email":true,"h_phone":"01354 697804","has_phone":true,"resolved_brand_color":"#054b37","boundary_listing_count":"3","property_count":"33","latitude":52.45592,"longitude":0.049265},{"core_branch_id":60975,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"William H. Brown","email":"March@williamhbrown.co.uk","sales_phone_number":"01354 654545","address":"34 High Street,\r\nMarch,\r\nPE15 9JR","postcode":"PE15 9JR","website_url":"http:\/\/www.williamhbrown.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/60975\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:43.000000Z","updated_at":"2026-01-20T19:58:09.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":60975,"agent_company_id":54,"branch_location":"March","lettings_phone_number":"01354 660813","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000CD3FFA264D83B63F25B20FB22C464A40","agent_brand_id":216,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"34 High Street, March","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"William H. Brown","branch_name":"March","lettings":true,"sales":true,"commercial":false,"h_email":"March@williamhbrown.co.uk","has_email":true,"h_phone":"01354 654545","has_phone":true,"resolved_brand_color":"#8dc3d9","boundary_listing_count":"10","property_count":"195","latitude":52.548239,"longitude":0.087941},{"core_branch_id":67356,"verification_status":"verified","verified_at":"2025-12-19T12:11:44.000000Z","verified_by":null,"verification_notes":null,"name":"Next Level Property","email":"info@next-level-property.co.uk","sales_phone_number":"01354 776180","address":"March","postcode":null,"website_url":"https:\/\/www.next-level-property.co.uk\/","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/67356\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:23:12.000000Z","updated_at":"2025-12-19T12:18:26.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"live","assigned_user_id":null,"id":67356,"agent_company_id":3397,"branch_location":"March","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000003EEDF0D7648DB63F4B3ACAC16C464A40","agent_brand_id":4075,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":"#d3a37d","logo_rect":null,"address_lines":null,"has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Next Level Property","branch_name":"March","lettings":false,"sales":true,"commercial":false,"h_email":"info@next-level-property.co.uk","has_email":true,"h_phone":"01354 776180","has_phone":true,"resolved_brand_color":"#d3a37d","boundary_listing_count":"7","property_count":"73","latitude":52.550194,"longitude":0.088095},{"core_branch_id":60977,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"T Payne \u0026 Co LTD","email":"Monique@tpayneandco.com","sales_phone_number":"01354 696700","address":"6 High Street\r\nChatteris\r\nPE16 6BE ","postcode":"PE16 6BE","website_url":"https:\/\/www.tpayneandco.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/60977\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:43.000000Z","updated_at":"2026-01-20T19:54:17.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":60977,"agent_company_id":7024,"branch_location":"Chatteris","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000008F19A88C7F9FA93F7DCF4884463A4A40","agent_brand_id":7863,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"6 High Street, Chatteris","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"T Payne \u0026 Co LTD","branch_name":"Chatteris","lettings":false,"sales":true,"commercial":false,"h_email":"Monique@tpayneandco.com","has_email":true,"h_phone":"01354 696700","has_phone":true,"resolved_brand_color":"#fe540b","boundary_listing_count":"7","property_count":"179","latitude":52.455277,"longitude":0.050045},{"core_branch_id":60970,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Sharman Quinney","email":"march@sharmanquinney.co.uk","sales_phone_number":"01354 661166","address":"8 Broad Street,\r\nMarch,\r\nPE15 8TG","postcode":"PE15 8TG","website_url":"http:\/\/www.sharmanquinney.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/60970\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:43.000000Z","updated_at":"2026-01-20T19:58:09.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":60970,"agent_company_id":695,"branch_location":"March","lettings_phone_number":"01354 652053","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000069C878944A78B63F2FC37FBA81464A40","agent_brand_id":1176,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"8 Broad Street, March","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Sharman Quinney","branch_name":"March","lettings":true,"sales":true,"commercial":false,"h_email":"march@sharmanquinney.co.uk","has_email":true,"h_phone":"01354 661166","has_phone":true,"resolved_brand_color":"#263345","boundary_listing_count":"6","property_count":"176","latitude":52.550834,"longitude":0.087773},{"core_branch_id":60973,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Ellis Winters Estate Agents","email":"infomarch@elliswinters.co.uk","sales_phone_number":"01354 701000","address":"52 High Street,\r\nMarch,\r\nPE15 9JR","postcode":"PE15 9JR","website_url":"https:\/\/www.elliswinters.co.uk\/","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/60973\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:43.000000Z","updated_at":"2026-01-20T19:54:17.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":60973,"agent_company_id":3394,"branch_location":"March","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000CD3FFA264D83B63F25B20FB22C464A40","agent_brand_id":4072,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"52 High Street, March","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Ellis Winters Estate Agents","branch_name":"March","lettings":false,"sales":true,"commercial":false,"h_email":"infomarch@elliswinters.co.uk","has_email":true,"h_phone":"01354 701000","has_phone":true,"resolved_brand_color":"#227eb4","boundary_listing_count":"1","property_count":"128","latitude":52.548239,"longitude":0.087941},{"core_branch_id":60180,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Fine \u0026 Country","email":"finecountry5.fakenham@ptlp.co.uk","sales_phone_number":"01328 854190","address":"1\r\nBridge Street\r\nFakenham\r\nNR21 9AG","postcode":"NR21 9AG","website_url":"https:\/\/www.fineandcountry.com\/uk\/fakenham","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/60180\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:18.000000Z","updated_at":"2026-01-20T19:59:48.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":60180,"agent_company_id":5748,"branch_location":"Fakenham","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000AC915D691929EB3F4AF086342A6A4A40","agent_brand_id":6553,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"1, Bridge Street, Fakenham","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Fine \u0026 Country","branch_name":"Fakenham","lettings":false,"sales":true,"commercial":false,"h_email":"finecountry5.fakenham@ptlp.co.uk","has_email":true,"h_phone":"01328 854190","has_phone":true,"resolved_brand_color":"#9d8141","boundary_listing_count":"1","property_count":"69","latitude":52.829413,"longitude":0.848767},{"core_branch_id":60971,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Haart","email":"march@spicermccoll.co.uk","sales_phone_number":"01354 651100","address":"21 High Street,\r\nMarch,\r\nCambridgeshire,\r\nPE15 9JA","postcode":"PE15 9JA","website_url":"https:\/\/www.haart.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/60971\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:43.000000Z","updated_at":"2026-01-20T19:58:09.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":60971,"agent_company_id":163,"branch_location":"March","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000F6EB4E779E78B63FD046AE9B52464A40","agent_brand_id":405,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"21 High Street, March, Cambridgeshire","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Haart","branch_name":"March","lettings":false,"sales":true,"commercial":false,"h_email":"march@spicermccoll.co.uk","has_email":true,"h_phone":"01354 651100","has_phone":true,"resolved_brand_color":"#46195f","boundary_listing_count":"1","property_count":"46","latitude":52.549396,"longitude":0.087778},{"core_branch_id":67171,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Hockeys","email":"Cathy.c@hockeys.co.uk","sales_phone_number":"01945 429842","address":"Wisbech\r\n","postcode":null,"website_url":"https:\/\/www.hockeys.co.uk\/","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/67171\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:23:06.000000Z","updated_at":"2025-12-12T07:54:21.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":67171,"agent_company_id":985,"branch_location":"Wisbech","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000000E9E094D124BC43F78094E7D20554A40","agent_brand_id":1503,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":null,"has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Hockeys","branch_name":"Wisbech","lettings":false,"sales":true,"commercial":false,"h_email":"Cathy.c@hockeys.co.uk","has_email":true,"h_phone":"01945 429842","has_phone":true,"resolved_brand_color":"#003f50","boundary_listing_count":"1","property_count":"84","latitude":52.665054,"longitude":0.158541},{"core_branch_id":65675,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Savills Rural Agency","email":"lansdowne@savills.com","sales_phone_number":"020 7016 3780","address":"33 Margaret Street,\r\nLondon,\r\nW1G 0JD","postcode":"W1G 0JD","website_url":"https:\/\/www.savills.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/65675\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:22:17.000000Z","updated_at":"2026-01-20T19:59:54.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":65675,"agent_company_id":33,"branch_location":"London","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000876BB587BD50C2BFD3A23EC91DC24940","agent_brand_id":52,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"33 Margaret Street, London","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Savills Rural Agency","branch_name":"London","lettings":false,"sales":true,"commercial":false,"h_email":"lansdowne@savills.com","has_email":true,"h_phone":"020 7016 3780","has_phone":true,"resolved_brand_color":"#ffe643","boundary_listing_count":"1","property_count":"8","latitude":51.516534,"longitude":-0.143089}]; let topAgents = []; agents.forEach(agent => { // Collect top agents if (agent.property_count > 0) { topAgents.push({ name: agent.name, property_count: agent.property_count }); } }); // Sort top agents topAgents.sort((a, b) => b.property_count - a.property_count); let statsHtml = '
'; // Show top agents if (topAgents.length > 0) { statsHtml += `
Top Performing Agents
`; topAgents.slice(0, 5).forEach(agent => { statsHtml += `
${agent.name}: ${agent.property_count} properties
`; }); statsHtml += '
'; } statsHtml += '
'; statsContainer.innerHTML = statsHtml; statsContainer.classList.remove('hidden'); button.innerHTML = ` Hide Insights `; }); } else { // Hide stats statsContainer.classList.add('hidden'); button.innerHTML = ` Load Detailed Insights `; } } // Open agent map function function openAgentMap(locationSlug) { // Use the floating view toggle button const mapBtn = document.getElementById('agent-view-map'); if (mapBtn) { mapBtn.click(); } else { // Fallback to old button const oldMapBtn = document.getElementById('view-map-btn'); if (oldMapBtn) { oldMapBtn.click(); } else { // Last resort - open map page window.location.href = `/agents/${locationSlug}/map`; } } }