import React, { useState, useEffect, useRef, useMemo } from 'react';
import {
PhoneCall,
CheckCircle2,
MapPin,
Star,
ArrowRight,
Menu,
X,
ShieldCheck,
Wind,
Hammer,
ChevronRight,
Clock,
Navigation,
Search,
Map as MapIcon,
AlertCircle
} from 'lucide-react';
// --- CONFIG & THEME ---
const COLORS = {
primary: '#CC211A', // Toro Red
ink: '#0A0A0A', // Deep Black
paper: '#FAFAFA', // Off-white
accent: '#F5F5F4' // Warm stone
};
const CATEGORIES = ['All', 'Residential', 'Commercial'];
const GALLERY_ITEMS = [
{ id: 1, category: 'Residential', title: 'Bellevue Living Room', img: 'https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&q=80&w=800' },
{ id: 2, category: 'Commercial', title: 'Tacoma Office Park', img: 'https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=800' },
{ id: 3, category: 'Residential', title: 'Olympia Kitchen Remodel', img: 'https://images.unsplash.com/photo-1556912177-d517a177301c?auto=format&fit=crop&q=80&w=800' },
{ id: 4, category: 'Commercial', title: 'Seattle Retail Space', img: 'https://images.unsplash.com/photo-1582037928769-181f2644ecb7?auto=format&fit=crop&q=80&w=800' },
];
const LOCATIONS = [
{ name: 'Seattle', region: 'North Sound', description: 'Metro & Downtown' },
{ name: 'Tacoma', region: 'Pierce County', description: 'Central Operations' },
{ name: 'Olympia', region: 'South Sound', description: 'Regional Headquarters' },
{ name: 'Bellevue', region: 'Eastside', description: 'High-End Residential' },
{ name: 'Everett', region: 'North Sound', description: 'Snohomish County' },
{ name: 'Renton', region: 'South King', description: 'Residential Growth' },
{ name: 'Kent', region: 'South King', description: 'Commercial & Industrial' },
{ name: 'Federal Way', region: 'South King', description: 'South Metro' },
{ name: 'Puyallup', region: 'Pierce County', description: 'Valley Expansion' },
{ name: 'Lacey', region: 'Thurston County', description: 'Capitol Area' },
{ name: 'Auburn', region: 'South King', description: 'Valley Service Area' },
{ name: 'Gig Harbor', region: 'Peninsula', description: 'Waterfront Projects' },
];
// --- COMPONENTS ---
const MapSection = () => {
const [selectedLoc, setSelectedLoc] = useState(LOCATIONS[1]);
const [searchQuery, setSearchQuery] = useState('');
const [searchResult, setSearchResult] = useState(null);
const handleSearch = (e) => {
e.preventDefault();
const query = searchQuery.toLowerCase().trim();
if (!query) return;
const found = LOCATIONS.find(loc =>
loc.name.toLowerCase().includes(query) ||
loc.region.toLowerCase().includes(query)
);
if (found) {
setSelectedLoc(found);
setSearchResult({ success: true, message: `Yes! We service ${found.name} and the surrounding ${found.region} area.` });
} else {
setSearchResult({ success: false, message: "We're expanding! Call us to see if we can accommodate your project location." });
}
};
return (
{searchResult.message} Primary Hub {selectedLoc.name} DivisionWhere We Work.
Flawless drywall installation with unmatched precision. We show up exactly when scheduled—guaranteed across Washington State.
Receive a response within 2 business hours.
No more "no-call, no-shows". Our project management system ensures our teams arrive on time, ready to work.
We provide a seamless, imperfection-free surface that requires zero extra sanding by your painters.