diff --git a/src/components/pages/ProvidersStep/ProvidersStep.tsx b/src/components/pages/ProvidersStep/ProvidersStep.tsx index a11edc6..14d1adb 100644 --- a/src/components/pages/ProvidersStep/ProvidersStep.tsx +++ b/src/components/pages/ProvidersStep/ProvidersStep.tsx @@ -538,18 +538,15 @@ export const ProvidersStep: React.FC = ({ /> - {/* Floating control strip */} - = ({ }} /> - {/* Control row: Filters, Sort, view toggle */} + {/* Control row: Filters, Sort (icon-only on mobile), view toggle. + Each control carries its own white fill so it reads cleanly + over any map tile — no shared container. Heights aligned at + 32px to match Button small + ToggleButton small. */} {filterDialogChildren} - + + = ({ ))} - {/* View toggle — icon-only on mobile to keep the row tight */} + {/* View toggle — icon-only, aligned height with the buttons */} = ({ ml: 'auto', flexShrink: 0, '& .MuiToggleButton-root': { + height: 32, px: 1, - py: 0.5, + py: 0, + bgcolor: 'background.paper', + '&:hover': { bgcolor: 'background.paper' }, '&.Mui-selected': { bgcolor: 'var(--fa-color-brand-100)', color: 'primary.main', @@ -710,7 +725,7 @@ export const ProvidersStep: React.FC = ({ - + {/* Bottom drawer — slides up when a pin/cluster is active */} = ({ pointerEvents: drawerOpen ? 'auto' : 'none', }} > - {/* Close X */} - mapRef.current?.clearActive()} + {/* Drawer header — holds the close X (and the cluster count when + applicable) so it doesn't sit over the card image */} + - - + {drawerCluster && !drawerProvider && ( + + {drawerCluster.providers.length} providers in this area + + )} + mapRef.current?.clearActive()} + size="small" + sx={{ + ml: 'auto', + width: 32, + height: 32, + color: 'text.secondary', + '&:hover': { bgcolor: 'var(--fa-color-surface-subtle)' }, + }} + > + + + {/* Single-provider drawer content — entire card clickable */} {drawerProvider && ( - + = ({ {/* Cluster list drawer content — tap row to drill in */} {drawerCluster && !drawerProvider && ( - - - {drawerCluster.providers.length} providers in this area - + {[...drawerCluster.providers] .sort((a, b) => Number(!!b.verified) - Number(!!a.verified))