Estate Agents in ST16

Find Estate Agents in ST16
42 results
Emoov

Chelmsford

Lettings Sales
1 active listing in ST16
449 total
Marsh Farm House Lower Burnham Road Latchingdon CM3 6HQ
View Profile
Fine & Country

Birmingham

Sales
1 active listing in ST16
198 total
Fine & Country, 11 Brindley Place, Brunswick Square, Birmingham, B1 2LP
View Profile
Jr Properties LTD

Rugeley

Sales
1 active listing in ST16
55 total
25B Horsefair, Rugeley, Staffordshire, WS15 2EJ
View Profile
Keates

Stoke on Trent

Sales
1 active listing in ST16
69 total
84 Church Street, Stoke-On-Trent, ST4 1BS
Keaze Limited

London

Sales
1 active listing in ST16
195 total
2nd Floor Balfour House 46-54 Great Titchfield Street London W1W 7QA
Mooved

Harrogate

Sales
1 active listing in ST16
71 total
Unit 2 St James' Business Park, Grimbald Crag Court, Knaresborough, North Yorkshire, HG5 8QB
Off Agent

Nationwide

Sales
1 active listing in ST16
72 total
London
Pattinson Estate Agents
1 active listing in ST16
1,109 total
Kingfisher Way Silverlink Business Park Wallsend NE28 9NY
View Profile
Quickmove Properties

Wiltshire

Sales
1 active listing in ST16
315 total
11 Interface Business Park, Binknoll Lane, Royal Wootton Bassett, SN4 8SY
View Profile
Reeds Rains

Eccleshall

Lettings Sales
1 active listing in ST16
32 total
1 Stafford Street, Eccleshall ST21 6BW
View Profile
Under the Hammer

Covering Nationwide

Sales
1 active listing in ST16
211 total
61 Charlotte Street, St Pauls Square, Birmingham, B3 1PX
Your Move Neil John

Stafford

Lettings Sales
1 active listing in ST16
3 total
3-4 Water Street, Stafford, ST16 2AG
View Profile
Page 2 of 2
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 = 'ST16'; const agentType = 'sales'; 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":52654,"verification_status":"verified","verified_at":"2025-12-22T11:53:36.000000Z","verified_by":null,"verification_notes":null,"name":"Emoov","email":"info@griffinproperty.co","sales_phone_number":"03455 610050","address":"Marsh Farm House\r\nLower Burnham Road\r\nLatchingdon\r\nCM3 6HQ","postcode":"CM3 6HQ","website_url":"http:\/\/emoov.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\/52654\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:15:10.000000Z","updated_at":"2026-01-20T19:59:55.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"live","assigned_user_id":null,"id":52654,"agent_company_id":2226,"branch_location":"Chelmsford","lettings_phone_number":"03455 610050","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000D9AF3BDD7962E63F2655DB4DF0D34940","agent_brand_id":2841,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Marsh Farm House, Lower Burnham Road, Latchingdon","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Emoov","branch_name":"Chelmsford","lettings":true,"sales":true,"commercial":false,"h_email":"info@griffinproperty.co","has_email":true,"h_phone":"03455 610050","has_phone":true,"resolved_brand_color":"#ff0080","boundary_listing_count":"1","property_count":"449","latitude":51.655771,"longitude":0.699521},{"core_branch_id":50135,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Fine \u0026 Country","email":"birmingham@fineandcountry.com","sales_phone_number":"024 7650 0057","address":"Fine \u0026 Country,\r\n11 Brindley Place,\r\nBrunswick Square,\r\nBirmingham,\r\nB1 2LP","postcode":"B1 2LP","website_url":"https:\/\/www.fineandcountry.com\/","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/50135\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:13:48.000000Z","updated_at":"2026-01-20T20:01:12.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":50135,"agent_company_id":1154,"branch_location":"Birmingham","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000B16F2711E19FFEBF744694F6063D4A40","agent_brand_id":1689,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Fine \u0026 Country, 11 Brindley Place, Brunswick Square, Birmingham","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Fine \u0026 Country","branch_name":"Birmingham","lettings":false,"sales":true,"commercial":false,"h_email":"birmingham@fineandcountry.com","has_email":true,"h_phone":"024 7650 0057","has_phone":true,"resolved_brand_color":"#9d8141","boundary_listing_count":"1","property_count":"198","latitude":52.476775,"longitude":-1.914033},{"core_branch_id":66627,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Jr Properties LTD","email":"enquiries@jrpropertiesstaffs.com","sales_phone_number":"01889 577731","address":"25B Horsefair, Rugeley, Staffordshire, WS15 2EJ","postcode":"WS15 2EJ","website_url":"https:\/\/www.jrpropertiesstaffs.com\/","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/66627\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:22:49.000000Z","updated_at":"2026-01-20T20:00:59.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":66627,"agent_company_id":7139,"branch_location":"Rugeley","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000F7E461A1D6F4FEBFB680D07AF8604A40","agent_brand_id":7980,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"25B Horsefair, Rugeley, Staffordshire","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Jr Properties LTD","branch_name":"Rugeley","lettings":false,"sales":true,"commercial":false,"h_email":"enquiries@jrpropertiesstaffs.com","has_email":true,"h_phone":"01889 577731","has_phone":true,"resolved_brand_color":"#201f1f","boundary_listing_count":"1","property_count":"55","latitude":52.757583,"longitude":-1.934775},{"core_branch_id":64007,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Keates","email":"admin@keates.uk.com","sales_phone_number":null,"address":"84 Church Street,\r\nStoke-On-Trent,\r\nST4 1BS","postcode":"ST4 1BS","website_url":"https:\/\/www.keates.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\/64007\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:21:22.000000Z","updated_at":"2026-01-20T19:54:48.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":64007,"agent_company_id":5019,"branch_location":"Stoke on Trent","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000B48EAA26887A01C01D588E9081804A40","agent_brand_id":5787,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"84 Church Street, Stoke-On-Trent","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Keates","branch_name":"Stoke on Trent","lettings":false,"sales":true,"commercial":false,"h_email":"admin@keates.uk.com","has_email":true,"h_phone":null,"has_phone":false,"resolved_brand_color":"#cc151f","boundary_listing_count":"1","property_count":"69","latitude":53.003954,"longitude":-2.18483},{"core_branch_id":65858,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Keaze Limited","email":null,"sales_phone_number":"020 3640 7111","address":"2nd Floor\r\nBalfour House\r\n46-54 Great Titchfield Street\r\nLondon\r\nW1W 7QA","postcode":"W1W 7QA","website_url":null,"description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/65858\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:22:23.000000Z","updated_at":"2026-01-20T19:54:14.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":65858,"agent_company_id":9478,"branch_location":"London","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000004D13B69F8CF1C1BFB22D03CE52C24940","agent_brand_id":10374,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"2nd Floor, Balfour House, 46-54 Great Titchfield Street, London","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Keaze Limited","branch_name":"London","lettings":false,"sales":true,"commercial":false,"h_email":null,"has_email":false,"h_phone":"020 3640 7111","has_phone":true,"resolved_brand_color":"#302e31","boundary_listing_count":"1","property_count":"195","latitude":51.518152,"longitude":-0.140184},{"core_branch_id":56108,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Mooved","email":null,"sales_phone_number":"01423 447464","address":"Unit 2 St James\u0027 Business Park,\r\nGrimbald Crag Court,\r\nKnaresborough,\r\nNorth Yorkshire,\r\nHG5 8QB","postcode":"HG5 8QB","website_url":null,"description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/56108\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:05.000000Z","updated_at":"2026-01-20T20:01:29.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56108,"agent_company_id":8269,"branch_location":"Harrogate","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000BFB67EFACF1AF7BF14AFB2B629004B40","agent_brand_id":9135,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Unit 2 St James\u0027 Business Park, Grimbald Crag Court, Knaresborough, North Yorkshire","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Mooved","branch_name":"Harrogate","lettings":false,"sales":true,"commercial":false,"h_email":null,"has_email":false,"h_phone":"01423 447464","has_phone":true,"resolved_brand_color":"#e0e0e1","boundary_listing_count":"1","property_count":"71","latitude":54.001273,"longitude":-1.444046},{"core_branch_id":67378,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Off Agent","email":null,"sales_phone_number":"03337 334050","address":"London","postcode":null,"website_url":null,"description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/67378\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:23:13.000000Z","updated_at":"2025-12-09T23:23:07.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":67378,"agent_company_id":7111,"branch_location":"Nationwide","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":null,"agent_brand_id":7952,"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":"Off Agent","branch_name":"Nationwide","lettings":false,"sales":true,"commercial":false,"h_email":null,"has_email":false,"h_phone":"03337 334050","has_phone":true,"resolved_brand_color":"#4db371","boundary_listing_count":"1","property_count":"72","latitude":null,"longitude":null},{"core_branch_id":59365,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Pattinson Estate Agents","email":"commercial.NE@pattinson.co.uk","sales_phone_number":"0191 206 9335","address":"Kingfisher Way \r\nSilverlink Business Park\r\nWallsend\r\nNE28 9NY","postcode":"NE28 9NY","website_url":"https:\/\/www.pattinson.co.uk\/commercial","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/59365\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:18:52.000000Z","updated_at":"2026-01-20T19:58:23.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":59365,"agent_company_id":46,"branch_location":"Auction","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000029A081B9E5EF8BFE3A59BC420804B40","agent_brand_id":99,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Kingfisher Way, Silverlink Business Park, Wallsend","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Pattinson Estate Agents","branch_name":"Auction","lettings":false,"sales":true,"commercial":false,"h_email":"commercial.NE@pattinson.co.uk","has_email":true,"h_phone":"0191 206 9335","has_phone":true,"resolved_brand_color":"#223e74","boundary_listing_count":"1","property_count":"1109","latitude":55.001,"longitude":-1.5231},{"core_branch_id":63484,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Quickmove Properties","email":"chris.hendry@quickmoveproperties.co.uk","sales_phone_number":"01793 840917","address":"11 Interface Business Park,\r\nBinknoll Lane,\r\nRoyal Wootton Bassett,\r\nSN4 8SY","postcode":"SN4 8SY","website_url":"https:\/\/www.quickmoveproperties.co.uk\/find-a-park","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/63484\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:21:05.000000Z","updated_at":"2026-01-20T20:00:39.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":63484,"agent_company_id":3328,"branch_location":"Wiltshire","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000001BA19FA9D72DFEBF87C267EBE0C44940","agent_brand_id":4004,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"11 Interface Business Park, Binknoll Lane, Royal Wootton Bassett","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Quickmove Properties","branch_name":"Wiltshire","lettings":false,"sales":true,"commercial":false,"h_email":"chris.hendry@quickmoveproperties.co.uk","has_email":true,"h_phone":"01793 840917","has_phone":true,"resolved_brand_color":"#234591","boundary_listing_count":"1","property_count":"315","latitude":51.538114,"longitude":-1.886192},{"core_branch_id":63999,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Reeds Rains","email":"eccleshall@reedsrains.co.uk","sales_phone_number":"01785 850241","address":"1 Stafford Street,\r\nEccleshall\r\nST21 6BW","postcode":"ST21 6BW","website_url":"https:\/\/www.reedsrains.co.uk\/estate-agent\/eccleshall","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/63999\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:21:22.000000Z","updated_at":"2026-01-20T19:55:32.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":63999,"agent_company_id":102,"branch_location":"Eccleshall","lettings_phone_number":"01785 850241","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000105D50DF320702C0BEDC2747016E4A40","agent_brand_id":303,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"1 Stafford Street, Eccleshall","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Reeds Rains","branch_name":"Eccleshall","lettings":true,"sales":true,"commercial":false,"h_email":"eccleshall@reedsrains.co.uk","has_email":true,"h_phone":"01785 850241","has_phone":true,"resolved_brand_color":"#002264","boundary_listing_count":"1","property_count":"32","latitude":52.859414,"longitude":-2.253515},{"core_branch_id":50256,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Under the Hammer","email":null,"sales_phone_number":"03455 120115","address":"61 Charlotte Street, St Pauls Square, Birmingham, B3 1PX","postcode":"B3 1PX","website_url":null,"description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/50256\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:13:52.000000Z","updated_at":"2026-01-20T20:01:14.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":50256,"agent_company_id":875,"branch_location":"Covering Nationwide","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000008A743FA7207FFEBFA6B4FE96003E4A40","agent_brand_id":1380,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"61 Charlotte Street, St Pauls Square, Birmingham","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Under the Hammer","branch_name":"Covering Nationwide","lettings":false,"sales":true,"commercial":false,"h_email":null,"has_email":false,"h_phone":"03455 120115","has_phone":true,"resolved_brand_color":"#ffc335","boundary_listing_count":"1","property_count":"211","latitude":52.484393,"longitude":-1.906037},{"core_branch_id":63977,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Your Move Neil John","email":"stafford@your-move.co.uk","sales_phone_number":"01785 257100","address":"3-4 Water Street,\r\nStafford,\r\nST16 2AG","postcode":"ST16 2AG","website_url":"https:\/\/www.your-move.co.uk\/estate-agent\/stafford","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/63977\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:21:20.000000Z","updated_at":"2026-01-20T19:56:38.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":63977,"agent_company_id":47,"branch_location":"Stafford","lettings_phone_number":"01785 257100","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000CD74AF93FAF200C02C9ACE4E06674A40","agent_brand_id":129,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"3-4 Water Street, Stafford","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Your Move Neil John","branch_name":"Stafford","lettings":true,"sales":true,"commercial":false,"h_email":"stafford@your-move.co.uk","has_email":true,"h_phone":"01785 257100","has_phone":true,"resolved_brand_color":"#407e21","boundary_listing_count":"1","property_count":"3","latitude":52.80488,"longitude":-2.118642}]; 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`; } } }