How do you make an embedded map responsive?

Put the embedded map in a fluid wrapper with a controlled aspect ratio or minimum height, and make the iframe fill that wrapper. The map should shrink with its container without creating page-level horizontal scrolling. Responsive sizing does not replace an accessible text-based location alternative.
.map-embed {
inline-size: 100%;
aspect-ratio: 4 / 3;
min-block-size: 20rem;
}
.map-embed iframe {
inline-size: 100%;
block-size: 100%;
border: 0;
}
Choose a ratio that leaves zoom and marker controls usable. On a narrow phone, a very short landscape ratio can make the map difficult to operate; a taller ratio or fixed minimum height may work better. Limit maximum height on desktop when the map would otherwise dominate the page.
Give the iframe a descriptive title and avoid trapping page scroll with map gestures. Place the address, directions link, opening details and location list in semantic HTML outside the embed so users can complete the task without manipulating the map.
Test keyboard entry and exit, touch panning, zoom, orientation and consent-blocked states. A placeholder displayed before map consent needs a clear load action and the same address information. If the provider’s internal interface is inaccessible, offer a searchable list or other equivalent route. Verify the behavior across the full width range, including spaces between design breakpoints. Long labels, translated copy and enlarged text can expose constraints that short sample content never reaches. Verify the behavior across the full width range, including spaces between design breakpoints. Long labels, translated copy and enlarged text can expose constraints that short sample content never reaches.