:root { --primary: #6c5ce7; --dark: #2d3436; --bg: #f4f7f6; --success: #27ae60; --white: #ffffff; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background: var(--bg); color: var(--dark); line-height: 1.6; }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.logo { font-size: 1.6rem; font-weight: 800; cursor: pointer; }
.logo span { color: var(--primary); }
.location-badge { background: #f0edff; padding: 8px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; color: var(--primary); }

.hero { background: var(--white); padding: 40px 5%; text-align: center; border-bottom: 1px solid #eee; }
.hero h1 { font-size: 1.7rem; margin-bottom: 15px; }
.hero span { color: var(--primary); }
.search-wrapper { position: relative; max-width: 500px; margin: 0 auto; }
#liveSearch { width: 100%; padding: 14px 20px; border-radius: 30px; border: 2px solid #eee; outline: none; font-size: 1rem; }
.suggestions-box { position: absolute; top: 60px; left: 0; right: 0; background: white; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); z-index: 2000; text-align: left; overflow: hidden; }

.container { padding: 25px 5%; min-height: 50vh; }
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; }

.card { background: white; padding: 20px; border-radius: 12px; text-align: center; cursor: pointer; border: 1px solid #eee; transition: 0.3s; }
.card:hover { border-color: var(--primary); transform: translateY(-3px); }
.card img { width: 60px; height: 60px; margin-bottom: 12px; object-fit: contain; }
.card div { font-weight: 700; font-size: 0.85rem; }

.list-view { display: flex; flex-direction: column; gap: 12px; max-width: 600px; margin: 0 auto; }
.provider-card { background: white; display: flex; align-items: center; padding: 15px; border-radius: 12px; gap: 15px; border: 1px solid #eee; }
.provider-card img { width: 65px; height: 65px; border-radius: 50%; object-fit: cover; }
.provider-info { flex: 1; }
.call-btn { background: var(--success); color: white; padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: bold; }
.share-btn { background: #25D366; color: white; border: none; padding: 12px; border-radius: 30px; cursor: pointer; font-weight: bold; width: 100%; transition: 0.3s; }
.share-btn:hover { background: #1ebe57; }

.main-footer { background: var(--dark); color: white; padding: 40px 5%; margin-top: 50px; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-links li { list-style: none; margin-top: 10px; }
.footer-links a { color: #ccc; cursor: pointer; text-decoration: none; }
.footer-bottom { border-top: 1px solid #444; margin-top: 25px; padding-top: 20px; text-align: center; color: #888; font-size: 0.8rem; }

.modal { position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: white; padding: 30px; border-radius: 15px; max-width: 450px; position: relative; width: 100%; }
.close { position: absolute; right: 20px; top: 10px; font-size: 25px; cursor: pointer; }
.hidden { display: none; }
.breadcrumb { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
#backBtn { background: var(--primary); color: white; border: none; padding: 8px 15px; border-radius: 8px; cursor: pointer; }

@media (max-width: 600px) { .grid-container { grid-template-columns: repeat(2, 1fr); } }