{parcels && parcels.length > 0 && (
)}
{/* Deselect on map click — overlay to capture clicks outside markers.
zIndex must stay below ParcelDrawer (z20, sibling in .gd-map-shell):
neither this root nor .gd-map-shell creates a stacking context, so a
higher zIndex here would paint over the drawer and swallow its clicks
(X / "Открыть анализ" / ПКК link). z10 keeps the overlay above the
Leaflet map content but under the drawer card. */}
{selectedCad && (
)}
{/* Fetching indicator */}
{isFetching && (
Загрузка участков...
)}
{/* Empty state */}
{!isFetching && parcels && parcels.length === 0 && (
Нет участков в текущем виде. Измените фильтры или область карты.
)}
);
}